From: Jaroslav Kysela Date: Sun, 3 Jan 2021 15:16:10 +0000 (+0100) Subject: pcm: plugin status - revert the recent changes X-Git-Tag: v1.2.5~136 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=49eea5d7bc7d39f9a4cc1f3b3a813e90b90519eb;p=alsa-lib.git pcm: plugin status - revert the recent changes It's no reason to sync the avail/delay fields using the mirrored buffer pointers. The slave information must be valid. The original report probably tries to fix something for the specific plugin. Revert all changes. Fixes: afe6ff3b33e ("pcm: plugin status - fix the return value (regression)") Fixes: 4f90392f07e ("pcm: fix the snd_pcm_plugin_status() avail and delay fields") Signed-off-by: Jaroslav Kysela --- diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c index 76a524fa..ea60eb98 100644 --- a/src/pcm/pcm_plugin.c +++ b/src/pcm/pcm_plugin.c @@ -551,8 +551,6 @@ static int snd_pcm_plugin_status(snd_pcm_t *pcm, snd_pcm_status_t * status) return err; status->appl_ptr = *pcm->appl.ptr; status->hw_ptr = *pcm->hw.ptr; - status->avail = snd_pcm_mmap_avail(pcm); - status->delay = snd_pcm_mmap_delay(pcm); return 0; }