From 9de98df1b7f01376a04ea8e98031ed949bee95ab Mon Sep 17 00:00:00 2001 From: Mersad Jelacic Date: Mon, 2 Mar 2020 11:54:02 +0100 Subject: [PATCH] pipewire-alsa: Use monotonic clock Use monotonic clock instead of gettimeofday for timestamps. --- pipewire-alsa/alsa-plugins/pcm_pipewire.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pipewire-alsa/alsa-plugins/pcm_pipewire.c b/pipewire-alsa/alsa-plugins/pcm_pipewire.c index d4a4e5f21..c40fecf23 100644 --- a/pipewire-alsa/alsa-plugins/pcm_pipewire.c +++ b/pipewire-alsa/alsa-plugins/pcm_pipewire.c @@ -948,6 +948,7 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name, #else #warning hw_ptr updates of buffer_size will not be recognized by the ALSA library. Consider to update your ALSA library. #endif + pw->io.flags |= SND_PCM_IOPLUG_FLAG_MONOTONIC; if ((err = snd_pcm_ioplug_create(&pw->io, name, stream, mode)) < 0) goto error;