为VIA8233声卡提出解决方案!弥补论坛中原ALSA方案的不足

王朝other·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

首先当然要以ROOT用户登录(或在终端下su到ROOT用户)。

解压缩alsa-driver-0.9.0rc5.tar.bz2:

#tar jxvf alsa-driver-0.9.0rc5.tar.bz2

进入刚刚解压得到的目录:

#cd alsa-driver-0.9.0rc5

执行:

1、#./configure

INSTALL原文如下:

引用:

Run './configure' script.

If you have ISA Plug & Play soundcard, use --with-isapnp=yes switch.

If you want sequencer support, use --with-sequencer=yes switch.

If you do not want OSS/Free emulation, use --with-oss=no switch.

If you want turn on debug mode use --with-debug=full switch.

If you want debug soundcard detection try --with-debug=detect switch.

If you have kernel source code in another directory than /usr/src/linux,

use --with-kernel=<kernel_directory>

请大家根据自己的的实际情况加入相应的参数(主板自带的VIA8233声卡不用加参数,直接configure就行了)。

2、#make install

3、./snddevices

INSTALL原文:

引用:

Run the './snddevices' script to create new sound devices in /dev directory.

Skip this step, if you have a kernel with the DEVFS support.(执行./snddevices脚本以在/dev目录下创建新的声卡设备。

如果你的内核支持DEVFS(什么东东?我不知道。),可以跳过这一步。)

呵呵,因为我不知道DEVFS是什么,所以我不管它,直接就执行snddevices。

4、编辑/etc/modules.conf。如果你知道该怎么编辑那就最好了,如果不知道,呵呵,不要紧,你可以运行. /utils/alsaconf,让它来帮你编辑,你所需要做的就只是选择你的声卡就行了。(原来我并不知道alsa-driver-0.9.0rc5已经自带了这个东东,所以在公社提供的ALSA包里又给出了这个程序)。

下面请看我的modules(VIA8233声卡):

引用:

alias parport_lowlevel parport_pc

alias eth0 8139too

alias sound-slot-0 via82cxxx_audio

post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :

pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

alias usb-controller usb-uhci

alias char-major-116 snd

alias snd-card-0 snd-card-x

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

options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666 snd_device_gid=0 snd_device_uid=0

options snd-card-x snd_index=0 snd_id=CARD_0 snd_mpu_port=0x300 snd_joystick=0x300 snd_pbk_frame_size=128 snd_cap_frame_size=128

alias char-major-195 NVdriver

5、modprobe snd-xxxx。xxxx是你的声卡模块,在alsa-driver-0.9.0rc5中VIA8233的模块是via82xx(在以前版本中是via8233),所以如果用VIA8233声卡的朋友应该用下面的命令:

modprobe snd-via82xx

用其它声卡的朋友可以在/lib/modules/(内核版本目录,比如2.4.18-17.8.0)/kernel/sound/看看自己的声卡模块是什么(当然,你的声卡得是ALSA支持的才行)。

OK,如果这个过程中没有什么错误的话,驱动到此就装完了。

然后把音量都调高,“音量控制”、kmix等等都可以。不过在这里我有一个问题,那就是在KDE中音量可以保存,而在GNOME中,音量总是无法保存,每次启动都得调一下音量。

呵呵,打开播放器,来点MUSIC吧!!!(这个驱动的音质已经相当不错了,感觉跟WINDOWS下的差不多甚至更好。)

最后我们做点善后工作,让系统启动时自动加载ALSA声卡模块:

ln /etc/rc.d/init.d/alsasound /etc/rc.d/rc5.d/S87alsasound(S87听说是启动顺序,我对这个不大清楚,随便弄了一个S97也很正常,呵呵。)

然后在ntsysv中选中它就可以了。

保险一点的话,再在/etc/rc.local中加入下面一行命令:

modprobe snd-via82xx(其它声卡请作相应修改)。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航