Skip to contentSkip to conversation

pcm: set the snd_pcm_ioplug_status() tstamp field

PATCH New Jonas Holmberg 1 participant 1 message Nov 2, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pcm: set the snd_pcm_ioplug_status() tstamp field

---
 src/pcm/pcm_ioplug.c | 1 +
 1 file changed, 1 insertion(+)
src/pcm/pcm_ioplug.c +1 -0
index a437ca32..9b1b8ac3 100644
@@ -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;
Signature · 1 line
2.26.2