diff --git a/apps/buffering.c b/apps/buffering.c index e7dda9835f..9c790da693 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1338,8 +1338,9 @@ void buffering_thread(void) while (true) { - if (!filling) + if (!filling) { cancel_cpu_boost(); + } queue_wait_w_tmo(&buffering_queue, &ev, filling ? 5 : HZ/2); diff --git a/apps/playback.c b/apps/playback.c index 328f6fc87c..6f9cec682c 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -2358,8 +2358,9 @@ static void audio_thread(void) while (1) { - if (filling != STATE_FILLING) + if (filling != STATE_FILLING) { cancel_cpu_boost(); + } if (!pcmbuf_queue_scan(&ev)) queue_wait_w_tmo(&audio_queue, &ev, HZ/2);