LinuxSir.cn,穿越时空的Linuxsir!

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

alsa声卡的问题[部分已解决]

[复制链接]
发表于 2006-11-24 15:53:58 | 显示全部楼层 |阅读模式
晚上看一个东西,因为怕吵,然后用alsamixer把声音给mute了。
第二天,打开机器后,声音再也出不来了。
用重新编译内核,把alsa弄到核心,弄成模块。死活出不了声音。alsamixer检查声音是打开的
。播放软件也不报错。但是就是没声音。
大家是否遇到过类似的事情呢?
发表于 2006-11-24 16:30:47 | 显示全部楼层
声音是不是最小啊?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-24 16:45:32 | 显示全部楼层
不是阿,我都弄到出现红色的了。主要是原来好好的。我用alsamixer静音,然后玩了下,后面安装了什么忘记了。好像没有安装什么。然后关机。第二天,打开机器,什么错误也没有提示。声音就没有了。用alsamixer调整没有用处。郁闷ing.....
回复 支持 反对

使用道具 举报

发表于 2006-11-24 19:41:11 | 显示全部楼层
重新
emerge -av alsa-driver试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-24 19:52:50 | 显示全部楼层
我弄过了,编译成模块,编译进核心,都不行.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-25 19:02:40 | 显示全部楼层
顶一下,我折腾了好几天了,谁能帮帮我吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-25 19:03:57 | 显示全部楼层
kxy@kxy ~/mp3 $ mplayer 2001.mp3 -v
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1000MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE SSE2


get_path('codecs.conf') -> '/home/kxy/.mplayer/codecs.conf'
读入 /home/kxy/.mplayer/codecs.conf: 无法打开 '/home/kxy/.mplayer/codecs.conf': No such file or directory
读入 /usr/share/mplayer/codecs.conf: 无法打开 '/usr/share/mplayer/codecs.conf': No such file or directory
使用内建默认的codecs.conf.
命令行:  '2001.mp3' '-v'
init_freetype
get_path('font/font.desc') -> '/home/kxy/.mplayer/font/font.desc'
font: can't open file: /home/kxy/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
打开/dev/rtc失败: No such file or directory (此文件应该可被用户读取.)
Using nanosleep() timing
get_path('input.conf') -> '/home/kxy/.mplayer/input.conf'
Can't open input config file /home/kxy/.mplayer/input.conf: No such file or directory
Parsing input config file /usr/share/mplayer/input.conf
Input config file /usr/share/mplayer/input.conf parsed: 60 binds
get_path('2001.mp3.conf') -> '/home/kxy/.mplayer/2001.mp3.conf'

播放 2001.mp3.
get_path('sub/') -> '/home/kxy/.mplayer/sub/'
[file] File size is 16945998 bytes
STREAM: [file] 2001.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename 2001.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> 找到音频流: 0
demux_audio: seeking from 0x10292D1 to start pos 0x0
demux_audio: audio data 0x0 - 0x102934E  
检测到Audio file文件格式。
==========================================================================
打开音频解码器: [mp3lib] MPEG layer-2, layer-3
dec_audio: 为输出缓冲分配 4608 + 65536 = 70144 字节.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 2.0, Layer III, 22050 Hz 48 kbit Joint-Stereo, BPF: 156
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 22050 Hz, 2 ch, s16le, 48.0 kbit/6.80% (ratio: 6000->88200)
选定音频编解码器: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
为 22050Hz/2ch/s16le -> 0Hz/0ch/?? 建造音频过滤链...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[dummy] Was reinitialized: 22050Hz/2ch/s16le
alsa-init: requested format: 22050 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.13
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@streamminister.de>
AO: Comment: under developement
为 22050Hz/2ch/s16le -> 48000Hz/2ch/s16le 建造音频过滤链...
[dummy] Was reinitialized: 22050Hz/2ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
视频: no video
Freeing 0 unused video chunks.
开始播放...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-25 21:20:21 | 显示全部楼层
n多天的实验,编译进内核,模块,编译成模块还出现错误,声卡模块进不来.
今天我不启动/etc/init.d/alsasound这个东西.声音就好了.太奇怪了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-25 21:22:59 | 显示全部楼层
只要我启动过alsasound声音就没有了.
回复 支持 反对

使用道具 举报

发表于 2006-11-25 22:13:27 | 显示全部楼层
alsasound is the daemon who save/restore your alsa mixer settings when starting or shutting down. If your soundcard works correctly without it, then just disable it. But It would be quite strange that you could have your alsa mixer settings save/restore without alsasound daemon.
回复 支持 反对

使用道具 举报

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

本版积分规则

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