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

Lennart Poettering lennart at poettering.net
Tue Oct 16 10:11:59 PDT 2007

On Sat, 13.10.07 14:49, Marc MERLIN (marc_pulse at merlins.org) wrote:

> Thanks, I have that working, and long term, it looks like the right way to
> go if I can get all my stuff working through it.
> In the meantime, while I sort everything out, I would like my sound to
> continue working for all my apps.

The PA plugin for ALSA should work for almost any app. Execpt those
who violate the API brutally or make invalid assumptions.

> /etc/pulse/default.pa:
> > add-autoload-sink output module-alsa-sink device=dmixer sink_name=output
> > add-autoload-sink output2 module-oss device=/dev/dsp record=0
> > sink_name=output2

No need for the autoload stuff here. As mentioned, just add
"load-module module-alsa-sink device=dmix" instead and you should be fine.

> > add-autoload-source input module-alsa-source device=hw:0 source_name=input
> > load-module module-esound-protocol-unix
> > load-module module-simple-protocol-unix

No need to load this.

> > load-module module-native-protocol-unix
> > load-module module-cli-protocol-unix

Np need to load this.

> > set-default-sink output
> > set-default-source input

No need to specify this, since you only configured a single device.

> > .nofail
> > load-sample-lazy /usr/share/sounds/gaim/al
> gandalf:~$ pulseaudio -v
> caps.c: dropping root rights.
> module.c: Loaded "module-esound-protocol-unix" (index: #0; argument: "").
> module.c: Loaded "module-simple-protocol-unix" (index: #1; argument: "").
> protocol-native.c: loading cookie from disk.
> module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").
> module.c: Loaded "module-cli-protocol-unix" (index: #3; argument: "").
> module.c: Loaded "module-x11-bell" (index: #4; argument: "sample=x11-bell").
> alsa-util.c: Using mixer control "PCM".
> sink.c: created 0 "output" with sample spec "s16le 2ch 44100Hz"
> source.c: created 0 "output.monitor" with sample spec "s16le 2ch 44100Hz"
> module-alsa-sink.c: using 2 fragments of size 16384 bytes.
> module.c: Loaded "module-alsa-sink" (index: #5; argument: "device=dmixer
> sink_name=output").
> main.c: Daemon startup complete.
> module-alsa-sink.c: *** ALSA-XRUN (playback) ***
> module-alsa-sink.c: *** ALSA-XRUN (playback) ***
> module-alsa-sink.c: *** ALSA-XRUN (playback) ***
> (...)
> So, things work for alsa, but pulse seems unhappy. Going through pulse
> with esd causes sound that skips a lot (on a high speed dual core duo 2Ghz)
> Is there a subtle thing I'm missing to make pulse happy?

Ist this 0.9.6 or 0.9.7-svn?

Consider making yourself a member of the "pulse-rt" group and make pa
suid root. Then, PA will be able to acquire realtime scheduling.


Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the pulseaudio-discuss mailing list