现在我用的FC2 KDE3.2.3 kernel2.6.7 重新编辑内核,注意在关于声卡部分的选择是这样的:
#
# Sound
#
CONFIG_SOUND=m
#
# Advanced Linux Sound Architecture
#
# CONFIG_SND is not set
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
关于这一步其实在alsa-driver-1.0.5a的包里的INSTALL中说比较明白了:
You must compile the kernel with sound support (CONFIG_SOUND on
2.2/2.4 kernels) either as module or built-in. You do not need to
select any of the other sound modules apart from sound support.
安装ALSA吧:
我也只是安装了三个包:alsa-driver-1.0.5a.tar.bz2,alsa-lib-1.0.5.tar.bz2,alsa-utils-1.0.5.tar.bz2就可以解决大部分问题了
解包:
tar jxvf alsa-driver-1.0.5a.tar.bz2
tar jxvf alsa-lib-1.0.5.tar.bz2
tar jxvf alsa-utils-1.0.5.tar.bz2
tar jxvf gamix-1.99.p14.tar.gz
1、安装alsa-driver
cd alsa-driver-1.0.5a
./configure
这里其实是有很多选项的,rr19xx的指南中已经提示了,我再列在这:
如果你知道自己声卡的模块名称,则可以用: ./configure --with-cards=模块名称 如我的是8235芯片的软声卡,则为:./configure --with-cards=via82xx 但如果不清楚的话,还是请用./congfigure 以编译alsa所支持的所有声卡的驱动。
如果声卡是ISA的pnp声卡,请用./configure --with-isapnp=yes
./configure 的详细参数可通过执行:./configure –help进行查询。
之后:
make
make install
./snddevices
接下来我没有:
cd utils
./alsaconf,而是将我的modules.conf配置好,再进行的下一步.
在kernel2.6以后编辑内核时,/etc/下就是没有modules.conf这个文件,只好自己建立一个了,用#touch modules.conf 来建立这个文件,内容是:
----- /etc/modules.conf
# ALSA native device support
alias char-major-116 snd
options snd major=116 cards_limit=1
alias snd-card-0 snd-intel8x0
options snd-intel8x0 index=0
# OSS/Free setup
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
----- /etc/modules.conf
保存后进行下一步:
2、modprobe snd-声卡模块名称,这里我的声卡是:snd-intel8x0所以这一步就是:
modprobe snd-intel8x0
(因为我的NB上只有一个声卡,所以modules.conf配置比较简单,PS:我还真没见过NB有两块声卡的呢 )
在我的机子上前面的安装都非常顺利,没有任何的错误。
第三步,如rr19xx兄所说,现在还真的是没声音呢,原来是OS自己的默认问题,现在就来安装解决这一问题吧:(这里都是掃rr19xx兄的指南进行的)
1、cd lib-1.0.5
./configure
make
make install
以上安装alsalib
2、cd alsa-utils
./configure
make
make install
以上安装alsactl、alsamixer、amixer、aplay工具
3、cd gamix-1.99
./configure
make
make install
以上安装gamix