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
如何解决呢?
救命!声卡驱动问题!
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 3
- 注册时间: 2008-01-29 22:16
-
- 帖子: 4
- 注册时间: 2008-02-02 12:17
-
- 帖子: 4
- 注册时间: 2008-02-02 12:17
呵呵
刚解决掉了
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.)
[编辑]
刚解决掉了
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.)
[编辑]