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

Masakazu Mokuno mokuno at sm.sony.co.jp
Mon Sep 1 16:57:58 EST 2008


On Sat, 30 Aug 2008 09:28:09 +1000
Kevin Gilbert <kevin952 at tpg.com.au> wrote:

> > # setfacl -m u:pulse:rw /dev/snd/*
> 
> === begin ===
> # setfacl -m u:pulse:rw /dev/snd/*
> setfacl: /dev/snd/controlC0: Operation not supported
> setfacl: /dev/snd/pcmC0D0p: Operation not supported
> setfacl: /dev/snd/seq: Operation not supported
> setfacl: /dev/snd/timer: Operation not supported
> === end ===

You may need to enable the ACL support on your kernel.

> Prior to previous runs I had done a "chmod 0666 /dev/snd/*" and then run 
> pulseaudio - which failed.

It worked for me on my nfs root PS3 system. paplay complained some, but
played a WAV file fine.

[root at localhost ~]# chmod a+rw /dev/snd/*
[root at localhost ~]# ls -l /dev/snd/*
crw-rw-rw- 1 root root 116,  0 2008-09-01 13:47 /dev/snd/controlC0
crw-rw-rw- 1 root root 116, 16 2008-09-01 13:52 /dev/snd/pcmC0D0p
crw-rw-rw- 1 root root 116, 33 2008-09-01 13:47 /dev/snd/timer
[root at localhost ~]# pulseaudio --system -D
[root at localhost ~]# sudo -u pulse paplay /tmp/track01.cdda.wav 
audit_log_user_command(): Connection refused
W: core-util.c: Failed to open configuration file '/root/.pulse/client.conf': Permission denied
E: authkey.c: Failed to open cookie file '/root/.pulse-cookie': Permission denied
E: authkey.c: Failed to load authorization key '/root/.pulse-cookie': Permission denied
W: context.c: No cookie loaded. Attempting to connect without.
[root at localhost ~]# 

I also did double check by installing F9 from scrach, editing /etc/pulse/default.pa,
doing those commands; 
# setfacl -m u:pulse:rw /dev/snd/*
# pulseaudio --system -D
# sudo -u pulse paplay /var/tmp/track01.cdda.wav

Then paplay played fine just like the above.

> > Please ask PA folks how to run/configure PA daemon system-wide properly.
> 
> I started with them and they have responded with some comments re interlaced 
> audio - exact comments in the first post in this thread.
> 
> I'll pass this back to them for comment and then, depending on their response, 
> to the ALSA folk.

I'm not sure what you really try to address here.

I'd like to conclude:

  - With the out-of-box F9 installation, the PS3 sound does not work.
  - The issue is caused by the fact that PA supports (probably) only
    interleaved and snd_ps3 supports only non-interleved.
  - Adding the following line to /etc/pulse/default.pa works around the
    issue:
    load-module module-alsa-sink device=plughw:0,0

Ask PA people for issues caused by using '--system'.

-- 
Masakazu Mokuno




More information about the cbe-oss-dev mailing list