sound_trigger_platform_info.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!--- Copyright (c) 2013-2016, 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="0x0101" /> <!-- this must be the first param -->
  30. <common_config>
  31. <param implementer_version="0x0100" />
  32. <param max_cpe_sessions="1" />
  33. <param max_ape_sessions="5" />
  34. <param enable_failure_detection="false" />
  35. <param rx_concurrency_disabled="true" />
  36. <param rx_conc_max_st_ses="1" />
  37. <!-- Transition will only occur if execution_type="DYNAMIC" -->
  38. <param transit_to_adsp_on_playback="false" />
  39. <!-- Below backend params must match with port used in mixer path file -->
  40. <!-- param used to configure backend sample rate, format and channels -->
  41. <!--Enable below backend params for internal codec-->
  42. <!--param backend_port_name="MI2S_TX" />
  43. <param backend_dai_name="TERT_MI2S_TX" /-->
  44. <param backend_port_name="SLIM_0_TX" />
  45. <param backend_dai_name="SLIMBUS_0_TX" />
  46. </common_config>
  47. <acdb_ids>
  48. <!--For internal codec please enable below device-->
  49. <!--param DEVICE_HANDSET_MIC_APE="130" /-->
  50. <param DEVICE_HANDSET_MIC_APE="100" />
  51. <param DEVICE_HANDSET_MIC_CPE="128" />
  52. <param DEVICE_HANDSET_MIC_ECPP_CPE="128" />
  53. <param DEVICE_HANDSET_MIC_PP_APE="151" />
  54. <param DEVICE_HANDSET_QMIC_APE="150" />
  55. <param DEVICE_HANDSET_DMIC_APE="149" />
  56. </acdb_ids>
  57. <!-- Multiple sound_model_config tags can be listed, each with unique -->
  58. <!-- vendor_uuid. The below tag represents QTI SVA engine sound model -->
  59. <!-- configuration. ISV must use their own unique vendor_uuid. -->
  60. <sound_model_config>
  61. <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b" />
  62. <param execution_type="ADSP" /> <!-- value: "WDSP" "ADSP" "DYNAMIC" -->
  63. <param app_type="2" /> <!-- app type used in ACDB -->
  64. <param library="libsmwrapper.so" />
  65. <param max_cpe_phrases="6" />
  66. <param max_cpe_users="3" />
  67. <param max_ape_phrases="10" />
  68. <param max_ape_users="10" />
  69. <param sample_rate="16000" />
  70. <param bit_width="16" />
  71. <param channel_count="1"/>
  72. <!-- adm_cfg_profile should match with the one defined under adm_config -->
  73. <!-- Set it to NONE if LSM directly connects to AFE -->
  74. <param adm_cfg_profile="NONE" />
  75. <!-- fluence_type: "FLUENCE", "FLUENCE_DMIC", "FLUENCE_TMIC", -->
  76. <!-- "FLUENCE_QMIC". param value is valid when adm_cfg_profile="FLUENCE"-->
  77. <param fluence_type="FLUENCE_QMIC" />
  78. <!-- Module and param ids with which the algorithm is integrated in firmware -->
  79. <lsm_usecase>
  80. <param execution_mode="WDSP" />
  81. <param load_sound_model_ids="0x00012C0D, 0x00012C14" />
  82. <param unload_sound_model_ids="0x00012C0D, 0x00012C15" />
  83. <param confidence_levels_ids="0x00012C0D, 0x00012C07" />
  84. <param operation_mode_ids="0x00012C0D, 0x00012C02" />
  85. <param custom_config_ids="0x00012C0D, 0x00012C20" />
  86. </lsm_usecase>
  87. <lsm_usecase>
  88. <param execution_mode="ADSP" />
  89. <param load_sound_model_ids="0x00012C0D, 0x00012C14" />
  90. <param unload_sound_model_ids="0x00012C0D, 0x00012C15" />
  91. <param confidence_levels_ids="0x00012C0D, 0x00012C07" />
  92. <param operation_mode_ids="0x00012C0D, 0x00012C02" />
  93. <param custom_config_ids="0x00012C0D, 0x00012C20" />
  94. </lsm_usecase>
  95. <!-- format: "ADPCM_packet" or "PCM_packet" !-->
  96. <!-- transfer_mode: "FTRT" or "RT" -->
  97. <!-- kw_duration is in milli seconds. It is valid only for FTRT transfer mode -->
  98. <param capture_keyword="PCM_packet, RT, 2000" />
  99. <param client_capture_read_delay="2500" />
  100. <arm_ss_usecase>
  101. <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
  102. <param sm_detection_type= "KEYWORD_DETECTION" />
  103. <param sm_id="0x2" />
  104. <param module_lib="libcapiv2svacnn.so"/>
  105. <param sample_rate="16000"/>
  106. <param bit_wdith="16"/>
  107. <param channel_count="1"/>
  108. </arm_ss_usecase>
  109. <arm_ss_usecase>
  110. <param sm_detection_type= "USER_VERIFICATION" />
  111. <param sm_id="0x4" />
  112. <param module_lib="libcapiv2vop.so"/>
  113. <param sample_rate="16000"/>
  114. <param bit_wdith="16"/>
  115. <param channel_count="1"/>
  116. </arm_ss_usecase>
  117. </sound_model_config>
  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. <adm_config>
  127. <param adm_cfg_profile="FLUENCE" />
  128. <param app_type="69944" />
  129. <param sample_rate="16000" />
  130. <param bit_width="16" />
  131. </adm_config>
  132. </sound_trigger_platform_info>