Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 968d681f authored by Carter Hsu's avatar Carter Hsu
Browse files

audio: set hotword input for soundtrigger only



The sound_trigger session might have been paused while
soundtrigger client starts to record.

In this corner case, this input won't be detected as
soundtrigger input in audio HAL since the st_session handle
has been removed because the st_session is in pause state.

Then soundtrigger input will try to open pcm driver and
act as normal audio record, it will cause race condition
on pcm node.

To fix this, set the input with AUDIO_INPUT_FLAG_HW_HOTWORD
flag to be always soundtrigger input.

Bug: 135059114
Test: hotword/music detection works
Change-Id: I4475bfb1d3e2c9b998c583e9244c0aa4f07b2134
Signed-off-by: default avatarCarter Hsu <carterhsu@google.com>
parent 3ff76895
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment