davinci: audio: Import configs
Change-Id: I401921a868d481002a5fff3b18161d5bcff81682
This commit is contained in:
parent
a6b3b1beb9
commit
ea456f56d5
114
configs/audio/audio_configs.xml
Normal file
114
configs/audio/audio_configs.xml
Normal file
@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Copyright (c) 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.
|
||||
-->
|
||||
<configs>
|
||||
<!-- APM Configs -->
|
||||
<property name="audio.deep_buffer.media" value="true"/>
|
||||
<property name="audio.offload.disable" value="false"/>
|
||||
<property name="audio.offload.min.duration.secs" value="40"/>
|
||||
<property name="audio.offload.video" value="true"/>
|
||||
<property name="persist.vendor.audio.sva.conc.enabled" value="false"/>
|
||||
<property name="persist.vendor.audio.va_concurrency_enabled" value="true"/>
|
||||
<property name="vendor.audio.av.streaming.offload.enable" value="false"/>
|
||||
<property name="vendor.audio.offload.track.enable" value="false"/>
|
||||
<property name="vendor.audio.offload.multiple.enabled" value="false"/>
|
||||
<property name="vendor.audio.rec.playback.conc.disabled" value="false"/>
|
||||
<property name="vendor.voice.conc.fallbackpath" value=""/>
|
||||
<property name="vendor.voice.dsd.playback.conc.disabled" value="true"/>
|
||||
<property name="vendor.voice.path.for.pcm.voip" value="false"/>
|
||||
<property name="vendor.voice.playback.conc.disabled" value="false"/>
|
||||
<property name="vendor.voice.record.conc.disabled" value="false"/>
|
||||
<property name="vendor.voice.voip.conc.disabled" value="false"/>
|
||||
<flag name="audio_extn_formats_enabled" value="true" />
|
||||
<flag name="audio_extn_hdmi_spk_enabled" value="true" />
|
||||
<flag name="use_xml_audio_policy_conf" value="true" />
|
||||
<flag name="voice_concurrency" value="false" />
|
||||
|
||||
<!-- AV Configs -->
|
||||
<property name="vendor.audio.use.sw.alac.decoder" value="true"/>
|
||||
<property name="vendor.audio.use.sw.ape.decoder" value="true"/>
|
||||
<property name="vendor.audio.use.sw.mpegh.decoder" value="false"/>
|
||||
<property name="vendor.audio.flac.sw.decoder.24bit" value="true"/>
|
||||
<property name="vendor.audio.hw.aac.encoder" value="true"/>
|
||||
<flag name="aac_adts_offload_enabled" value="true" />
|
||||
<flag name="alac_offload_enabled" value="true" />
|
||||
<flag name="ape_offload_enabled" value="true" />
|
||||
<flag name="flac_offload_enabled" value="true" />
|
||||
<flag name="pcm_offload_enabled_16" value="true" />
|
||||
<flag name="pcm_offload_enabled_24" value="true" />
|
||||
<flag name="qti_flac_decoder" value="true" />
|
||||
<flag name="vorbis_offload_enabled" value="true" />
|
||||
<flag name="wma_offload_enabled" value="true" />
|
||||
|
||||
<!-- AHAL Configs -->
|
||||
<flag name="a2dp_offload_enabled" value="true" />
|
||||
<flag name="anc_headset_enabled" value="true" />
|
||||
<flag name="audio_zoom_enabled" value="false" />
|
||||
<flag name="audiosphere_enabled" value="true" />
|
||||
<flag name="battery_listener_enabled" value="true" />
|
||||
<flag name="compress_capture_enabled" value="false" />
|
||||
<flag name="compress_in_enabled" value="false" />
|
||||
<flag name="compress_metadata_needed" value="true" />
|
||||
<flag name="concurrent_capture_enabled" value="false" />
|
||||
<flag name="custom_stereo_enabled" value="true" />
|
||||
<flag name="display_port_enabled" value="true" />
|
||||
<flag name="dsm_feedback_enabled" value="false" />
|
||||
<flag name="dynamic_ecns_enabled" value="false" />
|
||||
<flag name="ext_hw_plugin_enabled" value="true" />
|
||||
<flag name="ext_qdsp_enabled" value="false" />
|
||||
<flag name="ext_spkr_enabled" value="false" />
|
||||
<flag name="ext_spkr_tfa_enabled" value="false" />
|
||||
<flag name="fluence_enabled" value="true" />
|
||||
<flag name="hdmi_edid_enabled" value="true" />
|
||||
<flag name="hdmi_passthrough_enabled" value="true" />
|
||||
<flag name="hfp_enabled" value="true" />
|
||||
<flag name="hifi_audio_enabled" value="false" />
|
||||
<flag name="hwdep_cal_enabled" value="false" />
|
||||
<flag name="incall_music_enabled" value="true" />
|
||||
<flag name="keep_alive_enabled" value="true" />
|
||||
<flag name="kpi_optimize_enabled" value="true" />
|
||||
<flag name="maxx_audio_enabled" value="false" />
|
||||
<flag name="receiver_aided_stereo" value="true" />
|
||||
<flag name="snd_monitor_enabled" value="true" />
|
||||
<flag name="source_track_enabled" value="true" />
|
||||
<flag name="spkr_prot_enabled" value="true" />
|
||||
<flag name="ssrec_enabled" value="true" />
|
||||
<flag name="usb_offload_burst_mode" value="true" />
|
||||
<flag name="usb_offload_enabled" value="true" />
|
||||
<flag name="usb_offload_sidetone_vol_enabled" value="false" />
|
||||
<flag name="use_deep_buffer_as_primary_output" value="false" />
|
||||
<flag name="vbat_enabled" value="true" />
|
||||
<flag name="wsa_enabled" value="false" />
|
||||
|
||||
<!-- Common configs between APM and AHAL -->
|
||||
<flag name="afe_proxy_enabled" value="true" />
|
||||
<flag name="compress_voip_enabled" value="false" />
|
||||
<flag name="fm_power_opt" value="true" />
|
||||
<flag name="record_play_concurrency" value="false" />
|
||||
</configs>
|
74
configs/audio/audio_configs_stock.xml
Normal file
74
configs/audio/audio_configs_stock.xml
Normal file
@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Copyright (c) 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.
|
||||
-->
|
||||
<configs>
|
||||
<!-- AHAL Configs -->
|
||||
<flag name="a2dp_offload_enabled" value="true" />
|
||||
<flag name="afe_proxy_enabled" value="false" />
|
||||
<flag name="anc_headset_enabled" value="false" />
|
||||
<flag name="audio_zoom_enabled" value="true" />
|
||||
<flag name="audiosphere_enabled" value="false" />
|
||||
<flag name="battery_listener_enabled" value="false" />
|
||||
<flag name="compress_capture_enabled" value="false" />
|
||||
<flag name="compress_in_enabled" value="false" />
|
||||
<flag name="compress_metadata_needed" value="false" />
|
||||
<flag name="compress_voip_enabled" value="false" />
|
||||
<flag name="concurrent_capture_enabled" value="true" />
|
||||
<flag name="custom_stereo_enabled" value="false" />
|
||||
<flag name="display_port_enabled" value="false" />
|
||||
<flag name="dsm_feedback_enabled" value="false" />
|
||||
<flag name="dynamic_ecns_enabled" value="false" />
|
||||
<flag name="ext_hw_plugin_enabled" value="false" />
|
||||
<flag name="ext_qdsp_enabled" value="true" />
|
||||
<flag name="ext_spkr_enabled" value="true" />
|
||||
<flag name="ext_spkr_tfa_enabled" value="false" />
|
||||
<flag name="fluence_enabled" value="false" />
|
||||
<flag name="fm_power_opt" value="false" />
|
||||
<flag name="hdmi_edid_enabled" value="false" />
|
||||
<flag name="hdmi_passthrough_enabled" value="false" />
|
||||
<flag name="hfp_enabled" value="true" />
|
||||
<flag name="hifi_audio_enabled" value="false" />
|
||||
<flag name="hwdep_cal_enabled" value="true" />
|
||||
<flag name="incall_music_enabled" value="true" />
|
||||
<flag name="keep_alive_enabled" value="false" />
|
||||
<flag name="kpi_optimize_enabled" value="false" />
|
||||
<flag name="maxx_audio_enabled" value="true" />
|
||||
<flag name="receiver_aided_stereo" value="false" />
|
||||
<flag name="record_play_concurrency" value="false" />
|
||||
<flag name="snd_monitor_enabled" value="true" />
|
||||
<flag name="source_track_enabled" value="false" />
|
||||
<flag name="spkr_prot_enabled" value="true" />
|
||||
<flag name="ssrec_enabled" value="false" />
|
||||
<flag name="usb_offload_burst_mode" value="false" />
|
||||
<flag name="usb_offload_enabled" value="true" />
|
||||
<flag name="usb_offload_sidetone_vol_enabled" value="false" />
|
||||
<flag name="use_deep_buffer_as_primary_output" value="false" />
|
||||
<flag name="vbat_enabled" value="false" />
|
||||
<flag name="wsa_enabled" value="false" />
|
||||
</configs>
|
118
configs/audio/audio_effects.xml
Normal file
118
configs/audio/audio_effects.xml
Normal file
@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--- Copyright (c) 2018-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. -->
|
||||
|
||||
<audio_effects_conf version="2.0" xmlns="http://schemas.android.com/audio/audio_effects_conf/v2_0">
|
||||
<libraries>
|
||||
<library name="bundle" path="libbundlewrapper.so"/>
|
||||
<library name="reverb" path="libreverbwrapper.so"/>
|
||||
<library name="visualizer_sw" path="libvisualizer.so"/>
|
||||
<library name="visualizer_hw" path="libqcomvisualizer.so"/>
|
||||
<library name="downmix" path="libdownmix.so"/>
|
||||
<library name="loudness_enhancer" path="libldnhncr.so"/>
|
||||
<library name="dynamics_processing" path="libdynproc.so"/>
|
||||
<library name="proxy" path="libeffectproxy.so"/>
|
||||
<library name="offload_bundle" path="libqcompostprocbundle.so"/>
|
||||
<library name="audio_pre_processing" path="libqcomvoiceprocessing.so"/>
|
||||
<library name="volume_listener" path="libvolumelistener.so"/>
|
||||
<library name="audiosphere" path="libasphere.so"/>
|
||||
<library name="shoebox" path="libshoebox.so"/>
|
||||
<library name="dirac" path="libdirac.so"/>
|
||||
</libraries>
|
||||
<effects>
|
||||
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
|
||||
<libsw library="bundle" uuid="8631f300-72e2-11df-b57e-0002a5d5c51b"/>
|
||||
<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"/>
|
||||
<libhw library="offload_bundle" uuid="509a4498-561a-4bea-b3b1-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="equalizer" library="proxy" uuid="c8e70ecd-48ca-456e-8a4f-0002a5d5c51b">
|
||||
<libsw library="bundle" uuid="ce772f20-847d-11df-bb17-0002a5d5c51b"/>
|
||||
<libhw library="offload_bundle" uuid="a0dac280-401c-11e3-9379-0002a5d5c51b"/>
|
||||
</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"/>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<libhw library="offload_bundle" uuid="aa2bebf6-47cf-4613-9bca-0002a5d5c51b"/>
|
||||
</effectProxy>
|
||||
<effectProxy name="visualizer" library="proxy" uuid="1d0a1a53-7d5d-48f2-8e71-27fbd10d842c">
|
||||
<libsw library="visualizer_sw" uuid="d069d9e0-8329-11df-9168-0002a5d5c51b"/>
|
||||
<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"/>
|
||||
<effect name="ns" library="audio_pre_processing" uuid="1d97bb0b-9e2f-4403-9ae3-58c2554306f8"/>
|
||||
<effect name="music_helper" library="volume_listener" uuid="08b8b058-0590-11e5-ac71-0025b32654a0"/>
|
||||
<effect name="ring_helper" library="volume_listener" uuid="0956df94-0590-11e5-bdbe-0025b32654a0"/>
|
||||
<effect name="alarm_helper" library="volume_listener" uuid="09f303e2-0590-11e5-8fdb-0025b32654a0"/>
|
||||
<effect name="voice_helper" library="volume_listener" uuid="0ace5c08-0590-11e5-ae9e-0025b32654a0"/>
|
||||
<effect name="notification_helper" library="volume_listener" uuid="0b776dde-0590-11e5-81ba-0025b32654a0"/>
|
||||
<effect name="audiosphere" library="audiosphere" uuid="184e62ab-2d19-4364-9d1b-c0a40733866c"/>
|
||||
<effect name="shoebox" library="shoebox" uuid="1eab784c-1a36-4b2a-b7fc-e34c44cab89e"/>
|
||||
<effect name="dirac" library="dirac" uuid="e069d9e0-8329-11df-9168-0002a5d5c51b"/>
|
||||
</effects>
|
||||
<postprocess>
|
||||
<stream type="music">
|
||||
<apply effect="music_helper"/>
|
||||
</stream>
|
||||
<stream type="ring">
|
||||
<apply effect="ring_helper"/>
|
||||
</stream>
|
||||
<stream type="alarm">
|
||||
<apply effect="alarm_helper"/>
|
||||
</stream>
|
||||
<stream type="voice_call">
|
||||
<apply effect="voice_helper"/>
|
||||
</stream>
|
||||
<stream type="notification">
|
||||
<apply effect="notification_helper"/>
|
||||
</stream>
|
||||
</postprocess>
|
||||
<preprocess>
|
||||
<stream type="voice_communication">
|
||||
<apply effect="aec"/>
|
||||
<apply effect="ns"/>
|
||||
</stream>
|
||||
</preprocess>
|
||||
</audio_effects_conf>
|
101
configs/audio/audio_io_policy.conf
Normal file
101
configs/audio/audio_io_policy.conf
Normal file
@ -0,0 +1,101 @@
|
||||
# List of profiles for the output device session where stream is routed.
|
||||
# A stream opened with the inputs attributes which match the "flags" and
|
||||
# "formats" as specified in the profile is routed to a device at
|
||||
# sample rate specified under "sampling_rates" and bit width under
|
||||
# "bit_width" and the topology extracted from the acdb data against
|
||||
# the "app_type".
|
||||
#
|
||||
# the flags and formats are specified using the strings corresponding to
|
||||
# enums in audio.h and audio_policy.h. They are concatenated with "|"
|
||||
# without space or "\n".
|
||||
# the flags and formats should match the ones in "audio_policy.conf"
|
||||
|
||||
outputs {
|
||||
default {
|
||||
flags AUDIO_OUTPUT_FLAG_PRIMARY
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 48000
|
||||
bit_width 16
|
||||
app_type 69937
|
||||
}
|
||||
default_24bit {
|
||||
flags AUDIO_OUTPUT_FLAG_PRIMARY
|
||||
formats AUDIO_FORMAT_PCM_24_BIT_PACKED
|
||||
sampling_rates 48000
|
||||
bit_width 24
|
||||
app_type 69937
|
||||
}
|
||||
proaudio {
|
||||
flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 48000
|
||||
bit_width 16
|
||||
app_type 69943
|
||||
}
|
||||
voip_rx {
|
||||
flags AUDIO_OUTPUT_FLAG_VOIP_RX|AUDIO_OUTPUT_FLAG_DIRECT
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 8000|16000|32000|48000
|
||||
bit_width 16
|
||||
app_type 69946
|
||||
}
|
||||
deep_buffer {
|
||||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
|
||||
formats AUDIO_FORMAT_PCM_16_BIT
|
||||
sampling_rates 48000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
deep_buffer_24 {
|
||||
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
|
||||
formats AUDIO_FORMAT_PCM_24_BIT_PACKED
|
||||
sampling_rates 48000
|
||||
bit_width 24
|
||||
app_type 69940
|
||||
}
|
||||
direct_pcm_16 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT
|
||||
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
|
||||
sampling_rates 44100|48000|88200|96000|176400|192000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
direct_pcm_24 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT
|
||||
formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
|
||||
sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000
|
||||
bit_width 24
|
||||
app_type 69940
|
||||
}
|
||||
direct_pcm_32 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT
|
||||
formats AUDIO_FORMAT_PCM_32_BIT
|
||||
sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000
|
||||
bit_width 32
|
||||
app_type 69942
|
||||
}
|
||||
compress_passthrough {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH
|
||||
formats AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD
|
||||
sampling_rates 32000|44100|48000|88200|96000|176400|192000|352800
|
||||
bit_width 16
|
||||
app_type 69941
|
||||
}
|
||||
compress_offload_16 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_16_BIT_OFFLOAD|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_AAC_LC|AUDIO_FORMAT_AAC_HE_V1|AUDIO_FORMAT_AAC_HE_V2|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_AAC_ADTS_LC|AUDIO_FORMAT_AAC_ADTS_HE_V1|AUDIO_FORMAT_AAC_ADTS_HE_V2
|
||||
sampling_rates 44100|48000|88200|96000|176400|192000
|
||||
bit_width 16
|
||||
app_type 69936
|
||||
}
|
||||
compress_offload_24 {
|
||||
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
|
||||
formats AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO
|
||||
sampling_rates 44100|48000|88200|96000|176400|192000
|
||||
bit_width 24
|
||||
app_type 69940
|
||||
}
|
||||
}
|
||||
|
||||
inputs {
|
||||
}
|
426
configs/audio/audio_platform_info_intcodec.xml
Normal file
426
configs/audio/audio_platform_info_intcodec.xml
Normal file
@ -0,0 +1,426 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Copyright (c) 2014, 2016-2018, 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, -->
|
||||
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
<audio_platform_info>
|
||||
<bit_width_configs>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER" bit_width="24"/>
|
||||
</bit_width_configs>
|
||||
<interface_names>
|
||||
<device name="AUDIO_DEVICE_IN_BUILTIN_MIC" interface="TX_CDC_DMA_TX_3" codec_type="internal"/>
|
||||
<device name="AUDIO_DEVICE_IN_BACK_MIC" interface="TX_CDC_DMA_TX_3" codec_type="internal"/>
|
||||
</interface_names>
|
||||
<pcm_ids>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_LOW_LATENCY" type="out" id="13"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD" type="out" id="8"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD2" type="out" id="15"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD3" type="out" id="16"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD4" type="out" id="28"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD5" type="out" id="29"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD6" type="out" id="30"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD7" type="out" id="31"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD8" type="out" id="32"/>
|
||||
<usecase name="USECASE_VOICEMMODE1_CALL" type="in" id="2"/>
|
||||
<usecase name="USECASE_VOICEMMODE1_CALL" type="out" id="2"/>
|
||||
<usecase name="USECASE_VOICEMMODE2_CALL" type="in" id="19"/>
|
||||
<usecase name="USECASE_VOICEMMODE2_CALL" type="out" id="19"/>
|
||||
<usecase name="USECASE_VOWLAN_CALL" type="in" id="-1"/>
|
||||
<usecase name="USECASE_VOWLAN_CALL" type="out" id="-1"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_FM" type="out" id="35"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_FM" type="in" id="34"/>
|
||||
<usecase name="USECASE_AUDIO_SPKR_CALIB_RX" type="out" id="37"/>
|
||||
<usecase name="USECASE_AUDIO_SPKR_CALIB_TX" type="in" id="38"/>
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_AFE_PROXY" type="out" id="6"/>
|
||||
<usecase name="USECASE_AUDIO_RECORD_AFE_PROXY" type="in" id="7"/>
|
||||
<usecase name="USECASE_AUDIO_RECORD_LOW_LATENCY" type="in" id="17" />
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_ULL" type="out" id="17" />
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_SILENCE" type="out" id="27" />
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_MMAP" type="out" id="33" />
|
||||
<usecase name="USECASE_AUDIO_RECORD_MMAP" type="in" id="33" />
|
||||
<usecase name="USECASE_AUDIO_HFP_SCO" type="in" id="12" />
|
||||
<usecase name="USECASE_AUDIO_HFP_SCO_WB" type="in" id="12" />
|
||||
<usecase name="USECASE_AUDIO_PLAYBACK_VOIP" type="out" id="16" />
|
||||
<usecase name="USECASE_AUDIO_RECORD_VOIP" type="in" id="16" />
|
||||
<usecase name="USECASE_AUDIO_A2DP_ABR_FEEDBACK" type="in" id="12" />
|
||||
<usecase name="USECASE_INCALL_MUSIC_UPLINK" type="out" id="27" />
|
||||
</pcm_ids>
|
||||
<config_params>
|
||||
<!-- In the below value string, the value indicates default mono -->
|
||||
<!-- speaker. It can be set to either left or right -->
|
||||
<param key="mono_speaker" value="right"/>
|
||||
<param key="spkr_1_tz_name" value="wsatz.13"/>
|
||||
<param key="spkr_2_tz_name" value="wsatz.14"/>
|
||||
<param key="true_32_bit" value="true"/>
|
||||
<param key="native_audio_mode" value="true"/>
|
||||
<param key="hfp_pcm_dev_id" value="39"/>
|
||||
<param key="input_mic_max_count" value="2"/>
|
||||
</config_params>
|
||||
<acdb_ids>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER" acdb_id="10011"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_REVERSE" acdb_id="10011"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" acdb_id="124"/>
|
||||
<device name="SND_DEVICE_OUT_GAME_SPEAKER" acdb_id="10024"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" acdb_id="101"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" acdb_id="124"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" acdb_id="101"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" acdb_id="102"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED" acdb_id="150"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED_VBAT" acdb_id="150"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_1" acdb_id="151"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_2" acdb_id="152"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_1" acdb_id="14"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_2" acdb_id="14"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_1" acdb_id="10"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_2" acdb_id="10"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET" acdb_id="45"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_USB_HEADSET_MIC" acdb_id="133"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_MIC" acdb_id="143"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC" acdb_id="144"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_THREE_MIC" acdb_id="145"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_QUAD_MIC" acdb_id="146"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_HEADSET_MIC" acdb_id="147"/>
|
||||
<device name="SND_DEVICE_IN_USB_HEADSET_HEX_MIC" acdb_id="162"/>
|
||||
<device name="SND_DEVICE_IN_USB_HEADSET_HEX_MIC_AEC" acdb_id="162"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_USB_HEADSET_HEX_MIC" acdb_id="162"/>
|
||||
<device name="SND_DEVICE_IN_VOCE_RECOG_USB_HEADSET_HEX_MIC" acdb_id="162"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_GENERIC_QMIC" acdb_id="157"/>
|
||||
<device name="SND_DEVICE_IN_USB_HEADSET_MIC" acdb_id="10009"/>
|
||||
<device name="SND_DEVICE_IN_HEADSET_MIC" acdb_id="10008"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES" acdb_id="10012"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES_44_1" acdb_id="10012"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES_HIFI" acdb_id="10026"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES_44_1_HIFI" acdb_id="10026"/>
|
||||
<device name="SND_DEVICE_OUT_GAME_HEADPHONES" acdb_id="10022"/>
|
||||
<device name="SND_DEVICE_OUT_USB_HEADSET" acdb_id="10012"/>
|
||||
<device name="SND_DEVICE_OUT_GAME_USB_HEADSET" acdb_id="10022"/>
|
||||
<device name="SND_DEVICE_OUT_USB_HEADPHONES" acdb_id="10012"/>
|
||||
</acdb_ids>
|
||||
<module_ids>
|
||||
<aec>
|
||||
<device name="SND_DEVICE_IN_GAME_SPEAKER_DMIC_AEC_NS" module_id="0x10F33" instance_id="0x0" param_id="0x10EAF" param_value="0x01"/>
|
||||
</aec>
|
||||
<ns>
|
||||
<device name="SND_DEVICE_IN_GAME_SPEAKER_DMIC_AEC_NS" module_id="0x10F33" instance_id="0x0" param_id="0x10EAF" param_value="0x02"/>
|
||||
</ns>
|
||||
</module_ids>
|
||||
<backend_names>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES_HIFI" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES_44_1_HIFI" backend="headphones-44.1" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_GAME_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_HEADPHONES_KARA" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_BT_SCO_WB" backend="bt-sco-wb" interface="SLIMBUS_7_RX"/>
|
||||
<device name="SND_DEVICE_OUT_BT_SCO" backend="bt-sco" interface="SLIMBUS_7_RX"/>
|
||||
<device name="SND_DEVICE_OUT_BT_A2DP" backend="bt-a2dp" interface="SLIMBUS_7_RX"/>
|
||||
<device name="SND_DEVICE_OUT_LINE" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_ANC_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="PRI_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="PRI_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_ANC_HEADSET" backend="speaker-and-headphones" interface="PRI_MI2S_RX-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_ANC_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_LINE" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER" backend="speaker" interface="PRI_MI2S_RX"/>
|
||||
<device name="SND_DEVICE_OUT_GAME_SPEAKER" backend="speaker" interface="PRI_MI2S_RX"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_1" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_EXTERNAL_2" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_REVERSE" interface="PRI_MI2S_RX"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_VBAT" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_1" interface="WSA_CDC_DMA_RX_0-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES_EXTERNAL_2" interface="WSA_CDC_DMA_RX_0-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_HANDSET" backend="handset" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_GENERIC_QMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER" backend="speaker" interface="PRI_MI2S_RX"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_VBAT" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_VBAT" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_HDMI" interface="WSA_CDC_DMA_RX_0-and-HDMI"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_DISPLAY_PORT" interface="WSA_CDC_DMA_RX_0-and-DISPLAY_PORT"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP" interface="WSA_CDC_DMA_RX_0-and-SLIMBUS_7_RX"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_ANC_FB_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_ANC_FB_HEADSET" backend="headphones" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_ANC_HANDSET" interface="RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_PROTECTED_VBAT" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_PROTECTED_VBAT" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_PROTECTED_VBAT" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_WSA" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_WSA" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_2_WSA" interface="WSA_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_MIC_EXTERNAL" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_MIC_AEC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_MIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_MIC_AEC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_AEC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_MIC_AEC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_MIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_MIC_AEC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HEADSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_REALIME_LOOPBACK_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HEADSET_MIC_FLUENCE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_SPEAKER_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_HEADSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HDMI_MIC" interface="HDMI"/>
|
||||
<device name="SND_DEVICE_IN_BT_SCO_MIC" interface="SLIMBUS_7_TX"/>
|
||||
<device name="SND_DEVICE_IN_BT_SCO_MIC_NREC" interface="SLIMBUS_7_TX"/>
|
||||
<device name="SND_DEVICE_IN_BT_SCO_MIC_WB" interface="SLIMBUS_7_TX"/>
|
||||
<device name="SND_DEVICE_IN_BT_SCO_MIC_WB_NREC" interface="SLIMBUS_7_TX"/>
|
||||
<device name="SND_DEVICE_IN_CAMCORDER_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_DMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_SPEAKER_QMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_MIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_DMIC_STEREO" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_AANC_HANDSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_QUAD_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_STEREO_DMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_STEREO_DMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK" interface="WSA_CDC_DMA_TX_0"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_1" interface="WSA_CDC_DMA_TX_0"/>
|
||||
<device name="SND_DEVICE_IN_CAPTURE_VI_FEEDBACK_MONO_2" interface="WSA_CDC_DMA_TX_0"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_SPEAKER_DMIC_BROADSIDE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_BROADSIDE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_BROADSIDE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_NS_BROADSIDE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS_BROADSIDE" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_FLUENCE_DMIC_AANC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_QMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_QMIC_AEC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_QMIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_SPEAKER_QMIC_AEC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_THREE_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_TMIC_FLUENCE_PRO" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_TMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_TMIC_AEC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_TMIC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_TMIC_AEC_NS" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_VOICE_REC_TMIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_THREE_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_QUAD_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_UNPROCESSED_HEADSET_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_MAIN_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_TOP_MIC" interface="TX_CDC_DMA_TX_3"/>
|
||||
<device name="SND_DEVICE_IN_CAMCORDER_DMIC" interface="TX_CDC_DMA_TX_3" />
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_VOICE" interface="TX_CDC_DMA_TX_3" />
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_MUSIC" interface="TX_CDC_DMA_TX_3" />
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_INTERVIEW" interface="TX_CDC_DMA_TX_3" />
|
||||
<device name="SND_DEVICE_IN_HANDSET_DMIC_HD" interface="TX_CDC_DMA_TX_3" />
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_HEADPHONES" backend="speaker-and-headphones" interface="WSA_CDC_DMA_RX_0-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_VOICE_SPEAKER_AND_VOICE_ANC_HEADSET" backend="speaker-and-headphones" interface="WSA_CDC_DMA_RX_0-and-RX_CDC_DMA_RX_0"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO" backend="speaker-and-bt-sco" interface="PRI_MI2S_RX-and-SLIMBUS_7_RX"/>
|
||||
<device name="SND_DEVICE_OUT_SPEAKER_AND_BT_SCO_WB" backend="speaker-and-bt-sco-wb" interface="PRI_MI2S_RX-and-SLIMBUS_7_RX"/>
|
||||
<device name="SND_DEVICE_IN_HANDSET_MIC_ASR" interface="TX_CDC_DMA_TX_3"/>
|
||||
</backend_names>
|
||||
<!-- below values are for ref purpose to OEM, doesn't contain actual hardware info on MTP -->
|
||||
<microphone_characteristics>
|
||||
<microphone valid_mask="31" device_id="builtin_mic_1" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="bottom" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
|
||||
group="0" index_in_the_group="0" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="93"
|
||||
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
|
||||
responses="-0.78 -0.71 -0.64 -0.60 -0.55 -0.50 -0.47 -0.42 -0.39 -0.36 -0.34 -0.33 -0.32 -0.29 -0.28 -0.28 -0.27 -0.25 -0.25 -0.24 -0.23 -0.23 -0.22 -0.22 -0.19 -0.17 -0.15 -0.15 -0.14 -0.14 -0.12 -0.11 -0.10 -0.10 -0.08 -0.07 -0.07 -0.04 -0.03 -0.01 0.00 0.04 0.06 0.07 0.08 0.13 0.09 0.14 0.19 0.23 0.28 0.29 0.31 0.37 0.88 0.86 0.77 0.78 0.84 0.86 1.05 1.12 1.18 1.25 1.43 1.66 1.83 2.02 2.23 2.59 2.84 3.35 4.01 6.82 6.62 6.42 7.30 8.23 7.54 12.68 13.76 18.69 19.68 20.90 23.70 25.10 21.65 16.18 18.84 25.44 23.48 23.22 24.89"
|
||||
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 0.0 1.0" geometric_location="0.0269 0.0058 0.0079" />
|
||||
<microphone valid_mask="31" device_id="builtin_mic_2" type="AUDIO_DEVICE_IN_BACK_MIC" address="back" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
|
||||
group="0" index_in_the_group="1" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="92"
|
||||
frequencies="106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00 20000.00"
|
||||
responses="-0.75 -0.74 -0.69 -0.65 -0.62 -0.61 -0.56 -0.53 -0.50 -0.47 -0.43 -0.40 -0.37 -0.36 -0.33 -0.30 -0.28 -0.25 -0.24 -0.24 -0.24 -0.25 -0.24 -0.12 -0.10 -0.08 -0.09 -0.07 -0.07 -0.06 -0.06 -0.06 -0.05 -0.04 -0.05 -0.04 -0.01 0.02 0.02 0.00 0.02 0.03 0.07 0.10 0.10 0.13 0.01 0.01 0.10 0.11 0.19 0.24 0.38 0.46 0.26 0.27 0.43 0.76 0.75 1.09 1.09 0.94 1.06 1.21 1.47 1.45 1.36 2.07 2.85 2.90 3.85 4.65 5.84 5.46 6.15 7.50 8.30 10.62 12.70 16.65 20.95 25.41 26.32 20.20 16.60 11.24 7.85 7.62 20.19 7.32 2.87 5.18"
|
||||
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 1.0 0.0" geometric_location="0.0546 0.1456 0.00415" />
|
||||
<microphone valid_mask="31" device_id="builtin_mic_3" type="AUDIO_DEVICE_IN_BUILTIN_MIC" address="top" location="AUDIO_MICROPHONE_LOCATION_MAINBODY"
|
||||
group="0" index_in_the_group="2" directionality="AUDIO_MICROPHONE_DIRECTIONALITY_OMNI" num_frequency_responses="92"
|
||||
frequencies="100.00 106.00 112.00 118.00 125.00 132.00 140.00 150.00 160.00 170.00 180.00 190.00 200.00 212.00 224.00 236.00 250.00 265.00 280.00 300.00 315.00 335.00 355.00 375.00 400.00 425.00 450.00 475.00 500.00 530.00 560.00 600.00 630.00 670.00 710.00 750.00 800.00 850.00 900.00 950.00 1000.00 1060.00 1120.00 1180.00 1250.00 1320.00 1400.00 1500.00 1600.00 1700.00 1800.00 1900.00 2000.00 2120.00 2240.00 2360.00 2500.00 2650.00 2800.00 3000.00 3150.00 3350.00 3550.00 3750.00 4000.00 4250.00 4500.00 4750.00 5000.00 5300.00 5600.00 6000.00 6300.00 6700.00 7100.00 7500.00 8000.00 8500.00 9000.00 9500.00 10000.00 10600.00 11200.00 11800.00 12500.00 13200.00 14000.00 15000.00 16000.00 17000.00 18000.00 19000.00"
|
||||
responses="-9.24 -9.31 -9.39 -9.45 -9.46 -9.47 -9.50 -9.52 -9.51 -9.52 -9.51 -9.50 -9.49 -9.47 -9.48 -9.49 -9.48 -9.50 -9.51 -9.53 -9.55 -9.59 -9.63 -9.67 -9.58 -9.57 -9.65 -9.68 -9.71 -9.75 -9.79 -9.84 -9.87 -9.87 -9.90 -9.90 -9.91 -9.97 -10.01 -10.05 -9.85 -9.93 -9.94 -9.98 -10.04 -10.12 -10.28 -10.25 -10.01 -9.86 -9.81 -9.82 -9.61 -9.46 -8.27 -8.42 -8.98 -8.99 -8.82 -9.21 -8.92 -8.97 -9.30 -9.44 -9.52 -9.28 -9.09 -8.81 -7.02 -5.72 -5.30 -7.26 -8.39 -12.28 -8.23 -6.99 -5.52 -4.87 -3.82 -6.09 0.00 -2.15 -0.26 1.48 5.22 10.92 6.41 9.55 12.96 3.35 22.00 19.75"
|
||||
sensitivity="-37.0" max_spl="132.5" min_spl="28.5" orientation="0.0 0.0 1.0" geometric_location="0.0274 0.14065 0.0079" />
|
||||
</microphone_characteristics>
|
||||
<snd_devices>
|
||||
<input_snd_device>
|
||||
<input_snd_device_mic_mapping>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_CAMCORDER_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC_AEC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC_AEC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_REC_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_DMIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_DMIC_TMUS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_VOICE_SPEAKER_DMIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_AEC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_GAME_SPEAKER_DMIC_AEC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_AEC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_NS">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_UNPROCESSED_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_UNPROCESSED_STEREO_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_UNPROCESSED_THREE_MIC">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_DIRECT"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_HANDSET_DMIC_STEREO">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
<snd_dev in_snd_device="SND_DEVICE_IN_SPEAKER_DMIC_STEREO">
|
||||
<mic_info mic_device_id="builtin_mic_1"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_2"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
<mic_info mic_device_id="builtin_mic_3"
|
||||
channel_mapping="AUDIO_MICROPHONE_CHANNEL_MAPPING_PROCESSED"/>
|
||||
</snd_dev>
|
||||
</input_snd_device_mic_mapping>
|
||||
</input_snd_device>
|
||||
</snd_devices>
|
||||
</audio_platform_info>
|
439
configs/audio/audio_policy_configuration.xml
Normal file
439
configs/audio/audio_policy_configuration.xml
Normal file
@ -0,0 +1,439 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- Copyright (c) 2016-2019, The Linux Foundation. All rights reserved
|
||||
Not a Contribution.
|
||||
-->
|
||||
<!-- Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<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="true"/>
|
||||
|
||||
|
||||
<!-- 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>FM Tuner</item>
|
||||
<item>Telephony Rx</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="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="raw" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="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_24_BIT_PACKED"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="mmap_no_irq_out" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_MMAP_NOIRQ">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="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"/>
|
||||
</mixPort>
|
||||
<mixPort name="direct_pcm" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000,352800,384000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
</mixPort>
|
||||
<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_FLAC"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||
<profile name="" format="AUDIO_FORMAT_ALAC"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_APE"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
|
||||
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,64000,88200,96000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||
<profile name="" format="AUDIO_FORMAT_DTS"
|
||||
samplingRates="32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_DTS_HD"
|
||||
samplingRates="32000,44100,48000,64000,88200,96000,128000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_WMA"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_WMA_PRO"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_2POINT1,AUDIO_CHANNEL_OUT_QUAD,AUDIO_CHANNEL_OUT_PENTA,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_6POINT1,AUDIO_CHANNEL_OUT_7POINT1"/>
|
||||
<profile name="" format="AUDIO_FORMAT_VORBIS"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000,128000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||
<profile name="" format="AUDIO_FORMAT_AAC_ADTS_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_ADTS_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_ADTS_HE_V2"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,64000,88200,96000"
|
||||
channelMasks="AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</mixPort>
|
||||
<mixPort name="dsd_compress_passthrough" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
|
||||
<profile name="" format="AUDIO_FORMAT_DSD"
|
||||
samplingRates="2822400,5644800"
|
||||
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_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</mixPort>
|
||||
<mixPort name="voip_rx" role="source"
|
||||
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</mixPort>
|
||||
|
||||
<mixPort name="primary input" role="sink" maxOpenCount="1" 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,AUDIO_CHANNEL_IN_FRONT_BACK"/>
|
||||
</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>
|
||||
<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="surround_sound" role="sink" maxOpenCount="1" maxActiveCount="0">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,96000"
|
||||
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="usb_surround_sound" role="sink" maxOpenCount="1" maxActiveCount="0">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,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,AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
|
||||
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/>
|
||||
</mixPort>
|
||||
<mixPort name="record_24" role="sink" maxOpenCount="1" maxActiveCount="0">
|
||||
<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"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_8_24_BIT"
|
||||
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"/>
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
|
||||
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"/>
|
||||
</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="mmap_no_irq_in" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ">
|
||||
<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"/>
|
||||
</mixPort>
|
||||
<mixPort name="hifi_input" role="sink" />
|
||||
</mixPorts>
|
||||
|
||||
<devicePorts>
|
||||
<!-- Output devices declaration, i.e. Sink DEVICE PORT -->
|
||||
<devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Speaker" role="sink" type="AUDIO_DEVICE_OUT_SPEAKER" address="">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Line" type="AUDIO_DEVICE_OUT_LINE" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="HDMI" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Proxy" type="AUDIO_DEVICE_OUT_PROXY" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,128000,176400,192000" channelMasks="dynamic"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="FM" type="AUDIO_DEVICE_OUT_FM" role="sink">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"
|
||||
encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_APTX_ADAPTIVE AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX_TWSP">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT A2DP Headphones" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink"
|
||||
encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_APTX_ADAPTIVE AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX_TWSP">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER" role="sink"
|
||||
encodedFormats="AUDIO_FORMAT_SBC AUDIO_FORMAT_AAC AUDIO_FORMAT_APTX AUDIO_FORMAT_APTX_HD AUDIO_FORMAT_APTX_ADAPTIVE AUDIO_FORMAT_LDAC AUDIO_FORMAT_APTX_TWSP">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000" channelMasks="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">
|
||||
<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"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
|
||||
<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"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="48000"
|
||||
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
|
||||
<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"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
|
||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||
samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||
</devicePort>
|
||||
<devicePort tagName="Telephony Rx" type="AUDIO_DEVICE_IN_TELEPHONY_RX" role="source">
|
||||
<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 -->
|
||||
<routes>
|
||||
<route type="mix" sink="Earpiece"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="Speaker"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="Wired Headset"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="Wired Headphones"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="Line"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
|
||||
<route type="mix" sink="HDMI"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/>
|
||||
<route type="mix" sink="Proxy"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/>
|
||||
<route type="mix" sink="FM"
|
||||
sources="primary output"/>
|
||||
<route type="mix" sink="BT SCO"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<route type="mix" sink="BT SCO Headset"
|
||||
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,mmap_no_irq_out,hifi_playback"/>
|
||||
<route type="mix" sink="USB Headset Out"
|
||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
|
||||
<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="primary input"
|
||||
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="usb_surround_sound"
|
||||
sources="USB Device In,USB Headset In"/>
|
||||
<route type="mix" sink="record_24"
|
||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
|
||||
<route type="mix" sink="mmap_no_irq_in"
|
||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/>
|
||||
<route type="mix" sink="BT A2DP Out"
|
||||
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<route type="mix" sink="BT A2DP Headphones"
|
||||
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<route type="mix" sink="BT A2DP Speaker"
|
||||
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||
<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 -->
|
||||
<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"/>
|
||||
|
||||
</modules>
|
||||
<!-- End of Modules section -->
|
||||
|
||||
<!-- Volume section -->
|
||||
|
||||
<xi:include href="/vendor/etc/audio_policy_volumes.xml"/>
|
||||
<xi:include href="/vendor/etc/default_volume_tables.xml"/>
|
||||
|
||||
<!-- End of Volume section -->
|
||||
|
||||
</audioPolicyConfiguration>
|
224
configs/audio/audio_policy_volumes.xml
Normal file
224
configs/audio/audio_policy_volumes.xml
Normal file
@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!-- 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">
|
||||
<point>0,-4200</point>
|
||||
<point>33,-2800</point>
|
||||
<point>66,-1400</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>0,-2400</point>
|
||||
<point>33,-1600</point>
|
||||
<point>66,-800</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
|
||||
<point>0,-2400</point>
|
||||
<point>33,-1600</point>
|
||||
<point>66,-800</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_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_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_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_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">
|
||||
<point>1,-2970</point>
|
||||
<point>33,-2010</point>
|
||||
<point>66,-1020</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<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="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET">
|
||||
<point>1,-4950</point>
|
||||
<point>33,-3350</point>
|
||||
<point>66,-1500</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>1,-7000</point>
|
||||
<point>7,-6300</point>
|
||||
<point>14,-5100</point>
|
||||
<point>21,-4500</point>
|
||||
<point>28,-4000</point>
|
||||
<point>35,-3200</point>
|
||||
<point>42,-3000</point>
|
||||
<point>50,-2500</point>
|
||||
<point>57,-2200</point>
|
||||
<point>64,-1700</point>
|
||||
<point>71,-1200</point>
|
||||
<point>78,-900</point>
|
||||
<point>85,-600</point>
|
||||
<point>92,-300</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<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_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||
ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>0,-2970</point>
|
||||
<point>33,-2010</point>
|
||||
<point>66,-1020</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||
ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_NON_MUTABLE_HEARING_AID_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">
|
||||
<point>1,-2970</point>
|
||||
<point>33,-2010</point>
|
||||
<point>66,-1020</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<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="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
|
||||
<point>0,-420</point>
|
||||
<point>33,-280</point>
|
||||
<point>66,-140</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
|
||||
<point>0,-2400</point>
|
||||
<point>33,-1600</point>
|
||||
<point>66,-800</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
|
||||
<point>0,-4200</point>
|
||||
<point>33,-2800</point>
|
||||
<point>66,-1400</point>
|
||||
<point>100,0</point>
|
||||
</volume>
|
||||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" 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_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="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_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_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_HEARING_AID_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_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="SILENT_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
|
||||
ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
|
||||
ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
|
||||
ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
|
||||
ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
|
||||
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="DEFAULT_NON_MUTABLE_HEARING_AID_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_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
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"/>
|
||||
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
|
||||
ref="FULL_SCALE_VOLUME_CURVE"/>
|
||||
</volumes>
|
||||
|
193
configs/audio/audio_tuning_mixer_tavil.txt
Normal file
193
configs/audio/audio_tuning_mixer_tavil.txt
Normal file
@ -0,0 +1,193 @@
|
||||
#ANC_TEST_P_PATH_MIC_STEREO Capture
|
||||
acdb_dev_id:85
|
||||
!Capture
|
||||
Txdevice:0
|
||||
|
||||
enable
|
||||
AIF1_CAP Mixer SLIM TX7:1
|
||||
AIF1_CAP Mixer SLIM TX8:1
|
||||
CDC_IF TX7 MUX:DEC7
|
||||
ADC MUX7:DMIC
|
||||
DMIC MUX7:DMIC4
|
||||
CDC_IF TX8 MUX:DEC8
|
||||
ADC MUX8:DMIC
|
||||
DMIC MUX8:DMIC0
|
||||
SLIM_0_TX Channels:Two
|
||||
MultiMedia1 Mixer SLIM_0_TX:1
|
||||
|
||||
disable
|
||||
MultiMedia1 Mixer SLIM_0_TX:0
|
||||
AIF1_CAP Mixer SLIM TX7:0
|
||||
AIF1_CAP Mixer SLIM TX8:0
|
||||
CDC_IF TX7 MUX:ZERO
|
||||
CDC_IF TX8 MUX:ZERO
|
||||
DMIC MUX7:ZERO
|
||||
DMIC MUX8:ZERO
|
||||
|
||||
#ANC_TEST_S_PATH_MIC_STEREO Capture
|
||||
acdb_dev_id:88
|
||||
!Capture
|
||||
Txdevice:0
|
||||
|
||||
enable
|
||||
AIF1_CAP Mixer SLIM TX7:1
|
||||
AIF1_CAP Mixer SLIM TX8:1
|
||||
CDC_IF TX7 MUX:DEC7
|
||||
ADC MUX7:ANC_FB_TUNE1
|
||||
ADC MUX10:DMIC
|
||||
DMIC MUX10:DMIC0
|
||||
CDC_IF TX8 MUX:DEC8
|
||||
ADC MUX8:ANC_FB_TUNE2
|
||||
ADC MUX12:DMIC
|
||||
DMIC MUX12:DMIC0
|
||||
ANC0 FB MUX:ANC_IN_EAR_SPKR
|
||||
ANC OUT EAR SPKR Enable Switch:1
|
||||
SLIM_0_TX Channels:Two
|
||||
MultiMedia1 Mixer SLIM_0_TX:1
|
||||
|
||||
disable
|
||||
MultiMedia1 Mixer SLIM_0_TX:0
|
||||
AIF1_CAP Mixer SLIM TX7:0
|
||||
AIF1_CAP Mixer SLIM TX8:0
|
||||
CDC_IF TX7 MUX:ZERO
|
||||
CDC_IF TX8 MUX:ZERO
|
||||
ADC MUX7:DMIC
|
||||
ADC MUX8:DMIC
|
||||
DMIC MUX10:ZERO
|
||||
DMIC MUX12:ZERO
|
||||
ANC0 FB MUX:ZERO
|
||||
ANC OUT EAR SPKR Enable Switch:0
|
||||
|
||||
|
||||
#ANC_TEST_E_PATH_MIC_STEREO Capture
|
||||
acdb_dev_id:91
|
||||
!Capture
|
||||
Txdevice:0
|
||||
|
||||
enable
|
||||
AIF1_CAP Mixer SLIM TX7:1
|
||||
AIF1_CAP Mixer SLIM TX8:1
|
||||
CDC_IF TX7 MUX:DEC7
|
||||
ADC MUX7:ANC_FB_TUNE1
|
||||
ADC MUX10:DMIC
|
||||
DMIC MUX10:DMIC4
|
||||
CDC_IF TX8 MUX:DEC8
|
||||
ADC MUX8:ANC_FB_TUNE2
|
||||
ADC MUX12:DMIC
|
||||
DMIC MUX12:DMIC4
|
||||
ANC0 FB MUX:ANC_IN_EAR_SPKR
|
||||
ANC OUT EAR SPKR Enable Switch:1
|
||||
SLIM_0_TX Channels:Two
|
||||
MultiMedia1 Mixer SLIM_0_TX:1
|
||||
|
||||
disable
|
||||
MultiMedia1 Mixer SLIM_0_TX:0
|
||||
AIF1_CAP Mixer SLIM TX7:0
|
||||
AIF1_CAP Mixer SLIM TX8:0
|
||||
CDC_IF TX7 MUX:ZERO
|
||||
CDC_IF TX8 MUX:ZERO
|
||||
ADC MUX7:DMIC
|
||||
ADC MUX8:DMIC
|
||||
DMIC MUX10:ZERO
|
||||
DMIC MUX12:ZERO
|
||||
ANC0 FB MUX:ZERO
|
||||
ANC OUT EAR SPKR Enable Switch:0
|
||||
|
||||
|
||||
#ANC_TEST_S_PATH_HANDSET_SPKR_ANC_MONO
|
||||
acdb_dev_id:86
|
||||
!Playback
|
||||
Rxdevice:0
|
||||
|
||||
enable
|
||||
ANC Function:ON
|
||||
SLIM RX0 MUX:AIF1_PB
|
||||
SLIM_0_RX Channels:One
|
||||
RX INT7_1 MIX1 INP0:RX0
|
||||
SpkrLeft SWR DAC_Port Switch:1
|
||||
ANC Slot:7
|
||||
ANC OUT EAR SPKR Enable Switch:1
|
||||
ANC SPKR PA Enable Switch:1
|
||||
SpkrLeft WSA PA Gain:G_6_DB
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:1
|
||||
|
||||
disable
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
|
||||
SpkrLeft WSA PA Gain:G_0_DB
|
||||
ANC SPKR PA Enable Switch:0
|
||||
ANC OUT EAR SPKR Enable Switch:0
|
||||
SpkrLeft SWR DAC_Port Switch:0
|
||||
ANC Slot:0
|
||||
SLIM RX0 MUX:ZERO
|
||||
RX INT7_1 MIX1 INP0:ZERO
|
||||
ANC Function:OFF
|
||||
|
||||
#ANC_TEST_E_PATH_HANDSET_SPKR_ANC_MONO
|
||||
acdb_dev_id:89
|
||||
!Playback
|
||||
Rxdevice:0
|
||||
|
||||
enable
|
||||
ANC Function:ON
|
||||
SLIM RX0 MUX:AIF1_PB
|
||||
SLIM_0_RX Channels:One
|
||||
RX INT7_1 MIX1 INP0:RX0
|
||||
SpkrLeft SWR DAC_Port Switch:1
|
||||
ANC Slot:8
|
||||
ANC OUT EAR SPKR Enable Switch:1
|
||||
ANC SPKR PA Enable Switch:1
|
||||
SpkrLeft WSA PA Gain:G_6_DB
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:1
|
||||
|
||||
disable
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
|
||||
SpkrLeft WSA PA Gain:G_0_DB
|
||||
ANC SPKR PA Enable Switch:0
|
||||
ANC OUT EAR SPKR Enable Switch:0
|
||||
SpkrLeft SWR DAC_Port Switch:0
|
||||
ANC Slot:0
|
||||
SLIM RX0 MUX:ZERO
|
||||
RX INT7_1 MIX1 INP0:ZERO
|
||||
ANC Function:OFF
|
||||
|
||||
#RAS_TEST_SPKR_PHONE_SPKR_STEREO
|
||||
acdb_dev_id:136
|
||||
!Playback
|
||||
Rxdevice:0
|
||||
|
||||
enable
|
||||
SLIM RX0 MUX:AIF1_PB
|
||||
SLIM RX1 MUX:AIF1_PB
|
||||
CDC_IF RX0 MUX:SLIM RX0
|
||||
CDC_IF RX1 MUX:SLIM RX1
|
||||
SLIM_0_RX Channels:Two
|
||||
RX INT7_1 MIX1 INP0:RX0
|
||||
RX INT8_1 MIX1 INP0:RX1
|
||||
COMP7 Switch:1
|
||||
COMP8 Switch:1
|
||||
SpkrLeft COMP Switch:1
|
||||
SpkrRight COMP Switch:1
|
||||
SpkrLeft BOOST Switch:1
|
||||
SpkrRight BOOST Switch:1
|
||||
SpkrLeft VISENSE Switch:1
|
||||
SpkrRight VISENSE Switch:1
|
||||
SpkrLeft SWR DAC_Port Switch:1
|
||||
SpkrRight SWR DAC_Port Switch:1
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:1
|
||||
|
||||
disable
|
||||
SLIM RX0 MUX:ZERO
|
||||
SLIM RX1 MUX:ZERO
|
||||
RX INT7_1 MIX1 INP0:ZERO
|
||||
RX INT8_1 MIX1 INP0:ZERO
|
||||
COMP7 Switch:0
|
||||
COMP8 Switch:0
|
||||
SpkrLeft COMP Switch:0
|
||||
SpkrRight COMP Switch:0
|
||||
SpkrLeft BOOST Switch:0
|
||||
SpkrRight BOOST Switch:0
|
||||
SpkrLeft VISENSE Switch:0
|
||||
SpkrRight VISENSE Switch:0
|
||||
SpkrLeft SWR DAC_Port Switch:0
|
||||
SpkrRight SWR DAC_Port Switch:0
|
||||
SLIMBUS_0_RX Audio Mixer MultiMedia1:0
|
47
configs/audio/graphite_ipc_platform_info.xml
Normal file
47
configs/audio/graphite_ipc_platform_info.xml
Normal file
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2016-2018, 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. -->
|
||||
<graphite_ipc_platform_info>
|
||||
<no_of_glink_channels value="4">
|
||||
</no_of_glink_channels>
|
||||
<!-- channel 1 configuration -->
|
||||
<glink_channel name="g_glink_ctrl" latency_in_us="5000"
|
||||
no_of_intents="1" intents_size="1024">
|
||||
</glink_channel>
|
||||
<!-- channel 2 configuration -->
|
||||
<glink_channel name="g_glink_persistent_data_ild" latency_in_us="30000"
|
||||
no_of_intents="0">
|
||||
</glink_channel>
|
||||
<!-- channel 3 configuration -->
|
||||
<glink_channel name="g_glink_persistent_data_nild" latency_in_us="30000"
|
||||
no_of_intents="0">
|
||||
</glink_channel>
|
||||
<!-- channel 4 configuration -->
|
||||
<glink_channel name="g_glink_audio_data" latency_in_us="10000"
|
||||
no_of_intents="2" intents_size="4096, 4096">
|
||||
</glink_channel>
|
||||
</graphite_ipc_platform_info>
|
3512
configs/audio/mixer_paths_idp.xml
Normal file
3512
configs/audio/mixer_paths_idp.xml
Normal file
File diff suppressed because it is too large
Load Diff
45
configs/audio/mixer_paths_overlay_dynamic.xml
Normal file
45
configs/audio/mixer_paths_overlay_dynamic.xml
Normal file
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Copyright (c) 2015-2016, 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, -->
|
||||
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||
<mixer>
|
||||
<path name="headphones">
|
||||
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
|
||||
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
|
||||
<ctl name="RX_CDC_DMA_RX_0 Channels" value="Two" />
|
||||
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
|
||||
<ctl name="RX INT1_1 MIX1 INP0" value="RX1" />
|
||||
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
|
||||
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
|
||||
<ctl name="RX_COMP1 Switch" value="0" />
|
||||
<ctl name="RX_COMP2 Switch" value="0" />
|
||||
<ctl name="HPHL_RDAC Switch" value="1" />
|
||||
<ctl name="HPHR_RDAC Switch" value="1" />
|
||||
<ctl name="COMP1 Switch" value="0" />
|
||||
<ctl name="COMP2 Switch" value="0" />
|
||||
<ctl name="HPHL Volume" value="16" />
|
||||
<ctl name="HPHR Volume" value="16" />
|
||||
</path>
|
||||
</mixer>
|
665
configs/audio/mixer_paths_overlay_static.xml
Normal file
665
configs/audio/mixer_paths_overlay_static.xml
Normal file
@ -0,0 +1,665 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- Be careful to write the static overlay xml -->
|
||||
<!-- 1. do not create the new path name here, the new path name should -->
|
||||
<!-- be created in common mixer path xml -->
|
||||
<!-- 2. the new path name should not contain the nested path, and should be -->
|
||||
<!-- defined follow after default ctrl -->
|
||||
<!-- 3. the default ctl here will override that in common mixer path xml -->
|
||||
<!-- 4. the first level path will replace the path in common mixer path xml -->
|
||||
<!-- 5. the max nested path can't exceed 10 -->
|
||||
|
||||
<mixer>
|
||||
<ctl name="ADC1 Volume" value="8" />
|
||||
<ctl name="ADC2 Volume" value="8" />
|
||||
<ctl name="ADC3 Volume" value="8" />
|
||||
<ctl name="ADC4 Volume" value="8" />
|
||||
<ctl name="PRIM_MI2S_RX SampleRate" value="KHZ_48" />
|
||||
<ctl name="PRIM_MI2S_RX Channels" value="Two" />
|
||||
<ctl name="PRIM_MI2S_RX Format" value="S24_LE" />
|
||||
<ctl name="PRIM_MI2S_TX SampleRate" value="KHZ_48" />
|
||||
<ctl name="PRIM_MI2S_TX Channels" value="Two" />
|
||||
<ctl name="PRIM_MI2S_TX Format" value="S24_LE" />
|
||||
<ctl name="PRIM_MI2S_RX_VI_FB_MUX" value="ZERO" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
|
||||
|
||||
<path name="deep-buffer-playback speaker-protected">
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="deep-buffer-playback speaker-and-display-port">
|
||||
<path name="deep-buffer-playback display-port" />
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="deep-buffer-playback speaker-and-usb-headphones">
|
||||
<path name="deep-buffer-playback usb-headphones" />
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="deep-buffer-playback speaker-and-headphones">
|
||||
<path name="deep-buffer-playback headphones" />
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="deep-buffer-playback speaker-and-bt-sco">
|
||||
<path name="deep-buffer-playback bt-sco" />
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="deep-buffer-playback speaker-and-bt-sco-wb">
|
||||
<path name="deep-buffer-playback bt-sco-wb" />
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="deep-buffer-playback speaker-and-bt-a2dp">
|
||||
<path name="deep-buffer-playback bt-a2dp" />
|
||||
<path name="deep-buffer-playback speaker" />
|
||||
</path>
|
||||
|
||||
|
||||
<path name="low-latency-playback speaker-protected">
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-bt-sco">
|
||||
<path name="low-latency-playback bt-sco" />
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-bt-sco-wb">
|
||||
<path name="low-latency-playback bt-sco-wb" />
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-bt-a2dp">
|
||||
<path name="low-latency-playback bt-a2dp" />
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
|
||||
<path name="low-latency-playback speaker-and-display-port">
|
||||
<path name="low-latency-playback display-port" />
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-usb-headphones">
|
||||
<path name="low-latency-playback usb-headphones" />
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback speaker-and-headphones">
|
||||
<path name="low-latency-playback headphones" />
|
||||
<path name="low-latency-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="audio-ull-playback speaker-protected">
|
||||
<path name="audio-ull-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="audio-ull-playback speaker-and-headphones">
|
||||
<path name="audio-ull-playback speaker" />
|
||||
<path name="audio-ull-playback headphones" />
|
||||
</path>
|
||||
|
||||
<path name="audio-ull-playback speaker-and-bt-sco">
|
||||
<path name="audio-ull-playback bt-sco" />
|
||||
<path name="audio-ull-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="audio-ull-playback speaker-and-bt-a2dp">
|
||||
<path name="audio-ull-playback bt-a2dp" />
|
||||
<path name="audio-ull-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="audio-ull-playback speaker-and-bt-sco-wb">
|
||||
<path name="audio-ull-playback bt-sco-wb" />
|
||||
<path name="audio-ull-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="audio-ull-playback speaker-and-display-port">
|
||||
<path name="audio-ull-playback display-port" />
|
||||
<path name="audio-ull-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-protected">
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-and-display-port">
|
||||
<path name="compress-offload-playback display-port" />
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback bt-sco" />
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback bt-a2dp" />
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback bt-sco-wb" />
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback usb-headphones" />
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback speaker-and-headphones">
|
||||
<path name="compress-offload-playback headphones" />
|
||||
<path name="compress-offload-playback speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2 speaker-and-display-port">
|
||||
<path name="compress-offload-playback2 display-port" />
|
||||
<path name="compress-offload-playback2 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback2 bt-sco" />
|
||||
<path name="compress-offload-playback2 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback2 bt-sco-wb" />
|
||||
<path name="compress-offload-playback2 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback2 bt-a2dp" />
|
||||
<path name="compress-offload-playback2 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback2 usb-headphones" />
|
||||
<path name="compress-offload-playback2 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2 speaker-and-headphones">
|
||||
<path name="compress-offload-playback2 headphones" />
|
||||
<path name="compress-offload-playback2 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback3 speaker-and-display-port">
|
||||
<path name="compress-offload-playback3 display-port" />
|
||||
<path name="compress-offload-playback3 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback3 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback3 bt-sco" />
|
||||
<path name="compress-offload-playback3 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback3 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback3 bt-sco-wb" />
|
||||
<path name="compress-offload-playback3 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback3 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback3 bt-a2dp" />
|
||||
<path name="compress-offload-playback3 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback3 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback3 usb-headphones" />
|
||||
<path name="compress-offload-playback3 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback3 speaker-and-headphones">
|
||||
<path name="compress-offload-playback3 headphones" />
|
||||
<path name="compress-offload-playback3 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback4 speaker-and-display-port">
|
||||
<path name="compress-offload-playback4 display-port" />
|
||||
<path name="compress-offload-playback4 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback4 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback4 usb-headphones" />
|
||||
<path name="compress-offload-playback4 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback4 speaker-and-headphones">
|
||||
<path name="compress-offload-playback4 headphones" />
|
||||
<path name="compress-offload-playback4 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback4 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback4 bt-sco" />
|
||||
<path name="compress-offload-playback4 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback4 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback4 bt-sco-wb" />
|
||||
<path name="compress-offload-playback4 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback4 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback4 bt-a2dp" />
|
||||
<path name="compress-offload-playback4 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback5 speaker-and-display-port">
|
||||
<path name="compress-offload-playback5 display-port" />
|
||||
<path name="compress-offload-playback5 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback5 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback5 bt-sco" />
|
||||
<path name="compress-offload-playback5 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback5 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback5 bt-sco-wb" />
|
||||
<path name="compress-offload-playback5 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback5 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback5 bt-a2dp" />
|
||||
<path name="compress-offload-playback5 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback5 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback5 usb-headphones" />
|
||||
<path name="compress-offload-playback5 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback5 speaker-and-headphones">
|
||||
<path name="compress-offload-playback5 headphones" />
|
||||
<path name="compress-offload-playback5 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback6 speaker-and-display-port">
|
||||
<path name="compress-offload-playback6 display-port" />
|
||||
<path name="compress-offload-playback6 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback6 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback6 bt-sco" />
|
||||
<path name="compress-offload-playback6 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback6 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback6 bt-sco-wb" />
|
||||
<path name="compress-offload-playback6 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback6 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback6 bt-a2dp" />
|
||||
<path name="compress-offload-playback6 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback6 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback6 usb-headphones" />
|
||||
<path name="compress-offload-playback6 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback6 speaker-and-headphones">
|
||||
<path name="compress-offload-playback6 headphones" />
|
||||
<path name="compress-offload-playback6 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback7 speaker-and-display-port">
|
||||
<path name="compress-offload-playback7 display-port" />
|
||||
<path name="compress-offload-playback7 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback7 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback7 bt-sco" />
|
||||
<path name="compress-offload-playback7 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback7 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback7 bt-sco-wb" />
|
||||
<path name="compress-offload-playback7 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback7 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback7 bt-a2dp" />
|
||||
<path name="compress-offload-playback7 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback7 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback7 usb-headphones" />
|
||||
<path name="compress-offload-playback7 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback7 speaker-and-headphones">
|
||||
<path name="compress-offload-playback7 headphones" />
|
||||
<path name="compress-offload-playback7 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback8 speaker-and-display-port">
|
||||
<path name="compress-offload-playback8 display-port" />
|
||||
<path name="compress-offload-playback8 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback8 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback8 bt-sco" />
|
||||
<path name="compress-offload-playback8 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback8 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback8 bt-sco-wb" />
|
||||
<path name="compress-offload-playback8 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback8 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback8 bt-a2dp" />
|
||||
<path name="compress-offload-playback8 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback8 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback8 usb-headphones" />
|
||||
<path name="compress-offload-playback8 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback8 speaker-and-headphones">
|
||||
<path name="compress-offload-playback8 headphones" />
|
||||
<path name="compress-offload-playback8 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback9 speaker-and-display-port">
|
||||
<path name="compress-offload-playback9 display-port" />
|
||||
<path name="compress-offload-playback9 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback9 speaker-and-bt-sco">
|
||||
<path name="compress-offload-playback9 bt-sco" />
|
||||
<path name="compress-offload-playback9 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback9 speaker-and-bt-sco-wb">
|
||||
<path name="compress-offload-playback9 bt-sco-wb" />
|
||||
<path name="compress-offload-playback9 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback9 speaker-and-bt-a2dp">
|
||||
<path name="compress-offload-playback9 bt-a2dp" />
|
||||
<path name="compress-offload-playback9 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback9 speaker-and-usb-headphones">
|
||||
<path name="compress-offload-playback9 usb-headphones" />
|
||||
<path name="compress-offload-playback9 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback9 speaker-and-headphones">
|
||||
<path name="compress-offload-playback9 headphones" />
|
||||
<path name="compress-offload-playback9 speaker" />
|
||||
</path>
|
||||
|
||||
<path name="low-latency-playback">
|
||||
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia5" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="compress-offload-playback2">
|
||||
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia7" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="voicemmode1-call">
|
||||
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode1" value="1" />
|
||||
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
|
||||
|
||||
</path>
|
||||
|
||||
<path name="voicemmode1-call speaker">
|
||||
<ctl name="VOC_EXT_EC MUX" value="PRI_MI2S_RX" />
|
||||
<ctl name="PRI_MI2S_RX_Voice Mixer VoiceMMode1" value="1" />
|
||||
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="voicemmode1-call speaker-2">
|
||||
<ctl name="VOC_EXT_EC MUX" value="PRI_MI2S_RX" />
|
||||
<ctl name="PRI_MI2S_RX_Voice Mixer VoiceMMode1" value="1" />
|
||||
<ctl name="VoiceMMode1_Tx Mixer TX_CDC_DMA_TX_3_MMode1" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="voicemmode2-call">
|
||||
<ctl name="RX_CDC_DMA_RX_0_Voice Mixer VoiceMMode2" value="1" />
|
||||
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_3_MMode2" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="voicemmode2-call speaker">
|
||||
<ctl name="VOC_EXT_EC MUX" value="PRI_MI2S_RX" />
|
||||
<ctl name="PRI_MI2S_RX_Voice Mixer VoiceMMode2" value="1" />
|
||||
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_3_MMode2" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="voicemmode2-call speaker-2">
|
||||
<ctl name="VOC_EXT_EC MUX" value="PRI_MI2S_RX" />
|
||||
<ctl name="PRI_MI2S_RX_Voice Mixer VoiceMMode2" value="1" />
|
||||
<ctl name="VoiceMMode2_Tx Mixer TX_CDC_DMA_TX_3_MMode2" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="speaker">
|
||||
</path>
|
||||
|
||||
<path name="speaker-protected">
|
||||
<path name="speaker" />
|
||||
</path>
|
||||
|
||||
<path name="voice-speaker">
|
||||
</path>
|
||||
|
||||
<path name="speaker-mono">
|
||||
</path>
|
||||
|
||||
<path name="speaker-mono-2">
|
||||
</path>
|
||||
|
||||
<path name="voice-speaker-protected">
|
||||
<path name="speaker" />
|
||||
</path>
|
||||
|
||||
<path name="spkr-rx-calib">
|
||||
<ctl name="PRI_MI2S_RX_DL_HL Switch" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="handset">
|
||||
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
|
||||
<ctl name="RX_CDC_DMA_RX_0 Channels" value="One" />
|
||||
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
|
||||
<ctl name="RX_COMP1 Switch" value="0" />
|
||||
<ctl name="RX_COMP2 Switch" value="0" />
|
||||
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
|
||||
<ctl name="EAR_RDAC Switch" value="1" />
|
||||
<ctl name="RDAC3_MUX" value="RX1" />
|
||||
<ctl name="RX_EAR Mode" value="ON" />
|
||||
<ctl name="EAR PA GAIN" value="G_6_DB" />
|
||||
</path>
|
||||
|
||||
<path name="handset-mic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
|
||||
<path name="speaker-mic">
|
||||
<path name="amic1" />
|
||||
</path>
|
||||
|
||||
<path name="headphones">
|
||||
<ctl name="RX_MACRO RX0 MUX" value="AIF1_PB" />
|
||||
<ctl name="RX_MACRO RX1 MUX" value="AIF1_PB" />
|
||||
<ctl name="RX_CDC_DMA_RX_0 Channels" value="Two" />
|
||||
<ctl name="RX INT0_1 MIX1 INP0" value="RX0" />
|
||||
<ctl name="RX INT1_1 MIX1 INP0" value="RX1" />
|
||||
<ctl name="RX INT0 DEM MUX" value="CLSH_DSM_OUT" />
|
||||
<ctl name="RX INT1 DEM MUX" value="CLSH_DSM_OUT" />
|
||||
<ctl name="RX_COMP1 Switch" value="0" />
|
||||
<ctl name="RX_COMP2 Switch" value="0" />
|
||||
<ctl name="HPHL_RDAC Switch" value="1" />
|
||||
<ctl name="HPHR_RDAC Switch" value="1" />
|
||||
</path>
|
||||
|
||||
<!-- Dual MIC devices -->
|
||||
<path name="handset-dmic-endfire">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="12" />
|
||||
<ctl name="ADC1 Volume" value="12" />
|
||||
</path>
|
||||
|
||||
<path name="speaker-dmic-endfire">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="10" />
|
||||
<ctl name="ADC1 Volume" value="10" />
|
||||
</path>
|
||||
|
||||
<path name="sidetone-headphones">
|
||||
</path>
|
||||
|
||||
<path name="audio-playback-voip">
|
||||
<ctl name="RX_CDC_DMA_RX_0 Audio Mixer MultiMedia10" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="compress-voip-call speaker">
|
||||
<ctl name="VOIP_EXT_EC MUX" value="PRI_MI2S_RX" />
|
||||
<ctl name="PRI_MI2S_RX_Voice Mixer Voip" value="1" />
|
||||
<ctl name="Voip_Tx Mixer TX_CDC_DMA_TX_3_Voip" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="camcorder-dmic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
|
||||
<path name="handset-dmic-music">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
|
||||
<path name="handset-dmic-voice">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
|
||||
<path name="handset-dmic-interview">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
|
||||
<path name="handset-dmic-hd">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
<path name="handset-stereo-dmic-ef">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="6" />
|
||||
<ctl name="ADC1 Volume" value="6" />
|
||||
</path>
|
||||
|
||||
<path name="voice-rec-mic">
|
||||
<path name="handset-mic" />
|
||||
</path>
|
||||
|
||||
<path name="asr-mic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX DEC0 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX0" value="ADC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="ADC1_MIXER Switch" value="1" />
|
||||
<ctl name="TX DEC1 MUX" value="SWR_MIC" />
|
||||
<ctl name="TX SMIC MUX1" value="ADC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="ADC2_MIXER Switch" value="1" />
|
||||
<ctl name="ADC2 MUX" value="INP3" />
|
||||
<ctl name="ADC2 Volume" value="12" />
|
||||
<ctl name="ADC1 Volume" value="12" />
|
||||
</path>
|
||||
|
||||
</mixer>
|
230
configs/audio/sound_trigger_mixer_paths.xml
Normal file
230
configs/audio/sound_trigger_mixer_paths.xml
Normal file
@ -0,0 +1,230 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2014-2018, 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 TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM2 Mixer TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM3 Mixer TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM4 Mixer TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM5 Mixer TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM6 Mixer TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM7 Mixer TX_CDC_DMA_TX_3" value="0" />
|
||||
<ctl name="LSM8 Mixer TX_CDC_DMA_TX_3" 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="TX_CDC_DMA_TX_3 LSM Function" value="None" />
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="One" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC2" value="0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC3" value="0" />
|
||||
<ctl name="TX DEC0 MUX" value="MSM_DMIC" />
|
||||
<ctl name="TX DMIC MUX0" value="ZERO" />
|
||||
<ctl name="TX DEC1 MUX" value="MSM_DMIC" />
|
||||
<ctl name="TX DMIC MUX1" value="ZERO" />
|
||||
<ctl name="TX DEC2 MUX" value="MSM_DMIC" />
|
||||
<ctl name="TX DMIC MUX2" value="ZERO" />
|
||||
<ctl name="TX DEC3 MUX" value="MSM_DMIC" />
|
||||
<ctl name="TX DMIC MUX3" value="ZERO" />
|
||||
<ctl name="AUDIO_REF_EC_UL1 MUX" value="None"/>
|
||||
<ctl name="EC Reference Channels" value="One"/>
|
||||
<ctl name="EC Reference Bit Format" value="0"/>
|
||||
<ctl name="EC Reference SampleRate" value="0"/>
|
||||
<ctl name="TX_DEC0 Volume" value="84" />
|
||||
<ctl name="TX_DEC1 Volume" value="84" />
|
||||
<ctl name="TX_DEC2 Volume" value="84" />
|
||||
<ctl name="TX_DEC3 Volume" value="84" />
|
||||
|
||||
<path name="listen-voice-wakeup-1">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM1 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM1 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM2 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM2 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-3">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM3 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM3 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-4">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM4 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM4 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-5">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM5 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM5 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-6">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM6 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM6 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-7">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM7 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM7 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-8">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM8 Port" value="TX_CDC_DMA_TX_3" />
|
||||
<ctl name="LSM8 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-1 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM1 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM1 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-2 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM2 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM2 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-3 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM3 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM3 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-4 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM4 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM4 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-5 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM5 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM5 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-6 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM6 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM6 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-7 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM7 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM7 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-voice-wakeup-8 preproc">
|
||||
<ctl name="TX_CDC_DMA_TX_3 LSM Function" value="SWAUDIO" />
|
||||
<ctl name="LSM8 Port" value="ADM_LSM_TX" />
|
||||
<ctl name="LSM8 Mixer TX_CDC_DMA_TX_3" value="1" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="One" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="TX_DEC0 Volume" value="102" />
|
||||
<ctl name="TX DMIC MUX0" value="DMIC2" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-mic-preproc">
|
||||
<path name="listen-ape-handset-mic"/>
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-dmic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Two" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="TX_DEC0 Volume" value="102" />
|
||||
<ctl name="TX_DEC1 Volume" value="102" />
|
||||
<ctl name="TX DMIC MUX0" value="DMIC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="TX DMIC MUX1" value="DMIC3" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-tmic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Three" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="TX_DEC0 Volume" value="102" />
|
||||
<ctl name="TX_DEC1 Volume" value="102" />
|
||||
<ctl name="TX_DEC2 Volume" value="102" />
|
||||
<ctl name="TX DMIC MUX0" value="DMIC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="TX DMIC MUX1" value="DMIC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC2" value="1" />
|
||||
<ctl name="TX DMIC MUX2" value="DMIC3" />
|
||||
</path>
|
||||
|
||||
<path name="listen-ape-handset-qmic">
|
||||
<ctl name="TX_CDC_DMA_TX_3 Channels" value="Four" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC0" value="1" />
|
||||
<ctl name="TX_DEC0 Volume" value="102" />
|
||||
<ctl name="TX_DEC1 Volume" value="102" />
|
||||
<ctl name="TX_DEC2 Volume" value="102" />
|
||||
<ctl name="TX_DEC3 Volume" value="102" />
|
||||
<ctl name="TX DMIC MUX0" value="DMIC2" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC1" value="1" />
|
||||
<ctl name="TX DMIC MUX1" value="DMIC0" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC2" value="1" />
|
||||
<ctl name="TX DMIC MUX2" value="DMIC3" />
|
||||
<ctl name="TX_AIF1_CAP Mixer DEC3" value="1" />
|
||||
<ctl name="TX DMIC MUX3" value="DMIC1" />
|
||||
</path>
|
||||
|
||||
<path name="echo-reference">
|
||||
<ctl name="AUDIO_REF_EC_UL1 MUX" value="WSA_CDC_DMA_RX_0"/>
|
||||
<ctl name="EC Reference Channels" value="Two"/>
|
||||
<ctl name="EC Reference Bit Format" value="S16_LE"/>
|
||||
<ctl name="EC Reference SampleRate" value="48000"/>
|
||||
</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>
|
356
configs/audio/sound_trigger_platform_info.xml
Normal file
356
configs/audio/sound_trigger_platform_info.xml
Normal file
@ -0,0 +1,356 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--- Copyright (c) 2013-2018, 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="0x0103" /> <!-- 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> -->
|
||||
<common_config>
|
||||
<param implementer_version="0x0100" />
|
||||
<param max_cpe_sessions="1" />
|
||||
<param max_wdsp_sessions="2" />
|
||||
<param max_ape_sessions="8" />
|
||||
<param enable_failure_detection="false" />
|
||||
<param support_device_switch="false" />
|
||||
<!-- Transition will only occur if execution_type="DYNAMIC" -->
|
||||
<param transit_to_adsp_on_playback="false" />
|
||||
<param transit_to_adsp_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 -->
|
||||
<!-- uncomment TX_CDC_DMA_TX_3 values for internal codec and comment SLIM_0_TX values -->
|
||||
<param backend_port_name="SLIM_0_TX" />
|
||||
<!-- param backend_port_name="TX_CDC_DMA_TX_3" /-->
|
||||
<!-- Param used to match and obtain device backend index -->
|
||||
<param backend_dai_name="SLIMBUS_0_TX" />
|
||||
<!-- param backend_dai_name="TX_CDC_DMA_TX_3" /-->
|
||||
|
||||
</common_config>
|
||||
<acdb_ids>
|
||||
<!--For internal codec please enable below device-->
|
||||
<!--param DEVICE_HANDSET_MIC_APE="130" /-->
|
||||
<param DEVICE_HANDSET_MIC_APE="100" />
|
||||
<param DEVICE_HANDSET_MIC_CPE="128" />
|
||||
<param DEVICE_HANDSET_MIC_ECPP_CPE="128" />
|
||||
<param DEVICE_HANDSET_TMIC_CPE="130" />
|
||||
<param DEVICE_HANDSET_MIC_PP_APE="135" />
|
||||
<param DEVICE_HANDSET_QMIC_APE="137" />
|
||||
<param DEVICE_HEADSET_MIC_CPE="139" />
|
||||
<param DEVICE_HANDSET_DMIC_APE="149" />
|
||||
<param DEVICE_HANDSET_DMIC_CPE="153" />
|
||||
<param DEVICE_HANDSET_TMIC_APE="157" />
|
||||
</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 library="libsmwrapper.so" />
|
||||
<param max_cpe_phrases="6" />
|
||||
<param max_cpe_users="3" />
|
||||
<param max_ape_phrases="20" />
|
||||
<param max_ape_users="10" />
|
||||
<!-- Profile specific data which the algorithm can support -->
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
<param out_channels="1"/> <!-- Module output channels -->
|
||||
<!-- 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", "FLUENCE_DMIC", "FLUENCE_TMIC", -->
|
||||
<!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"-->
|
||||
<param fluence_type="FLUENCE_TMIC" />
|
||||
<!-- wdsp_fluence_type: fluence disabled: "NONE" -->
|
||||
<!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_TMIC", "FLUENCE_QMIC" -->
|
||||
<param wdsp_fluence_type="NONE" />
|
||||
<arm_ss_usecase>
|
||||
<!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
|
||||
<param sm_detection_type= "KEYWORD_DETECTION" />
|
||||
<param sm_id="0x2" />
|
||||
<param module_lib="libcapiv2svacnn.so"/>
|
||||
<param sample_rate="16000"/>
|
||||
<param bit_wdith="16"/>
|
||||
<param channel_count="1"/>
|
||||
</arm_ss_usecase>
|
||||
<arm_ss_usecase>
|
||||
<param sm_detection_type= "USER_VERIFICATION" />
|
||||
<param sm_id="0x4" />
|
||||
<param module_lib="libcapiv2vop.so"/>
|
||||
<param sample_rate="16000"/>
|
||||
<param bit_wdith="16"/>
|
||||
<param channel_count="1"/>
|
||||
</arm_ss_usecase>
|
||||
<gcs_usecase>
|
||||
<param uid="0x1" />
|
||||
<param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE, DEVICE_HEADSET_MIC_CPE" />
|
||||
<!-- 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" />
|
||||
<param custom_config_ids="0x00012C0D, 0x2, 0x00012C20" />
|
||||
</gcs_usecase>
|
||||
<gcs_usecase>
|
||||
<param uid="0x2" />
|
||||
<param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE, DEVICE_HEADSET_MIC_CPE" />
|
||||
<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" />
|
||||
<param custom_config_ids="0x00012C0D, 0x3, 0x00012C20" />
|
||||
</gcs_usecase>
|
||||
<gcs_usecase>
|
||||
<param uid="0x7" />
|
||||
<param acdb_devices="DEVICE_HANDSET_DMIC_CPE" />
|
||||
<param load_sound_model_ids="0x00012C0D, 0x7, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x00012C0D, 0x7, 0x00012C28" />
|
||||
<param detection_event_ids="0x00012C0D, 0x7, 0x00012B05" />
|
||||
<param read_cmd_ids="0x00020013, 0x7, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x7, 0x00020016" />
|
||||
<param custom_config_ids="0x00012C0D, 0x7, 0x00012C20" />
|
||||
<param det_event_type_ids="0x00012C0D, 0x7, 0x00012C2A" />
|
||||
</gcs_usecase>
|
||||
<gcs_usecase>
|
||||
<param uid="0x8" />
|
||||
<param acdb_devices="DEVICE_HANDSET_DMIC_CPE" />
|
||||
<param load_sound_model_ids="0x00012C0D, 0x8, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x00012C0D, 0x8, 0x00012C28" />
|
||||
<param detection_event_ids="0x00012C0D, 0x8, 0x00012B05" />
|
||||
<param read_cmd_ids="0x00020013, 0x8, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x8, 0x00020016" />
|
||||
<param custom_config_ids="0x00012C0D, 0x8, 0x00012C20" />
|
||||
<param det_event_type_ids="0x00012C0D, 0x8, 0x00012C2A" />
|
||||
</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 type.
|
||||
valid execution_type values: "WDSP" "ADSP" -->
|
||||
<lsm_usecase>
|
||||
<param execution_mode="ADSP" />
|
||||
<param app_type="2" /> <!-- app type used in ACDB -->
|
||||
<param in_channels="5"/> <!-- Module input channels -->
|
||||
<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" />
|
||||
<param custom_config_ids="0x00012C1C, 0x00012C20" />
|
||||
</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" />
|
||||
<param custom_config_ids="0x00012C0D, 0x00012C20" />
|
||||
</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>
|
||||
|
||||
<!-- QTI Music Detection !-->
|
||||
<sound_model_config>
|
||||
<param vendor_uuid="876c1b46-9d4d-40cc-a4fd-4d5ec7a80e47" />
|
||||
<param execution_type="ADSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
|
||||
<param library="libsmwrapper.so" />
|
||||
<param max_cpe_phrases="1" />
|
||||
<param max_cpe_users="1" />
|
||||
<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 -->
|
||||
<!-- 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_TMIC" -->
|
||||
<!-- "FLUENCE_QMIC". Param value is valid when adm_cfg_profile -->
|
||||
<!-- is one of FLUENCE, FLUENCE_STEREO, FFECNS values -->
|
||||
<param fluence_type="FLUENCE_DMIC" />
|
||||
<!-- wdsp_fluence_type: fluence disabled: "NONE" -->
|
||||
<!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_TMIC", "FLUENCE_QMIC" -->
|
||||
<param wdsp_fluence_type="NONE" />
|
||||
<gcs_usecase>
|
||||
<param uid="0x5" />
|
||||
<param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE, DEVICE_HEADSET_MIC_CPE" />
|
||||
<!-- module_id, instance_id, param_id -->
|
||||
<param load_sound_model_ids="0x00012C2E, 0x6, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x00012C2E, 0x6, 0x00012C28" />
|
||||
<param detection_event_ids="0x00012C2E, 0x6, 0x00012B05" />
|
||||
<param read_cmd_ids="0x00020013, 0x6, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x6, 0x00020016" />
|
||||
<param custom_config_ids="0x00012C2E, 0x6, 0x00012C2D" />
|
||||
<param det_event_type_ids="0x00012C2E, 0x6, 0x00012C2C" />
|
||||
</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 type.
|
||||
valid execution_type values: only "ADSP" -->
|
||||
<lsm_usecase>
|
||||
<param execution_mode="ADSP" />
|
||||
<param app_type="4" /> <!-- app type for MD used in ACDB -->
|
||||
<param in_channels="1"/> <!-- Module input channels -->
|
||||
<param load_sound_model_ids="0x00012C22, 0x00012C14" />
|
||||
<param unload_sound_model_ids="0x00012C22, 0x00012C15" />
|
||||
<param confidence_levels_ids="0x00012C22, 0x00012C07" />
|
||||
<param det_event_type_ids="0x00012C22, 0x00012C2C" />
|
||||
<param custom_config_ids="0x00012C22, 0x00012C30" />
|
||||
</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, FTRT, 1500" />
|
||||
<param client_capture_read_delay="2000" />
|
||||
</sound_model_config>
|
||||
|
||||
<!-- Sound model config for Hotword !-->
|
||||
<sound_model_config>
|
||||
<param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15" />
|
||||
<param execution_type="WDSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
|
||||
<param library="none" />
|
||||
<param max_cpe_phrases="1" />
|
||||
<param max_cpe_users="1" />
|
||||
<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 -->
|
||||
<!-- 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_TMIC", -->
|
||||
<!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"-->
|
||||
<param fluence_type="FLUENCE_DMIC" />
|
||||
<!-- wdsp_fluence_type: fluence disabled: "NONE" -->
|
||||
<!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_TMIC", "FLUENCE_QMIC" -->
|
||||
<param wdsp_fluence_type="NONE" />
|
||||
<gcs_usecase>
|
||||
<param uid="0x3" />
|
||||
<param acdb_devices="DEVICE_HANDSET_MIC_CPE, DEVICE_HANDSET_TMIC_CPE" />
|
||||
<param load_sound_model_ids="0x18000001, 0x4, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x18000001, 0x4, 0x00012C28" />
|
||||
<param detection_event_ids="0x18000001, 0x4, 0x00012C29" />
|
||||
<param read_cmd_ids="0x00020013, 0x4, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x4, 0x00020016" />
|
||||
<param custom_config_ids="0x18000001, 0x4, 0x00012C20" />
|
||||
</gcs_usecase>
|
||||
<gcs_usecase>
|
||||
<param uid="0x4" />
|
||||
<param acdb_devices="DEVICE_HANDSET_DMIC_CPE" />
|
||||
<param load_sound_model_ids="0x18000001, 0x5, 0x00012C14" />
|
||||
<param confidence_levels_ids="0x18000001, 0x5, 0x00012C28" />
|
||||
<param detection_event_ids="0x18000001, 0x5, 0x00012C29" />
|
||||
<param read_cmd_ids="0x00020013, 0x5, 0x00020015" />
|
||||
<param read_rsp_ids="0x00020013, 0x5, 0x00020016" />
|
||||
<param custom_config_ids="0x18000001, 0x5, 0x00012C20" />
|
||||
</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 type.
|
||||
valid execution_type values: "WDSP" "ADSP" -->
|
||||
<lsm_usecase>
|
||||
<param execution_mode="ADSP" />
|
||||
<param app_type="3" /> <!-- app type used in ACDB -->
|
||||
<param in_channels="1"/> <!-- Module input channels -->
|
||||
<param load_sound_model_ids="0x18000001, 0x00012C14" />
|
||||
<param unload_sound_model_ids="0x18000001, 0x00012C15" />
|
||||
<param confidence_levels_ids="0x18000001, 0x00012C07" />
|
||||
<param operation_mode_ids="0x18000001, 0x00012C02" />
|
||||
<param polling_enable_ids="0x18000001, 0x00012C1B" />
|
||||
<param custom_config_ids="0x18000001, 0x00012C20" />
|
||||
</lsm_usecase>
|
||||
|
||||
<lsm_usecase>
|
||||
<param execution_mode="WDSP" />
|
||||
<param load_sound_model_ids="0x18000001, 0x00012C14" />
|
||||
<param unload_sound_model_ids="0x18000001, 0x00012C15" />
|
||||
<param confidence_levels_ids="0x18000001, 0x00012C07" />
|
||||
<param operation_mode_ids="0x18000001, 0x00012C02" />
|
||||
<param custom_config_ids="0x18000001, 0x00012C20" />
|
||||
</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="69944" />
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
</adm_config>
|
||||
|
||||
<adm_config>
|
||||
<param adm_cfg_profile="FLUENCE_STEREO" />
|
||||
<param app_type="69948" />
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
</adm_config>
|
||||
|
||||
<adm_config>
|
||||
<param adm_cfg_profile="FFECNS" />
|
||||
<param app_type="69947" />
|
||||
<param sample_rate="16000" />
|
||||
<param bit_width="16" />
|
||||
<param out_channels="5"/>
|
||||
</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>
|
18
device.mk
18
device.mk
@ -49,6 +49,24 @@ PRODUCT_PACKAGES += \
|
||||
libaudio-resampler \
|
||||
tinymix
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/audio/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs_stock.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
|
||||
$(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
|
||||
$(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
|
||||
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \
|
||||
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
|
||||
$(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
|
||||
$(LOCAL_PATH)/configs/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/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
||||
|
Loading…
Reference in New Issue
Block a user