[pulseaudio-discuss] Problems with pulseaudio / asla on PS3

Kevin Gilbert kevin952 at tpg.com.au
Mon Aug 25 23:08:09 PDT 2008


Hi,

I'm trying to get an jukebox application going on a Sony PlayStation3 using 
Qt-Embedded, Phonon and PulseAudio. The application is working well on my KDE-
based laptop where it appears that the application is using Phonon -> ALSA -> 
PulseAudio. But there is no sound from the application when run on the PS3.

BTW, the base software on both systems is Fedora 9 but on the PS3 I'm running 
a kernel downloaded from
 git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git. The kernel 
has both ALSA and OSS compiled in.

Using the following /etc/pulse/default.pa file I can get output from aplay, 
paplay and mplayer (the latter with "-ao pulse").

=== begin ===
#!/usr/bin/pulseaudio -nF
.nofail
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
.fail
load-module module-oss device="/dev/dsp" sink_name=output source_name=input
load-module module-hal-detect
load-module module-esound-protocol-unix
load-module module-native-protocol-unix
load-module module-volume-restore
load-module module-default-device-restore
load-module module-rescue-streams
.ifexists /usr/lib/pulse-0.9/modules//module-gconf.so
load-module module-gconf
.endif
=== end ===

(Yes, I realise that I have loaded the OSS module as without it I get no sound 
at all!) The following is the output from the pulseaudio daemon and as you can 
see there are problems with the pulseaudio / alsa interface.

=== begin ===
# pulseaudio -vvv --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!
W: oss-util.c: '/dev/dsp' doesn't support full duplex
D: oss-util.c: capabilities: MMAP REALTIME TRIGGER
I: module-oss.c: Device opened for playback only, cannot do memory mapping, 
falling back to UNIX write() mode.
I: module-oss.c: Device opened in O_WRONLY mode.
I: module-oss.c: Output -- 16 fragments of size 1024.
I: sink.c: Created sink 0 "output" with sample spec "s16be 2ch 44100Hz"
I: source.c: Created source 0 "output.monitor" with sample spec "s16be 2ch 
44100Hz"
D: module-oss.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
D: module-oss.c: trigger
D: module-oss.c: trigger: 2
I: module.c: Loaded "module-oss" (index: #0; argument: "device="/dev/dsp" 
sink_name=output source_name=input").
I: module-hal-detect.c: Trying capability alsa
D: module-hal-detect.c: Not loaded device 
/org/freedesktop/Hal/devices/computer_alsa_timer
D: module-hal-detect.c: Not loaded device 
/org/freedesktop/Hal/devices/computer_alsa_sequencer
D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 
sink_name=alsa_output.ps3_system_bus_ioc0_02_alsa_playback_0'
D: alsa-util.c: Trying front:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM front:0
I: alsa-util.c: Couldn't open PCM device front:0: Invalid argument
D: alsa-util.c: Trying surround40:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround40:0
I: alsa-util.c: Couldn't open PCM device surround40:0: Invalid argument
D: alsa-util.c: Trying surround41:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround41:0
I: alsa-util.c: Couldn't open PCM device surround41:0: Invalid argument
D: alsa-util.c: Trying surround50:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround50:0
I: alsa-util.c: Couldn't open PCM device surround50:0: Invalid argument
D: alsa-util.c: Trying surround51:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround51:0
I: alsa-util.c: Couldn't open PCM device surround51:0: Invalid argument
D: alsa-util.c: Trying surround71:0...
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM surround71:0
I: alsa-util.c: Couldn't open PCM device surround71:0: Invalid argument
D: alsa-util.c: Trying hw:0 as last resort...
ALSA lib pcm_hw.c:1240:(_snd_pcm_hw_open) Invalid value for card
E: alsa-util.c: Error opening PCM device hw:0: No such file or directory
E: module.c: Failed to load  module "module-alsa-sink" (argument: "device_id=0 
sink_name=alsa_output.ps3_system_bus_ioc0_02_alsa_playback_0"): initialization 
failed.
D: module-hal-detect.c: Not loaded device 
/org/freedesktop/Hal/devices/ps3_system_bus_ioc0_02_alsa_playback_0
D: module-hal-detect.c: Not loaded device 
/org/freedesktop/Hal/devices/ps3_system_bus_ioc0_02_alsa_control__1
I: module-hal-detect.c: Loaded 0 modules.
I: module.c: Loaded "module-hal-detect" (index: #1; argument: "").
I: module.c: Loaded "module-esound-protocol-unix" (index: #2; argument: "").
I: protocol-native.c: Allowing access to group 'pulse-access'.
I: protocol-native.c: loading cookie from disk.
I: module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
I: module.c: Loaded "module-volume-restore" (index: #4; argument: "").
D: module-default-device-restore.c: Restored default sink 'output'.
D: module-default-device-restore.c: No previous default source setting, 
ignoring.
I: module.c: Loaded "module-default-device-restore" (index: #5; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #6; argument: "").
D: cli-command.c: Checking for existance of 
'/usr/lib/pulse-0.9/modules//module-gconf.so': success
I: module.c: Loaded "module-gconf" (index: #7; argument: "").
I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, 
path=/org/freedesktop/DBus, member=NameAcquired
=== end ===


Thanks in advance for any help.
Kevin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20080826/0c6e9256/attachment.htm>


More information about the pulseaudio-discuss mailing list