Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

為 VIA8233 聲卡打造 ALSA 解決方案,補足論壇舊方案的缺漏

首先請以 ROOT 身分登入(或在終端下 su 切換到 ROOT)。解壓縮驅動:

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

步驟一:configure

執行 #./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 即可。

步驟二:make install

#make install

步驟三:./snddevices

執行 ./snddevices 會在 /dev 目錄下建立新的聲卡裝置。如果你的內核支援 DEVFS 就可跳過這步(我搞不清楚 DEVFS 是什麼,所以一律照跑)。

步驟四:編輯 /etc/modules.conf

若你知道怎麼編輯最好,不知道的話可以執行 ./utils/alsaconf 讓它代勞,你只要選對聲卡即可。以下是我的 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

步驟五:載入模組

modprobe snd-xxxx,xxxx 是你的聲卡模組。在 alsa-driver-0.9.0rc5 中,VIA8233 的模組是 via82xx(舊版是 via8233),所以:

modprobe snd-via82xx

用其他聲卡的朋友,可到 /lib/modules/(內核版本目錄,如 2.4.18-17.8.0)/kernel/sound/ 查看自己的聲卡模組名稱(前提是該卡得為 ALSA 支援)。若過程無誤,驅動就裝好了。

接著把音量調高,「音量控制」、kmix 都可以。這裡有個小困擾:KDE 中音量能保存,GNOME 中卻總是存不住,每次開機都得重調。打開播放器聽點音樂吧,這個驅動的音質已經相當不錯,感覺與 Windows 相當甚至更好。

開機自動載入

最後做點善後,讓系統開機時自動載入 ALSA 模組:

ln /etc/rc.d/init.d/alsasound /etc/rc.d/rc5.d/S87alsasound

然後在 ntsysv 中把它選中即可(S87 據說是啟動順序,這部分我不太清楚)。保險起見,也可在 /etc/rc.local 加入一行:modprobe snd-via82xx(其他聲卡請自行替換)。

Copyright © Linux教程網 All Rights Reserved