sm6225-common: Import common audio configs
- from hawao S2SE32.28-41-1 Change-Id: I52af44295af31ca6901bd3d71f74abf80abd5b48
This commit is contained in:
parent
ba17a4af43
commit
046c6a0f55
7 changed files with 1054 additions and 0 deletions
81
audio/audio_effects.xml
Normal file
81
audio/audio_effects.xml
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<audio_effects_conf version="2.0" xmlns="http://schemas.android.com/audio/audio_effects_conf/v2_0">
|
||||||
|
<libraries>
|
||||||
|
<library name="proxy" path="libeffectproxy.so"/>
|
||||||
|
<library name="mmieffects" path="libmmieffectswrapper.so"/>
|
||||||
|
<library name="mot_speaker_helper" path="libspeakerbundle.so"/>
|
||||||
|
<library name="bundle" path="libbundlewrapper.so"/>
|
||||||
|
<library name="reverb" path="libreverbwrapper.so"/>
|
||||||
|
<library name="visualizer" path="libvisualizer.so"/>
|
||||||
|
<library name="downmix" path="libdownmix.so"/>
|
||||||
|
<library name="dynamics_processing" path="libdynproc.so"/>
|
||||||
|
<library name="loudness_enhancer" path="libldnhncr.so"/>
|
||||||
|
<library name="audio_pre_processing" path="libqcomvoiceprocessing.so"/>
|
||||||
|
<library name="dap" path="libswdap.so"/>
|
||||||
|
<library name="dvl" path="libdlbvol.so"/>
|
||||||
|
<library name="gamedap" path="libswgamedap.so"/>
|
||||||
|
<library name="vqe" path="libswvqe.so"/>
|
||||||
|
</libraries>
|
||||||
|
<effects>
|
||||||
|
<effect name="bassboost" library="bundle" uuid="8631f300-72e2-11df-b57e-0002a5d5c51b"/>
|
||||||
|
<effect name="virtualizer" library="bundle" uuid="1d4033c0-8557-11df-9f2d-0002a5d5c51b"/>
|
||||||
|
<effect name="equalizer" library="bundle" uuid="ce772f20-847d-11df-bb17-0002a5d5c51b"/>
|
||||||
|
<effect name="volume" library="bundle" uuid="119341a0-8469-11df-81f9-0002a5d5c51b"/>
|
||||||
|
<effect name="mmieffects" library="mmieffects" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01ba"/>
|
||||||
|
<effect name="reverb_env_aux" library="reverb" uuid="4a387fc0-8ab3-11df-8bad-0002a5d5c51b"/>
|
||||||
|
<effect name="reverb_env_ins" library="reverb" uuid="c7a511a0-a3bb-11df-860e-0002a5d5c51b"/>
|
||||||
|
<effect name="reverb_pre_aux" library="reverb" uuid="f29a1400-a3bb-11df-8ddc-0002a5d5c51b"/>
|
||||||
|
<effect name="reverb_pre_ins" library="reverb" uuid="172cdf00-a3bc-11df-a72f-0002a5d5c51b"/>
|
||||||
|
<effect name="visualizer" library="visualizer" uuid="d069d9e0-8329-11df-9168-0002a5d5c51b"/>
|
||||||
|
<effect name="downmix" library="downmix" uuid="93f04452-e4fe-41cc-91f9-e475b6d1d69f"/>
|
||||||
|
<effect name="dynamics_processing" library="dynamics_processing" uuid="e0e6539b-1781-7261-676f-6d7573696340"/>
|
||||||
|
<effect name="loudness_enhancer" library="loudness_enhancer" uuid="fa415329-2034-4bea-b5dc-5b381c8d1e2c"/>
|
||||||
|
<effectProxy name="music_helper" library="proxy" uuid="00905020-4e52-11e4-83aa-0002a5d5c51b">
|
||||||
|
<libsw library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01ab"/>
|
||||||
|
<libhw library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01b0"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effect name="voice_helper" library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01ac"/>
|
||||||
|
<effect name="ring_helper" library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01ad"/>
|
||||||
|
<effect name="notification_helper" library="mot_speaker_helper" uuid="bce61ec2-eca4-445c-9dcb-91cc7cce01ae"/>
|
||||||
|
<effect name="aec" library="audio_pre_processing" uuid="0f8d0d2a-59e5-45fe-b6e4-248c8a799109"/>
|
||||||
|
<effect name="ns" library="audio_pre_processing" uuid="1d97bb0b-9e2f-4403-9ae3-58c2554306f8"/>
|
||||||
|
<effect name="dap" library="dap" uuid="9d4921da-8225-4f29-aefa-39537a04bcaa"/>
|
||||||
|
<effect name="dlb_music_listener" library="dvl" uuid="40f66c8b-5aa5-4345-8919-53ec431aaa98"/>
|
||||||
|
<effect name="dlb_ring_listener" library="dvl" uuid="21d14087-558a-4f21-94a9-5002dce64bce"/>
|
||||||
|
<effect name="dlb_alarm_listener" library="dvl" uuid="6aff229c-30c6-4cc8-9957-dbfe5c1bd7f6"/>
|
||||||
|
<effect name="dlb_system_listener" library="dvl" uuid="874db4d8-051d-4b7b-bd95-a3bebc837e9e"/>
|
||||||
|
<effect name="dlb_notification_listener" library="dvl" uuid="1f0091e3-6ad8-40fe-9b09-5948f9a26e7e"/>
|
||||||
|
<effect name="gamedap" library="gamedap" uuid="3783c334-d3a0-4d13-874f-0032e5fb80e2"/>
|
||||||
|
<effect name="vqe" library="vqe" uuid="64a0f614-7fa4-48b8-b081-d59dc954616f"/>
|
||||||
|
</effects>
|
||||||
|
<postprocess>
|
||||||
|
<stream type="music">
|
||||||
|
<apply effect="music_helper"/>
|
||||||
|
<apply effect="dlb_music_listener"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="ring">
|
||||||
|
<apply effect="ring_helper"/>
|
||||||
|
<apply effect="dlb_ring_listener"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="alarm">
|
||||||
|
<apply effect="ring_helper"/>
|
||||||
|
<apply effect="dlb_alarm_listener"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="voice_call">
|
||||||
|
<apply effect="voice_helper"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="system">
|
||||||
|
<apply effect="dlb_system_listener"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="notification">
|
||||||
|
<apply effect="notification_helper"/>
|
||||||
|
<apply effect="dlb_notification_listener"/>
|
||||||
|
</stream>
|
||||||
|
</postprocess>
|
||||||
|
<preprocess>
|
||||||
|
<stream type="voice_communication">
|
||||||
|
<apply effect="aec"/>
|
||||||
|
<apply effect="ns"/>
|
||||||
|
</stream>
|
||||||
|
</preprocess>
|
||||||
|
</audio_effects_conf>
|
29
audio/audio_ext_spkr.conf
Normal file
29
audio/audio_ext_spkr.conf
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
global_config {
|
||||||
|
# name Hawao
|
||||||
|
sonification_pad 20
|
||||||
|
sonification_prox_timeout_sec 5
|
||||||
|
}
|
||||||
|
|
||||||
|
ring {
|
||||||
|
#dB to attenuate playback to meet safety level at each volume step
|
||||||
|
#16 steps total, 15...0. In case of truncated list, last attenuation
|
||||||
|
#given will be applied to all lower volume steps
|
||||||
|
attenuation 32,31,30,29,27,25,23,21,19,17,15,12,9,6,3,0
|
||||||
|
knee_step 16
|
||||||
|
}
|
||||||
|
|
||||||
|
voice {
|
||||||
|
#dB to attenuate playback to meet safety level at each volume step
|
||||||
|
#16 steps total, 15...0. In case of truncated list, last attenuation
|
||||||
|
#given will be applied to all lower volume steps
|
||||||
|
attenuation 32,31,30,29,27,25,23,21,19,17,15,12,9,6,3,0
|
||||||
|
knee_step 16
|
||||||
|
}
|
||||||
|
|
||||||
|
media {
|
||||||
|
#dB to attenuate playback to meet safety level at each volume step
|
||||||
|
#16 steps total, 15...0. In case of truncated list, last attenuation
|
||||||
|
#given will be applied to all lower volume steps
|
||||||
|
attenuation 32,31,30,29,27,25,23,21,19,17,15,12,9,6,3,0
|
||||||
|
knee_step 16
|
||||||
|
}
|
261
audio/audio_policy_configuration.xml
Normal file
261
audio/audio_policy_configuration.xml
Normal file
|
@ -0,0 +1,261 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<audioPolicyConfiguration version="1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
<!-- version section contains a “version” tag in the form “major.minor” e.g version=”1.0” -->
|
||||||
|
|
||||||
|
<!-- Global configuration Decalaration -->
|
||||||
|
<globalConfiguration speaker_drc_enabled="false"/>
|
||||||
|
|
||||||
|
<!-- Modules section:
|
||||||
|
There is one section per audio HW module present on the platform.
|
||||||
|
Each module section will contains two mandatory tags for audio HAL “halVersion” and “name”.
|
||||||
|
The module names are the same as in current .conf file:
|
||||||
|
“primary”, “A2DP”, “remote_submix”, “USB”
|
||||||
|
Each module will contain the following sections:
|
||||||
|
“devicePorts”: a list of device descriptors for all input and output devices accessible via this
|
||||||
|
module.
|
||||||
|
This contains both permanently attached devices and removable devices.
|
||||||
|
“mixPorts”: listing all output and input streams exposed by the audio HAL
|
||||||
|
“routes”: list of possible connections between input and output devices or between stream and
|
||||||
|
devices.
|
||||||
|
"route": is defined by an attribute:
|
||||||
|
-"type": <mux|mix> means all sources are mutual exclusive (mux) or can be mixed (mix)
|
||||||
|
-"sink": the sink involved in this route
|
||||||
|
-"sources": all the sources than can be connected to the sink via vis route
|
||||||
|
“attachedDevices”: permanently attached devices.
|
||||||
|
The attachedDevices section is a list of devices names. The names correspond to device names
|
||||||
|
defined in <devicePorts> section.
|
||||||
|
“defaultOutputDevice”: device to be used by default when no policy rule applies
|
||||||
|
-->
|
||||||
|
<modules>
|
||||||
|
<!-- Primary Audio HAL -->
|
||||||
|
<module name="primary" halVersion="2.0">
|
||||||
|
<attachedDevices>
|
||||||
|
<item>Earpiece</item>
|
||||||
|
<item>Speaker</item>
|
||||||
|
<item>Telephony Tx</item>
|
||||||
|
<item>Built-In Mic</item>
|
||||||
|
<item>Built-In Back Mic</item>
|
||||||
|
<item>Telephony Rx</item>
|
||||||
|
<item>FM tuner</item>
|
||||||
|
</attachedDevices>
|
||||||
|
<defaultOutputDevice>Speaker</defaultOutputDevice>
|
||||||
|
<mixPorts>
|
||||||
|
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="deep_buffer" role="source"
|
||||||
|
flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="hifi_playback" role="source" />
|
||||||
|
<mixPort name="compressed_offload" role="source"
|
||||||
|
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_MP3"
|
||||||
|
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
<profile name="" format="AUDIO_FORMAT_AAC_LC"
|
||||||
|
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
<profile name="" format="AUDIO_FORMAT_AAC_HE_V1"
|
||||||
|
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
|
||||||
|
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
<profile name="" format="AUDIO_FORMAT_FLAC"
|
||||||
|
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="voice_tx" role="source">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="primary input" 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_IN_AMBISONIC,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_8_24_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_IN_AMBISONIC,AUDIO_CHANNEL_INDEX_MASK_3,AUDIO_CHANNEL_INDEX_MASK_4"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="scc input" role="sink" flags="AUDIO_INPUT_FLAG_HW_HOTWORD">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="16000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="fm input" 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"/>
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_8_24_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"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="incall_music_uplink" role="source"
|
||||||
|
flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="8000,16000,48000"
|
||||||
|
channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
|
</mixPort>
|
||||||
|
<mixPort name="hifi_input" role="sink" />
|
||||||
|
<mixPort name="voip_rx" role="source"
|
||||||
|
flags="AUDIO_OUTPUT_FLAG_VOIP_RX">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||||
|
</mixPort>
|
||||||
|
<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>
|
||||||
|
</mixPorts>
|
||||||
|
<devicePorts>
|
||||||
|
<!-- Output devices declaration, i.e. Sink DEVICE PORT -->
|
||||||
|
<devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Line Out" type="AUDIO_DEVICE_OUT_LINE" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Dock Headset" type="AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"
|
||||||
|
encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink"
|
||||||
|
encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink"
|
||||||
|
encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_CELT AUDIO_FORMAT_APTX_ADAPTIVE">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="HDMI Out" type="AUDIO_DEVICE_OUT_HDMI" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
|
||||||
|
</devicePort>
|
||||||
|
|
||||||
|
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source">
|
||||||
|
</devicePort>
|
||||||
|
<devicePort tagName="FM tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
|
||||||
|
</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 -->
|
||||||
|
<routes>
|
||||||
|
<route type="mix" sink="Earpiece"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="Speaker"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="Wired Headset"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="Wired Headphones"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="Line Out"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="Dock Headset"
|
||||||
|
sources="primary output,deep_buffer,voip_rx"/>
|
||||||
|
<route type="mix" sink="BT SCO"
|
||||||
|
sources="primary output,deep_buffer,voip_rx"/>
|
||||||
|
<route type="mix" sink="BT SCO Headset"
|
||||||
|
sources="primary output,deep_buffer,voip_rx"/>
|
||||||
|
<route type="mix" sink="BT SCO Car Kit"
|
||||||
|
sources="primary output,deep_buffer,voip_rx"/>
|
||||||
|
<route type="mix" sink="BT A2DP Out"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="BT A2DP Headphones"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="BT A2DP Speaker"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="HDMI Out"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
|
||||||
|
<route type="mix" sink="USB Device Out"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,hifi_playback,voip_rx"/>
|
||||||
|
<route type="mix" sink="USB Headset Out"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload,hifi_playback,voip_rx"/>
|
||||||
|
<route type="mix" sink="Telephony Tx"
|
||||||
|
sources="voice_tx,incall_music_uplink"/>
|
||||||
|
<route type="mix" sink="voice_rx"
|
||||||
|
sources="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,Wired Headset Mic"/>
|
||||||
|
<route type="mix" sink="Proxy"
|
||||||
|
sources="primary output,deep_buffer,compressed_offload"/>
|
||||||
|
<route type="mix" sink="primary input"
|
||||||
|
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,USB Device In,USB Headset In"/>
|
||||||
|
<route type="mix" sink="scc input"
|
||||||
|
sources="Built-In Mic,Wired Headset Mic"/>
|
||||||
|
<route type="mix" sink="fm input" sources="FM tuner"/>
|
||||||
|
<route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
|
||||||
|
</routes>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
<!-- A2dp Audio HAL -->
|
||||||
|
<module name="a2dp" halVersion="2.0">
|
||||||
|
<mixPorts>
|
||||||
|
<mixPort name="a2dp input" role="sink">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
|
||||||
|
</mixPort>
|
||||||
|
</mixPorts>
|
||||||
|
|
||||||
|
<devicePorts>
|
||||||
|
<devicePort tagName="BT A2DP In" type="AUDIO_DEVICE_IN_BLUETOOTH_A2DP" role="source">
|
||||||
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
|
samplingRates="44100,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
|
||||||
|
</devicePort>
|
||||||
|
</devicePorts>
|
||||||
|
|
||||||
|
<routes>
|
||||||
|
<route type="mix" sink="a2dp input"
|
||||||
|
sources="BT A2DP In"/>
|
||||||
|
</routes>
|
||||||
|
</module>
|
||||||
|
|
||||||
|
<!-- Usb Audio HAL -->
|
||||||
|
<xi:include href="usb_audio_policy_configuration.xml"/>
|
||||||
|
|
||||||
|
<!-- Remote Submix Audio HAL -->
|
||||||
|
<xi:include href="r_submix_audio_policy_configuration.xml"/>
|
||||||
|
|
||||||
|
</modules>
|
||||||
|
<!-- End of Modules section -->
|
||||||
|
|
||||||
|
<!-- Volume section -->
|
||||||
|
|
||||||
|
<xi:include href="audio_policy_volumes.xml"/>
|
||||||
|
<xi:include href="default_volume_tables.xml"/>
|
||||||
|
|
||||||
|
<!-- End of Volume section -->
|
||||||
|
</audioPolicyConfiguration>
|
135
audio/audio_policy_volumes.xml
Normal file
135
audio/audio_policy_volumes.xml
Normal file
|
@ -0,0 +1,135 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- Volume section defines a volume curve for a given use case and device category.
|
||||||
|
It contains a list of points of this curve expressing the attenuation in Millibels for a given
|
||||||
|
volume index from 0 to 100.
|
||||||
|
<volume stream=”AUDIO_STREAM_MUSIC” deviceCategory=””>
|
||||||
|
<point>0,-9600</point>
|
||||||
|
<point>100,0</point>
|
||||||
|
</volume>
|
||||||
|
-->
|
||||||
|
<volumes>
|
||||||
|
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||||
|
<point>0,-3800</point>
|
||||||
|
<point>33,-1700</point>
|
||||||
|
<point>66,-700</point>
|
||||||
|
<point>100,0</point>
|
||||||
|
</volume>
|
||||||
|
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
|
||||||
|
<point>0,-3000</point>
|
||||||
|
<point>33,-2300</point>
|
||||||
|
<point>66,-700</point>
|
||||||
|
<point>100,0</point>
|
||||||
|
</volume>
|
||||||
|
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">
|
||||||
|
<point>1,-3000</point>
|
||||||
|
<point>33,-2600</point>
|
||||||
|
<point>66,-2200</point>
|
||||||
|
<point>100,-1800</point>
|
||||||
|
</volume>
|
||||||
|
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="SONIFICATION_CATEGORY_SPEAKER_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET">
|
||||||
|
<point>1,-5600</point>
|
||||||
|
<point>33,-3400</point>
|
||||||
|
<point>66,-1600</point>
|
||||||
|
<point>100,0</point>
|
||||||
|
</volume>
|
||||||
|
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="SONIFICATION_CATEGORY_SPEAKER_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="NOTIFICATION_CATEGORY_SPEAKER_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_VOICE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="SONIFICATION_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
|
||||||
|
<point>1,-3000</point>
|
||||||
|
<point>33,-2600</point>
|
||||||
|
<point>66,-2200</point>
|
||||||
|
<point>100,-1800</point>
|
||||||
|
</volume>
|
||||||
|
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="SILENT_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="SILENT_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="SILENT_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||||
|
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||||
|
</volumes>
|
284
audio/sound_trigger_mixer_paths.xml
Normal file
284
audio/sound_trigger_mixer_paths.xml
Normal file
|
@ -0,0 +1,284 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!--- Copyright (c) 2014-2019, 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 VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM2 Mixer VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM3 Mixer VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM4 Mixer VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM5 Mixer VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM6 Mixer VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM7 Mixer VA_CDC_DMA_TX_0" value="0" />
|
||||||
|
<ctl name="LSM8 Mixer VA_CDC_DMA_TX_0" 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="VA_CDC_DMA_TX_0 Channels" value="One" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC0" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC1" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC2" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC3" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC4" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC5" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC6" value="0" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC7" value="0" />
|
||||||
|
<ctl name="VA DEC0 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC1 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC2 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC3 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC4 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC5 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC6 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DEC7 MUX" value="MSM_DMIC" />
|
||||||
|
<ctl name="VA DMIC MUX0" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX1" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX2" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX3" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX4" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX5" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX6" value="ZERO" />
|
||||||
|
<ctl name="VA DMIC MUX7" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX0" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX1" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX2" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX3" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX4" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX5" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX6" value="ZERO" />
|
||||||
|
<ctl name="VA SMIC MUX7" value="ZERO" />
|
||||||
|
<ctl name="AUDIO_REF_EC_UL1 MUX" value="None"/>
|
||||||
|
<ctl name="EC Reference Channels" value="Zero"/>
|
||||||
|
<ctl name="EC Reference Bit Format" value="0"/>
|
||||||
|
<ctl name="EC Reference SampleRate" value="0"/>
|
||||||
|
<ctl name="ADC2_MIXER Switch" value="0" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
<ctl name="ADC2 Volume" value="12" />
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-1">
|
||||||
|
<ctl name="LSM1 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-2">
|
||||||
|
<ctl name="LSM2 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-3">
|
||||||
|
<ctl name="LSM3 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-4">
|
||||||
|
<ctl name="LSM4 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-5">
|
||||||
|
<ctl name="LSM5 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-6">
|
||||||
|
<ctl name="LSM6 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-7">
|
||||||
|
<ctl name="LSM7 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-8">
|
||||||
|
<ctl name="LSM8 Mixer VA_CDC_DMA_TX_0" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-1 preproc">
|
||||||
|
<path name="listen-voice-wakeup-1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-2 preproc">
|
||||||
|
<path name="listen-voice-wakeup-2" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-3 preproc">
|
||||||
|
<path name="listen-voice-wakeup-3" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-4 preproc">
|
||||||
|
<path name="listen-voice-wakeup-4" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-5 preproc">
|
||||||
|
<path name="listen-voice-wakeup-5" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-6 preproc">
|
||||||
|
<path name="listen-voice-wakeup-6" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-7 preproc">
|
||||||
|
<path name="listen-voice-wakeup-7" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-8 preproc">
|
||||||
|
<path name="listen-voice-wakeup-8" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-1 port">
|
||||||
|
<ctl name="LSM1 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-2 port">
|
||||||
|
<ctl name="LSM2 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-3 port">
|
||||||
|
<ctl name="LSM3 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-4 port">
|
||||||
|
<ctl name="LSM4 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-5 port">
|
||||||
|
<ctl name="LSM5 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-6 port">
|
||||||
|
<ctl name="LSM6 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-7 port">
|
||||||
|
<ctl name="LSM7 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-8 port">
|
||||||
|
<ctl name="LSM8 Port" value="VA_CDC_DMA_TX_0" />
|
||||||
|
<ctl name="LPI Enable" value="1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-1 preproc port">
|
||||||
|
<ctl name="LSM1 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-2 preproc port">
|
||||||
|
<ctl name="LSM2 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-3 preproc port">
|
||||||
|
<ctl name="LSM3 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-4 preproc port">
|
||||||
|
<ctl name="LSM4 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-5 preproc port">
|
||||||
|
<ctl name="LSM5 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-6 preproc port">
|
||||||
|
<ctl name="LSM6 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-7 preproc port">
|
||||||
|
<ctl name="LSM7 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-voice-wakeup-8 preproc port">
|
||||||
|
<ctl name="LSM8 Port" value="ADM_LSM_TX" />
|
||||||
|
<ctl name="LPI Enable" value="0" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="amic1">
|
||||||
|
<ctl name="VA_CDC_DMA_TX_0 Channels" value="One" />
|
||||||
|
<ctl name="VA_AIF1_CAP Mixer DEC0" value="1" />
|
||||||
|
<ctl name="VA DEC0 MUX" value="SWR_MIC" />
|
||||||
|
<ctl name="VA SMIC MUX0" value="SWR_MIC4" />
|
||||||
|
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||||
|
<ctl name="ADC2 MUX" value="INP3" />
|
||||||
|
<ctl name="ADC2 Volume" value="15" />
|
||||||
|
<ctl name="VA_DEC0 Volume" value="90" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-ape-handset-mic">
|
||||||
|
<path name="amic1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-ape-handset-mic-preproc">
|
||||||
|
<path name="amic1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-ape-handset-dmic">
|
||||||
|
<path name="amic1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-ape-handset-tmic">
|
||||||
|
<path name="amic1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-ape-handset-qmic">
|
||||||
|
<path name="amic1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="listen-ape-headset-mic">
|
||||||
|
<path name="amic1" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="echo-reference">
|
||||||
|
<ctl name="AUDIO_REF_EC_UL1 MUX" value="PRI_MI2S_TX" />
|
||||||
|
<ctl name="EC Reference Channels" value="One"/>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="echo-reference handset">
|
||||||
|
<ctl name="AUDIO_REF_EC_UL1 MUX" value="RX_CDC_DMA_RX_0" />
|
||||||
|
<ctl name="EC Reference Channels" value="One"/>
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<path name="echo-reference a2dp">
|
||||||
|
<ctl name="AUDIO_REF_EC_UL1 MUX" value="SLIM_7_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>
|
250
audio/sound_trigger_platform_info.xml
Normal file
250
audio/sound_trigger_platform_info.xml
Normal file
|
@ -0,0 +1,250 @@
|
||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<!--- Copyright (c) 2013-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. -->
|
||||||
|
<sound_trigger_platform_info>
|
||||||
|
<param version="0x0106" /> <!-- this must be the first param -->
|
||||||
|
<!--- Version History: -->
|
||||||
|
<!--- 0x0101: Legacy version. -->
|
||||||
|
<!--- 0x0102: Includes acdb_ids param with the gcs_usecase tag. This matches -->
|
||||||
|
<!--- the gcs_usecase with the acdb device that uses it. -->
|
||||||
|
<!--- 0x0103: app_type and in_channels added to <lsm usecase> and out_channels -->
|
||||||
|
<!--- added to <adm_config> -->
|
||||||
|
<!--- 0x0104: instance id support for both WDSP<CPE> and ADSP lsm usecases -->
|
||||||
|
<!--- 0x0105: Select <lsm_usecase> based on capture device -->
|
||||||
|
<!--- 0x0106: Add module_params tag to support multiple module and param ids -->
|
||||||
|
<!--- per <lsm_usecase> -->
|
||||||
|
|
||||||
|
<common_config>
|
||||||
|
<param implementer_version="0x0102" />
|
||||||
|
<param max_ape_sessions="8" />
|
||||||
|
<param enable_failure_detection="false" />
|
||||||
|
<param support_device_switch="false" />
|
||||||
|
<param transit_to_non_lpi_on_battery_charging="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="VA_CDC_DMA_TX_0" />
|
||||||
|
<!-- Param used to match and obtain device backend index -->
|
||||||
|
<param backend_dai_name="VA_CDC_DMA_TX_0" />
|
||||||
|
<!-- Param used to indicate if SVA has dedicated SLIM ports -->
|
||||||
|
<param dedicated_sva_path="false" />
|
||||||
|
<param dedicated_headset_path="false" />
|
||||||
|
<param platform_lpi_enable="true" />
|
||||||
|
<param enable_debug_dumps="false" />
|
||||||
|
<param support_non_lpi_without_ec="false" />
|
||||||
|
<param concurrent_capture="false" />
|
||||||
|
<param concurrent_voip_call="false" />
|
||||||
|
<param concurrent_voice_call="false" />
|
||||||
|
</common_config>
|
||||||
|
<acdb_ids>
|
||||||
|
<param DEVICE_HANDSET_MIC_APE="100" />
|
||||||
|
<param DEVICE_HANDSET_MIC_PP_APE="135" />
|
||||||
|
<param DEVICE_HANDSET_DMIC_APE="149" />
|
||||||
|
<param DEVICE_HANDSET_DMIC_LPI_APE="179" />
|
||||||
|
<param DEVICE_HANDSET_TMIC_APE="157" />
|
||||||
|
<param DEVICE_HANDSET_TMIC_LPI_APE="180" />
|
||||||
|
<param DEVICE_HANDSET_QMIC_APE="137" />
|
||||||
|
<param DEVICE_HANDSET_QMIC_LPI_APE="181" />
|
||||||
|
<param DEVICE_HEADSET_MIC_APE="141" />
|
||||||
|
<param DEVICE_HEADSET_MIC_APE_LPI="182" />
|
||||||
|
</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. -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Google Hotword -->
|
||||||
|
<sound_model_config>
|
||||||
|
<param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15" />
|
||||||
|
<param execution_type="ADSP" />
|
||||||
|
<param max_ape_phrases="1" />
|
||||||
|
<param max_ape_users="1" />
|
||||||
|
<!-- Profile specific data which the algorithm can support -->
|
||||||
|
<param sample_rate="16000" />
|
||||||
|
<param bit_width="16" />
|
||||||
|
<param out_channels="1"/> <!-- Module output channels -->
|
||||||
|
<param get_module_version="true" />
|
||||||
|
<lsm_usecase>
|
||||||
|
<param capture_device="HANDSET" />
|
||||||
|
<!-- 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="FFECNS" />
|
||||||
|
<!-- fluence_type: "FLUENCE_MIC", "FLUENCE_DMIC", "FLUENCE_TMIC" -->
|
||||||
|
<!-- "FLUENCE_QMIC". Param value is valid when adm_cfg_profile -->
|
||||||
|
<!-- is FFECNS -->
|
||||||
|
<param fluence_type="FLUENCE_MIC" />
|
||||||
|
<param execution_mode="ADSP" />
|
||||||
|
<!-- lpi_mode: "NON_LPI_BARGE_IN", "NON_LPI", "LPI" -->
|
||||||
|
<!-- NON_LPI_BARGE_IN: Default non-LPI mode type. lsm_usecase -->
|
||||||
|
<!-- must be present with this mode type to handle barge-in. -->
|
||||||
|
<!-- NON_LPI: If another lsm_usecase is present with this mode -->
|
||||||
|
<!-- type, it will be used for non-LPI non-barge-in usecases. -->
|
||||||
|
<!-- If not present, NON_LPI_BARGE_IN mode type will be used. -->
|
||||||
|
<!-- LPI: This mode type will be used for LPI usecases. -->
|
||||||
|
<param lpi_mode="NON_LPI_BARGE_IN" />
|
||||||
|
<param app_type="3" /> <!-- app type used in ACDB -->
|
||||||
|
<param in_channels="1"/> <!-- Module input channels -->
|
||||||
|
<module_params>
|
||||||
|
<param load_sound_model_ids="0x18000001, 0x0, 0x00012C14" />
|
||||||
|
<param unload_sound_model_ids="0x18000001, 0x0, 0x00012C15" />
|
||||||
|
<param confidence_levels_ids="0x18000001, 0x0, 0x00012C07" />
|
||||||
|
<param operation_mode_ids="0x18000001, 0x0, 0x00012C02" />
|
||||||
|
<param polling_enable_ids="0x18000001, 0x0, 0x00012C1B" />
|
||||||
|
<param custom_config_ids="0x18000001, 0x0, 0x00012C20" />
|
||||||
|
<param version_ids="0x18000001, 0x0, 0x18000101" />
|
||||||
|
</module_params>
|
||||||
|
</lsm_usecase>
|
||||||
|
<lsm_usecase>
|
||||||
|
<param capture_device="HANDSET" />
|
||||||
|
<!-- 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="DEFAULT" />
|
||||||
|
<!-- fluence_type: "FLUENCE_MIC", "FLUENCE_DMIC", "FLUENCE_TMIC" -->
|
||||||
|
<!-- "FLUENCE_QMIC". Param value is valid when adm_cfg_profile -->
|
||||||
|
<!-- is FFECNS -->
|
||||||
|
<param fluence_type="NONE" />
|
||||||
|
<param execution_mode="ADSP" />
|
||||||
|
<!-- lpi_mode: "NON_LPI_BARGE_IN", "NON_LPI", "LPI" -->
|
||||||
|
<!-- NON_LPI_BARGE_IN: Default non-LPI mode type. lsm_usecase -->
|
||||||
|
<!-- must be present with this mode type to handle barge-in. -->
|
||||||
|
<!-- NON_LPI: If another lsm_usecase is present with this mode -->
|
||||||
|
<!-- type, it will be used for non-LPI non-barge-in usecases. -->
|
||||||
|
<!-- If not present, NON_LPI_BARGE_IN mode type will be used. -->
|
||||||
|
<!-- LPI: This mode type will be used for LPI usecases. -->
|
||||||
|
<param lpi_mode="LPI" />
|
||||||
|
<param app_type="3" /> <!-- app type used in ACDB -->
|
||||||
|
<param in_channels="1"/> <!-- Module input channels -->
|
||||||
|
<module_params>
|
||||||
|
<param load_sound_model_ids="0x18000001, 0x0, 0x00012C14" />
|
||||||
|
<param unload_sound_model_ids="0x18000001, 0x0, 0x00012C15" />
|
||||||
|
<param confidence_levels_ids="0x18000001, 0x0, 0x00012C07" />
|
||||||
|
<param operation_mode_ids="0x18000001, 0x0, 0x00012C02" />
|
||||||
|
<param polling_enable_ids="0x18000001, 0x0, 0x00012C1B" />
|
||||||
|
<param custom_config_ids="0x18000001, 0x0, 0x00012C20" />
|
||||||
|
<param version_ids="0x18000001, 0x0, 0x18000101" />
|
||||||
|
</module_params>
|
||||||
|
</lsm_usecase>
|
||||||
|
<lsm_usecase>
|
||||||
|
<param capture_device="HEADSET" />
|
||||||
|
<param adm_cfg_profile="DEFAULT" />
|
||||||
|
<param fluence_type="NONE" />
|
||||||
|
<param execution_mode="ADSP" />
|
||||||
|
<param app_type="3" /> <!-- app type used in ACDB -->
|
||||||
|
<param in_channels="1"/> <!-- Module input channels -->
|
||||||
|
<module_params>
|
||||||
|
<param load_sound_model_ids="0x18000001, 0x0, 0x00012C14" />
|
||||||
|
<param unload_sound_model_ids="0x18000001, 0x0, 0x00012C15" />
|
||||||
|
<param confidence_levels_ids="0x18000001, 0x0, 0x00012C07" />
|
||||||
|
<param operation_mode_ids="0x18000001, 0x0, 0x00012C02" />
|
||||||
|
<param polling_enable_ids="0x18000001, 0x0, 0x00012C1B" />
|
||||||
|
<param custom_config_ids="0x18000001, 0x0, 0x00012C20" />
|
||||||
|
<param version_ids="0x18000001, 0x0, 0x18000101" />
|
||||||
|
</module_params>
|
||||||
|
</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_raw, FTRT, 2000" />
|
||||||
|
<param client_capture_read_delay="2000" />
|
||||||
|
</sound_model_config>
|
||||||
|
|
||||||
|
<!-- Google Music Detection -->
|
||||||
|
<sound_model_config>
|
||||||
|
<param vendor_uuid="9f6ad62a-1f0b-11e7-87c5-40a8f03d3f15" />
|
||||||
|
<param execution_type="ADSP" />
|
||||||
|
<param max_ape_phrases="1" />
|
||||||
|
<param max_ape_users="1" />
|
||||||
|
<!-- Profile specific data which the algorithm can support -->
|
||||||
|
<param sample_rate="16000" />
|
||||||
|
<param bit_width="16" />
|
||||||
|
<param out_channels="1"/> <!-- Module output channels -->
|
||||||
|
<lsm_usecase>
|
||||||
|
<param capture_device="HANDSET" />
|
||||||
|
<!-- 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="DEFAULT" />
|
||||||
|
<!-- fluence_type: "FLUENCE_MIC", "FLUENCE_DMIC", "FLUENCE_TMIC" -->
|
||||||
|
<!-- "FLUENCE_QMIC". Param value is valid when adm_cfg_profile -->
|
||||||
|
<!-- is FFECNS -->
|
||||||
|
<param fluence_type="NONE" />
|
||||||
|
<param execution_mode="ADSP" />
|
||||||
|
<param app_type="3" /> <!-- app type used in ACDB -->
|
||||||
|
<param in_channels="1"/> <!-- Module input channels -->
|
||||||
|
<module_params>
|
||||||
|
<param load_sound_model_ids="0x18000001, 0x0, 0x00012C14" />
|
||||||
|
<param unload_sound_model_ids="0x18000001, 0x0, 0x00012C15" />
|
||||||
|
<param confidence_levels_ids="0x18000001, 0x0, 0x00012C07" />
|
||||||
|
<param operation_mode_ids="0x18000001, 0x0, 0x00012C02" />
|
||||||
|
<param polling_enable_ids="0x18000001, 0x0, 0x00012C1B" />
|
||||||
|
<param custom_config_ids="0x18000001, 0x0, 0x00012C20" />
|
||||||
|
</module_params>
|
||||||
|
</lsm_usecase>
|
||||||
|
<lsm_usecase>
|
||||||
|
<param capture_device="HEADSET" />
|
||||||
|
<param adm_cfg_profile="DEFAULT" />
|
||||||
|
<param fluence_type="NONE" />
|
||||||
|
<param execution_mode="ADSP" />
|
||||||
|
<param app_type="3" /> <!-- app type used in ACDB -->
|
||||||
|
<param in_channels="1"/> <!-- Module input channels -->
|
||||||
|
<module_params>
|
||||||
|
<param load_sound_model_ids="0x18000001, 0x0, 0x00012C14" />
|
||||||
|
<param unload_sound_model_ids="0x18000001, 0x0, 0x00012C15" />
|
||||||
|
<param confidence_levels_ids="0x18000001, 0x0, 0x00012C07" />
|
||||||
|
<param operation_mode_ids="0x18000001, 0x0, 0x00012C02" />
|
||||||
|
<param polling_enable_ids="0x18000001, 0x0, 0x00012C1B" />
|
||||||
|
<param custom_config_ids="0x18000001, 0x0, 0x00012C20" />
|
||||||
|
</module_params>
|
||||||
|
</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_raw, FTRT, 5000" />
|
||||||
|
<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="FFECNS" />
|
||||||
|
<param app_type="69947" />
|
||||||
|
<param sample_rate="16000" />
|
||||||
|
<param bit_width="16" />
|
||||||
|
<param out_channels="1"/>
|
||||||
|
</adm_config>
|
||||||
|
|
||||||
|
<adm_config>
|
||||||
|
<param adm_cfg_profile="DEFAULT" />
|
||||||
|
<param app_type="69938" />
|
||||||
|
<param sample_rate="16000" />
|
||||||
|
<param bit_width="16" />
|
||||||
|
<param out_channels="1"/>
|
||||||
|
</adm_config>
|
||||||
|
</sound_trigger_platform_info>
|
14
bengal.mk
14
bengal.mk
|
@ -45,6 +45,20 @@ PRODUCT_PACKAGES += \
|
||||||
PRODUCT_AAPT_CONFIG := normal
|
PRODUCT_AAPT_CONFIG := normal
|
||||||
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||||
|
|
||||||
|
# Audio - Configs
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
||||||
|
$(LOCAL_PATH)/audio/audio_ext_spkr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_ext_spkr.conf \
|
||||||
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
||||||
|
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
||||||
|
$(LOCAL_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
|
||||||
|
$(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
|
||||||
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
||||||
|
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
|
||||||
|
|
||||||
# Boot animation
|
# Boot animation
|
||||||
TARGET_SCREEN_HEIGHT := 2400
|
TARGET_SCREEN_HEIGHT := 2400
|
||||||
TARGET_SCREEN_WIDTH := 1080
|
TARGET_SCREEN_WIDTH := 1080
|
||||||
|
|
Loading…
Reference in a new issue