From 03655936efc48594ec7f35d82c41782e16d07f21 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 23 Dec 2011 21:51:00 +0100 Subject: [PATCH] audiod: Fix bug in status_pre_select(). We have to take the minimum input size into account when deciding whether a minimal delay should be requested from the scheduler. Without this, a busy loop is possible. --- audiod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiod.c b/audiod.c index 88411af4..4858366e 100644 --- a/audiod.c +++ b/audiod.c @@ -1159,7 +1159,7 @@ static void status_pre_select(struct sched *s, struct task *t) if (must_start_decoder()) goto min_delay; - ret = btr_node_status(st->btrn, 0, BTR_NT_LEAF); + ret = btr_node_status(st->btrn, st->min_iqs, BTR_NT_LEAF); if (ret > 0) goto min_delay; if (st->ct && audiod_status == AUDIOD_OFF) -- 2.39.5