Skip to content

Commit

Permalink
pcm: share: Pass appl_ptr and hw_ptr in snd_pcm_status()
Browse files Browse the repository at this point in the history
This one also has the same problem as others; the appl_ptr and hw_ptr
of share plugin aren't updated in snd_pcm_status() call.  Fix it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
tiwai authored and perexg committed Jan 22, 2021
1 parent bcc762f commit 55d5982
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pcm/pcm_share.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,8 @@ static int snd_pcm_share_status(snd_pcm_t *pcm, snd_pcm_status_t *status)
_notrunning:
status->delay = sd + d;
status->state = share->state;
status->appl_ptr = *pcm->appl.ptr;
status->hw_ptr = *pcm->hw.ptr;
status->trigger_tstamp = share->trigger_tstamp;
_end:
Pthread_mutex_unlock(&slave->mutex);
Expand Down

0 comments on commit 55d5982

Please sign in to comment.