[pulseaudio-discuss] Problems with pulseaudio / asla on PS3
Kevin Gilbert
kevin952 at tpg.com.au
Wed Aug 27 14:29:06 PDT 2008
> > > Maybe you have a permission problem?
> >
> > Permissions with what? Can't be /dev/dsp as I have tried running
> > pulseaudio after a "chmod 0666 /dev/dsp".
>
> /dev/dsp is the OSS device name. The ALSA devices are in /dev/snd/
Excellent call. Did a "chmod 0666 /dev/snd/*" which resulted in:
=== begn ===
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: pid.c: Stale PID file, overwriting.
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!
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...
I: module-alsa-sink.c: Successfully opened device front:0.
I: module-alsa-sink.c: Successfully enabled mmap() mode.
ALSA lib control.c:909:(snd_ctl_open_noupdate) 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"
I: source.c: Created source 0
"alsa_output.ps3_system_bus_ioc0_02_alsa_playback_0.monitor" with sample spec
"s16be 2ch 44100Hz"
I: module-alsa-sink.c: Using 18 fragments of size 1024 bytes.
I: alsa-util.c: All 2 channels can be mapped to mixer channels. Using hardware
volume control.
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:177, function mmap_write(). Aborting.
=== end ===
> > > Please check with strace what actually happens.
> >
> > pulseaudio log same as before but just in case it isn't:
>
> Uh? With strace you should be able to find out whether /dev/sdn/pcm*
> was actually opened. Call it like this:
>
> strace -f -o log pulseaudio -vvvv --system
Last few lnes of the strace are:
=== begn ===
1777 write(2, "I: alsa-util.c: All 2 channels c"..., 95) = 95
1777 mmap(NULL, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|
MAP_ANONYMOUS, -1, 0) = 0xf73dc000
1777 mprotect(0xf73dc000, 4096, PROT_NONE) = 0
1777 clone(child_stack=0xf7bdafe0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|
CLONE_CHILD_CLEARTID, parent_tidptr=0xf7bdb4a8, tls=0xf7be28e0,
child_tidptr=0xf7bdb4a8) = 1778
1778 get_robust_list(0xf7bdb4b0, 0xc, 0xf7bdb4a8 <unfinished ...>
1777 futex(0x1003e840, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
1778 <... get_robust_list resumed> ) = 0
1778 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
1778 write(2, "D: module-alsa-sink.c: Thread st"..., 42) = 42
1778 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
1778 write(2, "D: rtpoll.c: Acquired POSIX real"..., 56) = 56
1778 rt_sigprocmask(SIG_BLOCK, [RT_31], ~[HUP INT QUIT ILL TRAP ABRT BUS FPE
KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG
XCPU XFSZ VTALRM PROF WINCH IO PWR UNUSED RTMIN RT_1], 8) = 0
1778 rt_sigaction(SIGRT_31, {0xf7bc7a0, [], 0}, NULL, 8) = 0
1778 futex(0x1003e840, FUTEX_WAKE_PRIVATE, 1) = 1
1777 <... futex resumed> ) = 0
1778 ioctl(16, 0xc0844123 <unfinished ...>
1777 futex(0x1003e840, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
1778 <... ioctl resumed> , 0x1003d038) = 0
1778 ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
1778 write(2, "E: module-alsa-sink.c: \33[1;31mAs"..., 159) = 159
1778 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
1778 tgkill(1777, 1778, SIGABRT) = 0
1778 --- SIGABRT (Aborted) @ 0 (0) ---
1777 +++ killed by SIGABRT +++
=== end ===
> Uhh? Access type not available? This is strange! Does aplay -D plughw:0
work=
=== begin ===
# aplay -D plughw:0 /usr/share/sounds/alsa/Front_Left.wav
Playing WAVE 'music/wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
<sound from speakers - but no pulseaudo running>
=== end ===
> It measn that with your ALSA setup is wrong
OK, so should I pursue this matter on an ALSA list and stop bothering you good
folks?
Cheers,
Kevin
More information about the pulseaudio-discuss
mailing list