Hi Lennart, Thanks!!! I've applied the patch on 0.9.13 and pulseaudio successfully opens the device during initialisation stage!!! :) 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? Cheers, Kaworu $ /usr/local/bin/pulseaudio -vvvvvvvvvvvvvvvvvvvv I: caps.c: Dropping root priviliges. D: main.c: Started as real root: no, suid root: yes I: core-util.c: Successfully gained nice level -11. D: main.c: Can realtime: yes, can high-priority: yes I: main.c: This is PulseAudio 0.9.13 D: main.c: Compilation host: x86_64-unknown-linux-gnu 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 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 I: main.c: Page size is 4096 bytes D: main.c: Compiled with Valgrind support: no D: main.c: Running in valgrind mode: no D: main.c: Optimized build: no I: main.c: Machine ID is 8909fdf9cc4454159898a7e9493accd4. I: main.c: Using runtime directory /home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:runtime. I: main.c: Using state directory /home/kaworu/.pulse. I: main.c: Running in system mode: no I: main.c: Fresh high-resolution timers available! Bon appetit! D: memblock.c: Using shared memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB D: alsa-util.c: Trying plughw:0 with SND_PCM_NO_AUTO_FORMAT ... D: alsa-util.c: Trying plughw:0 without SND_PCM_NO_AUTO_FORMAT ... I: module-alsa-sink.c: Successfully opened device plughw:0. I: module-alsa-sink.c: Successfully enabled mmap() mode. I: (alsa-lib)control.c: Invalid CTL plughw:0 I: alsa-util.c: Unable to attach to mixer plughw: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.plughw_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right I: source.c: Created source 0 "alsa_output.plughw_0.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right I: module-alsa-sink.c: Using 4 fragments of size 4408 bytes, buffer time is 99.95ms D: module-alsa-sink.c: hwbuf_unused_frames=0 D: module-alsa-sink.c: setting avail_min=1 I: module-alsa-sink.c: Volume ranges from 0 to 200. I: module-alsa-sink.c: Volume ranges from -100.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. D: alsa-util.c: snd_pcm_dump(): D: alsa-util.c: Plug PCM: Linear conversion PCM (S24_3LE) 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_LE 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 : 4408 D: alsa-util.c: period_size : 1102 D: alsa-util.c: period_time : 24988 D: alsa-util.c: tstamp_mode : NONE D: alsa-util.c: period_step : 1 D: alsa-util.c: avail_min : 1102 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 : 4962966789362286592 D: alsa-util.c: Slave: Hardware PCM card 0 'E-MU 0404 | USB' device 0 subdevice 0 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 : S24_3LE 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 : 24 D: alsa-util.c: buffer_size : 4408 D: alsa-util.c: period_size : 1102 D: alsa-util.c: period_time : 24988 D: alsa-util.c: tstamp_mode : NONE D: alsa-util.c: period_step : 1 D: alsa-util.c: avail_min : 1102 D: alsa-util.c: period_event : 0 D: alsa-util.c: start_threshold : -1 D: alsa-util.c: stop_threshold : 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 I: module-alsa-sink.c: Starting playback. I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device=plughw:0 tsched=0"). D: cli-command.c: Checking for existance of '/usr/local/lib/pulse-0.9/modules/module-hal-detect.so': success D: cli-command.c: Checking for existance of '/usr/local/lib/pulse-0.9/modules/module-esound-protocol-unix.so': success I: module.c: Loaded "module-esound-protocol-unix" (index: #1; argument: ""). I: module.c: Loaded "module-native-protocol-unix" (index: #2; argument: ""). I: module-stream-restore.c: Sucessfully opened database file '/home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:stream-volumes.x86_64-unknown-linux-gnu.gdbm'. I: module.c: Loaded "module-stream-restore" (index: #3; argument: ""). I: module-device-restore.c: Sucessfully opened database file '/home/kaworu/.pulse/8909fdf9cc4454159898a7e9493accd4:device-volumes.x86_64-unknown-linux-gnu.gdbm'. I: module-device-restore.c: Storing volume/mute for device sink:alsa_output.plughw_0. I: module-device-restore.c: Storing volume/mute for device source:alsa_output.plughw_0.monitor. I: module.c: Loaded "module-device-restore" (index: #4; argument: ""). 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. 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. I: module.c: Loaded "module-default-device-restore" (index: #5; argument: ""). I: module.c: Loaded "module-rescue-streams" (index: #6; argument: ""). I: module.c: Loaded "module-always-sink" (index: #7; argument: ""). D: module-suspend-on-idle.c: Sink alsa_output.plughw_0 becomes idle. D: module-suspend-on-idle.c: Source alsa_output.plughw_0.monitor becomes idle. I: module.c: Loaded "module-suspend-on-idle" (index: #8; argument: ""). I: client.c: Created 0 "ConsoleKit Session /org/freedesktop/ConsoleKit/Session2" D: module-console-kit.c: Added new session /org/freedesktop/ConsoleKit/Session2 I: module.c: Loaded "module-console-kit" (index: #9; argument: ""). I: module.c: Loaded "module-position-event-sounds" (index: #10; argument: ""). D: cli-command.c: Checking for existance of '/usr/local/lib/pulse-0.9/modules/module-gconf.so': success I: module.c: Loaded "module-gconf" (index: #11; argument: ""). I: main.c: Daemon startup complete. D: module-console-kit.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired I: module-suspend-on-idle.c: Sink alsa_output.plughw_0 idle for too long, suspending ... I: module-alsa-sink.c: Device suspended... I: module-suspend-on-idle.c: Source alsa_output.plughw_0.monitor idle for too long, suspending ... I: module-device-restore.c: Synced. I: client.c: Created 1 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes D: core-subscribe.c: Dropped redundant event due to change event. I: client.c: Created 2 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: client.c: Freed 2 "gnome-sound-properties" I: protocol-native.c: Connection died. I: client.c: Created 3 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: client.c: Freed 3 "gnome-sound-properties" I: protocol-native.c: Connection died. I: client.c: Created 4 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: client.c: Freed 4 "gnome-sound-properties" I: protocol-native.c: Connection died. I: client.c: Created 5 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: client.c: Freed 5 "gnome-sound-properties" I: protocol-native.c: Connection died. I: client.c: Created 6 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: client.c: Freed 6 "gnome-sound-properties" I: protocol-native.c: Connection died. I: client.c: Created 7 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: client.c: Freed 7 "gnome-sound-properties" I: protocol-native.c: Connection died. I: client.c: Created 8 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=500 gid=500 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes I: module-stream-restore.c: Restoring volume for sink input sink-input-by-application-name:gnome-sound-properties. D: module-stream-restore.c: Not restoring mute state for sink input sink-input-by-application-name:gnome-sound-properties, because already set. I: module-alsa-sink.c: Trying resume... *E: module-alsa-sink.c: Failed to set hardware parameters: Operation not permitted* D: module-suspend-on-idle.c: Sink alsa_output.plughw_0 becomes busy. I: resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates. D: resampler.c: Channel matrix: D: resampler.c: I00 D: resampler.c: +------ D: resampler.c: O00 | 1.000 D: resampler.c: O01 | 1.000 I: resampler.c: Using resampler 'copy' I: resampler.c: Using float32le as working format. D: memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0 D: memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0 I: sink-input.c: Created input 0 "Playback Stream" on alsa_output.plughw_0 with sample spec float32le 1ch 44100Hz and channel map mono I: protocol-native.c: Requested tlength=200.00 ms, minreq=10.00 ms D: protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq. D: memblockq.c: memblockq requested: maxlength=70560, tlength=35280, base=4, prebuf=33516, minreq=1764 maxrewind=0 D: memblockq.c: memblockq sanitized: maxlength=70560, tlength=35280, base=4, prebuf=33516, minreq=1764 maxrewind=0 I: protocol-native.c: Final latency 380.00 ms = 180.00 ms + 2*10.00 ms + 180.00 ms I: module-stream-restore.c: Storing volume/mute/device for stream sink-input-by-application-name:gnome-sound-properties. D: protocol-native.c: Requesting rewind due to end of underrun. D: protocol-native.c: Requesting rewind due to end of underrun. 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. Aborted On Tue, Dec 23, 2008 at 10:18 PM, Lennart Poettering <lennart at poettering.net > wrote: > On Tue, 23.12.08 02:59, kaworu fw (kaworufw at gmail.com) wrote: > > > Hi Lennart, > > heya! > > > I've further compiled pulseaudio 0.9.10 and that version can open the > same > > device (plughw:2) with the ALSA version in Fedora 10. Do you think if it > is > > related to the new timing mechanism after 0.9.10? > > No, I don't think so. > > I had another look on this. I think I now figured out what the problem > might be and cooked up this patch: > > > http://git.0pointer.de/?p=pulseaudio.git;a=commitdiff;h=22c3373713dabb0060ad1ee469ffa007ffe25846 > > Could you please check if that patch (which should apply just fine on > 0.9.13) makes things work for you? > > Thanks, > > Lennart > > -- > Lennart Poettering Red Hat, Inc. > lennart [at] poettering [dot] net ICQ# 11060553 > http://0pointer.net/lennart/ GnuPG 0x1A015CC4 > _______________________________________________ > pulseaudio-discuss mailing list > pulseaudio-discuss at mail.0pointer.de > https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20081224/83984167/attachment.htm>