|
成功安装了Alsa声卡驱动!
现将步骤记录如下:
1、# grep -i audio /proc/pci
检查声卡的型号,不过我建议还是到Windows下面去查看好,因为这里查看的不是很准确。我的声卡是 Creative Labs Sound Blaster PCI X (因为是Dell机,故选择Dell OEM)http://www.alsa-project.org/alsa-doc/index.php?vendor=All#matrix
这里可以查看到与你声卡芯片匹配的Alsa驱动的模块名称
2、安装Alsa-driver
如果你用的是2.6内核并且选择了sound card support的话,你可以跳过这一步,继续安装Alsa-utils
如果你用的2.4内核,那么往下看!
#nano -w /etc/make.conf
编辑make.conf文件,添加或更改ALSA_CARDS="emu10k1x"
#emerge alsa-driver
3、安装Alsa-utils
安装Oss兼容层
#emerge alsa-oss
安装utils
#emerge alsa-utils
4、配置
我用的手动配置内核,所以直接验证设备文件 :
如果你使用DevFS(Gentoo安装过程中会将它作为默认选项),请确保/etc/devfsd.conf中的 ALSA设备以及权限已经被正确设置:
# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660
5、激活自启动
# rc-update add alsasound boot
# /etc/init.d/alsasound start
6、运行Amixer
# amixer
打开声道
# amixer set Master 100 unmute
# amixer set PCM 100 unmute
7、好了,可以坐下来欣赏音乐了
#alsamixer
这个程序可以进行声道优化调整
以上步骤参照
http://gentoo.linuxsir.cn/doc/cn/alsa-guide.xml
呵呵,我听音乐了! |
|