From: Jaroslav Kysela Date: Sun, 3 Jan 2021 16:13:50 +0000 (+0100) Subject: pcm: ioplug - fix the delay calculation for old plugins X-Git-Tag: v1.2.5~130 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6cee452eabc5cfdf0a6955033b8ac8f6e12ea883;p=alsa-lib.git pcm: ioplug - fix the delay calculation for old plugins Signed-off-by: Jaroslav Kysela --- diff --git a/src/pcm/pcm_ioplug.c b/src/pcm/pcm_ioplug.c index f2315a10..e141b1f9 100644 --- a/src/pcm/pcm_ioplug.c +++ b/src/pcm/pcm_ioplug.c @@ -116,7 +116,7 @@ static int snd_pcm_ioplug_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) return io->data->callback->delay(io->data, delayp); else { snd_pcm_ioplug_hw_ptr_update(pcm); - *delayp = snd_pcm_mmap_hw_avail(pcm); + *delayp = snd_pcm_mmap_delay(pcm); } return 0; }