sdm660-common: audio: Update audio configs and enable soundtrigger
This commit is contained in:
parent
5d50c6cf07
commit
53c3064ba1
7 changed files with 418 additions and 16 deletions
|
@ -71,11 +71,9 @@ endif
|
|||
|
||||
# Audio
|
||||
AUDIO_DISABLE_SWAP_CHANNELS := true
|
||||
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
|
||||
AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
|
||||
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
|
||||
AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := false
|
||||
AUDIO_USE_DEEP_AS_PRIMARY_OUTPUT := false
|
||||
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
|
||||
AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
|
||||
BOARD_USES_ALSA_AUDIO := true
|
||||
BOARD_SUPPORTS_SOUND_TRIGGER := true
|
||||
USE_CUSTOM_AUDIO_POLICY := 1
|
||||
|
|
|
@ -1,4 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--- Copyright (c) 2018-2019,2020 The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
<!--- met: -->
|
||||
<!--- * Redistributions of source code must retain the above copyright -->
|
||||
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||
<!--- * Redistributions in binary form must reproduce the above -->
|
||||
<!--- copyright notice, this list of conditions and the following -->
|
||||
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||
<!--- with the distribution. -->
|
||||
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!--- contributors may be used to endorse or promote products derived -->
|
||||
<!--- from this software without specific prior written permission. -->
|
||||
<!--- -->
|
||||
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
|
||||
<audio_effects_conf version="2.0" xmlns="http://schemas.android.com/audio/audio_effects_conf/v2_0">
|
||||
<libraries>
|
||||
<library name="bundle" path="libbundlewrapper.so"/>
|
||||
|
@ -21,10 +48,12 @@
|
|||
</libraries>
|
||||
<effects>
|
||||
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
|
||||
<libsw library="bundle" uuid="8631f300-72e2-11df-b57e-0002a5d5c51b"/>
|
||||
<libsw library="qcbassboost" uuid="23aca180-44bd-11e2-bcfd-0800200c9a66"/>
|
||||
<libhw library="offload_bundle" uuid="2c4a8c24-1581-487f-94f6-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="virtualizer" library="proxy" uuid="d3467faa-acc7-4d34-acaf-0002a5d5c51b">
|
||||
<libsw library="bundle" uuid="1d4033c0-8557-11df-9f2d-0002a5d5c51b"/>
|
||||
<libsw library="qcvirt" uuid="e6c98a16-22a3-11e2-b87b-f23c91aec05e"/>
|
||||
<libhw library="offload_bundle" uuid="509a4498-561a-4bea-b3b1-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
|
@ -34,18 +63,22 @@
|
|||
</effectProxy>
|
||||
<effect name="volume" library="bundle" uuid="119341a0-8469-11df-81f9-0002a5d5c51b"/>
|
||||
<effectProxy name="reverb_env_aux" library="proxy" uuid="48404ac9-d202-4ccc-bf84-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="4a387fc0-8ab3-11df-8bad-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="a8c1e5f3-293d-43cd-95ec-d5e26c02e217"/>
|
||||
<libhw library="offload_bundle" uuid="79a18026-18fd-4185-8233-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="reverb_env_ins" library="proxy" uuid="b707403a-a1c1-4291-9573-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="c7a511a0-a3bb-11df-860e-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="791fff8b-8129-4655-83a4-59bc61034c3a"/>
|
||||
<libhw library="offload_bundle" uuid="eb64ea04-973b-43d2-8f5e-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="reverb_pre_aux" library="proxy" uuid="1b78f587-6d1c-422e-8b84-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="f29a1400-a3bb-11df-8ddc-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="53ef1db5-c0c0-445b-b060-e34d20ebb70a"/>
|
||||
<libhw library="offload_bundle" uuid="6987be09-b142-4b41-9056-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="reverb_pre_ins" library="proxy" uuid="f3e178d2-ebcb-408e-8357-0002a5d5c51b">
|
||||
<libsw library="reverb" uuid="172cdf00-a3bc-11df-a72f-0002a5d5c51b"/>
|
||||
<libsw library="qcreverb" uuid="b08a0e38-22a5-11e2-b87b-f23c91aec05e"/>
|
||||
<libhw library="offload_bundle" uuid="aa2bebf6-47cf-4613-9bca-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
|
@ -54,6 +87,7 @@
|
|||
<libhw library="visualizer_hw" uuid="7a8044a0-1a71-11e3-a184-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effect name="downmix" library="downmix" uuid="93f04452-e4fe-41cc-91f9-e475b6d1d69f"/>
|
||||
<effect name="hw_acc" library="offload_bundle" uuid="7d1580bd-297f-4683-9239-e475b6d1d69f"/>
|
||||
<effect name="loudness_enhancer" library="loudness_enhancer" uuid="fa415329-2034-4bea-b5dc-5b381c8d1e2c"/>
|
||||
<effect name="dynamics_processing" library="dynamics_processing" uuid="e0e6539b-1781-7261-676f-6d7573696340"/>
|
||||
<effect name="aec" library="audio_pre_processing" uuid="0f8d0d2a-59e5-45fe-b6e4-248c8a799109"/>
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="raw" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW">
|
||||
flags="AUDIO_OUTPUT_FLAG_FAST">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
|
@ -73,16 +73,11 @@
|
|||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="incall_music" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC|AUDIO_OUTPUT_FLAG_DIRECT">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="hifi_playback" role="source" />
|
||||
<mixPort name="compress_passthrough" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
|
||||
<!-- <profile name="" format="dynamic"
|
||||
samplingRates="dynamic" channelMasks="dynamic"/> -->
|
||||
<profile name="" format="dynamic"
|
||||
samplingRates="dynamic" channelMasks="dynamic"/>
|
||||
</mixPort>
|
||||
<mixPort name="direct_pcm" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT">
|
||||
|
@ -165,7 +160,17 @@
|
|||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK"/>
|
||||
</mixPort>
|
||||
<mixPort name="record_24" role="sink" maxOpenCount="2" maxActiveCount="2">
|
||||
<mixPort name="voip_tx" role="sink"
|
||||
flags="AUDIO_INPUT_FLAG_VOIP_TX">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</mixPort>
|
||||
<mixPort name="surround_sound" role="sink">
|
||||
<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,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6"/>
|
||||
</mixPort>
|
||||
<mixPort name="record_24" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000,192000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
|
||||
|
@ -233,6 +238,14 @@
|
|||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
|
||||
</devicePort>
|
||||
|
||||
<!-- Input devices declaration, i.e. Source DEVICE PORT -->
|
||||
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
|
||||
|
@ -263,6 +276,10 @@
|
|||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source">
|
||||
</devicePort>
|
||||
<devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source">
|
||||
</devicePort>
|
||||
|
||||
</devicePorts>
|
||||
<!-- route declaration, i.e. list all available sources for a given sink -->
|
||||
|
@ -289,14 +306,23 @@
|
|||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<route type="mix" sink="BT SCO Car Kit"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<route type="mix" sink="USB Device Out"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,hifi_playback"/>
|
||||
<route type="mix" sink="USB Headset Out"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,hifi_playback"/>
|
||||
<route type="mix" sink="Telephony Tx"
|
||||
sources="voice_tx"/>
|
||||
<route type="mix" sink="voice_rx"
|
||||
sources="Telephony Rx"/>
|
||||
<route type="mix" sink="primary input"
|
||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
|
||||
sources="Wired Headset Mic,BT SCO Headset Mic,FM Tuner,USB Device In,USB Headset In,Telephony Rx"/>
|
||||
<route type="mix" sink="voip_tx"
|
||||
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In"/>
|
||||
<route type="mix" sink="surround_sound"
|
||||
sources="Built-In Mic,Built-In Back Mic"/>
|
||||
<route type="mix" sink="record_24"
|
||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
|
||||
<route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
|
||||
</routes>
|
||||
|
||||
</module>
|
||||
|
@ -305,7 +331,24 @@
|
|||
<xi:include href="/vendor/etc/a2dp_in_audio_policy_configuration.xml"/>
|
||||
|
||||
<!-- Usb Audio HAL -->
|
||||
<xi:include href="/vendor/etc/usb_audio_policy_configuration.xml"/>
|
||||
<module name="usb" halVersion="2.0">
|
||||
<mixPorts>
|
||||
<mixPort name="usb_accessory output" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
</mixPorts>
|
||||
<devicePorts>
|
||||
<devicePort tagName="USB Host Out" type="AUDIO_DEVICE_OUT_USB_ACCESSORY" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
</devicePorts>
|
||||
<routes>
|
||||
<route type="mix" sink="USB Host Out"
|
||||
sources="usb_accessory output"/>
|
||||
</routes>
|
||||
</module>
|
||||
|
||||
<!-- Remote Submix Audio HAL -->
|
||||
<xi:include href="/vendor/etc/r_submix_audio_policy_configuration.xml"/>
|
||||
|
|
178
configs/audio/sound_trigger_mixer_paths.xml
Normal file
178
configs/audio/sound_trigger_mixer_paths.xml
Normal file
|
@ -0,0 +1,178 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2014-2017, The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
<!--- met: -->
|
||||
<!--- * Redistributions of source code must retain the above copyright -->
|
||||
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||
<!--- * Redistributions in binary form must reproduce the above -->
|
||||
<!--- copyright notice, this list of conditions and the following -->
|
||||
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||
<!--- with the distribution. -->
|
||||
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!--- contributors may be used to endorse or promote products derived -->
|
||||
<!--- from this software without specific prior written permission. -->
|
||||
<!--- -->
|
||||
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
|
||||
<mixer>
|
||||
<!-- These are the initial mixer settings -->
|
||||
<ctl name="LSM1 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM2 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM3 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM4 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM5 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM6 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM7 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM8 Mixer INT3_MI2S_TX" value="0" />
|
||||
<ctl name="LSM1 Port" value="None" />
|
||||
<ctl name="LSM2 Port" value="None" />
|
||||
<ctl name="LSM3 Port" value="None" />
|
||||
<ctl name="LSM4 Port" value="None" />
|
||||
<ctl name="LSM5 Port" value="None" />
|
||||
<ctl name="LSM6 Port" value="None" />
|
||||
<ctl name="LSM7 Port" value="None" />
|
||||
<ctl name="LSM8 Port" value="None" />
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="None" />
|
||||
<ctl name="DEC1 MUX" value="ZERO" />
|
||||
<ctl name="DEC2 MUX" value="ZERO" />
|
||||
<ctl name="DEC3 MUX" value="ZERO" />
|
||||
<ctl name="DEC4 MUX" value="ZERO" />
|
||||
<ctl name="I2S TX2 INP1" value="ZERO" />
|
||||
<ctl name="I2S TX2 INP2" value="ZERO" />
|
||||
|
||||
<path name="listen-voice-wakeup-1">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM1 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM1 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM2 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM2 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-3">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM3 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM3 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-4">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM4 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM4 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-5">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM5 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM5 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-6">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM6 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM6 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-7">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM7 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM7 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-8">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM8 Port" value="INT3_MI2S_TX" />
|
||||
<ctl name="LSM8 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-1 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM1 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM1 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM2 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM2 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-3 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM3 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM3 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-4 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM4 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM4 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-5 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM5 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM5 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-6 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM6 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM6 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-7 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM7 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM7 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-8 preproc">
|
||||
<ctl name="INT3_MI2S_TX LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM8 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM8 Mixer INT3_MI2S_TX" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic">
|
||||
<ctl name="DEC1 Volume" value="84" />
|
||||
<ctl name="DEC1 MUX" value="DMIC3" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic-preproc">
|
||||
<path name="listen-ape-handset-mic"/>
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-qmic">
|
||||
<ctl name="INT3_MI2S_TX Channels" value="Four" />
|
||||
<ctl name="DEC1 MUX" value="DMIC2" />
|
||||
<ctl name="DEC2 MUX" value="DMIC1" />
|
||||
<ctl name="DEC3 MUX" value="DMIC3" />
|
||||
<ctl name="I2S TX2 INP1" value="DEC3" />
|
||||
<ctl name="DEC4 MUX" value="DMIC4" />
|
||||
<ctl name="I2S TX2 INP2" value="DEC4" />
|
||||
</path>
|
||||
|
||||
<path name="echo-reference">
|
||||
<ctl name="AUDIO_REF_EC_UL1 MUX" value="INT4_MI2S_RX"/>
|
||||
<ctl name="EC Reference Channels" value="Two"/>
|
||||
<ctl name="EC Reference Bit Format" value="S16_LE"/>
|
||||
<ctl name="EC Reference SampleRate" value="48000"/>
|
||||
</path>
|
||||
|
||||
|
||||
</mixer>
|
137
configs/audio/sound_trigger_platform_info.xml
Normal file
137
configs/audio/sound_trigger_platform_info.xml
Normal file
|
@ -0,0 +1,137 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2013-2017, The Linux Foundation. All rights reserved. -->
|
||||
<!--- -->
|
||||
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||
<!--- modification, are permitted provided that the following conditions are -->
|
||||
<!--- met: -->
|
||||
<!--- * Redistributions of source code must retain the above copyright -->
|
||||
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||
<!--- * Redistributions in binary form must reproduce the above -->
|
||||
<!--- copyright notice, this list of conditions and the following -->
|
||||
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||
<!--- with the distribution. -->
|
||||
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||
<!--- contributors may be used to endorse or promote products derived -->
|
||||
<!--- from this software without specific prior written permission. -->
|
||||
<!--- -->
|
||||
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
<sound_trigger_platform_info>
|
||||
<param version="0x0101" /> <!-- this must be the first param -->
|
||||
<common_config>
|
||||
<param max_cpe_sessions="1" />
|
||||
<param max_wdsp_sessions="2" />
|
||||
<param max_ape_sessions="8" />
|
||||
<param enable_failure_detection="false" />
|
||||
<!-- Below backend params must match with port used in mixer path file -->
|
||||
<!-- param used to configure backend sample rate, format and channels -->
|
||||
<param backend_port_name="SLIM_0_TX" />
|
||||
<!-- Param used to match and obtain device backend index -->
|
||||
<param backend_dai_name="SLIMBUS_0_TX" />
|
||||
</common_config>
|
||||
<acdb_ids>
|
||||
<param DEVICE_HANDSET_MIC_APE="100" />
|
||||
<param DEVICE_HANDSET_MIC_CPE="128" />
|
||||
<param DEVICE_HANDSET_MIC_ECPP_CPE="128" />
|
||||
<param DEVICE_HANDSET_MIC_PP_APE="137" />
|
||||
<param DEVICE_HANDSET_QMIC_APE="138" />
|
||||
</acdb_ids>
|
||||
<!-- Multiple sound_model_config tags can be listed, each with unique -->
|
||||
<!-- vendor_uuid. The below tag represents QTI SVA engine sound model -->
|
||||
<!-- configuration. ISV must use their own unique vendor_uuid. -->
|
||||
<sound_model_config>
|
||||
<param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b" />
|
||||
<param execution_type="WDSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
|
||||
<param app_type="2" /> <!-- app type used in ACDB -->
|
||||
<param library="libsmwrapper.so" />
|
||||
<param max_cpe_phrases="6" />
|
||||
<param max_cpe_users="3" />
|
||||
<param max_ape_phrases="10" />
|
||||
<param max_ape_users="10" />
|
||||
<!-- Profile specific data which the algorithm can support -->
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
<param channel_count="1"/>
|
||||
<!-- adm_cfg_profile should match with the one defined under adm_config -->
|
||||
<!-- Set it to NONE if LSM directly connects to AFE -->
|
||||
<param adm_cfg_profile="NONE" />
|
||||
<!-- fluence_type: "FLUENCE", FLUENCE_DMIC", FLUENCE_QMIC" -->
|
||||
<!-- param value is valid when adm_cfg_profile="FLUENCE" -->
|
||||
<param fluence_type="FLUENCE_QMIC" />
|
||||
<gcs_usecase>
|
||||
<param uid="0x1" />
|
||||
<!-- module_id, instance_id, param_id -->
|
||||
<param load_sound_model_ids="0x00012C0D, 0x2, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x00012C0D, 0x2, 0x00012C28" />
|
||||
<param detection_event_ids="0x00012C0D, 0x2, 0x00012C29" />
|
||||
<param read_cmd_ids="0x00020013, 0x2, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x2, 0x00020016" />
|
||||
</gcs_usecase>
|
||||
<gcs_usecase>
|
||||
<param uid="0x2" />
|
||||
<param load_sound_model_ids="0x00012C0D, 0x3, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x00012C0D, 0x3, 0x00012C28" />
|
||||
<param detection_event_ids="0x00012C0D, 0x3, 0x00012C29" />
|
||||
<param read_cmd_ids="0x00020013, 0x3, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x3, 0x00020016" />
|
||||
</gcs_usecase>
|
||||
<!-- Module and param ids with which the algorithm is integrated
|
||||
in non-graphite firmware (note these must come after gcs params)
|
||||
Extends flexibility to have different ids based on execution mode.
|
||||
valid execution_mode values: "WDSP" "ADSP" -->
|
||||
<lsm_usecase>
|
||||
<param execution_mode="ADSP" />
|
||||
<param load_sound_model_ids="0x00012C1C, 0x00012C14" />
|
||||
<param unload_sound_model_ids="0x00012C1C, 0x00012C15" />
|
||||
<param confidence_levels_ids="0x00012C1C, 0x00012C07" />
|
||||
<param operation_mode_ids="0x00012C1C, 0x00012C02" />
|
||||
<param polling_enable_ids="0x00012C1C, 0x00012C1B" />
|
||||
</lsm_usecase>
|
||||
|
||||
<lsm_usecase>
|
||||
<param execution_mode="WDSP" />
|
||||
<param load_sound_model_ids="0x00012C0D, 0x00012C14" />
|
||||
<param unload_sound_model_ids="0x00012C0D, 0x00012C15" />
|
||||
<param confidence_levels_ids="0x00012C0D, 0x00012C07" />
|
||||
<param operation_mode_ids="0x00012C0D, 0x00012C02" />
|
||||
</lsm_usecase>
|
||||
|
||||
<!-- format: "ADPCM_packet" or "PCM_packet" !-->
|
||||
<!-- transfer_mode: "FTRT" or "RT" -->
|
||||
<!-- kw_duration is in milli seconds. It is valid only for FTRT
|
||||
transfer mode -->
|
||||
<param capture_keyword="PCM_packet, RT, 2000" />
|
||||
<param client_capture_read_delay="2000" />
|
||||
</sound_model_config>
|
||||
|
||||
<!-- Multiple adm_config tags can be listed, each with unique profile name. -->
|
||||
<!-- app_type to match corresponding value from ACDB -->
|
||||
<adm_config>
|
||||
<param adm_cfg_profile="DEFAULT" />
|
||||
<param app_type="69938" />
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
</adm_config>
|
||||
|
||||
<adm_config>
|
||||
<param adm_cfg_profile="FLUENCE" />
|
||||
<param app_type="69943" />
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
</adm_config>
|
||||
|
||||
<!-- backend_type tag defines backend type for each device -->
|
||||
<!-- Default value is assumed for devices that are not listed here -->
|
||||
<backend_type>
|
||||
<param DEVICE_HANDSET_MIC_ECPP_CPE="BACKEND_ECPP" />
|
||||
</backend_type>
|
||||
</sound_trigger_platform_info>
|
|
@ -225,6 +225,15 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
<fqname>@1.0::ISensors/default</fqname>
|
||||
<fqname>@1.0::ISensorManager/default</fqname>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.soundtrigger</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.1</version>
|
||||
<interface>
|
||||
<name>ISoundTriggerHw</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.thermal</name>
|
||||
<transport>hwbinder</transport>
|
||||
|
|
|
@ -97,6 +97,7 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.audio@5.0-impl \
|
||||
android.hardware.audio.effect@5.0-impl \
|
||||
android.hardware.audio.service \
|
||||
android.hardware.soundtrigger@2.1-impl \
|
||||
audio.a2dp.default \
|
||||
audio.primary.sdm660 \
|
||||
audio.r_submix.default \
|
||||
|
@ -119,7 +120,9 @@ PRODUCT_COPY_FILES += \
|
|||
$(COMMON_PATH)/configs/audio/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_a2dp_offload_disabled.xml \
|
||||
$(COMMON_PATH)/configs/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
|
||||
$(COMMON_PATH)/configs/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
|
||||
$(COMMON_PATH)/configs/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml
|
||||
$(COMMON_PATH)/configs/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \
|
||||
$(COMMON_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
|
||||
$(COMMON_PATH)/configs/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
|
||||
|
||||
# Audio Policy
|
||||
PRODUCT_COPY_FILES += \
|
||||
|
|
Loading…
Reference in a new issue