LinuxSir.cn,穿越时空的Linuxsir!

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

我的alsactl和alsamixer无法使用

[复制链接]
发表于 2004-10-23 23:04:51 | 显示全部楼层 |阅读模式
由于alsa驱动默认启动后声音静音的,我便按照论坛的方法用alsactl+alsamixer进行配置,但这两个工具都不能用。amixer也不能工作
具体错误是:
[root@localhost log]# alsamixer -c 0
alsamixer: function snd_ctl_open failed for hw:0: No such file or directory

[root@localhost log]# amixer
amixer: Mixer attach default error: No such file or directory

[root@localhost log]# alsactl store
alsactl: save_state:1061: No soundcards found...

尤其是alsactl的错误最奇怪。明明驱动都装了,声卡也能出声,却告诉没有声卡。我用的是alsa 1.03驱动。
顺便也把modules.conf给帖出来吧。
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
# 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
# OSS/Free portion - 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
# OSS/Free portion - card #2 (cmipci)
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.3 ---
alias char-major-116 snd
alias char-major-14 soundcore
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
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---

那位高人能帮忙看看,不胜感谢!
 楼主| 发表于 2004-10-26 17:47:32 | 显示全部楼层
哪位大侠知道帮帮忙吧!
发表于 2004-10-27 20:35:13 | 显示全部楼层
使用discover和hotplug了吗?在/etc/discover.conf最后加上
skip ***

***对应你的声卡,比如说我的声卡是ensoniq 5880 pciaudio,那么我的***就是es1371;当然你可以lsmod看看你现在加载的声卡模块式什么;然后rmmod ***;在modprobe snd-XXX,这里snd-XXX对应的是alsa的名称,比如现在我的是snd-ens1371,这样就可以用alsamixer了;如果你使用了hotplug,需要在/etc/hotplug/blacklist后面加上***,我的是es1371;当然如果/etc/hotplug/blacklist.d里面已经禁掉了***,/etc/hotplug/blacklist就不用加入了。

说明:在discover.conf和blacklist加入skip ***和***的目的是让内核不自动加载声卡的oss驱动,我的是es1371,而加载snd-ens1371。
 楼主| 发表于 2004-10-29 21:18:56 | 显示全部楼层
你的意思是我所加载的OSS驱动影响了alsamixer的正常工作么?
谢谢你的回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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