From 4695f80230f0d3e3eb03a4d9aade5253e2d51862 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 27 Sep 2021 23:36:49 -0400 Subject: [PATCH] voice_thread.c ensure cpu gets re-boosted after Q_VOICE_STOP event reset quiet counter after Q_VOICE_STOP when the voice system is doing un-queued voice clips you can get a voice_stop event which cancels the cpu boost but the quiet count was not reset next clip will play unboosted causing stuttering Change-Id: Icaada443e2399bf146e30bebee599db5b379063a --- apps/voice_thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 77bdd08d44..4b4a337508 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -421,6 +421,7 @@ static enum voice_state voice_message(struct voice_thread_data *td) /* Fall-through */ case Q_VOICE_STOP: LOGFQUEUE("voice < Q_VOICE_STOP"); + quiet_counter = 0; cancel_cpu_boost(); voice_stop_playback(); break;