Skip to content

Commit

Permalink
ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr
Browse files Browse the repository at this point in the history
It looks like a simple mistake that this struct member
was forgotten.

Audio_tstamp isn't used much, and on some archs (such as x86) this
ioctl is not used by default, so that might be the reason why this
has slipped for so long.

Fixes: 4eeaaea ("ALSA: core: add hooks for audio timestamps")
Signed-off-by: David Henningsson <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Cc: <[email protected]> # v3.8+
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
diwic authored and tiwai committed Apr 23, 2018
1 parent 912e4c3 commit f853dca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/pcm_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -2754,6 +2754,7 @@ static int snd_pcm_sync_ptr(struct snd_pcm_substream *substream,
sync_ptr.s.status.hw_ptr = status->hw_ptr;
sync_ptr.s.status.tstamp = status->tstamp;
sync_ptr.s.status.suspended_state = status->suspended_state;
sync_ptr.s.status.audio_tstamp = status->audio_tstamp;
snd_pcm_stream_unlock_irq(substream);
if (copy_to_user(_sync_ptr, &sync_ptr, sizeof(sync_ptr)))
return -EFAULT;
Expand Down

0 comments on commit f853dca

Please sign in to comment.