LinuxSir.cn,穿越时空的Linuxsir!

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

大家来看看!问一个奇怪的声音问题

[复制链接]
发表于 2004-4-6 20:44:34 | 显示全部楼层 |阅读模式
Gentoo2004+kernel2.6.5+kde3.2.1
内核中已经加入了alsa及相应的声卡驱动,并编入内核。
reboot,进入console,/dev和/dev/sound下没有dsp,adsp,mixer。
进入KDE,也没有;运行XMMS放歌,XMMS死掉,用konsole启动XMMS查看message,显示无/dev/dsp。
运行Quake3或Gmplayer,有声音了!!退出查看,adsp,dsp,mixer不知从哪冒出来了!!!:confused:
简直是怪事!:mad:
原来我用2.6.4的内核时没有问题,但我没有打开devfs在内核中。
现在打开devfs了,难道是这个造成的??
可是XMMS和那两个有什么区别?因为条件所限,我没有尝试其他程序。
请各位明鉴!
发表于 2004-4-6 21:26:21 | 显示全部楼层
可能如你所说,用了devfs
 楼主| 发表于 2004-4-6 21:29:30 | 显示全部楼层
有没有好的解决办法??
如果不用devfs,就没有/dev/cdrom,和folppy设备,我只好用/dev/hdd挂载cdrom,用fd0挂载folppy
 楼主| 发表于 2004-4-7 18:13:51 | 显示全部楼层
 楼主| 发表于 2004-4-8 20:49:49 | 显示全部楼层
在后面就没有人看到了~
555
发表于 2004-4-10 18:44:09 | 显示全部楼层

其实很简单!!只要emerge alsa-utils就可以了。

不过你还要在装完后修改一下你的一些配置文件:/etc/module.d/alsa文件,把对应用你声卡的驱动代码填上去就行了。比如我的就是

alias char-major-116 snd
alias char-major-14 soundcore
alias snd-card-0 snd-intel8x0
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
# 你的问题解决方案就在这儿。
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

options snd cards_limit=1

发表于 2004-4-10 18:53:07 | 显示全部楼层

还要加上以下的命令:

rc-update add alsasound default

reboot

就可以了。;)
 楼主| 发表于 2004-4-14 13:24:56 | 显示全部楼层
这是我的配置文件
========================================================
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-interwave
alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
##

# 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
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
========================================================
也将alsasound加入default了
但还是不行。
发表于 2004-4-15 00:21:49 | 显示全部楼层

那你的是什么声卡?

....
发表于 2004-4-15 00:33:46 | 显示全部楼层
最初由 orphen 发表
这是我的配置文件
========================================================
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
alias snd-card-0 snd-interwave
alias snd-card-1 snd-ens1371
##  OSS/Free portion
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
##

# 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
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
========================================================
也将alsasound加入default了
但还是不行。


下面两行

alias snd-card-0 snd-interwave
alias snd-card-1 snd-ens1371
替换成
alias snd-card-0 声卡模块 (不要直接复制声卡模块啊 -__-)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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