LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: simon25hk

alsa 1.0.6a 安裝問題

[复制链接]
发表于 2004-9-8 01:51:46 | 显示全部楼层
你的声卡不错啊,至于主芯片可能是VIA ENVY24。请尝试按指南手动编辑modules.conf,声卡模块用snd-ice1724,来试一下。
 楼主| 发表于 2004-9-22 21:14:00 | 显示全部楼层
我試過了,還是不成的說
发表于 2004-9-23 02:59:33 | 显示全部楼层
那请用snd-ice1712来试一下,envy芯片一般用这两种模块驱动。
 楼主| 发表于 2004-9-25 18:21:12 | 显示全部楼层
rr19xx大哥:

我的/etc/modules.conf文件里是這樣的
      1 alias usb-controller usb-uhci
      2
      3 #ISA PnP support(don't use IRQs 9,10,11,12,13)
      4 options isapnp isapnp_reserve_irq=9,10,11,12,13
      5
      6 #ALSA native device support
      7 alias char-major-116 snd
      8 options snd major=116 cards_limit=1
      9 alias snd-card-0 snd-ice1724
     10 options snd-ice1724 index=0
     11
     12 #OSS/Free setup
     13 alias char-major-14 soundcore
     14 alias sound-slot-0 snd-card-0
     15 alias sound-service-0-0 snd-mixer-oss
     16 alias sound-service-0-1 snd-seq-oss
     17 alias sound-service-0-3 snd-pcm-oss
     18 alias sound-service-0-8 snd-seq-oss
     19 alias sound-service-0-12 snd-pcm-oss

然后我在命令行里
#modprobe snd-ice1724
就出現了這樣的東西出?
[root@localhost etc]# modprobe snd-ice1724
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1724.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1724.o: insmod /lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1724.o failed
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1724.o: insmod snd-ice1724 failed

然后我就照你所說的那樣試一下ice1712的
也是同樣的修改modules.conf文件
之后運行
[root@localhost etc]# modprobe snd-ice1712
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1712.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1712.o: insmod /lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1712.o failed
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1712.o: insmod snd-ice1712 failed

也是失敗的........
另外我試過這樣子找過關于snd-ice*的聲卡
[root@localhost root]# modprobe -l |grep snd-ice
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1712.o
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice1724.o
/lib/modules/2.4.20-8/kernel/sound/pci/ice1712/snd-ice17xx-ak4xxx.o

我發現也有一個聲卡(snd-ice17xx-ak4xxx)我沒有試過的,于是也試了一下
還是同樣的過程,修改了modules.conf
      1 alias usb-controller usb-uhci
      2
      3 #ISA PnP support(don't use IRQs 9,10,11,12,13)
      4 options isapnp isapnp_reserve_irq=9,10,11,12,13
      5
      6 #ALSA native device support
      7 alias char-major-116 snd
      8 options snd major=116 cards_limit=1
      9 alias snd-card-0 snd-ice17xx-ak4xxx
     10 options snd-ice17xx-ak4xxx index=0
     11
     12 #OSS/Free setup
     13 alias char-major-14 soundcore
     14 alias sound-slot-0 snd-card-0
     15 alias sound-service-0-0 snd-mixer-oss
     16 alias sound-service-0-1 snd-seq-oss
     17 alias sound-service-0-3 snd-pcm-oss
     18 alias sound-service-0-8 snd-seq-oss
     19 alias sound-service-0-12 snd-pcm-oss
然后在命令行中
[root@localhost etc]# modprobe snd-ice17xx-ak4xxx
這次沒問題,但是重開機后卻有一大堆不知明的錯誤....
 楼主| 发表于 2004-9-25 18:47:03 | 显示全部楼层
