mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: set the snd_pcm_ioplug_status() tstamp field
Set the status tstamp field so that it can be accessed with snd_pcm_status_get_htstamp(). Signed-off-by: Jonas Holmberg <jonashg@axis.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e5c350d7bc
commit
7d36895225
1 changed files with 1 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ static int snd_pcm_ioplug_status(snd_pcm_t *pcm, snd_pcm_status_t * status)
|
|||
snd_pcm_ioplug_hw_ptr_update(pcm);
|
||||
status->state = io->data->state;
|
||||
status->trigger_tstamp = io->trigger_tstamp;
|
||||
gettimestamp(&status->tstamp, pcm->tstamp_type);
|
||||
status->avail = snd_pcm_mmap_avail(pcm);
|
||||
status->avail_max = io->avail_max;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue