LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 988|回复: 1

redhat8.0下成功安装ALSA声卡

[复制链接]
发表于 2003-5-19 09:19:20 | 显示全部楼层 |阅读模式
1。用lsmod看是否有snd模块,如果有用modprobe -r卸载掉。在linux源码包目录下的configs目录下有一些config文件,请选取与自己cpu相应的config文件,复制一份放至linux源码包目录下,并改名为.config即可。如我用xp1700+,则:
cp /usr/src/linux/configs/kernel-2.4.20-athlon.config /usr/src/linux/.config
2。下在alsa驱动,我用的是alsa-lib-0.9.3,解压缩。
3。假设你已经安装了源码包。进入解压缩的目录,cd alsa-driver-0.9.2,
用./configure配置,这里要注意使用
with-kernel=<kernel_directory>,因为默认是使用linux这个链接文件,但8.0中内核文件的连接是linux 2.4,所以要改一下,这是好多兄弟编译不成的原因,可以使用./configure -h查看一下帮助。
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>
4。make
5。make install
6。make clean  #删除临时生成的文件
7。cd utils
./alsaconf,出现一个终端图形配置界面,一路回车便可以配置好声卡了。
如果alsaconf没能自动配置你的声卡,那么你可能需要手动配置/etc/modules.conf文件。下面是它的解释
  alias char-major-116 snd
#注释:ALSA使用的主设备号码

  alias snd-card-0 snd-card-ymfpci
#snd-card-0是系统里面第一个声卡设备,如果系统有两个以上声卡,可以使用#snd-card-1,snd-card-2等方法映射
#snd-card-ymfpci是声卡设备名称,你需要改成自己的声卡。

#OSS /free option----因为ALSA需要内核中OSS SoundCore和其它设备的支持

   alias char-major-14 soundcore
#系统中soundcore的主设备号码

  alias sound-slot-0 snd-card-0
#第一个声卡对应的插槽

#下面是声卡驱动模块,sound-service-0指第一块声卡,如果系统里面只有一块,原封不动拷贝即可.否则按照此格式加入其它声卡驱动模块
#card #1
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
#ISA声卡还需要指定IRQ/IO地址,因为市场上已经很少,在此不再探讨。有需要可以查看此软件的相关说明。
8。 因为linux默认静音,所以需要配置音量、保存设置并每次启动后加载。
a. 进入alsa-lib-0.9.2目录,安装alsalib,执行:
  ./configure
  make
  make install

b.进入alsa-utils-0.9.2目录,安装alsautils,执行:
./configure
make
make install
c.运行alsamixer,配置好你的音量。
d.执行:alsactl store,保存当前音量配置。
9。  让系统启动时每加载
     执行:chkconfig --add alsasound
     之后重启即可。
或者
   编辑/etc/rc.d/rc.local
  加上这一行:alsactl restore
  保存重启即可。
10。kde的需要注意以下:
运行混音器(kmix),文件-将当前音量保存为默认值-退出。
之后重启即可。
用KDE的朋友,需要关闭aRTs服务。
运行控制中心,声音和多媒体-声音系统-aRTs ,取消在KDE启动时启动aRTs声音服务器即可。



这里要注意使用
发表于 2003-5-20 00:56:12 | 显示全部楼层
多谢....标为精华帖,与弟兄们共享。

下面是rr19xx兄的大作,说的也是极为详细,弟兄们可以参考一下。。

http://www.linuxsir.cn/forum.php ... 15&pagenumber=1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表