]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: rate - rewrite the may_wait_for_avail_min callback for the rate plugin
authorJaroslav Kysela <perex@perex.cz>
Fri, 20 May 2022 08:47:43 +0000 (10:47 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 20 May 2022 08:50:27 +0000 (10:50 +0200)
commitd9dbb57b946b4db438bf919e30ecdc38c177aba4
tree129178f2ea40ba8e37c418dc516e95e169bd6563
parentd21e0e01c66c627c38496027ba6757ea13e65999
pcm: rate - rewrite the may_wait_for_avail_min callback for the rate plugin

Shuffle the code to avoid special conditions using the plugin type
in the generic plugin code. The rate plugin has the own
may_wait_for_avail_min callback implementation now.

Fixes: d21e0e01 ("pcm: plugin - fix avail_min calculation on rate plugin")
Fixes: https://github.com/alsa-project/alsa-lib/pull/218
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_local.h
src/pcm/pcm_plugin.c
src/pcm/pcm_plugin.h
src/pcm/pcm_rate.c