|
|
Alsa已编译进内核,
键入alsamixer后输出:- Gentoo gentoo # alsamixer
- No mixer elems found
复制代码
已经运行过:- rc-update add alsasound boot
- gpasswd -a <username> audio
- /etc/init.d/alsasound start
复制代码
在系统-首选项-音效的 设备-声音和电影(自动检测)测试中弹出信息(也没有声音):- audiotestsrc wave=sine freq=512 ! audioconvert !
- audioresample ! gconfaudiosink profile=music: Could not open audio device for playback.
复制代码
看了Gentoo Linux Alsa设置指南后试过
emerge alsa-utils
alsaconf却- No Legacy drivers are available for your machine.
复制代码 在它弹出配置界面前在终端上输出:- modinfo: could not find module snd
- modinfo: could not find module snd
- modinfo: could not find module snd
复制代码
用户组- Gentoo gentoo # groups
- root bin daemon sys adm disk wheel floppy dialout tape video games
- gentoo@Gentoo ~ $ groups
- wheel audio games users
复制代码
使用mplayer播放mp3:- Gentoo Music # mplayer Faint.mp3
- MPlayer dev-SVN-r26753-4.1.2 (C) 2000-2008 MPlayer Team
- CPU: Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz (Family: 6, Model: 15, Stepping: 13)
- CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
- 编译时针对 x86 CPU 扩展指令集优化: MMX MMX2 SSE SSE2
- 正在播放 Faint.mp3。
- 检测到 Audio file 文件格式。
- 剪辑信息:
- Title: Faint
- Artist: Linkin Park
- Album: Meteora
- Year: 2003
- Comment:
- Track: 7
- Genre: Rock
- ==========================================================================
- 打开音频解码器: [mp3lib] MPEG layer-2, layer-3
- AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
- 已选音频编解码器: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
- ==========================================================================
- [AO_ALSA] 回放打开错误: No such file or directory
- open /dev/[sound/]dsp: No such file or directory
- [OpenAL] could not open device
- DVB card number must be between 1 and 4
- AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
- 视频:没有视频流
- 开始播放...
- A: 1.6 (01.6) of 162.0 (02:42.0) 0.7%
- MPlayer 被 2 信号中断(位于 play_audio 模块)
- A: 1.6 (01.6) of 162.0 (02:42.0) 0.7%
- 正在退出...(退出)
复制代码
我的make.conf- Gentoo Music # cat /etc/make.conf
- # These settings were set by the catalyst build script that automatically
- # built this stage.
- # Please consult /etc/make.conf.example for a more detailed example.
- CFLAGS="-Os -march=i686 -pipe"
- CXXFLAGS="${CFLAGS}"
- # WARNING: Changing your CHOST is not something that should be done lightly.
- # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
- CHOST="i686-pc-linux-gnu"
- GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo \
- http://mirror.averse.net/pub/gentoo/"
- SYNC="rsync://mirror.averse.net/gentoo-portage"
- USE="x264 xvid X a52 aac aalib -accessibility acpi alsa -apm -arts \
- md5sum mmxext quicktime rar srt ssse3 win32codecs xvmc \
- vidix dts avi sse2 bash-completion -bluetooth bzip2 cjk cdr dbus doc dvd \
- dvdr -emacs ffmpeg flac ftp gif gtk gtk2 gstreamer hal \
- -ibm -ipv6 jpeg -kde mmx mp3 mpeg -netboot nls \
- nptl ogg opengl openal -pcmcia -oss png -qt3 -qt4 sse svg \
- tiff truetype truetype-fonts unicode v4l vcd xml xml2 xine zlib \
- gnome "
- ACCEPT_KEYWORDS="~x86"
- MAKEOPTS="-j3"
- LINGUAS="zh_CN"
- VIDEO_CARDS="i810"
- 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 |
|