Message ID | 20210122144842.8843-4-tiwai@suse.de |
---|---|
State | New |
Headers | show |
Series | pcm: Fix missing appl_ptr and hw_ptr updates in snd_pcm_status() | expand |
diff --git a/src/pcm/pcm_null.c b/src/pcm/pcm_null.c index 1d81548569f0..c8ea9b38785f 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;
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 <tiwai@suse.de> --- src/pcm/pcm_null.c | 2 ++ 1 file changed, 2 insertions(+)