LinuxSir.cn,穿越时空的Linuxsir!

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

求助:ALC850的alsa驱动安装,附lspci lsmod modules.conf uname

[复制链接]
发表于 2006-3-11 11:26:47 | 显示全部楼层 |阅读模式
#cd alsa-driver-1.0.10
#./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 suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
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 egrep... grep -E
checking for ANSI C header files... yes
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... /usr/src/alsa-driver-1.0.10
checking cross compile...
checking for directory with kernel source... /lib/modules/2.6.8-2-386/source
checking for directory with kernel build... /lib/modules/2.6.8-2-386/build
checking for kernel linux/version.h... no
The file /lib/modules/2.6.8-2-386/source/include/linux/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 /lib/modules/2.6.8-2-386/source).
请教什么地方出了问题?

本帖子中包含更多资源

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

x
 楼主| 发表于 2006-3-11 18:13:56 | 显示全部楼层
我已经
#apt-get install kernel-source-2.6.8.tar.bz2
#cd /usr/src
#tar jxvf kernel-source-2.6.8.tar.bz2
#ln -s kernel-source-2.6.8 linux

#cd /usr/src/alsa-driver-1.0.10
#./configure
问题依旧

请帮忙~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-11 21:10:00 | 显示全部楼层
急切等待中。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-11 23:23:56 | 显示全部楼层
#modinfo soundcore
filename:       /lib/modules/2.6.8-2-386/kernel/sound/soundcore.ko
description:    Core sound module
author:         Alan Cox
license:        GPL
alias:          char-major-14-*
vermagic:       2.6.8-2-386 preempt 386 gcc-3.3
depends:
我离她发声是不是很近了呀?
顶!
回复 支持 反对

使用道具 举报

发表于 2006-3-12 01:11:31 | 显示全部楼层
你要把你的内核编译一下,或者在内核目录中运行:make include/linux/version.h

后者不一定有效。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-12 01:20:22 | 显示全部楼层
Post by 终极幻想
你要把你的内核编译一下
Post by 终极幻想
或者在内核目录中运行:make include/linux/version.h后者不一定有效。

果然没有效。。没有那个文件或者目录。。

只能编译内核了呀?还是有点没有信心呀。。没有其他的方法了吗?
回复 支持 反对

使用道具 举报

发表于 2006-3-12 03:10:25 | 显示全部楼层
奇怪,你的什么内核?。。我在 2.6.15.6 下运行都可以,旧版本的内核更是没问题,。。
你是在什么目录运行的,是要进去内核的那个目录。

[root@testlfs /usr/src/linux-2.6.15.6]# make include/linux/version.h
  CHK     include/linux/version.h
[root@testlfs /usr/src/linux-2.6.15.6]#
回复 支持 反对

使用道具 举报

发表于 2006-3-12 11:27:53 | 显示全部楼层
楼主的ALC850声卡是不是Realtek ALC850?是不是应该用intel-snd-hda驱动?
如果是这样的话,就是和我一个声卡,而这个声卡我现在还无法自己编译alsa驱动成功;我用的内核里面的alsa;然后加载声卡驱动时还加上参数才可以使用,下面附上我的配置文件供参考。
文件/etc/modules.autoload.d/kernel-2.6

  1. # /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.
  2. #
  3. # Note that this file is for 2.6 kernels.
  4. #
  5. # Add the names of modules that you'd like to load when the system
  6. # starts into this file, one per line.  Comments begin with # and
  7. # are ignored.  Read man modules.autoload for additional details.

  8. # For example:
  9. # aic7xxx
  10. snd-hda-intel model=6stack-digout
复制代码

文件:/etc/modules.d/alsa

  1. # Alsa 0.9.X kernel modules' configuration file.
  2. # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.4 2004/11/16 01:31:22 eradicator Exp $

  3. # ALSA portion
  4. # OSS/Free portion

  5. ##
  6. ## IMPORTANT:
  7. ## You need to customise this section for your specific sound card(s)
  8. ## and then run `update-modules' command.
  9. ## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
  10. ##
  11. # ALSA native device support
  12. alias char-major-116 snd
  13. alias snd-card-0 snd-hda-intel model=6stack-digout

  14. # OSS/Free setup
  15. alias char-major-14 soundcore
  16. alias sound-slot-0 snd-card-0
  17. alias sound-service-0-0 snd-mixer-oss
  18. alias sound-service-0-1 snd-seq-oss
  19. alias sound-service-0-3 snd-pcm-oss
  20. alias sound-service-0-12 snd-pcm-oss

  21. # more OSS setup
  22. alias /dev/mixer snd-mixer-oss
  23. alias /dev/dsp snd-pcm-oss
  24. alias /dev/midi snd-seq-oss

  25. options snd_cards_limit=1
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-12 20:17:40 | 显示全部楼层
Post by 终极幻想

你是在什么目录运行的,是要进去内核的那个目录。


debian:/usr/src/kernel-source-2.6.8#make /include/linux/version.h
Makefile:418: .config: 没有那个文件或目录
make: “include/linux/version.h”是最新的。

没有认真看,不好意思。。

Post by ifree

楼主的ALC850声卡是不是Realtek ALC850?是不是应该用intel-snd-hda驱动?


我的主板说明上写的是:ALC850 CODEC(UAJ)在WINDOWS中显示的是Realtek AC97 Audio

至于你给的配置文件,我在系统中没有。。不知道debian中这些配置文件在哪里?
是 /lib/modules/2.6.8-2-386/kernel/sound吗?我的里面只有:
core  drivers  i2c  isa  oss  pci  pcmcia  soundcore.ko  synth  usb

你所说的intel-snd-hda驱动在哪里呀-_-| 那个是内核带的alsa驱动?
回复 支持 反对

使用道具 举报

发表于 2006-3-12 23:47:14 | 显示全部楼层
CONFIG_SND_HDA_INTEL:                                                                  
  │ Symbol: SND_HDA_INTEL [=m]                                                         
  │ Prompt: Intel HD Audio                                                                  
  │   Defined at sound/pci/Kconfig:539                                                
  │   Depends on: !M68K && SOUND!=n && PCI && SND                                          
  │   Location:                                                                             
  │     -> Device Drivers                                                               
  │       -> Sound                                                                          
  │         -> Advanced Linux Sound Architecture                                            
  │           -> PCI devices                                                               
  │   Selects: SND_PCM   

我上面的方法大概就是在加载snd-hda-intel这个驱动的时候加一个参数,好像不加这个参数,或者加错了参数都不能正常加载这个驱动模块。楼主还是要根据自己的声卡来选择合适的参数。
到底是什么声卡我觉得还是按照主板说明书来决定。要不把主板拿下来看看,看芯片上写得到底是什么。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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