alsa: enable htimestamp mode

Use snd_pcm_htimestamp to get both the available space and the timestamp
when this was calculated. We can then use this to get a better estimate
of the delay in the device against the graph start and get a more
reliable delay between capture and playback.
This commit is contained in:
Wim Taymans 2023-06-05 16:49:58 +02:00
parent 90e2f4a139
commit 29e6544bae

View file

@ -1856,7 +1856,7 @@ recover:
return do_start(state);
}
#if 1
#if 0
static int get_avail(struct state *state, uint64_t current_time, snd_pcm_uframes_t *delay)
{
int res, missed;