LinuxSir.cn,穿越时空的Linuxsir!

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

2.6内核下via8233a芯片组的声卡的驱动?

[复制链接]
发表于 2003-12-10 20:11:27 | 显示全部楼层 |阅读模式
我的系统是gentoo1.4,开始装的内核是2.4版的,由于声卡不出声,就想试一下集合到内核的2.6的ALSA就升级了内核版本。我将内核里的Sound选项下的所有内容全选了,除了OSS,在ALSA下选了PCI下的VIA块。
可进系统后还是没声音,用XMMS播放ogg格式的歌,一切看起来全都是正常的,但就是音箱里不出声。附件里的是/etc/modules.conf文件,请大家帮我看看,是不是有问题,编进内核后,是不是还是需要配置这个文件呢?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2003-12-11 11:22:40 | 显示全部楼层
i am using debian, installed with bf24 kernel.
i upgrade to kernel to 2.6.0-test11 with all the following options built-in kernel.
but when i boot up with this kernel, xmms seems work with the /dev/dsp device but there's no sound output.
i also search google, seems there's a package called alsa-xmms, but i cant find it in stable release.

sound support
  alsa
    alsa
      oss api emulation
         oss mixer api
         oss pcm (digital audio) api
      pci device
        esn1731
发表于 2003-12-11 11:25:49 | 显示全部楼层
alsamixer把静音去掉
发表于 2003-12-11 11:32:55 | 显示全部楼层
what can i do to provide more useful information to solve this?
thanks.

btw: i dont install module-init-tools. i have everything buildin kernel.

debian:/mnt/linux-2.6.0-test11# alsamixer

alsamixer: function snd_ctl_open failed for default: No such file or directory
debian:/mnt/linux-2.6.0-test11#
发表于 2003-12-11 12:45:21 | 显示全部楼层
changed back to OSS. it works.

i guess it's because i dont have module-init-tools installed so alsa startup script fails.
 楼主| 发表于 2003-12-11 17:48:53 | 显示全部楼层
昨天我找到一个帖子是关于VIA芯片的,好像说是在启动时要加参数的,modprobe snd-via82xx dxs_spport=2什么的?望碰到过这样的前辈指点一下。
发表于 2003-12-11 18:20:12 | 显示全部楼层
最初由 Master 发表
昨天我找到一个帖子是关于VIA芯片的,好像说是在启动时要加参数的,modprobe snd-via82xx dxs_spport=2什么的?望碰到过这样的前辈指点一下。


好像是test6以前的才需要,最大嫌疑是音量调节,ALSA默认音量是0
发表于 2003-12-12 11:46:06 | 显示全部楼层

我刚刚安装好

昨天晚上弄了整整1个小时,升级到2.6.0-test11。也是安装的alsa驱动,via82xx。把我的/etc/modules.conf中相关的部分贴出来,

--------------------------------------------------
alias char-major-116 snd
options snd major=116 cards_limit=1 device_mode=0666
alias snd-card-0 snd-via82xx
options snd-via82xx index=0
alias char-major-14 soundcore
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
---------------------------------------------------------------------
另外很重要的是,在kenerl source的 script目录下,找到MAKEDEV.snd,以root权限执行,建立alsa所必须的设备文件,还有若是只有root才能播放音乐,可以改动一些设备鄂权限。安装好以后,要用amixer或者alsamixer打开声音。www.alsa-project.org的alsa-util ... 这两个软件。

若你安装了amixer,用这个脚本打开声音,方便些,
amixer set PCM 22 unmute
amixer set PC\ Speaker 22 unmute
amixer set Master 22 unmute
amixer set Master\ Mono 22 unmute
amixer set Headphone 22 unmute
amixer set Phone 22 unmute
amixer set Aux 22 unmute
amixer set Video 22 unmute
amixer set CD 22 unmute
amixer set Input\ Gain 22 unmute
amixer set Line 22 unmute
amixer set MIC 22 unmute
这个是rh中带的,自己修改吧

兄弟: alias sound-service-×-1 中的×指的是第几块声卡,0就是第一块,1就是第二块,2…… 有人这么变态么搞这么多声卡? 所以我看你指需要alias sound-service-0-1 ……等等,不要alias sound-service-1-1部分。

对了要modprobe snd-via82xx; modprobe snd-pcm-oss

用debian的兄弟,把上面的配置copy到/etc/modutils/下的某个文件中,例如alsa-conf,然后update-modules就好了。

这些在kener source下的Documentation目录中都很清楚,大家要看仔细呀。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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