summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-09-29 01:10:04 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2021-09-29 01:18:00 -0400
commitcb2ee6b6cbb3a0031da4c3156d1ed6af8981d6b1 (patch)
tree3650865700cfe805e89b8f49b6118a973081d3ee /apps
parentb662ff945ac36b314ecf91177b271578622e2694 (diff)
voice_thread.c ensure cpu gets re-boosted after Q_VOICE_STOP event
when the voice system is doing queued voice clips you can get a voice_stop event which cancels the cpu boost but the quiet count was not reset to 0 next clip may play unboosted causing stuttering just boost unconditionally on Q_PLAY it'll unboost after timeout if unneeded Change-Id: Ib39df5d9f8a9e41299147a885048cf1361180dd6
Diffstat (limited to 'apps')
-rw-r--r--apps/voice_thread.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 77bdd08d44..6ce0f6a408 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -361,12 +361,11 @@ static enum voice_state voice_message(struct voice_thread_data *td)
{
case Q_VOICE_PLAY:
LOGFQUEUE("voice < Q_VOICE_PLAY");
- if (quiet_counter == 0)
- {
- /* Boost CPU now */
- trigger_cpu_boost();
- }
- else
+
+ /* Boost CPU now */
+ trigger_cpu_boost();
+
+ if (quiet_counter != 0)
{
/* Stop any clip still playing */
voice_stop_playback();