歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> alsa聲卡驅動的安裝

alsa聲卡驅動的安裝

日期:2017/2/27 9:39:32   编辑:更多Linux

解決RH8中VIA8233聲卡問題    首先當然要以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=     請大家根據自己的的實際情況加入相應的參數(主板自帶的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(其它聲卡請作相應修改)。






Copyright © Linux教程網 All Rights Reserved