alsa-lib/src
Andreas Pape d21e0e01c6 pcm: plugin - fix avail_min calculation on rate plugin
commit 88e4ae27, ff1f669d introduced a dynamic recalculation of the slave's
avail_min value.
The calculated avail_min setting did not take into account, that the avail_min value
depends on the used sampling rate and must be adapted accordingly
if the slave is using a different sampling rate.
That leads to too large/too small calculated avail_min settings and inaccurate
period wake-up events if a rate converter plugin is used.

This patch is adapting the avail_min calculation to consider a different
sampling rate between actual pcm and it's slave.

Fixes: https://github.com/alsa-project/alsa-lib/pull/218
Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2022-05-20 10:35:45 +02:00
..
alisp alisp: add the missing include 2019-03-15 13:16:20 +01:00
conf conf: vc4-hdmi: use a proper hdmi pcm, fix broken default pcm 2022-05-19 17:13:59 +02:00
control control: eld - add missing ctype.h header inclusion 2022-05-20 08:47:07 +02:00
hwdep conf: introduce snd_config_get_card() function 2021-02-26 21:08:28 +01:00
mixer mixer: simple - Fix "Capture Volume" and "Capture Switch" being seen as global controls 2021-05-04 18:21:18 +02:00
pcm pcm: plugin - fix avail_min calculation on rate plugin 2022-05-20 10:35:45 +02:00
rawmidi rawmidi: allocate the read buffer in the params call 2021-10-28 08:40:20 +02:00
seq seq: fix snd_seq_parse_address() 2021-05-26 17:29:48 +02:00
timer timer: remove dead code in _snd_timer_hw_open() 2021-06-02 19:50:17 +02:00
topology src/topology/parser.c: drop duplicate safe_strtol_base 2022-01-01 17:50:27 +01:00
ucm ucm: Use LFS calls (stat, scandir) 2022-05-20 09:55:03 +02:00
async.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
conf.c conf: Use LFS calls when reading config files 2022-05-20 09:54:32 +02:00
confeval.c conf: fix the device parsing when arguments has no defaults 2021-12-09 10:15:47 +01:00
confmisc.c conf: snd_config_get_card() remove unused assignment 2021-06-03 07:29:11 +02:00
dlmisc.c dlmisc.c: Avoid double unlock in snd_dlobj_cache_get0() 2021-10-07 16:52:56 +02:00
error.c add snd_strlcpy() and use it everywhere 2019-03-25 16:46:05 +01:00
input.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
Makefile.am conf: add possibility to evaluate simple integer math expressions 2021-11-30 11:33:35 +01:00
names.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
output.c output: Add snd_output_buffer_steal() function 2021-04-13 09:23:06 +02:00
shmarea.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
socket.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
userfile.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
Versions.in conf: fix the export of safe_strto* functions from libasound 2022-01-01 19:26:48 +01:00