Hi Lennart,<br><br>Thanks!!! I&#39;ve applied the patch on 0.9.13 and pulseaudio successfully opens the device during initialisation stage!!! :)<br><br>However the &quot;Operation not permitted&quot; error still comes when I try to play something via pulseaudio (just a test in gnome-sound-properties) and the pulseaudio process aborts eventually.&nbsp; Output is attached.&nbsp; 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 &#39;hw:0&#39;<br>I: alsa-util.c: Cannot find mixer control &quot;Master&quot;.<br>I: alsa-util.c: Using mixer control &quot;PCM&quot;.<br>
I: sink.c: Created sink 0 &quot;alsa_output.plughw_0&quot; with sample spec s16le 2ch 44100Hz and channel map front-left,front-right<br>I: source.c: Created source 0 &quot;alsa_output.plughw_0.monitor&quot; 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:&nbsp;&nbsp; stream&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : PLAYBACK<br>D: alsa-util.c:&nbsp;&nbsp; access&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : MMAP_INTERLEAVED<br>
D: alsa-util.c:&nbsp;&nbsp; format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : S16_LE<br>D: alsa-util.c:&nbsp;&nbsp; subformat&nbsp;&nbsp;&nbsp; : STD<br>D: alsa-util.c:&nbsp;&nbsp; channels&nbsp;&nbsp;&nbsp;&nbsp; : 2<br>D: alsa-util.c:&nbsp;&nbsp; rate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 44100<br>D: alsa-util.c:&nbsp;&nbsp; exact rate&nbsp;&nbsp; : 44100 (44100/1)<br>D: alsa-util.c:&nbsp;&nbsp; msbits&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 16<br>
D: alsa-util.c:&nbsp;&nbsp; buffer_size&nbsp; : 4408<br>D: alsa-util.c:&nbsp;&nbsp; period_size&nbsp; : 1102<br>D: alsa-util.c:&nbsp;&nbsp; period_time&nbsp; : 24988<br>D: alsa-util.c:&nbsp;&nbsp; tstamp_mode&nbsp; : NONE<br>D: alsa-util.c:&nbsp;&nbsp; period_step&nbsp; : 1<br>D: alsa-util.c:&nbsp;&nbsp; avail_min&nbsp;&nbsp;&nbsp; : 1102<br>
D: alsa-util.c:&nbsp;&nbsp; period_event : 0<br>D: alsa-util.c:&nbsp;&nbsp; start_threshold&nbsp; : -1<br>D: alsa-util.c:&nbsp;&nbsp; stop_threshold&nbsp;&nbsp; : -1<br>D: alsa-util.c:&nbsp;&nbsp; silence_threshold: 0<br>D: alsa-util.c:&nbsp;&nbsp; silence_size : 0<br>D: alsa-util.c:&nbsp;&nbsp; boundary&nbsp;&nbsp;&nbsp;&nbsp; : 4962966789362286592<br>
D: alsa-util.c: Slave: Hardware PCM card 0 &#39;E-MU 0404 | USB&#39; device 0 subdevice 0<br>D: alsa-util.c: Its setup is:<br>D: alsa-util.c:&nbsp;&nbsp; stream&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : PLAYBACK<br>D: alsa-util.c:&nbsp;&nbsp; access&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : MMAP_INTERLEAVED<br>
D: alsa-util.c:&nbsp;&nbsp; format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : S24_3LE<br>D: alsa-util.c:&nbsp;&nbsp; subformat&nbsp;&nbsp;&nbsp; : STD<br>D: alsa-util.c:&nbsp;&nbsp; channels&nbsp;&nbsp;&nbsp;&nbsp; : 2<br>D: alsa-util.c:&nbsp;&nbsp; rate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 44100<br>D: alsa-util.c:&nbsp;&nbsp; exact rate&nbsp;&nbsp; : 44100 (44100/1)<br>D: alsa-util.c:&nbsp;&nbsp; msbits&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 24<br>
D: alsa-util.c:&nbsp;&nbsp; buffer_size&nbsp; : 4408<br>D: alsa-util.c:&nbsp;&nbsp; period_size&nbsp; : 1102<br>D: alsa-util.c:&nbsp;&nbsp; period_time&nbsp; : 24988<br>D: alsa-util.c:&nbsp;&nbsp; tstamp_mode&nbsp; : NONE<br>D: alsa-util.c:&nbsp;&nbsp; period_step&nbsp; : 1<br>D: alsa-util.c:&nbsp;&nbsp; avail_min&nbsp;&nbsp;&nbsp; : 1102<br>
D: alsa-util.c:&nbsp;&nbsp; period_event : 0<br>D: alsa-util.c:&nbsp;&nbsp; start_threshold&nbsp; : -1<br>D: alsa-util.c:&nbsp;&nbsp; stop_threshold&nbsp;&nbsp; : <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 &quot;module-alsa-sink&quot; (index: #0; argument: &quot;device=plughw:0 tsched=0&quot;).<br>D: cli-command.c: Checking for existance of &#39;/usr/local/lib/pulse-0.9/modules/module-hal-detect.so&#39;: success<br>
D: cli-command.c: Checking for existance of &#39;/usr/local/lib/pulse-0.9/modules/module-esound-protocol-unix.so&#39;: success<br>I: module.c: Loaded &quot;module-esound-protocol-unix&quot; (index: #1; argument: &quot;&quot;).<br>
I: module.c: Loaded &quot;module-native-protocol-unix&quot; (index: #2; argument: &quot;&quot;).<br>I: module-stream-restore.c: Sucessfully opened database file &#39;/home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:stream-volumes.x86_64-unknown-linux-gnu.gdbm&#39;.<br>
I: module.c: Loaded &quot;module-stream-restore&quot; (index: #3; argument: &quot;&quot;).<br>I: module-device-restore.c: Sucessfully opened database file &#39;/home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:device-volumes.x86_64-unknown-linux-gnu.gdbm&#39;.<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 &quot;module-device-restore&quot; (index: #4; argument: &quot;&quot;).<br>
I: module-default-device-restore.c: Saved default sink &#39;alsa_output.usb_device_41e_3f04_E_MU_85_3F04_07D8040E_1392B_STATION_02_if0_sound_card_0_alsa_playback_0&#39; not existant, not restoring default sink setting.<br>
I: module-default-device-restore.c: Saved default source &#39;alsa_input.pci_109e_878_sound_card_0_alsa_capture_0&#39; not existant, not restoring default source setting.<br>I: module.c: Loaded &quot;module-default-device-restore&quot; (index: #5; argument: &quot;&quot;).<br>
I: module.c: Loaded &quot;module-rescue-streams&quot; (index: #6; argument: &quot;&quot;).<br>I: module.c: Loaded &quot;module-always-sink&quot; (index: #7; argument: &quot;&quot;).<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 &quot;module-suspend-on-idle&quot; (index: #8; argument: &quot;&quot;).<br>I: client.c: Created 0 &quot;ConsoleKit Session /org/freedesktop/ConsoleKit/Session2&quot;<br>
D: module-console-kit.c: Added new session /org/freedesktop/ConsoleKit/Session2<br>I: module.c: Loaded &quot;module-console-kit&quot; (index: #9; argument: &quot;&quot;).<br>I: module.c: Loaded &quot;module-position-event-sounds&quot; (index: #10; argument: &quot;&quot;).<br>
D: cli-command.c: Checking for existance of &#39;/usr/local/lib/pulse-0.9/modules/module-gconf.so&#39;: success<br>I: module.c: Loaded &quot;module-gconf&quot; (index: #11; argument: &quot;&quot;).<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 &quot;Native client (UNIX socket client)&quot;<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 &quot;Native client (UNIX socket client)&quot;<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 &quot;gnome-sound-properties&quot;<br>I: protocol-native.c: Connection died.<br>I: client.c: Created 3 &quot;Native client (UNIX socket client)&quot;<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 &quot;gnome-sound-properties&quot;<br>I: protocol-native.c: Connection died.<br>
I: client.c: Created 4 &quot;Native client (UNIX socket client)&quot;<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 &quot;gnome-sound-properties&quot;<br>I: protocol-native.c: Connection died.<br>I: client.c: Created 5 &quot;Native client (UNIX socket client)&quot;<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 &quot;gnome-sound-properties&quot;<br>I: protocol-native.c: Connection died.<br>
I: client.c: Created 6 &quot;Native client (UNIX socket client)&quot;<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 &quot;gnome-sound-properties&quot;<br>I: protocol-native.c: Connection died.<br>I: client.c: Created 7 &quot;Native client (UNIX socket client)&quot;<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 &quot;gnome-sound-properties&quot;<br>I: protocol-native.c: Connection died.<br>
I: client.c: Created 8 &quot;Native client (UNIX socket client)&quot;<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 &#39;copy&#39;, because of fixed, identical sample rates.<br>D: resampler.c: Channel matrix:<br>D: resampler.c:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I00 <br>D: resampler.c:&nbsp;&nbsp;&nbsp;&nbsp; +------<br>D: resampler.c: O00 | 1.000<br>
D: resampler.c: O01 | 1.000<br>I: resampler.c: Using resampler &#39;copy&#39;<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 &quot;Playback Stream&quot; 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 &#39;i-&gt;thread_info.rewrite_nbytes == 0&#39; 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">&lt;<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>&gt;</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>
&gt; Hi Lennart,<br>
<br>
</div>heya!<br>
<div class="Ih2E3d"><br>
&gt; I&#39;ve further compiled pulseaudio 0.9.10 and that version can open the same<br>
&gt; device (plughw:2) with the ALSA version in Fedora 10. &nbsp;Do you think if it is<br>
&gt; related to the new timing mechanism after 0.9.10?<br>
<br>
</div>No, I don&#39;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 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Red Hat, Inc.<br>
lennart [at] poettering [dot] net &nbsp; &nbsp; &nbsp; &nbsp; ICQ# 11060553<br>
<a href="http://0pointer.net/lennart/" target="_blank">http://0pointer.net/lennart/</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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>