Hi Lennart,<br><br>Thanks!!! I've applied the patch on 0.9.13 and pulseaudio successfully opens the device during initialisation stage!!! :)<br><br>However the "Operation not permitted" error still comes when I try to play something via pulseaudio (just a test in gnome-sound-properties) and the pulseaudio process aborts eventually. Output is attached. See if you have any clues?<br>
<br>Cheers,<br>Kaworu<br><br>$ /usr/local/bin/pulseaudio -vvvvvvvvvvvvvvvvvvvv<br>I: caps.c: Dropping root priviliges.<br>D: main.c: Started as real root: no, suid root: yes<br>I: core-util.c: Successfully gained nice level -11.<br>
D: main.c: Can realtime: yes, can high-priority: yes<br>I: main.c: This is PulseAudio 0.9.13<br>D: main.c: Compilation host: x86_64-unknown-linux-gnu<br>D: main.c: Compilation CFLAGS: -g -O0 -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 -Wno-unused-parameter -ffast-math<br>
D: main.c: Running on host: Linux x86_64 2.6.27.7-134.fc10.x86_64 #1 SMP Mon Dec 1 22:21:35 EST 2008<br>I: main.c: Page size is 4096 bytes<br>D: main.c: Compiled with Valgrind support: no<br>D: main.c: Running in valgrind mode: no<br>
D: main.c: Optimized build: no<br>I: main.c: Machine ID is 8909fdf9cc4454159898a7e9493accd4.<br>I: main.c: Using runtime directory /home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:runtime.<br>I: main.c: Using state directory /home/kaworu/.pulse.<br>
I: main.c: Running in system mode: no<br>I: main.c: Fresh high-resolution timers available! Bon appetit!<br>D: memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB<br>D: alsa-util.c: Trying plughw:0 with SND_PCM_NO_AUTO_FORMAT ...<br>
D: alsa-util.c: Trying plughw:0 without SND_PCM_NO_AUTO_FORMAT ...<br>I: module-alsa-sink.c: Successfully opened device plughw:0.<br>I: module-alsa-sink.c: Successfully enabled mmap() mode.<br>I: (alsa-lib)control.c: Invalid CTL plughw:0<br>
I: alsa-util.c: Unable to attach to mixer plughw:0: No such file or directory<br>I: alsa-util.c: Successfully attached to mixer 'hw:0'<br>I: alsa-util.c: Cannot find mixer control "Master".<br>I: alsa-util.c: Using mixer control "PCM".<br>
I: sink.c: Created sink 0 "alsa_output.plughw_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right<br>I: source.c: Created source 0 "alsa_output.plughw_0.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right<br>
I: module-alsa-sink.c: Using 4 fragments of size 4408 bytes, buffer time is 99.95ms<br>D: module-alsa-sink.c: hwbuf_unused_frames=0<br>D: module-alsa-sink.c: setting avail_min=1<br>I: module-alsa-sink.c: Volume ranges from 0 to 200.<br>
I: module-alsa-sink.c: Volume ranges from -100.00 dB to 0.00 dB.<br>I: alsa-util.c: All 2 channels can be mapped to mixer channels.<br>I: module-alsa-sink.c: Using hardware volume control. Hardware dB scale supported.<br>
D: alsa-util.c: snd_pcm_dump():<br>D: alsa-util.c: Plug PCM: Linear conversion PCM (S24_3LE)<br>D: alsa-util.c: Its setup is:<br>D: alsa-util.c: stream : PLAYBACK<br>D: alsa-util.c: access : MMAP_INTERLEAVED<br>
D: alsa-util.c: format : S16_LE<br>D: alsa-util.c: subformat : STD<br>D: alsa-util.c: channels : 2<br>D: alsa-util.c: rate : 44100<br>D: alsa-util.c: exact rate : 44100 (44100/1)<br>D: alsa-util.c: msbits : 16<br>
D: alsa-util.c: buffer_size : 4408<br>D: alsa-util.c: period_size : 1102<br>D: alsa-util.c: period_time : 24988<br>D: alsa-util.c: tstamp_mode : NONE<br>D: alsa-util.c: period_step : 1<br>D: alsa-util.c: avail_min : 1102<br>
D: alsa-util.c: period_event : 0<br>D: alsa-util.c: start_threshold : -1<br>D: alsa-util.c: stop_threshold : -1<br>D: alsa-util.c: silence_threshold: 0<br>D: alsa-util.c: silence_size : 0<br>D: alsa-util.c: boundary : 4962966789362286592<br>
D: alsa-util.c: Slave: Hardware PCM card 0 'E-MU 0404 | USB' device 0 subdevice 0<br>D: alsa-util.c: Its setup is:<br>D: alsa-util.c: stream : PLAYBACK<br>D: alsa-util.c: access : MMAP_INTERLEAVED<br>
D: alsa-util.c: format : S24_3LE<br>D: alsa-util.c: subformat : STD<br>D: alsa-util.c: channels : 2<br>D: alsa-util.c: rate : 44100<br>D: alsa-util.c: exact rate : 44100 (44100/1)<br>D: alsa-util.c: msbits : 24<br>
D: alsa-util.c: buffer_size : 4408<br>D: alsa-util.c: period_size : 1102<br>D: alsa-util.c: period_time : 24988<br>D: alsa-util.c: tstamp_mode : NONE<br>D: alsa-util.c: period_step : 1<br>D: alsa-util.c: avail_min : 1102<br>
D: alsa-util.c: period_event : 0<br>D: alsa-util.c: start_threshold : -1<br>D: alsa-util.c: stop_threshold : <br>D: module-alsa-sink.c: Read hardware volume: 0: 100% 1: 100%<br>D: module-alsa-sink.c: Thread starting up<br>
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29<br>I: module-alsa-sink.c: Starting playback.<br>I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=plughw:0 tsched=0").<br>D: cli-command.c: Checking for existance of '/usr/local/lib/pulse-0.9/modules/module-hal-detect.so': success<br>
D: cli-command.c: Checking for existance of '/usr/local/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success<br>I: module.c: Loaded "module-esound-protocol-unix" (index: #1; argument: "").<br>
I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: "").<br>I: module-stream-restore.c: Sucessfully opened database file '/home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:stream-volumes.x86_64-unknown-linux-gnu.gdbm'.<br>
I: module.c: Loaded "module-stream-restore" (index: #3; argument: "").<br>I: module-device-restore.c: Sucessfully opened database file '/home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:device-volumes.x86_64-unknown-linux-gnu.gdbm'.<br>
I: module-device-restore.c: Storing volume/mute for device sink:alsa_output.plughw_0.<br>I: module-device-restore.c: Storing volume/mute for device source:alsa_output.plughw_0.monitor.<br>I: module.c: Loaded "module-device-restore" (index: #4; argument: "").<br>
I: module-default-device-restore.c: Saved default sink 'alsa_output.usb_device_41e_3f04_E_MU_85_3F04_07D8040E_1392B_STATION_02_if0_sound_card_0_alsa_playback_0' not existant, not restoring default sink setting.<br>
I: module-default-device-restore.c: Saved default source 'alsa_input.pci_109e_878_sound_card_0_alsa_capture_0' not existant, not restoring default source setting.<br>I: module.c: Loaded "module-default-device-restore" (index: #5; argument: "").<br>
I: module.c: Loaded "module-rescue-streams" (index: #6; argument: "").<br>I: module.c: Loaded "module-always-sink" (index: #7; argument: "").<br>D: module-suspend-on-idle.c: Sink alsa_output.plughw_0 becomes idle.<br>
D: module-suspend-on-idle.c: Source alsa_output.plughw_0.monitor becomes idle.<br>I: module.c: Loaded "module-suspend-on-idle" (index: #8; argument: "").<br>I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session2"<br>
D: module-console-kit.c: Added new session /org/freedesktop/ConsoleKit/Session2<br>I: module.c: Loaded "module-console-kit" (index: #9; argument: "").<br>I: module.c: Loaded "module-position-event-sounds" (index: #10; argument: "").<br>
D: cli-command.c: Checking for existance of '/usr/local/lib/pulse-0.9/modules/module-gconf.so': success<br>I: module.c: Loaded "module-gconf" (index: #11; argument: "").<br>I: main.c: Daemon startup complete.<br>
D: module-console-kit.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired<br>I: module-suspend-on-idle.c: Sink alsa_output.plughw_0 idle for too long, suspending ...<br>I: module-alsa-sink.c: Device suspended...<br>
I: module-suspend-on-idle.c: Source alsa_output.plughw_0.monitor idle for too long, suspending ...<br>I: module-device-restore.c: Synced.<br>I: client.c: Created 1 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>D: protocol-native.c: Negotiated SHM: yes<br>D: core-subscribe.c: Dropped redundant event due to change event.<br>
I: client.c: Created 2 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>
D: protocol-native.c: Negotiated SHM: yes<br>I: client.c: Freed 2 "gnome-sound-properties"<br>I: protocol-native.c: Connection died.<br>I: client.c: Created 3 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>D: protocol-native.c: Negotiated SHM: yes<br>I: client.c: Freed 3 "gnome-sound-properties"<br>I: protocol-native.c: Connection died.<br>
I: client.c: Created 4 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>
D: protocol-native.c: Negotiated SHM: yes<br>I: client.c: Freed 4 "gnome-sound-properties"<br>I: protocol-native.c: Connection died.<br>I: client.c: Created 5 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>D: protocol-native.c: Negotiated SHM: yes<br>I: client.c: Freed 5 "gnome-sound-properties"<br>I: protocol-native.c: Connection died.<br>
I: client.c: Created 6 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>
D: protocol-native.c: Negotiated SHM: yes<br>I: client.c: Freed 6 "gnome-sound-properties"<br>I: protocol-native.c: Connection died.<br>I: client.c: Created 7 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>D: protocol-native.c: Negotiated SHM: yes<br>I: client.c: Freed 7 "gnome-sound-properties"<br>I: protocol-native.c: Connection died.<br>
I: client.c: Created 8 "Native client (UNIX socket client)"<br>D: protocol-native.c: Protocol version: remote 14, local 14<br>I: protocol-native.c: Got credentials: uid=500 gid=500 success=1<br>D: protocol-native.c: SHM possible: yes<br>
D: protocol-native.c: Negotiated SHM: yes<br>I: module-stream-restore.c: Restoring volume for sink input sink-input-by-application-name:gnome-sound-properties.<br>D: module-stream-restore.c: Not restoring mute state for sink input sink-input-by-application-name:gnome-sound-properties, because already set.<br>
I: module-alsa-sink.c: Trying resume...<br><b style="color: rgb(255, 0, 0);">E: module-alsa-sink.c: Failed to set hardware parameters: Operation not permitted</b><br>D: module-suspend-on-idle.c: Sink alsa_output.plughw_0 becomes busy.<br>
I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.<br>D: resampler.c: Channel matrix:<br>D: resampler.c: I00 <br>D: resampler.c: +------<br>D: resampler.c: O00 | 1.000<br>
D: resampler.c: O01 | 1.000<br>I: resampler.c: Using resampler 'copy'<br>I: resampler.c: Using float32le as working format.<br>D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0<br>
D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0<br>I: sink-input.c: Created input 0 "Playback Stream" on alsa_output.plughw_0 with sample spec float32le 1ch 44100Hz and channel map mono<br>
I: protocol-native.c: Requested tlength=200.00 ms, minreq=10.00 ms<br>D: protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq.<br>D: memblockq.c: memblockq requested: maxlength=70560, tlength=35280, base=4, prebuf=33516, minreq=1764 maxrewind=0<br>
D: memblockq.c: memblockq sanitized: maxlength=70560, tlength=35280, base=4, prebuf=33516, minreq=1764 maxrewind=0<br>I: protocol-native.c: Final latency 380.00 ms = 180.00 ms + 2*10.00 ms + 180.00 ms<br>I: module-stream-restore.c: Storing volume/mute/device for stream sink-input-by-application-name:gnome-sound-properties.<br>
D: protocol-native.c: Requesting rewind due to end of underrun.<br>D: protocol-native.c: Requesting rewind due to end of underrun.<br>E: sink-input.c: Assertion 'i->thread_info.rewrite_nbytes == 0' failed at pulsecore/sink-input.c:1147, function pa_sink_input_request_rewind(). Aborting.<br>
Aborted<br><br><br><div class="gmail_quote">On Tue, Dec 23, 2008 at 10:18 PM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, 23.12.08 02:59, kaworu fw (<a href="mailto:kaworufw@gmail.com">kaworufw@gmail.com</a>) wrote:<br>
<br>
> Hi Lennart,<br>
<br>
</div>heya!<br>
<div class="Ih2E3d"><br>
> I've further compiled pulseaudio 0.9.10 and that version can open the same<br>
> device (plughw:2) with the ALSA version in Fedora 10. Do you think if it is<br>
> related to the new timing mechanism after 0.9.10?<br>
<br>
</div>No, I don't think so.<br>
<br>
I had another look on this. I think I now figured out what the problem<br>
might be and cooked up this patch:<br>
<br>
<a href="http://git.0pointer.de/?p=pulseaudio.git;a=commitdiff;h=22c3373713dabb0060ad1ee469ffa007ffe25846" target="_blank">http://git.0pointer.de/?p=pulseaudio.git;a=commitdiff;h=22c3373713dabb0060ad1ee469ffa007ffe25846</a><br>
<br>
Could you please check if that patch (which should apply just fine on<br>
0.9.13) makes things work for you?<br>
<br>
Thanks,<br>
<div><div></div><div class="Wj3C7c"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering Red Hat, Inc.<br>
lennart [at] poettering [dot] net ICQ# 11060553<br>
<a href="http://0pointer.net/lennart/" target="_blank">http://0pointer.net/lennart/</a> GnuPG 0x1A015CC4<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</div></div></blockquote></div><br>