- 论坛徽章:
- 0
|
用realplayer播放了几个文件后,发现/dev/dsp被占用了,除非重启,否则再也放不出声音。
realplayer的提示如下
ALSA lib pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
mplayer的提示如下
MPlayer 1.0-1.rc2.18mdv2009.0-4.3.2 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) Processor 3000+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing 08022310314794.mp3.
Audio file file format detected.
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [pulse] Init failed: Connection refused
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO ESD] esd_open_sound failed: Connection timed out
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_hw.c:1321:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
[AO ESD] esd_open_sound failed: Connection timed out
AO: [pulse] Init failed: Connection refused
[JACK] cannot open server
想把声卡驱动卸掉重装,但会报告驱动在使用中,为了找到原因,还是不要强行卸掉,搜索了一下外国人的论坛 www.linuxforums.org/forum ,上面有个贴子说是firefox 占用的,但我的firefox 上面没有开视频网页,而且关掉浏览器以后还是不行,后来用了lsof来查,先查的是dsp,无结果,后来又查了pcm,发现居然是scim占用了,
# lsof |grep pcm
scim-laun 4500 saga 13u CHR 116,16 0t0 2777 /dev/snd/pcmC0D0p
scim-help 4504 saga 13u CHR 116,16 0t0 2777 /dev/snd/pcmC0D0p
scim-pane 4505 saga 13u CHR 116,16 0t0 2777 /dev/snd/pcmC0D0p
scim-brid 4507 saga 13u CHR 116,16 0t0 2777 /dev/snd/pcmC0D0p
杀掉scim进程,声音恢复。
![]()
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43271/showart_1412914.html |
|