Linux操作系统下声卡驱动的详细加载方法

来源:赛迪网 作者:korn
  

(1).安装alsa-driver:

 

在安装之前先解除之前的依赖关系

tar zxvf alsa-driver-1.0.9b_26_evoc.tar.gz

grep -r –n ’南桥芯片’ ./*

cd alsa-driver-1.0.9b_26

make clean

./configure --with-kernel=/usr/src/linux-2.4 --with-cards=intel8x0

 

make

make install

./snddevices

 

备注:在执行modprobe snd-intel8x0出现:"the unresolved symbol schedule_work"类似信息,

解决方法是:

 

touch include/linux/workqueue.h

make clean

make

make install

 

(2).安装alsa-lib:

tar jxvf alsa-lib-1.0.9.tar.bz2

cd alsa-lib-1.0.9

./configure

make

make install

(3).安装alsa-utils-1.0.9a:

tar jxvf alsa-utils-1.0.9a.tar.bz2

cd alsa-utils-1.0.9a

./configure

make

make install

安装声卡驱动:

modprobe snd-intel8x0

或者:

运行alsaconf

备注: The driver is loaded, but OSS programs say: Can't open /dev/dsp.

What is wrong?

A: The OSS compatible PCM (digital audio) emulation comes as an add-on module

which is not loaded by default. If you have got modified /etc/conf.module

as suggested in the INSTALL file, it should be loaded with kerneld or kmod.

Check it - if this method for some reason doesn't work - you need to insert

the 'snd-pcm-oss' module manually.

=====>请执行: modprobe snd-pcm-oss

安装mpg123工具: mpg123-0.59r.tar.gz

 

tar zxvf mpg123-0.59r.tar.gz

 

cd mpg123-0.59r

 

make linux

make install

 

播放mp3测试声卡:

 

mpg123 /root/1.mp3(正常mp3文件)

 

备注:如果没有听到声音,运行alsamixer将声卡的静音打开.

Alsamixer(调节音量)

alsactl store

 

用vi /etc/rc.local编辑添加:

 

alsactl restore

保存退出

 

(责任编辑:A6)


时间:2007-12-04 11:12 来源:赛迪网 作者:korn 原文链接

好文,顶一下
(0)
0%
文章真差,踩一下
(0)
0%
------分隔线----------------------------


把开源带在你的身边-精美linux小纪念品
无觅相关文章插件,快速提升流量