LinuxSir.cn,穿越时空的Linuxsir!

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

声卡驱动ALSA安装指南-第三版=》03年06月08日更新

[复制链接]
 楼主| 发表于 2004-10-1 17:56:19 | 显示全部楼层

回复 coolie

请问你是否执行./configure后就直接执行make install?
编译顺序:./configure
make
make install
发表于 2004-10-10 09:54:41 | 显示全部楼层

进行alsaconf时出错!

按照楼主的操作进行:
RH9,via8233 AC97,
在进行./alsaconf操作或者手动修改/etc/modules.con,然后modprobe时,均出现如下错误:
Starting sound driver: snd-via82xx /lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved symbol schedule_work
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod /lib/modules/2.4.20-8/kernel/sound/acore/snd.o failed
/lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod snd-via82xx failed

进行了几次,都是这样,通过lsmod命令查看,没有发现snd模块加载!
请问是怎么回事?已经尝试过多次,都没有成功!
多谢!
发表于 2004-10-10 10:15:03 | 显示全部楼层
我升级了下内核程序

结果加进内核

lsmod也提示模块加载成功

Module                  Size  Used by
snd_seq_midi            6272  -
snd_via82xx            23812  -
snd_ac97_codec         64748  -
snd_mpu401_uart         6152  -
snd_rawmidi            20260  -
bash-2.05b#

可是就是有问题!

不懂为什么!只能重新加载oss模块,才可以听歌,但是效果有杂音,大家帮忙看看。。。:(

谢谢

http://bbs.linuxsir.cn/showthread.php?s=&threadid=144885
发表于 2004-10-10 18:06:47 | 显示全部楼层
确认方法:执行:modinfo soundcore
如果返回信息表明有soundcore这个文件,那么表明当前内核已经做了相应配置。可进行alsa的安装。

========================================

bash-2.05b# modinfo soundcore
modinfo: could not find module soundcore
bash-2.05b#

不能找到module soundcore,说明我内核没有设置好?

不过我确实是把它编成模块了。。。
bash-2.05b# lsmod
Module                  Size  Used by
snd_via82xx            23812  -
snd_ac97_codec         64748  -
snd_pcm                85892  -
snd_timer              21932  -
snd_page_alloc          8592  -
snd_mpu401_uart         6152  -
snd_rawmidi            18112  -
bash-2.05b#
===============================
查了很多资料,说只有装完alsa-driver后会自动生成 /dev/dsp
/dev/mixer 等等。。不过我的内核已经升级到2.6.8.1

不是说2.6的内核,把支持的声卡模块加载进去后就不用emerge alsa-driver了吗?

大家知道的麻烦解释下:( 被alsa 困扰好多天了
发表于 2004-10-15 14:08:11 | 显示全部楼层

声卡安装求救!

rr19xx 你好.以下问题请帮忙解决.tks
1.确认有无内核源码包
到 /usr/src目录下看看是否有一个名字类似linux-2.x.x-x的目录.
     注:我的源码包是有的.不过路经和你说的不一样.是在/lib/modules/2.4.20-8
不知道这样可不可以安装声卡.
发表于 2004-10-15 15:11:39 | 显示全部楼层

声卡安装求救2

在安装的时.
[root@localhost alsa-driver-0.9.4]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/coolie/alsa-driver-0.9.4
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linu
x/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
发表于 2004-10-18 00:27:42 | 显示全部楼层
你好,我用FC2,sony笔记本,编译到make得时候出现如下错误:
make[1]: Entering directory `/lib/modules/2.6.5-1.358/build'
  CC [M]  /root/driver/alsa-driver-1.0.7rc2/kbuild/../drivers/portman2x4.o
In file included from /root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4.c:1:
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:60: error: syntax error before "int"
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:60: warning: type defaults to `int' in declaration of `module_param_array'
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:60: warning: function declaration isn't a prototype
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:60: warning: data definition has no type or storage class
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:62: error: syntax error before numeric constant
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:62: warning: type defaults to `int' in declaration of `module_param_array'
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:62: warning: function declaration isn't a prototype
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:62: warning: data definition has no type or storage class
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:64: error: syntax error before numeric constant
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:64: warning: type defaults to `int' in declaration of `module_param_array'
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:64: warning: function declaration isn't a prototype
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:64: warning: data definition has no type or storage class
/root/driver/alsa-driver-1.0.7rc2/drivers/portman2x4-kernel.c:58: warning: `boot_devs' defined but not used
make[3]: *** [/root/driver/alsa-driver-1.0.7rc2/kbuild/../drivers/portman2x4.o] ?? 1
make[2]: *** [/root/driver/alsa-driver-1.0.7rc2/kbuild/../drivers] ?? 2
make[1]: *** [/root/driver/alsa-driver-1.0.7rc2/kbuild] 错误 2
make[1]: Leaving directory `/lib/modules/2.6.5-1.358/build'
make: *** [compile] 错误 2


然后make install就出现如下错误
find /lib/modules/2.6.5-1.358/kernel/sound -name 'snd*.*o' | xargs rm -f
make[1]: Entering directory `/root/driver/alsa-driver-1.0.7rc2/acore'
mkdir -p /lib/modules/2.6.5-1.358/kernel/sound/acore
cp snd-hwdep.ko snd-page-alloc.ko snd-pcm.ko snd-rawmidi.ko snd-rtctimer.ko snd-timer.ko snd.ko /lib/modules/2.6.5-1.358/kernel/sound/acore
cp: stat‘snd-hwdep.ko’失败: 没有那个文件或目录
cp: stat‘snd-page-alloc.ko’失败: 没有那个文件或目录
cp: stat‘snd-pcm.ko’失败: 没有那个文件或目录
cp: stat‘snd-rawmidi.ko’失败: 没有那个文件或目录
cp: stat‘snd-rtctimer.ko’失败: 没有那个文件或目录
cp: stat‘snd-timer.ko’失败: 没有那个文件或目录
cp: stat‘snd.ko’失败: 没有那个文件或目录
make[1]: *** [modules_install] 错误 1
make[1]: Leaving directory `/root/driver/alsa-driver-1.0.7rc2/acore'
make: *** [install-modules] 错误 1


因此我现在无法运行alsaconfig,请问怎么解决呢?谢谢!
发表于 2004-10-18 20:44:01 | 显示全部楼层
奇怪,全部重新作一此,好了
发表于 2004-10-21 11:45:04 | 显示全部楼层
实在是好贴,太谢谢了,终于解决了无声问题
发表于 2004-10-27 19:09:21 | 显示全部楼层

help

版主请帮忙解决一下,tks!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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