現在好像沒問題了,
是否如果你在命令行里
[root@localhost etc]# modprobe snd-ice17xx-ak4xxx
如果沒有錯誤消息出?砭驮^明你找對了自己的聲卡 ???
如果是這樣的話,我繼續下去
下了gamix
http://www1.tcnet.ne.jp/fmurata/lin...1.99.p14.tar.gz
解压:tar zxvf gamix-1.99.p14.tar.gz
cd gamix-1.99.p14
./configure
然后就有一大堆的問題出?砹,如下
..........
..........
..........
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 0.5.0... found.
checking for snd_ctl_open in -lasound... yes
checking for pkg-config... /usr/bin/pkg-config
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+ > 1.2.0... sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
Requested 'gtk+ > 1.2.0' but version of GTK+ is

configure: error: Library requirements (gtk+ > 1.2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
[root@localhost gamix-1.99.p14]#
发表于 2004-9-26 10:19:58 | 显示全部楼层
gamix编译失败,是因为你没有安装gtk的开发包。请安装软件开发包解决这个问题。
事实上,如果加载模块成功,正如指南所说,你也可以使用alsamixer+alsactl进行配置。它们均包括在alsautil内。alsamixer是终端图形界面的混音器,alsactl可保存alsa设置。
 楼主| 发表于 2004-9-27 21:37:27 | 显示全部楼层
我想知道我的聲卡是否加載成功,以下是我lsmod后的結果.....

[root@localhost alsa-utils-1.0.6]# lsmod
Module                  Size  Used by    Tainted: PF
ppp_deflate             4504   0  (autoclean)
zlib_deflate           21368   0  (autoclean) [ppp_deflate]
ppp_async               9440   1  (autoclean)
ppp_generic            24444   3  (autoclean) [ppp_deflate ppp_async]
slhc                    6740   0  (autoclean) [ppp_generic]
ide-cd                 35708   0  (autoclean)
cdrom                  33728   0  (autoclean) [ide-cd]
snd-pcm-oss            44680   0  (autoclean) (unused)
snd-pcm                84416   0  (autoclean) [snd-pcm-oss]
snd-timer              20036   0  (autoclean) [snd-pcm]
snd-mixer-oss          16824   0  (autoclean) [snd-pcm-oss]
snd-ice17xx-ak4xxx      2744   0  (autoclean) (unused)
snd-ak4xxx-adda         5664   0  (autoclean) [snd-ice17xx-ak4xxx]
snd                    48292   0  (autoclean) [snd-pcm-oss snd-pcm snd-timer snd-mixer-oss snd-ak4xxx-adda]
snd-page-alloc          7916   0  (autoclean) [snd-pcm snd-timer snd-mixer-oss snd]
soundcore               6404   0  (autoclean) [snd]
ham                    14428   1
hamcore               616480   0  [ham]
parport_pc             19076   1  (autoclean)
lp                      8996   0  (autoclean)
parport                37056   1  (autoclean) [parport_pc lp]
autofs                 13268   0  (autoclean) (unused)
ipt_REJECT              3928   6  (autoclean)
iptable_filter          2412   1  (autoclean)
ip_tables              15096   2  [ipt_REJECT iptable_filter]
keybdev                 2944   0  (unused)
mousedev                5492   1
hid                    22148   0  (unused)
input                   5856   0  [keybdev mousedev hid]
usb-uhci               26348   0  (unused)
usbcore                78784   1  [hid usb-uhci]
[root@localhost alsa-utils-1.0.6]#


然后我試著去在alsa-utils里用alsamixer卻得到這個結果
[root@localhost alsa-utils-1.0.6]# alsamixer

alsamixer: function snd_ctl_open failed for default: No such device
[root@localhost alsa-utils-1.0.6]#

另外如果這樣的話
[root@localhost alsa-utils-1.0.6]# amidi -l
no sound card found

是否意味著我還沒有找到聲卡啊???
发表于 2004-9-28 11:20:37 | 显示全部楼层

回复: alsa安裝問題

最初由 simon25hk 发表
我參考了rr19xx的帖子安裝Alsa驅動
http://www.linuxsir.cn/forum.php ... 15&pagenumber=1

里面有以下一段話
三 编译alsa 执行:

cd alsa-driver-0.9.4
./configure

注意:如果你知道自己声卡的模块名称,则可以用: ./configure --with-cards=模块名称 如我的是8235芯片的软声卡,则为:./configure --with-cards=via82xx 但如果不清楚的话,还是请用./congfigure 以编译alsa所支持的所有声卡的驱动。
如果声卡是ISA的pnp声卡,请用./configure --with-isapnp=yes
./configure 的详细参数可通过执行:./configure –help进行查询。

之后:
make
make install
./snddevices
cd utils
./alsaconf 之后出现一个终端图形配置界面,一路回车便可以配置好声卡了。
如果alsaconf没能自动配置你的声卡,那么你可能需要手动配置/etc/modules.conf文件。


我在最后一步里遇到困難了, 這篇文章介紹的是0.9.4版本的,但我下了1.0.6a的,我發覺我進了utils后,沒有alsaconf, 接下?碓觞N辦???
各位裝過alsa的?韼鸵粠兔, :thank

我的配置:
RH9.0
P3 866 cpu
ICON Wavestation 7.1 pro sound card
128 Mb RAM
Intel Ham modem


朋友,这里的:alsaconf可以这样来完成:(http://www.linuxsir.cn/forum.php ... 15&pagenumber=1)

1、安装alsa-driver
cd alsa-driver-1.0.5a
./configure
这里其实是有很多选项的,rr19xx的指南中已经提示了,我再列在这:
如果你知道自己声卡的模块名称,则可以用: ./configure --with-cards=模块名称 如我的是8235芯片的软声卡,则为:./configure --with-cards=via82xx 但如果不清楚的话,还是请用./congfigure 以编译alsa所支持的所有声卡的驱动。
如果声卡是ISA的pnp声卡,请用./configure --with-isapnp=yes
./configure 的详细参数可通过执行:./configure –help进行查询。
之后:
make
make install
./snddevices

接下来我没有:
cd utils
./alsaconf,而是将我的modules.conf配置好,再进行的下一步.

在kernel2.6以后编辑内核时,/etc/下就是没有modules.conf这个文件,只好自己建立一个了,用#touch modules.conf 来建立这个文件,内容是:
----- /etc/modules.conf
# ALSA native device support
alias char-major-116 snd
options snd major=116 cards_limit=1
alias snd-card-0 snd-intel8x0
options snd-intel8x0 index=0

# OSS/Free setup
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
----- /etc/modules.conf
保存后进行下一步:
2、modprobe snd-声卡模块名称,这里我的声卡是:snd-intel8x0所以这一步就是:
modprobe snd-intel8x0
(因为我的NB上只有一个声卡,所以modules.conf配置比较简单,PS:我还真没见过NB有两块声卡的呢 )
在我的机子上前面的安装都非常顺利,没有任何的错误。

找到你的声卡型号就行了!
 楼主| 发表于 2004-10-2 21:17:09 | 显示全部楼层
只可惜是我到現在都不知道自己聲卡的型號呢.....
是否如果modprobe snd-ice17xx-ak4xxx 如果沒有任何問題就代表我己經找到自己的聲卡了?
发表于 2004-10-4 00:21:40 | 显示全部楼层
不能看看你主板的说明书吗?一般都有说明是什么心片的声卡的.
还有的..你编译驱动时不知道自己声卡的心,就最好把全部声卡驱动都安装上...再编译安装...alsa-libs和alsa-utils...这两个包..
安装好后..就直接能运行alsaconf了...之后一步步按提示的去做就行了.
如果你的声卡是ALSA驱动支持的.通常都会帮你在modules.conf文件里配置好的.

我的CMI8738就是这样配置完成的...
我安装的内核是2.6.8.1所以..驱动就不用自己编译了.
去下载最新的alsa-libs和alsa-utils这两个包..
里面带有spec文件..可以编译成RPM包.方便以后删除..
记得先编译alsa-libs这个包...编译好后就安装了它.
再来编译安装alsa-utils这个包....
都搞好后...直接在控制台下运行alsaconf
直接认出我的声卡...一直下一步就完成了....

忘记了说..新版本的KDE和Gnome带的音量控制台..都支持ALSA驱动的..
不要自己安装其它的了...(gnome我的不敢说,KDE3.3就支持的,因为我在用)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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