LinuxSir.cn,穿越时空的Linuxsir!

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

声卡不工作,

[复制链接]
发表于 2008-5-18 17:05:37 | 显示全部楼层 |阅读模式
我刚装的gentoo,声卡就算不响了。
我的make.conf:
  1. CFLAGS="-O2 -march=pentium-m -pipe"
  2. CXXFLAGS="${CFLAGS}"
  3. # WARNING: Changing your CHOST is not something that should be done lightly.
  4. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
  5. CHOST="i686-pc-linux-gnu"
  6. MAKEOPTS="-j2"

  7. GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ "

  8. SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
  9. USE="X qq msn"
  10. VIDEO_CARDS="fglrx"
  11. ALSA_CARDS="atiixp"
  12. INPUT_DEVICES="keyboard mouse"
  13. CCACHE_SIZE="2G"
  14. FEATURES="ccache"
复制代码

demsg里的显示:

  1. ALSA device list:
  2.   No soundcards found.
复制代码


lspci里的显示:

  1. 00:14.5 Multimedia audio controller: ATI Technologies Inc IXP150 AC'97 Audio Controller (rev 01)
  2. 00:14.6 Modem: ATI Technologies Inc IXP AC'97 Modem (rev 01)
复制代码


我的内核配置是

  1. #
  2. # Sound
  3. #
  4. CONFIG_SOUND=y

  5. #
  6. # Advanced Linux Sound Architecture
  7. #
  8. CONFIG_SND=y
  9. CONFIG_SND_TIMER=y
  10. CONFIG_SND_PCM=y
  11. # CONFIG_SND_SEQUENCER is not set
  12. # CONFIG_SND_MIXER_OSS is not set
  13. # CONFIG_SND_PCM_OSS is not set
  14. # CONFIG_SND_RTCTIMER is not set
  15. # CONFIG_SND_DYNAMIC_MINORS is not set
  16. CONFIG_SND_SUPPORT_OLD_API=y
  17. CONFIG_SND_VERBOSE_PROCFS=y
  18. # CONFIG_SND_VERBOSE_PRINTK is not set
  19. # CONFIG_SND_DEBUG is not set

  20. #
  21. # Generic devices
  22. #
  23. CONFIG_SND_AC97_CODEC=y
  24. # CONFIG_SND_DUMMY is not set
  25. # CONFIG_SND_MTPAV is not set
  26. # CONFIG_SND_SERIAL_U16550 is not set
  27. # CONFIG_SND_MPU401 is not set

  28. #
  29. # PCI devices
  30. #
  31. # CONFIG_SND_AD1889 is not set
  32. # CONFIG_SND_ALS300 is not set
  33. # CONFIG_SND_ALS4000 is not set
  34. # CONFIG_SND_ALI5451 is not set
  35. CONFIG_SND_ATIIXP=y
  36. CONFIG_SND_ATIIXP_MODEM=m
  37. ... .......
  38. #
  39. # Open Sound System
  40. #
  41. # CONFIG_SOUND_PRIME is not set
  42. CONFIG_AC97_BUS=y
  43. CONFIG_HID_SUPPORT=y
  44. CONFIG_HID=y
  45. # CONFIG_HID_DEBUG is not set
  46. # CONFIG_HIDRAW is not set

复制代码




按照内核的配置文件,我应该已经把alsa的驱动加到内核了把,
demsg为什么会说找补到sound card呢?
而在lspci中却能看到我的声卡呢?

大大们指点一二呀。。。。。。。。。。。
 楼主| 发表于 2008-5-18 17:18:59 | 显示全部楼层

