1<?xml version="1.0" encoding="ISO-8859-1"?> 2<!--- Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. --> 3<!--- --> 4<!--- Redistribution and use in source and binary forms, with or without --> 5<!--- modification, are permitted provided that the following conditions are --> 6<!--- met: --> 7<!--- * Redistributions of source code must retain the above copyright --> 8<!--- notice, this list of conditions and the following disclaimer. --> 9<!--- * Redistributions in binary form must reproduce the above --> 10<!--- copyright notice, this list of conditions and the following --> 11<!--- disclaimer in the documentation and/or other materials provided --> 12<!--- with the distribution. --> 13<!--- * Neither the name of The Linux Foundation nor the names of its --> 14<!--- contributors may be used to endorse or promote products derived --> 15<!--- from this software without specific prior written permission. --> 16<!--- --> 17<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED --> 18<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF --> 19<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT --> 20<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS --> 21<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR --> 22<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF --> 23<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR --> 24<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, --> 25<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE --> 26<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN --> 27<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> 28<sound_trigger_platform_info> 29 <param version="0x0102" /> <!-- this must be the first param --> 30<!--- Version History: --> 31<!--- 0x0101: Legacy version. --> 32<!--- 0x0102: Includes acdb_ids param with the gcs_usecase tag. This matches --> 33<!--- the gcs_usecase with the acdb device that uses it. --> 34 <common_config> 35 <param max_ape_sessions="8" /> 36 <param enable_failure_detection="false" /> 37 <param support_device_switch="false" /> 38 <param transit_to_adsp_on_playback="true" /> 39 <param concurrent_capture="true" /> 40 <!-- Below backend params must match with port used in mixer path file --> 41 <!-- param used to configure backend sample rate, format and channels --> 42 <param backend_port_name="PRI_TDM_TX_0" /> 43 <!-- Param used to match and obtain device backend index --> 44 <param backend_dai_name="PRI_TDM_TX_0" /> 45 </common_config> 46 <acdb_ids> 47 <param DEVICE_HANDSET_MIC_APE="100" /> 48 <param DEVICE_HANDSET_MIC_PP_APE="135" /> 49 <param DEVICE_HANDSET_DMIC_APE="149" /> 50 </acdb_ids> 51 <!-- Multiple sound_model_config tags can be listed, each with unique 52 vendor_uuid. --> 53 <sound_model_config> 54 <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15" /> 55 <param execution_type="ADSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" --> 56 <param app_type="3" /> <!-- app type used in ACDB --> 57 <param library="none" /> 58 <param max_ape_phrases="1" /> 59 <param max_ape_users="1" /> 60 <!-- Profile specific data which the algorithm can support --> 61 <param sample_rate="16000" /> 62 <param bit_width="16" /> 63 <param channel_count="1"/> 64 <!-- adm_cfg_profile should match with the one defined under adm_config --> 65 <!-- Set it to NONE if LSM directly connects to AFE --> 66 <param adm_cfg_profile="FLUENCE" /> 67 <!-- fluence_type: "FLUENCE", "FLUENCE_DMIC" --> 68 <!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"--> 69 <param fluence_type="FLUENCE_DMIC" /> 70 <!-- wdsp_fluence_type: fluence disabled: "NONE" --> 71 <!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_QMIC" --> 72 <!-- Two channel gcs usecase TBD --> 73 <lsm_usecase> 74 <param execution_mode="ADSP" /> 75 <param load_sound_model_ids="0x18000001, 0x00012C14" /> 76 <param unload_sound_model_ids="0x18000001, 0x00012C15" /> 77 <param confidence_levels_ids="0x18000001, 0x00012C07" /> 78 <param operation_mode_ids="0x18000001, 0x00012C02" /> 79 <param polling_enable_ids="0x18000001, 0x00012C1B" /> 80 <param custom_config_ids="0x18000001, 0x00012C20" /> 81 </lsm_usecase> 82 <!-- kw_duration is in milli seconds. It is valid only for FTRT 83 transfer mode --> 84 <param capture_keyword="PCM_raw, FTRT, 2000" /> 85 <param client_capture_read_delay="2000" /> 86 </sound_model_config> 87 88 <sound_model_config> <!-- Music Detection --> 89 <param vendor_uuid="9f6ad62a-1f0b-11e7-87c5-40a8f03d3f15" /> 90 <param execution_type="ADSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" --> 91 <param app_type="4" /> <!-- app type used in ACDB --> 92 <param library="none" /> 93 <param sample_rate="16000" /> 94 <param bit_width="16" /> 95 <param channel_count="1"/> 96 <!-- adm_cfg_profile should match with the one defined under adm_config --> 97 <!-- Set it to NONE if LSM directly connects to AFE --> 98 <param adm_cfg_profile="FLUENCE" /> 99 <!-- fluence_type: "FLUENCE", "FLUENCE_DMIC" --> 100 <!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"--> 101 <param fluence_type="FLUENCE_DMIC" /> 102 103 <lsm_usecase> 104 <param execution_mode="ADSP" /> 105 <param load_sound_model_ids="0x18100000, 0x00012C14" /> 106 <param unload_sound_model_ids="0x18100000, 0x00012C15" /> 107 <param confidence_levels_ids="0x18100000, 0x00012C07" /> 108 <param operation_mode_ids="0x18100000, 0x00012C02" /> 109 <param polling_enable_ids="0x18100000, 0x00012C1B" /> 110 <param custom_config_ids="0x18100000, 0x00012C20" /> 111 </lsm_usecase> 112 <!-- kw_duration is in milli seconds. It is valid only for FTRT 113 transfer mode --> 114 <param capture_keyword="MULAW_raw, FTRT, 5000" /> 115 <param client_capture_read_delay="2000" /> 116 </sound_model_config> 117 118 <!-- Multiple adm_config tags can be listed, each with unique profile name. --> 119 <!-- app_type to match corresponding value from ACDB --> 120 <adm_config> 121 <param adm_cfg_profile="DEFAULT" /> 122 <param app_type="69938" /> 123 <param sample_rate="16000" /> 124 <param bit_width="16" /> 125 </adm_config> 126 127 <adm_config> 128 <param adm_cfg_profile="FLUENCE" /> 129 <param app_type="69944" /> 130 <param sample_rate="16000" /> 131 <param bit_width="16" /> 132 </adm_config> 133 134 <adm_config> 135 <param adm_cfg_profile="FLUENCE_STEREO" /> 136 <param app_type="69948" /> 137 <param sample_rate="16000" /> 138 <param bit_width="16" /> 139 </adm_config> 140 141 <lpma_config> 142 <param uid="0x10" /> 143 <param bridge_buffer_ids="0x00020010, 0x4, 0x00020018" /> 144 </lpma_config> 145</sound_trigger_platform_info> 146