summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-09-27 23:36:49 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2021-09-27 23:36:49 -0400
commit4695f80230f0d3e3eb03a4d9aade5253e2d51862 (patch)
tree7a787b070cbc6053e150473c17eb8cb30b9e76a3 /apps
parent6d98c9e6b249465c9fff17c5600f4e7a40c3085c (diff)
downloadrockbox-4695f80230f0d3e3eb03a4d9aade5253e2d51862.tar.gz
rockbox-4695f80230f0d3e3eb03a4d9aade5253e2d51862.tar.bz2
rockbox-4695f80230f0d3e3eb03a4d9aade5253e2d51862.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/voice_thread.c1
1 files changed, 1 insertions, 0 deletions
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;