- 论坛徽章:
- 0
|
声卡的问题...请高手赐教
kernel source code 装了没有?
The following are steps to enable alsa work on FC1。
1. Prerequisites:
Ensure "soundcore" is enabled as module in kernel. You can use command `modinfo soundcore`to check it, the default kernel of FC1 has enabled it.
Ensure linux kernel source code has been installed and /usr/src/linux/.config file exists
2. Install alsa-driver
1>;#tar jxvf alsa-driver-0.9.8.tar.tar
2>;#cd alsa-driver-0.9.8
3>;#./configure --with-cards=via82xx --with-sequencer=yes
4>;#mkdir -p include/linux
5>;#touch include/linux/workqueue.h
6>;#make; make install
Notes: step 4>;. 5>; should be done on FC1. Otherwise, `modprobe snd-via82xx` will fail for "unresolved symbol schedule_work"
3. Install alsa-lib
#tar jxvf alsa-lib-0.9.8.tar.tar
#cd alsa-lib-0.9.8
# ./configure;make;make install
4. Install alsa-utils
#tar jxvf alsa-utils-0.9.8.tar.tar
#cd alsa-lib-0.9.8
# ./configure; make; make install
5.config /etc/modules.conf
#cd alsa-driver-0.9.8/utils/
#./alsaconf
press enter till end, then audio config information will write to /etc/modules.conf. The original moduels.conf will be saved as /etc/modules.conf.old.
Combine the content of modules.conf.old and modules.conf together as moduels.conf.
#modprobe snd-via82xx;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
you can add modprobe command above into /etc/rc.d/rc.local
Then audio modules will automatically load when startup.
6 Unmute volume , save and reload the config.
The volume of mixer is set as mute by default, so we should use the util----alsamixer
After installing alsa-util
#alsamixer
Direction key will adjust volume, ‘m' key will switch mute and unmute. ‘Esc' key will quit and save.
Store volume control
#alsactl store
Add the command below into /etc/rc.d/rc.local, thus the audio config will reload when restart up.
#alsactl restore |
|