Comment 9 for bug 366708

Revision history for this message
Markus Lindenberg (markusl) wrote :

You guys,

what's the state of this one? What's STILL happening SINCE JAUNTY is that if i don't kill pulse right before starting playback, it will not work and just throw tons of "D: protocol-native.c: Requesting rewind due to end of underrun." errors. Same results when stopping and resuming playback.

I noticed that this only happens after pulse suspends the output (whatever that means...). If i (re-)start playback before pulse suspends my playback (usb) outputs, it will happily play back with just a few (1-4) lines of "...underrun." and no audible glitches whatsoever. Notice that this only affects my USB sound card (E-MU 0202USB).

So next i'll look into this suspending thing and what it means...

Output of "pulseaudio -vv" with hundreds of "Requesting rewind..." at the end removed:

I: module-suspend-on-idle.c: Source alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0.monitor idle for too long, suspending ...
I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_293e_sound_card_0_alsa_playback_0 idle for too long, suspending ...
I: module-alsa-sink.c: Device suspended...
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=1000 gid=1000 success=1
D: protocol-native.c: SHM possible: yes
D: protocol-native.c: Negotiated SHM: yes
I: module-stream-restore.c: Restoring device for stream sink-input-by-application-name:Audacious.
D: module-stream-restore.c: Not restoring volume for sink input sink-input-by-application-name:Audacious, because already set.
D: module-stream-restore.c: Not restoring mute state for sink input sink-input-by-application-name:Audacious, 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.usb_device_41e_3f02_E_MU_4A_3F02_07D80A0B_079AB_STATION_01_if0_sound_card_0_alsa_playback_0 becomes busy.
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 "Friska Viljor [ Tour De Hearts ] - 1. On And On" on alsa_output.usb_device_41e_3f02_E_MU_4A_3F02_07D80A0B_079AB_STATION_01_if0_sound_card_0_alsa_playback_0 with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: protocol-native.c: Requested tlength=250,00 ms, minreq=20,00 ms
D: protocol-native.c: Traditional mode enabled, modifying sink usec only for compat with minreq.
D: memblockq.c: memblockq requested: maxlength=4194304, tlength=44100, base=4, prebuf=40576, minreq=3528 maxrewind=0
D: memblockq.c: memblockq sanitized: maxlength=4194304, tlength=44100, base=4, prebuf=40576, minreq=3528 maxrewind=0
I: protocol-native.c: Final latency 460,00 ms = 210,00 ms + 2*20,00 ms + 210,00 ms
D: protocol-native.c: Requesting rewind due to end of underrun.