[pulseaudio-discuss] avoid increase watermark for low latency capture

xing wang wangxingchao2011 at gmail.com
Thu Jul 21 19:23:45 PDT 2011

Hi all,

When meet Overrun or Underrun, PA will increase watermark. Due to some
hardware limitation, the hw_ptr will not be updated in PA's request latency.
So there maybe some cases "faked overrun/underrun". Take capture for
example, when Pulseaudio was waken up to read new capture data from driver,
and find the "available" area is much more than the record space. Although
it's fast enough to read out all data in short time, PA regard that as
"overrun" and increase watermark/latency step by step, that's really

So attached patch used to avoid such case and only increase
watermark/latency in real "overrun" case.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110721/1f035fee/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-faked-overrun-case.patch
Type: text/x-patch
Size: 1352 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20110721/1f035fee/attachment.bin>

More information about the pulseaudio-discuss mailing list