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

Kevin Gilbert kevin952 at tpg.com.au
Thu Sep 4 14:10:24 PDT 2008


-- 
On Tue, 2 Sep 2008, Lennart Poettering opined:
> On Tue, 02.09.08 07:16, Kevin Gilbert (kevin952 at tpg.com.au) wrote:
> > On Mon, 1 Sep 2008, João Paulo Rechi Vita opined:
> > > Have you tried ./bootstrap.sh ?? I usually compile and install
> > > pulseaudio from git with this command:
> > >
> > > ./bootstrap.sh --prefix=/usr && make -j3 && sudo make install
> >
> > Thx. I'd tried that and for whatever reason it didn't work. Probably a
> > bad case of PEBCAK. All OK now.
>
> Let me say this too: using /usr as prefix here is a really really bad
> idea. Use /usr/local or $HOME/foobar or whatever, but /usr is land
> that is controlled by rpm or dpkg. You shouldn't touch it. Ever.

OK, wasn't PEBCAK!

The ./bootstrap.sh worked perfectly on my Fedora x86 laptop but failed on the 
Fedora PS3. Appears to be a packaging problem with Perl. The ./configure 
script failed to find XML::Parser even after a _very_ specific "yum erase" and 
"yum install" of _all_ Perl XML modules. It seems the @INC variable isn't 
being initialised correctly. So I modified the ./configure file to not check 
for that Perl module and then the Makefile to skip the "man" directory. The 
"make" then succeeded.

Nothing is *ever* easy! <bashes head against brick wall>

