pipewire/spa
Wim Taymans d59e1094cd alsa: fix capture timings and drift
Don't reschedule a timeout when we have less samples available than the
target but only reschedule when we have less that the required amount we
need to read. This ensures that we hover around the target level and the
timeouts/rate matching adapts correctly. Previously we would only rate
match if the have at least the target amount of samples, which would
then always result in a possitive rate adjustment and cause drift.

For capture, make sure that there is at least 32 samples of headroom
when we are not using IRQ mode to handle jitter in the timer wakeup.

For capture of batch devices this results in (for a 1024 quantum) a
target buffer fill level of 1024 + 512, and we will read if there are at
least 1024 samples available.

For non-batch devices we aim for a target buffer fill level of 1024 + 32
and read if there are at least 1024 samples available.
2023-04-10 15:02:29 +02:00
..
examples adapter-control: avoid the divide by zero while generating sequence. 2023-04-05 16:33:09 +05:30
include support: add support for checking loop context 2023-04-04 16:19:41 +02:00
plugins alsa: fix capture timings and drift 2023-04-10 15:02:29 +02:00
tests treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
tools treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
meson.build spa: fix wrong meson check for BAP 2023-03-26 15:12:55 +03:00