这是我的emerge --info的输出


  1. Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
  2. =================================================================
  3. System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.73GHz
  4. Timestamp of tree: Fri, 16 May 2008 01:46:01 +0000
  5. ccache version 2.4 [enabled]
  6. app-shells/bash:     3.2_p17-r1
  7. dev-lang/python:     2.4.4-r6
  8. dev-python/pycrypto: 2.0.1-r6
  9. dev-util/ccache:     2.4-r7
  10. sys-apps/baselayout: 1.12.11.1
  11. sys-apps/sandbox:    1.2.18.1-r2
  12. sys-devel/autoconf:  2.13, 2.61-r1
  13. sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
  14. sys-devel/binutils:  2.18-r1
  15. sys-devel/gcc-config: 1.4.0-r4
  16. sys-devel/libtool:   1.5.24
  17. virtual/os-headers:  2.6.23-r3
  18. ACCEPT_KEYWORDS="x86"
  19. CBUILD="i686-pc-linux-gnu"
  20. CFLAGS="-O2 -march=pentium-m -pipe"
  21. CHOST="i686-pc-linux-gnu"
  22. CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
  23. CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
  24. CXXFLAGS="-O2 -march=pentium-m -pipe"
  25. DISTDIR="/usr/portage/distfiles"
  26. FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
  27. GENTOO_MIRRORS="http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ "
  28. LANG="zh_CN.GB2312"
  29. MAKEOPTS="-j2"
  30. PKGDIR="/usr/portage/packages"
  31. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  32. PORTAGE_TMPDIR="/var/tmp"
  33. PORTDIR="/usr/portage"
  34. SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
  35. USE="X acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap libnotify mad midi mikmod mp3 mpeg msn mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qq qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="atiixp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx"
  36. Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

复制代码
回复 支持 反对

使用道具 举报

发表于 2008-5-18 17:21:53 | 显示全部楼层
lsmod看一下有什么模块加载了?
不过我把内核的整个sound support编译成了模块(M),以前我编译成(*)的好像不行。
还有就是不要使用oss,用alsa就好了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-18 19:09:16 | 显示全部楼层
我把声卡的模块全部选择为模块。。
按照http://www.gentoo.org/doc/en/alsa-guide.xml
里的步骤做了一边,alsamixer能够正常的设置,就是没有声音。。很奇怪。下面是我的lsmod:

  1. ggjd ~ # lsmod
  2. Module                  Size  Used by
  3. snd_seq                43952  0
  4. snd_pcm_oss            37024  0
  5. snd_mixer_oss          16512  1 snd_pcm_oss
  6. snd_atiixp             18060  0
  7. snd_atiixp_modem       14856  0
  8. snd_ac97_codec         91296  2 snd_atiixp,snd_atiixp_modem
  9. ac97_bus                5760  1 snd_ac97_codec
  10. snd_pcm                64004  4 snd_pcm_oss,snd_atiixp,snd_atiixp_modem,snd_ac97_codec
  11. snd_timer              19972  2 snd_seq,snd_pcm
  12. snd                    42212  8 snd_seq,snd_pcm_oss,snd_mixer_oss,snd_atiixp,snd_atiixp_modem,snd_ac97_codec,snd_pcm,snd_timer
  13. soundcore               9312  1 snd
  14. snd_page_alloc         11144  3 snd_atiixp,snd_atiixp_modem,snd_pcm
  15. radeonfb               95680  0
  16. fb_ddc                  5888  1 radeonfb
  17. i2c_algo_bit            8964  1 radeonfb
  18. cfbcopyarea             7168  1 radeonfb
  19. i2c_core               21120  3 radeonfb,fb_ddc,i2c_algo_bit
  20. cfbimgblt               6656  1 radeonfb
  21. cfbfillrect             7168  1 radeonfb
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-5-18 19:20:40 | 显示全部楼层
你是 ac97 的驱动?你看看把 OSS 去掉,把 ALSA 的设置加你的驱动加入内核(不用模块),同时去除全部的其它驱动看看?
回复 支持 反对

使用道具 举报

发表于 2008-5-18 19:34:17 | 显示全部楼层
默认会被静音 掉,开启alsamixer, 按M键
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-18 19:51:14 | 显示全部楼层
alsamixer 的静音已经打开,音量也调大了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-18 19:59:54 | 显示全部楼层
照 亞利艾爾 说的,重新编译了内核。。
  1. Device Drivers->
  2.     sound->
  3.          <*> Sound card support
  4.                   Advanced Linux Sound Architecture  --->
  5.                              <*> Advanced Linux Sound Architecture
  6.                               <*>   Sequencer support     
  7.                              <*>   OSS Mixer API
  8.                              <*>   OSS PCM (digital audio) API         
  9.                                    [*]     OSS PCM (digital audio) API - Include plugin system
  10.                                    [*]   Support old ALSA API
  11.                                    [*]   Verbose procfs contents
复制代码

oss里什么也没选。。试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-18 20:25:41 | 显示全部楼层
试过了,还是不行。。。。。555555555555555555555555555555555
回复 支持 反对

使用道具 举报

发表于 2008-5-18 22:25:48 | 显示全部楼层
alsaconf有错误提示吗?
回复 支持 反对

使用道具 举报

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

本版积分规则

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