LinuxSir.cn,穿越时空的Linuxsir!

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

[解决中]Gentoo没有声音

[复制链接]
发表于 2008-6-15 15:45:28 | 显示全部楼层 |阅读模式
Alsa已编译进内核,

键入alsamixer后输出:
  1. Gentoo gentoo # alsamixer
  2. No mixer elems found
复制代码

已经运行过:
  1. rc-update add alsasound boot
  2. gpasswd -a <username> audio
  3. /etc/init.d/alsasound start
复制代码

在系统-首选项-音效的 设备-声音和电影(自动检测)测试中弹出信息(也没有声音):
  1. audiotestsrc wave=sine freq=512 ! audioconvert !
  2. audioresample ! gconfaudiosink profile=music: Could not open audio device for playback.
复制代码


看了Gentoo Linux Alsa设置指南后试过
emerge alsa-utils

alsaconf却
  1. No Legacy drivers are available for your machine.
复制代码
在它弹出配置界面前在终端上输出:
  1. modinfo: could not find module snd
  2. modinfo: could not find module snd
  3. modinfo: could not find module snd
复制代码

用户组
  1. Gentoo gentoo # groups
  2. root bin daemon sys adm disk wheel floppy dialout tape video games
  3. gentoo@Gentoo ~ $ groups
  4. wheel audio games users
复制代码

使用mplayer播放mp3:
  1. Gentoo Music # mplayer Faint.mp3
  2. MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
  3. CPU: Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz (Family: 6, Model: 15, Stepping: 13)
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
  5. 编译时针对 x86 CPU 扩展指令集优化: MMX MMX2 SSE SSE2
  6. 正在播放 Faint.mp3。
  7. 检测到 Audio file 文件格式。
  8. 剪辑信息:
  9. Title: Faint
  10. Artist: Linkin Park
  11. Album: Meteora
  12. Year: 2003
  13. Comment:                             
  14. Track: 7
  15. Genre: Rock
  16. ==========================================================================
  17. 打开音频解码器: [mp3lib] MPEG layer-2, layer-3
  18. AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
  19. 已选音频编解码器: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
  20. ==========================================================================
  21. [AO_ALSA] 回放打开错误: No such file or directory
  22. open /dev/[sound/]dsp: No such file or directory
  23. [OpenAL] could not open device
  24. DVB card number must be between 1 and 4
  25. AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
  26. 视频:没有视频流
  27. 开始播放...
  28. A:   1.6 (01.6) of 162.0 (02:42.0)  0.7%
  29. MPlayer 被 2 信号中断(位于 play_audio 模块)
  30. A:   1.6 (01.6) of 162.0 (02:42.0)  0.7%
  31. 正在退出...(退出)
复制代码

我的make.conf
  1. Gentoo Music # cat /etc/make.conf
  2. # These settings were set by the catalyst build script that automatically
  3. # built this stage.
  4. # Please consult /etc/make.conf.example for a more detailed example.
  5. CFLAGS="-Os -march=i686 -pipe"
  6. CXXFLAGS="${CFLAGS}"
  7. # WARNING: Changing your CHOST is not something that should be done lightly.
  8. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
  9. CHOST="i686-pc-linux-gnu"
  10. GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo \
  11. http://mirror.averse.net/pub/gentoo/"
  12. SYNC="rsync://mirror.averse.net/gentoo-portage"
  13. USE="x264 xvid X a52 aac aalib -accessibility acpi alsa -apm -arts \
  14. md5sum mmxext quicktime rar srt ssse3 win32codecs xvmc \
  15. vidix dts avi sse2 bash-completion -bluetooth bzip2 cjk cdr dbus doc dvd \
  16. dvdr -emacs ffmpeg flac ftp gif gtk gtk2 gstreamer hal \
  17. -ibm -ipv6 jpeg -kde mmx mp3 mpeg -netboot nls \
  18. nptl ogg opengl openal -pcmcia -oss png -qt3 -qt4 sse svg \
  19. tiff truetype truetype-fonts unicode v4l vcd xml xml2 xine zlib \
  20. gnome "
  21. ACCEPT_KEYWORDS="~x86"
  22. MAKEOPTS="-j3"
  23. LINGUAS="zh_CN"
  24. VIDEO_CARDS="i810"
  25. ALSA_CARDS="hda-intel"
复制代码

求助解决无声问题

<hr>
By using the new configure kernel(2.6.25-gentoo-r8) and the old computer(ECS 945GZT-M), I solved the problem. --Mon Oct 13 21:57:25 CST 2008
发表于 2008-6-15 16:05:10 | 显示全部楼层
最近咋声音都出问题呀,一会到旁边看看吧,我贴到那去

http://www.linuxsir.cn/bbs/thread331123.html  到这里看看吧,终于搞定声音了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-15 20:06:51 | 显示全部楼层
他输入alsaconf能识别
但我的却输出
No Legacy drivers are available for your machine.
回复 支持 反对

使用道具 举报

发表于 2008-6-15 22:50:51 | 显示全部楼层
Post by hjhee;1862339
他输入alsaconf能识别
但我的却输出
No Legacy drivers are available for your machine.


贴出你的 .config 吧,初步猜测你的内核部分没配好,你大不了声卡那块全选,反正弄成<M>,然后知道是哪个后就精简

<M>Alsa
<M>Oss
回复 支持 反对

使用道具 举报

发表于 2008-6-16 05:45:41 | 显示全部楼层
象是内核中没选对声卡。贴lspci和.config
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-16 12:15:12 | 显示全部楼层
lspci
  1. Gentoo gentoo # lspci
  2. 00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 02)
  3. 00:02.0 VGA compatible controller: Intel Corporation Integrated Graphics Controller (rev 02)
  4. 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
  5. 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
  6. 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
  7. 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
  8. 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
  9. 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
  10. 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
  11. 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
  12. 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
  13. 00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
  14. 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
  15. 00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
  16. 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
  17. 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
复制代码

我的主板是P33T-A
好像已经找到声卡了?
附件是.config.old

----------------------------------------
抱歉,发错.config了

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2008-6-16 12:20:32 | 显示全部楼层
鄙人以为 OSS 就不用了,有 ALSA-OSS 这样的东西,已经很不错了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-16 19:06:35 | 显示全部楼层
Post by axlrose;1862422
贴出你的 .config 吧,初步猜测你的内核部分没配好,你大不了声卡那块全选,反正弄成<M>,然后知道是哪个后就精简

<M>Alsa
<M>Oss



OSS & PCI卡全选了
make && make modules && make modules_install && cp arch/x86/boot/bzImage /boot重启
alsaconf却还是
  1. No supported PnP or PCI car found

  2. Gentoo gentoo # lspci | grep -i audio
  3. 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-6-16 19:17:18 | 显示全部楼层
是“No supported PnP and PCI card found”吧?你看看 Sound -> ALSA -> PCI Card -> Intel HDA 有没有选上,选上 M 了就试试 modprobe 一下你的模块。
回复 支持 反对

使用道具 举报

发表于 2008-6-16 20:16:58 | 显示全部楼层
最好不用用Y,要用M。我原来吃过这种亏。
回复 支持 反对

使用道具 举报

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

本版积分规则

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