[Cbe-oss-dev] Problems with ALSA / PulseAudio on PS3

Masakazu Mokuno mokuno at sm.sony.co.jp
Fri Aug 29 19:06:09 EST 2008


On Fri, 29 Aug 2008 10:54:15 +0900
Masakazu Mokuno <mokuno at sm.sony.co.jp> wrote:

> 
> On Fri, 29 Aug 2008 07:09:43 +1000
> Kevin Gilbert <kevin952 at tpg.com.au> wrote:
> 
> > > Please try the following patch in the mean time:
> > >
> > > --- /etc/pulse/default.pa~      2008-03-28 08:45:37.000000000 +0900
> > > +++ /etc/pulse/default.pa       2008-08-28 13:21:06.000000000 +0900
> > > @@ -29,7 +29,7 @@
> > >  ### Load audio drivers statically (it's probably better to not load
> > >  ### these drivers manually, but instead use module-hal-detect --
> > >  ### see below -- for doing this automatically)
> > > -#load-module module-alsa-sink
> > > +load-module module-alsa-sink device=plughw:0,0
> > >  #load-module module-alsa-source device=hw:1,0
> > >  #load-module module-oss device="/dev/dsp" sink_name=output
> > > source_name=input
> > > #load-module module-oss-mmap device="/dev/dsp" sink_name=output
> > > source_name=input
> > 
> > === begin ===
> > # pulseaudio -vvvv --system
> > I: core-util.c: Successfully gained nice level -11.
> > I: main.c: Found user 'pulse' (UID 497) and group 'pulse' (GID 496).
> > I: main.c: Successfully dropped root privileges.
> > W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
> > W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
> > I: main.c: This is PulseAudio 0.9.10
> > I: main.c: Page size is 4096 bytes
> > I: main.c: Fresh high-resolution timers available! Bon appetit!
> > ALSA lib pcm_hw.c:1240:(_snd_pcm_hw_open) Invalid value for card
> > E: alsa-util.c: Error opening PCM device plughw:0,0: No such file or directory
> > E: module.c: Failed to load  module "module-alsa-sink" (argument: 
> > "device=plughw:0,0"): initialization failed.
> > E: main.c: Module load failed.
> > E: main.c: Failed to initialize daemon.
> > I: main.c: Daemon terminated.
> > === end ===
> 
> Try without appending '--system'
> 
> I have no idea why --system made the difference. 

OK, it seems that you should add some permissions to ALSA device nodes

# setfacl -m u:pulse:rw /dev/snd/*
# pulseaudio --system -D
# sudo -u pulse paplay something.wav

Please ask PA folks how to run/configure PA daemon system-wide properly.

-- 
Masakazu Mokuno




More information about the cbe-oss-dev mailing list