diff options
author | qctecmdr <qctecmdr@localhost> | 2022-06-07 04:38:29 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2022-06-07 04:38:29 -0700 |
commit | 8f494538d093642f4fafd30d1eec92e3b3ce702c (patch) | |
tree | 830d7fec0ef0fc291a5107721d9248cc2156c137 | |
parent | 5e90354fde3792ffa74a1b9c36ade4f453aa4228 (diff) | |
parent | b5bbd522f4a0815312e52f447121533918be4e7a (diff) |
Merge "hal: Fix PAL stream selection for voice recognition source"
-rw-r--r-- | hal/AudioStream.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hal/AudioStream.cpp b/hal/AudioStream.cpp index 467ab87e..c10b5bf5 100644 --- a/hal/AudioStream.cpp +++ b/hal/AudioStream.cpp @@ -1553,6 +1553,9 @@ pal_stream_type_t StreamInPrimary::GetPalStreamType( return palStreamType; } else if (source_ == AUDIO_SOURCE_VOICE_RECOGNITION) { palStreamType = PAL_STREAM_VOICE_RECOGNITION; + if (halStreamFlags & AUDIO_INPUT_FLAG_MMAP_NOIRQ) { + palStreamType = PAL_STREAM_ULTRA_LOW_LATENCY; + } return palStreamType; } |