Also did a "yum erase pulseaudio* pulseaudio-*" just to make sure there was no 
polluting of the Git-based software with the RPM-based facility. (Don't care 
about the software on the PS3 at this stage as it is only going to host the 
jukebox application and it therefore useless without PulseAudio. If required, 
I'm quite prepared to rebuild the whole OS environment when PA is fixed.)

The result:

=== begin ===
/usr/local/bin/pulseaudio -vvvv --system -p /usr/local/lib/pulse-0.9/modules/ 
-L module-alsa-sink -L module-hal-detect -L module-esound-protocol-unix -L 
module-native-protocol-unix -L module-volume-restore -L module-default-device-
restore -L module-rescue-streams --disallow-exit --disallow-module-loading
D: main.c: Started as real root: yes, suid root: no
I: core-util.c: Successfully gained nice level -11.
D: main.c: Can realtime: yes, can high-priority: yes
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
I: main.c: Found user 'pulse' (UID 501) and group 'pulse' (GID 500).
W: main.c: Home directory of user 'pulse' is not '/usr/local/var/run/pulse', 
ignoring.
I: main.c: Successfully dropped root privileges.
I: main.c: This is PulseAudio 0.9.12
D: main.c: Compilation CFLAGS: -g -O2 -Wall -W -Wextra -pedantic -pipe -Wno-
long-long -Wvla -Wno-overlength-strings -Wconversion -Wundef -Wformat -
Wlogical-op -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-
nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal 
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-
decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wcast-align 
-Wwrite-strings -Winline -Wno-unused-parameter -ffast-math
D: main.c: Compiled with Valgrind support: no
D: main.c: Optimized build: yes
I: main.c: Page size is 4096 bytes
I: main.c: Machine ID is leichhardt.
I: main.c: Using runtime directory /usr/local/var/run/pulse.
I: main.c: Using state directory /usr/local/var/lib/pulse.
I: main.c: Running in system mode: yes
I: main.c: Fresh high-resolution timers available! Bon appetit!
D: cli-command.c: Checking for existance of 
'/usr/local/lib/pulse-0.9/modules/module-hal-detect.so': success
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 tsched=1'
D: alsa-util.c: Trying front:0...
D: alsa-util.c: Maximum hw buffer size is 185 ms
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
I: module-alsa-sink.c: Successfully enabled timer-based scheduling mode.
I: (alsa-lib)control.c: Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Cannot find mixer control "Master".
I: alsa-util.c: Using mixer control "PCM".
I: sink.c: Created sink 0 "alsa_output.ps3_system_bus_ioc0_02_alsa_playback_0" 
with sample spec s16be 2ch 44100Hz and channel map front-left,front-right
I: source.c: Created source 0 
"alsa_output.ps3_system_bus_ioc0_02_alsa_playback_0.monitor" with sample spec 
s16be 2ch 44100Hz and channel map front-left,front-right
I: module-alsa-sink.c: Using 16 fragments of size 1024 bytes, buffer time is 
92.88ms
I: module-alsa-sink.c: Time scheduling watermark is 20.00ms
D: module-alsa-sink.c: hwbuf_unused_frames=0
D: module-alsa-sink.c: setting avail_min=12853
I: module-alsa-sink.c: Volume ranges from 0 to 255.
I: module-alsa-sink.c: Volume ranges from -51.00 dB to 0.00 dB.
I: alsa-util.c: All 2 channels can be mapped to mixer channels.
I: module-alsa-sink.c: Using hardware volume control. Hardware dB scale 
supported.
I: module-alsa-sink.c: Using software mute control.
D: alsa-util.c: snd_pcm_dump():
D: alsa-util.c: Soft volume PCM
D: alsa-util.c: Control: PCM Playback Volume
D: alsa-util.c: min_dB: -51
D: alsa-util.c: max_dB: 0
D: alsa-util.c: resolution: 256
D: alsa-util.c: Its setup is:
D: alsa-util.c:   stream       : PLAYBACK
D: alsa-util.c:   access       : MMAP_INTERLEAVED
D: alsa-util.c:   format       : S16_BE
D: alsa-util.c:   subformat    : STD
D: alsa-util.c:   channels     : 2
D: alsa-util.c:   rate         : 44100
D: alsa-util.c:   exact rate   : 44100 (44100/1)
D: alsa-util.c:   msbits       : 16
D: alsa-util.c:   buffer_size  : 4096
D: alsa-util.c:   period_size  : 256
D: alsa-util.c:   period_time  : 5804
D: alsa-util.c:   tstamp_mode  : NONE
D: alsa-util.c:   period_step  : 1
D: alsa-util.c:   avail_min    : 12853
D: alsa-util.c:   period_event : 0
D: alsa-util.c:   start_threshold  : -1
D: alsa-util.c:   stop_threshold   : -1
D: alsa-util.c:   silence_threshold: 0
D: alsa-util.c:   silence_size : 0
D: alsa-util.c:   boundary     : 1073741824
D: alsa-util.c: Slave: Hardware PCM card 0 'PS3' device 0 subdevice 0
D: alsa-util.c: Its setup is:
D: alsa-util.c:   stream       : PLAYBACK
D: alsa-util.c:   access       : MMAP_NONINTERLEAVED
D: alsa-util.c:   format       : S16_BE
D: alsa-util.c:   subformat    : STD
D: alsa-util.c:   channels     : 2
D: alsa-util.c:   rate         : 44100
D: alsa-util.c:   exact rate   : 44100 (44100/1)
D: alsa-util.c:   msbits       : 16
D: alsa-util.c:   buffer_size  : 4096
D: alsa-util.c:   period_size  : 256
D: alsa-util.c:   period_time  : 5804
D: alsa-util.c:   tstamp_mode  : NONE
D: alsa-util.c:   period_step  : 1
D: alsa-util.c:   avail_min    : 12853
D: alsa-util.c:   period_event : 0
D: alsa-util.c:   start_threshold  : -1
D: alsa-util.c:
D: module-alsa-sink.c: Read hardware volume: 0: 100% 1: 100%
D: module-alsa-sink.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29
E: module-alsa-sink.c: Assertion '(areas[0].step >> 3) == u->frame_size' 
failed at modules/module-alsa-sink.c:320, function mmap_write(). Aborting.
=== end ===

Certainly appears to be getting better but I'll leave the forensics up to the 
experts.

Cheers,
Kevin




More information about the pulseaudio-discuss mailing list