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.
This commit is contained in:
Dimitrios Katsaros 2024-02-14 09:26:08 +01:00 committed by Wim Taymans
parent a9c0eb993e
commit 8608c03b76

View file

@ -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;