From 8608c03b76b20aa4a1e4786e32799f13d82e9e25 Mon Sep 17 00:00:00 2001 From: Dimitrios Katsaros Date: Wed, 14 Feb 2024 09:26:08 +0100 Subject: [PATCH] alsa: Reduce jitter in irq based software timestamping We would timestamp within an unlikely block, which would introduce additional jitter to current_time, which would have an impact on the performance of the timer sensitive code. --- spa/plugins/alsa/alsa-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c index 9b7f8f624..a32253ec9 100644 --- a/spa/plugins/alsa/alsa-pcm.c +++ b/spa/plugins/alsa/alsa-pcm.c @@ -3187,7 +3187,7 @@ static void alsa_wakeup_event(struct spa_source *source) uint64_t expire, current_time; int res, suppressed; - if (SPA_UNLIKELY(state->disable_tsched)) { + if (state->disable_tsched) { /* ALSA poll fds need to be "demangled" to know whether it's a real wakeup */ int err; unsigned short revents;