[pulseaudio-discuss] Requesting rewind due to corking

Willem de Groot gwillem at gmail.com
Sun Nov 22 14:09:50 UTC 2020


USB audio works fine using aplay/paplay, but pauses or resumes every few
seconds with cvlc/chrome/firefox.

When for example a cvlc stream is paused, PA reports:

D: [alsa-sink-USB Audio] sink-input.c: Requesting rewind due to corking
D: [alsa-sink-USB Audio] alsa-sink.c: Requested to rewind 11520 bytes.
D: [alsa-sink-USB Audio] alsa-sink.c: Limited to 7808 bytes.
D: [alsa-sink-USB Audio] alsa-sink.c: before: 1301
D: [alsa-sink-USB Audio] alsa-sink.c: after: 1301
D: [alsa-sink-USB Audio] alsa-sink.c: Rewound 7806 bytes.
D: [alsa-sink-USB Audio] sink.c: Processing rewind...
D: [alsa-sink-USB Audio] sink.c: latency = 3997
D: [alsa-sink-USB Audio] sink-input.c: Have to rewind 7806 bytes on render
memblockq.
D: [alsa-sink-USB Audio] sink-input.c: Have to rewind 4784 bytes on
implementor.
D: [alsa-sink-USB Audio] source.c: Processing rewind...
D: [alsa-sink-USB Audio] sink.c:
alsa_output.usb-C_T12L5V_USB_PnP_Audio_Device_U2dc0z7ws53a79rn-00.analog-stereo:
Found underrun 11268 bytes ago (252 bytes ahead in playback buffer)
D: [pulseaudio] sink.c:
alsa_output.usb-C_T12L5V_USB_PnP_Audio_Device_U2dc0z7ws53a79rn-00.analog-stereo:
state: RUNNING -> IDLE
D: [pulseaudio] module-suspend-on-idle.c: Sink
alsa_output.usb-C_T12L5V_USB_PnP_Audio_Device_U2dc0z7ws53a79rn-00.analog-stereo
becomes idle, timeout in 5 seconds.

I have already commented out the corking module but that doesn't help.

Diff of pulseaudio -vvvv for a paplay (good) and cvlc (bad) streams of the
same test wav. Some highlights:

pacat:
I: [pulseaudio] protocol-native.c: Requested tlength=2000,00 ms,
minreq=20,00 ms
I: [pulseaudio] protocol-native.c: Final latency 3960,00 ms = 1960,00 ms +
2*20,00 ms + 1960,00 ms

cvlc:
I: [pulseaudio] protocol-native.c: Requested tlength=120,00 ms,
minreq=40,00 ms
I: [pulseaudio] protocol-native.c: Final latency 160,00 ms = 40,00 ms +
2*40,00 ms + 40,00 ms

Any ideas?

Full diff here:
https://gist.github.com/gwillem/abd4cb9150d6967e4a7bf552c00ed209
System config (Xubuntu 20.04 w/ 13.99.1): https://termbin.com/h25j

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20201122/f0425da0/attachment.htm>


More information about the pulseaudio-discuss mailing list