aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Cha <chajasmine@google.com>2020-03-28 12:39:12 +0100
committerJeferson <jroliveira.oliveira301@gmail.com>2022-03-28 13:45:01 +0200
commit78ac64107266f9776c491a3dcf04de36ddc2f7a9 (patch)
tree19b6e350b2fdae08b2e589b4b3ba011d507a6700
parent4e4eed792bd87deedfc58f4367172efa6fc4497a (diff)
evert: audio: Add hotword input for hotword mic concurrency
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com> Change-Id: I337556a5bbd52632b6531dabdf4a101fa5f1d604
-rw-r--r--audio/audio_policy_configuration.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml
index 8aa0b39..bec94f8 100644
--- a/audio/audio_policy_configuration.xml
+++ b/audio/audio_policy_configuration.xml
@@ -85,6 +85,11 @@
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3"/>
</mixPort>
+ <mixPort name="hotword input" role="sink" flags="AUDIO_INPUT_FLAG_HW_HOTWORD" maxActiveCount="0" >
+ <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
+ samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
+ channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
+ </mixPort>
<mixPort name="voice_rx" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
@@ -157,6 +162,8 @@
sources="voice_tx,incall_music_uplink"/>
<route type="mix" sink="primary input"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM tuner"/>
+ <route type="mix" sink="hotword input"
+ sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic"/>
<route type="mix" sink="voice_rx"
sources="Telephony Rx"/>
</routes>