[pulseaudio-discuss] Can't get pulseaudio to use alsa/dmix?

Marc MERLIN marc_pulse at merlins.org
Fri Oct 12 09:41:40 PDT 2007


Howdy,

I have pulseaudio 0.9.5-5ubuntu4 with the esd socket symlink fix.

When pulseaudio starts, it seems to take over alsa exclusively.

With pulseaudio not running, mplayer gives me:
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample
With pulseaudio running:
alsa-lib: pcm_hw.c:1242:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed:
Device or resource busy
alsa-lib: pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
alsa-init: playback open error: Device or resource busy
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource
busy
alsa-lib: pcm_hw.c:1242:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed:
Device or resource busy
alsa-lib: pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
alsa-init: playback open error: Device or resource busy
mcop warning: user defined signal handler found for SIG_PIPE, overriding
unix_connect: can't connect to server
(unix:/tmp/ksocket-merlin/gandalf.merlins.org-40a6-47099576)
[AO ARTS] can't connect to aRts soundserver
[AO ESD] latency: [server: 0.24s, net: 0.00s] (adjust 0.24s)
AO: [esd] 44100Hz 2ch s16le (2 bytes per sample)

So, in this case, I can still play music using esd, but I ought to be
able to use alsa still, shouldn't I?

Is my pulseaudio ocnfig wrong?

gandalf:~$ grep -Ev '(^#|^$)' /etc/pulse/default.pa 
.ifexists /usr/lib/pulse-0.9/modules/module-hal-detect.so
load-module module-hal-detect
.else
load-module module-detect
.endif
add-autoload-sink output module-oss device="/dev/dsp" sink_name=output
source_name=input
add-autoload-source input module-oss device="/dev/dsp" sink_name=output
source_name=input
add-autoload-sink output module-alsa-sink sink_name=output device=dmix
add-autoload-source input module-alsa-source source_name=input
.ifexists /usr/lib/pulse-0.9/modules/module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
load-module module-volume-restore
load-module module-rescue-streams
.nofail
load-sample x11-bell /usr/share/sounds/gtk-events/activate.wav
load-module module-x11-bell sample=x11-bell
load-module module-x11-publish
load-module module-gconf


I'm not sure if adding "sink_name=output device=dmix" on output
module-alsa-sink is necesary, or not, but in either case, pulseaudio seems
to take exclusively over my alsa device.
Just for info, my current alsa config seems to have dmix on by default.
for i in 1 2 3; do alsaplayer file.mp3 & done
works fine, I get 3 audio streams.

Any ideas?

Thanks
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  



More information about the pulseaudio-discuss mailing list