当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 6 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 救命!声卡驱动问题!
帖子发表于 : 2008-01-29 22:29 

注册: 2008-01-29 22:16
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
Dell Inspiron 1520 装Ubuntu 7.10

装好不出声

按照Google来的方法下载
$ wget ftp://ftp.alsa-project.org/pub/driver/a ... 15.tar.bz2
$ wget ftp://ftp.alsa-project.org/pub/lib/alsa ... 15.tar.bz2
$ wget ftp://ftp.alsa-project.org/pub/utils/al ... 15.tar.bz2

但编译时却出错!
求求各位大虾帮帮我!!!

make[1]: Entering directory `/home/sufang/alsa-driver-1.0.9rc4a/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/home/sufang/alsa-driver-1.0.9rc4a/include -I/lib/modules/2.6.22-14-generic/build/include -I/lib/modules/2.6.22-14-generic/build/include/asm-i386/mach-default -O2 -mpreferred-stack-boundary=2 -march=i586 -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DMODVERSIONS -include /lib/modules/2.6.22-14-generic/build/include/linux/modversions.h -DKBUILD_BASENAME=hpetimer -c -o hpetimer.o hpetimer.c
在包含自 hpetimer.c:22 的文件中:
/home/sufang/alsa-driver-1.0.9rc4a/include/sound/driver.h:29:26: 错误: linux/config.h:No such file or directory
In file included from /lib/modules/2.6.22-14-generic/build/include/asm/processor.h:22,
from /lib/modules/2.6.22-14-generic/build/include/asm/thread_info.h:16,
from /lib/modules/2.6.22-14-generic/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.22-14-generic/build/include/linux/preempt.h:9,
from /lib/modules/2.6.22-14-generic/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.22-14-generic/build/include/linux/module.h:9,
from /home/sufang/alsa-driver-1.0.9rc4a/include/adriver.h:45,
from /home/sufang/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hpetimer.c:22:
/lib/modules/2.6.22-14-generic/build/include/linux/cpumask.h:88: 错误: ‘CONFIG_NR_CPUS’ 未声明 (不在函数内)
In file included from /lib/modules/2.6.22-14-generic/build/include/asm/thread_info.h:16,
from /lib/modules/2.6.22-14-generic/build/include/linux/thread_info.h:21,
from /lib/modules/2.6.22-14-generic/build/include/linux/preempt.h:9,
from /lib/modules/2.6.22-14-generic/build/include/linux/spinlock.h:49,
from /lib/modules/2.6.22-14-generic/build/include/linux/module.h:9,
from /home/sufang/alsa-driver-1.0.9rc4a/include/adriver.h:45,
from /home/sufang/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hpetimer.c:22:
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h:83: 错误: ‘CONFIG_X86_L1_CACHE_SHIFT’ 未声明 (不在函数内)
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h:83: 错误: 要求的对齐边界不是常量
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h: 在函数 ‘cpuid_count’ 中:
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h:618: 警告: 传递参数 1 (属于 ‘native_cpuid’) 给指针时目标与指针有/无符号不一致
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h:618: 警告: 传递参数 2 (属于 ‘native_cpuid’) 给指针时目标与指针有/无符号不一致
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h:618: 警告: 传递参数 3 (属于 ‘native_cpuid’) 给指针时目标与指针有/无符号不一致
/lib/modules/2.6.22-14-generic/build/include/asm/processor.h:618: 警告: 传递参数 4 (属于 ‘native_cpuid’) 给指针时目标与指针有/无符号不一致
In file included from /lib/modules/2.6.22-14-generic/build/include/linux/gfp.h:4,
from /lib/modules/2.6.22-14-generic/build/include/linux/slab.h:14,
from /lib/modules/2.6.22-14-generic/build/include/linux/percpu.h:5,
from /lib/modules/2.6.22-14-generic/build/include/asm/desc.h:11,
from /lib/modules/2.6.22-14-generic/build/include/asm/elf.h:50,
from /lib/modules/2.6.22-14-generic/build/include/linux/elf.h:7,
from /lib/modules/2.6.22-14-generic/build/include/linux/module.h:15,
from /home/sufang/alsa-driver-1.0.9rc4a/include/adriver.h:45,
from /home/sufang/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
from hpetimer.c:22:
/lib/modules/2.6.22-14-generic/build/include/linux/mmzone.h: 在顶层:
/lib/modules/2.6.22-14-generic/build/include/linux/mmzone.h:43: 错误: 要求的对齐边界不是常量
/lib/modules/2.6.22-14-generic/build/include/linux/mmzone.h:93: 错误: 要求的对齐边界不是常量
/lib/modules/2.6.22-14-generic/build/include/linux/mmzone.h:305: 错误: 要求的对齐边界不是常量
在包含自 /lib/modules/2.6.22-14-generic/build/include/linux/module.h:21 的文件中,
从 /home/sufang/alsa-driver-1.0.9rc4a/include/adriver.h:45,
从 /home/sufang/alsa-driver-1.0.9rc4a/include/sound/driver.h:42,
从 hpetimer.c:22:
/lib/modules/2.6.22-14-generic/build/include/asm/module.h:64:2: 错误: #error unknown processor family
在包含自 /lib/modules/2.6.22-14-generic/build/include/linux/sched.h:51 的文件中,
从 /lib/modules/2.6.22-14-generic/build/include/asm/irq.h:13,
从 /lib/modules/2.6.22-14-generic/build/include/linux/irq.h:23,
从 /lib/modules/2.6.22-14-generic/build/include/asm/hardirq.h:5,
从 /lib/modules/2.6.22-14-generic/build/include/linux/hardirq.h:7,
从 /lib/modules/2.6.22-14-generic/build/include/linux/interrupt.h:11,
从 hpetimer.c:26:
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:33:3: 错误: #error You lose.
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
/lib/modules/2.6.22-14-generic/build/include/linux/jiffies.h:225:31: 错误: #if 中用零做除数
In file included from /lib/modules/2.6.22-14-generic/build/include/linux/pid.h:4,
from /lib/modules/2.6.22-14-generic/build/include/linux/sched.h:72,
from /lib/modules/2.6.22-14-generic/build/include/asm/irq.h:13,
from /lib/modules/2.6.22-14-generic/build/include/linux/irq.h:23,
from /lib/modules/2.6.22-14-generic/build/include/asm/hardirq.h:5,
from /lib/modules/2.6.22-14-generic/build/include/linux/hardirq.h:7,
from /lib/modules/2.6.22-14-generic/build/include/linux/interrupt.h:11,
from hpetimer.c:26:
/lib/modules/2.6.22-14-generic/build/include/linux/rcupdate.h:71: 错误: 要求的对齐边界不是常量
/lib/modules/2.6.22-14-generic/build/include/linux/rcupdate.h:74: 错误: 要求的对齐边界不是常量
In file included from /lib/modules/2.6.22-14-generic/build/include/asm/hardirq.h:5,
from /lib/modules/2.6.22-14-generic/build/include/linux/hardirq.h:7,
from /lib/modules/2.6.22-14-generic/build/include/linux/interrupt.h:11,
from hpetimer.c:26:
/lib/modules/2.6.22-14-generic/build/include/linux/irq.h:176: 错误: 要求的对齐边界不是常量
In file included from /lib/modules/2.6.22-14-generic/build/include/linux/hardirq.h:7,
from /lib/modules/2.6.22-14-generic/build/include/linux/interrupt.h:11,
from hpetimer.c:26:
/lib/modules/2.6.22-14-generic/build/include/asm/hardirq.h:12: 错误: 要求的对齐边界不是常量
make[1]: *** [hpetimer.o] 错误 1
make[1]: Leaving directory `/home/sufang/alsa-driver-1.0.9rc4a/acore'
make: *** [compile] 错误 1

