OSDN Git Service

pcm: ioplug - fix the delay calculation for old plugins
authorJaroslav Kysela <perex@perex.cz>
Sun, 3 Jan 2021 16:13:50 +0000 (17:13 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 3 Jan 2021 16:16:11 +0000 (17:16 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_ioplug.c

index f2315a1..e141b1f 100644 (file)
@@ -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;
 }