From: Takashi Iwai Date: Fri, 22 Jan 2021 14:48:41 +0000 (+0100) Subject: pcm: null: Pass appl_ptr and hw_ptr in snd_pcm_status() X-Git-Tag: v1.2.5~112 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=bcc762f99ad642cc0dd9eaceb51f228eba9fe68c;p=alsa-lib.git pcm: null: Pass appl_ptr and hw_ptr in snd_pcm_status() Just like the previous fix for ioplug, the null plugin also misses the appl_ptr and hw_ptr updates for snd_pcm_status(). Fix it as well. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/src/pcm/pcm_null.c b/src/pcm/pcm_null.c index 1d815485..c8ea9b38 100644 --- a/src/pcm/pcm_null.c +++ b/src/pcm/pcm_null.c @@ -96,6 +96,8 @@ static int snd_pcm_null_status(snd_pcm_t *pcm, snd_pcm_status_t * status) memset(status, 0, sizeof(*status)); status->state = null->state; status->trigger_tstamp = null->trigger_tstamp; + status->appl_ptr = *pcm->appl.ptr; + status->hw_ptr = *pcm->hw.ptr; gettimestamp(&status->tstamp, pcm->tstamp_type); status->avail = snd_pcm_null_avail_update(pcm); status->avail_max = pcm->buffer_size;