如何解决呢?


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-01-29 22:41 

注册: 2008-01-29 22:16
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
声卡是sigmatel stac9205 codec


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2008-01-29 22:51 

注册: 2008-01-29 22:16
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
~>_<~


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2008-02-02 12:18 

注册: 2008-02-02 12:17
帖子: 4
送出感谢: 0 次
接收感谢: 0 次
~~~~~~~~~一样哈

那位大大帮个忙?


页首
 用户资料  
 
5 楼 
 文章标题 :
帖子发表于 : 2008-02-02 12:39 

注册: 2008-02-02 12:17
帖子: 4
送出感谢: 0 次
接收感谢: 0 次
呵呵

刚解决掉了


Method G: linux-backports-modules

* does work: D630, D830, Vostro...
* does work: Dell Inspiron 1520
* does work: Dell Inspiron 1720
* does work: HP Pavilion dv9000
* does work : Acer TravelMate 6292 (but internal and external mic doesn't work)
* does not work: iMac
* does not work: Zepto znote 6625WD
* does not work: Dell Vostro 1400 (Earlier the headphones were working. After trying Method G the card itself was not recognized)

Description: You just need to install the package linux-backports-modules-generic (metapackage to keep it up-to-date when upgrading the kernel, that will install as a dependency the package linux-backports-modules-2.6.22-14.generic). Make sure you have activated the backport sources.

sudo aptitude install linux-backports-modules-generic

For Dell Latitude D630 / D830 also do the following (if you don't, the volume will increase with every sound played):

sudo gedit /etc/modprobe.d/alsa-base

In the editor, add the following line at the end of the file:

options snd-hda-intel model=dell-m42

Save the file and reboot to get sound working correctly. If sound is too low, go to Volume Control's Preferences and add "Front" (and any other playback tracks) and make sure they are set to the maximum. For Acer Travelmate 6292, you need the following line in /etc/modprobe.d/alsa-base:

options snd-hda-intel model=acer

Problems solved :

* speakers are muted and unmuted when headphones are plugged/unplugged
* the internal micro works (not very well, but works)
* suspend/hibernate

Remaining problems with this method:

* no known problems
* On the Vostro 1700, PCM volume slider has no effect (And thus neither has volume sliders in applications). Must use "Front".
* Internal microphone recording level is very soft.
* Master volume control is "exponential" (first 3/4 of slider has very little effect).

(I suspect the "minimum" and/or "maximum" bounds for the microphone and master volume controls are incorrect.)
[编辑]


页首
 用户资料  
 
6 楼 
 文章标题 :
帖子发表于 : 2008-02-02 12:43 
头像

注册: 2007-07-20 22:15
帖子: 896
送出感谢: 0 次
接收感谢: 0 次
相应开发包没装

代码:
sudo apt-get install build-essential ncurses-dev linux-headers-'uname -r'  ja-trans gettext


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 6 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译