Parcourir la source

soundtrigger: aidl table for L10

Test: verify with test build.
Bug: 206738138
Change-Id: I3ab4c1e66d1739f8e65cdb0df460fc5bb31828f1
Rios Kao il y a 2 ans
Parent
commit
add8872c72

+ 6 - 0
audio/lynx/aidl_config/audio_policy_configuration.xml

@@ -71,6 +71,11 @@
                              samplingRates="48000"
                              channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
                 </mixPort>
+                <mixPort name="hotword input" role="sink" flags="AUDIO_INPUT_FLAG_HW_HOTWORD">
+                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
+                             samplingRates="16000"
+                             channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
+                </mixPort>
             </mixPorts>
             <devicePorts>
                 <!-- Output devices declaration, i.e. Sink DEVICE PORT -->
@@ -157,6 +162,7 @@
                 <route type="mix" sink="fast input"
                        sources="Built-In Mic,Built-In Back Mic"/>
                 <route type="mix" sink="Telephony Tx" sources="incall playback" />
+                <route type="mix" sink="hotword input" sources="Built-In Mic"/>
             </routes>
         </module>
     </modules>

+ 3 - 0
audio/lynx/aidl_config/mixer_paths_aidl.xml

@@ -587,6 +587,9 @@
     <ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="1" />
   </path>
 
+  <path name="microphones -> sound-trigger-capture-0">
+  </path>
+
   <path name="audio-recordC usb-headset-mic">
     <ctl name="EP1 TX Mixer USB_TX" value="1" />
   </path>