]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: set the snd_pcm_ioplug_status() tstamp field
authorJonas Holmberg <jonashg@axis.com>
Wed, 4 Nov 2020 13:49:56 +0000 (14:49 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 Dec 2020 14:29:26 +0000 (15:29 +0100)
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>
src/pcm/pcm_ioplug.c

index a437ca326778d0cb9bd0309d93b2e9f399fed0bf..9b1b8ac3b6fce8e5146fa121705668633307373c 100644 (file)
@@ -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;