Home | History | Annotate | Download | only in crosshatch
      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_cpe_sessions="1" />
     36         <param max_wdsp_sessions="3" />
     37         <param max_ape_sessions="8" />
     38         <param enable_failure_detection="false" />
     39         <param support_device_switch="false" />
     40         <param transit_to_adsp_on_playback="true" />
     41         <param concurrent_capture="true" />
     42         <!-- Below backend params must match with port used in mixer path file -->
     43         <!-- param used to configure backend sample rate, format and channels -->
     44         <param backend_port_name="SLIM_3_TX" />
     45         <!-- Param used to match and obtain device backend index -->
     46         <param backend_dai_name="SLIMBUS_3_TX" />
     47     </common_config>
     48     <acdb_ids>
     49         <param DEVICE_HANDSET_MIC_APE="100" />
     50         <param DEVICE_HANDSET_MIC_CPE="128" />
     51         <param DEVICE_HANDSET_MIC_ECPP_CPE="128" />
     52         <param DEVICE_HANDSET_MIC_PP_APE="135" />
     53         <param DEVICE_HEADSET_MIC_CPE="139" />
     54         <param DEVICE_HANDSET_DMIC_APE="149" />
     55     </acdb_ids>
     56     <!-- Multiple sound_model_config tags can be listed, each with unique
     57          vendor_uuid. -->
     58     <sound_model_config>
     59         <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15" />
     60         <param execution_type="DYNAMIC" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
     61         <param app_type="3" /> <!-- app type used in ACDB -->
     62         <param library="none" />
     63         <param max_cpe_phrases="1" />
     64         <param max_cpe_users="1" />
     65         <param max_ape_phrases="1" />
     66         <param max_ape_users="1" />
     67         <!-- Profile specific data which the algorithm can support -->
     68         <param sample_rate="16000" />
     69         <param bit_width="16" />
     70         <param channel_count="1"/>
     71         <!-- adm_cfg_profile should match with the one defined under adm_config -->
     72         <!-- Set it to NONE if LSM directly connects to AFE -->
     73         <param adm_cfg_profile="FLUENCE" />
     74         <!-- fluence_type: "FLUENCE", "FLUENCE_DMIC" -->
     75         <!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"-->
     76         <param fluence_type="FLUENCE_DMIC" />
     77         <!-- wdsp_fluence_type: fluence disabled: "NONE" -->
     78         <!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_QMIC" -->
     79         <param wdsp_fluence_type="NONE" />
     80         <gcs_usecase>
     81             <param uid="0x3" />
     82             <param acdb_devices="DEVICE_HANDSET_MIC_CPE" />
     83             <param load_sound_model_ids="0x18000001, 0x4, 0x18000100" />
     84             <param start_engine_ids="0x18000001, 0x4, 0x18000101" />
     85             <param request_detection_ids="0x18000001, 0x4, 0x18000106" />
     86             <param confidence_levels_ids="0x18000001, 0x4, 0x00012C28" />
     87             <param detection_event_ids="0x18000001, 0x4, 0x00012C29" />
     88             <param custom_config_ids="0x18000001, 0x4, 0x00012C20" />
     89             <param read_cmd_ids="0x00020013, 0x4, 0x00020015" />
     90             <param read_rsp_ids="0x00020013, 0x4, 0x00020016" />
     91         </gcs_usecase>
     92         <!-- Two channel gcs usecase TBD -->
     93         <lsm_usecase>
     94             <param execution_mode="ADSP" />
     95             <param load_sound_model_ids="0x18000001, 0x00012C14" />
     96             <param unload_sound_model_ids="0x18000001, 0x00012C15" />
     97             <param confidence_levels_ids="0x18000001, 0x00012C07" />
     98             <param operation_mode_ids="0x18000001, 0x00012C02" />
     99             <param polling_enable_ids="0x18000001, 0x00012C1B" />
    100             <param custom_config_ids="0x18000001, 0x00012C20" />
    101         </lsm_usecase>
    102         <!--  kw_duration is in milli seconds. It is valid only for FTRT
    103             transfer mode -->
    104         <param capture_keyword="PCM_raw, FTRT, 2000" />
    105         <param client_capture_read_delay="2000" />
    106     </sound_model_config>
    107 
    108     <sound_model_config> <!-- Music Detection -->
    109         <param vendor_uuid="9f6ad62a-1f0b-11e7-87c5-40a8f03d3f15" />
    110         <param execution_type="DYNAMIC" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
    111         <param app_type="4" /> <!-- app type used in ACDB -->
    112         <param library="none" />
    113         <param sample_rate="16000" />
    114         <param bit_width="16" />
    115         <param channel_count="1"/>
    116         <!-- adm_cfg_profile should match with the one defined under adm_config -->
    117         <!-- Set it to NONE if LSM directly connects to AFE -->
    118         <param adm_cfg_profile="FLUENCE" />
    119         <!-- fluence_type: "FLUENCE", "FLUENCE_DMIC" -->
    120         <!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"-->
    121         <param fluence_type="FLUENCE_DMIC" />
    122 
    123         <!-- fluence enabled: "FLUENCE_DMIC", "FLUENCE_QMIC" -->
    124         <param wdsp_fluence_type="NONE" />
    125         <gcs_usecase>
    126             <param uid="0x5" />
    127             <param acdb_devices="DEVICE_HANDSET_MIC_CPE" />
    128             <param load_sound_model_ids="0x18000001, 0x4, 0x18000102" />
    129             <param start_engine_ids="0x18000001, 0x4, 0x18000103" />
    130             <param request_detection_ids="0x18000001, 0x4, 0x18000107" />
    131             <param confidence_levels_ids="0x18000001, 0x4, 0x00012C28" />
    132             <param detection_event_ids="0x18000001, 0x4, 0x00012C29" />
    133             <param custom_config_ids="0x18000001, 0x4, 0x00012C20" />
    134             <param read_cmd_ids="0x00020013, 0x6, 0x00020015" />
    135             <param read_rsp_ids="0x00020013, 0x6, 0x00020016" />
    136         </gcs_usecase>
    137         <lsm_usecase>
    138             <param execution_mode="ADSP" />
    139             <param load_sound_model_ids="0x18100000, 0x00012C14" />
    140             <param unload_sound_model_ids="0x18100000, 0x00012C15" />
    141             <param confidence_levels_ids="0x18100000, 0x00012C07" />
    142             <param operation_mode_ids="0x18100000, 0x00012C02" />
    143             <param polling_enable_ids="0x18100000, 0x00012C1B" />
    144             <param custom_config_ids="0x18100000, 0x00012C20" />
    145         </lsm_usecase>
    146         <!--  kw_duration is in milli seconds. It is valid only for FTRT
    147             transfer mode -->
    148         <param capture_keyword="MULAW_raw, FTRT, 5000" />
    149         <param client_capture_read_delay="2000" />
    150     </sound_model_config>
    151 
    152     <!-- Multiple adm_config tags can be listed, each with unique profile name. -->
    153     <!-- app_type to match corresponding value from ACDB -->
    154     <adm_config>
    155         <param adm_cfg_profile="DEFAULT" />
    156         <param app_type="69938" />
    157         <param sample_rate="16000" />
    158         <param bit_width="16" />
    159     </adm_config>
    160 
    161     <adm_config>
    162         <param adm_cfg_profile="FLUENCE" />
    163         <param app_type="69944" />
    164         <param sample_rate="16000" />
    165         <param bit_width="16" />
    166     </adm_config>
    167 
    168     <adm_config>
    169         <param adm_cfg_profile="FLUENCE_STEREO" />
    170         <param app_type="69948" />
    171         <param sample_rate="16000" />
    172         <param bit_width="16" />
    173     </adm_config>
    174 
    175     <!-- backend_type tag defines backend type for each device -->
    176     <!-- Default value is assumed for devices that are not listed here -->
    177     <backend_type>
    178         <param DEVICE_HANDSET_MIC_ECPP_CPE="BACKEND_ECPP" />
    179     </backend_type>
    180 
    181     <lpma_config>
    182         <param uid="0x10" />
    183         <param bridge_buffer_ids="0x00020010, 0x4, 0x00020018" />
    184     </lpma_config>
    185 </sound_trigger_platform_info>
    186