blob: 6c9f55ea766c5d8adf5c2268c6425d44f9031997 [file] [log] [blame]
Banajit Goswami8b11ffe2016-04-07 01:56:17 -07001<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--- Copyright (c) 2013-2016, 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>
Garmond Leungdbb21122016-06-22 11:10:34 -070029 <param version="0x0101" /> <!-- this must be the first param -->
Garmond Leungdbb21122016-06-22 11:10:34 -070030 <common_config>
Vidyakumar Athota435ba162016-09-09 15:09:15 -070031 <param max_cpe_sessions="1" />
32 <param max_wdsp_sessions="2" />
Garmond Leungdbb21122016-06-22 11:10:34 -070033 <param max_ape_sessions="8" />
34 <param enable_failure_detection="false" />
35 </common_config>
Garmond Leungdbb21122016-06-22 11:10:34 -070036 <acdb_ids>
Vidyakumar Athota435ba162016-09-09 15:09:15 -070037 <param DEVICE_HANDSET_MIC_APE="100" />
38 <param DEVICE_HANDSET_MIC_CPE="128" />
39 <param DEVICE_HANDSET_MIC_ECPP_CPE="128" />
Garmond Leungdbb21122016-06-22 11:10:34 -070040 </acdb_ids>
Shiv Maliyappanahalli375ad152016-07-14 14:18:45 -070041 <!-- Multiple sound_model_config tags can be listed, each with unique -->
42 <!-- vendor_uuid. The below tag represents QTI SVA engine sound model -->
43 <!-- configuration. ISV must use their own unique vendor_uuid. -->
Garmond Leungdbb21122016-06-22 11:10:34 -070044 <sound_model_config>
45 <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b" />
Shiv Maliyappanahalli375ad152016-07-14 14:18:45 -070046 <param execution_type="WDSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
Garmond Leungdbb21122016-06-22 11:10:34 -070047 <param app_type="2" /> <!-- app type used in ACDB -->
48 <param library="libsmwrapper.so" />
49 <param max_cpe_phrases="6" />
50 <param max_cpe_users="3" />
51 <param max_ape_phrases="10" />
52 <param max_ape_users="10" />
53 <param sample_rate="16000" />
Vidyakumar Athota435ba162016-09-09 15:09:15 -070054 <gcs_usecase>
Shiv Maliyappanahalli375ad152016-07-14 14:18:45 -070055 <param uid="0x1" />
Vidyakumar Athota435ba162016-09-09 15:09:15 -070056 <!-- module_id, instance_id, param_id -->
57 <param load_sound_model_ids="0x00012C0D, 0x2, 0x00012C14" />
58 <param confidence_levels_ids="0x00012C0D, 0x2, 0x00012C28" />
59 <param detection_event_ids="0x00012C0D, 0x2, 0x00012C29" />
60 <param read_cmd_ids="0x00020013, 0x2, 0x00020015" />
61 <param read_rsp_ids="0x00020013, 0x2, 0x00020016" />
62 </gcs_usecase>
63 <gcs_usecase>
Banajit Goswami75aa1632016-08-31 19:56:27 -070064 <param uid="0x2" />
Vidyakumar Athota435ba162016-09-09 15:09:15 -070065 <param load_sound_model_ids="0x00012C0D, 0x3, 0x00012C14" />
66 <param confidence_levels_ids="0x00012C0D, 0x3, 0x00012C28" />
67 <param detection_event_ids="0x00012C0D, 0x3, 0x00012C29" />
68 <param read_cmd_ids="0x00020013, 0x3, 0x00020015" />
69 <param read_rsp_ids="0x00020013, 0x3, 0x00020016" />
70 </gcs_usecase>
Shiv Maliyappanahalli375ad152016-07-14 14:18:45 -070071 <!-- Module and param ids with which the algorithm is integrated
72 in non-graphite firmware (note these must come after gcs params) -->
Garmond Leungdbb21122016-06-22 11:10:34 -070073 <param load_sound_model_ids="0x00012C0D, 0x00012C14" />
74 <param unload_sound_model_ids="0x00012C0D, 0x00012C15" />
75 <param confidence_levels_ids="0x00012C0D, 0x00012C07" />
76 <param operation_mode_ids="0x00012C0D, 0x00012C02" />
77
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070078 <!-- format: "ADPCM_packet" or "PCM_packet" !-->
79 <!-- transfer_mode: "FTRT" or "RT" -->
Shiv Maliyappanahalli375ad152016-07-14 14:18:45 -070080 <!-- kw_duration is in milli seconds. It is valid only for FTRT
81 transfer mode -->
Garmond Leungdbb21122016-06-22 11:10:34 -070082 <param capture_keyword="PCM_packet, RT, 2000" />
83 <param client_capture_read_delay="2000" />
84 </sound_model_config>
Banajit Goswami8b11ffe2016-04-07 01:56:17 -070085</sound_trigger_platform_info>