resourcemanager_waipio_mtp.xml 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!-- Copyright (c) 2020-2021, 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. <resource_manager_info>
  29. <config_params>
  30. <param key="native_audio_mode" value="multiple_mix_dsp"/>
  31. <!-- Uncomment HIFI Filter Headphones related sections when set this
  32. hifi_filter key to true -->
  33. <param key="hifi_filter" value="false"/>
  34. <param key="max_sessions" value="128"/>
  35. <param key="max_nonTunnel_sessions" value="4"/>
  36. <param key="logging_level" value ="0xF" />
  37. <param key="context_manager_enable" value ="false" />
  38. <param key="upd_dedicated_be" value ="true" />
  39. <param key="dual_mono" value ="false" />
  40. <param key="signal_handler" value ="true" />
  41. </config_params>
  42. <config_volume>
  43. <use_volume_set_param>1</use_volume_set_param>
  44. <supported_streams>
  45. <supported_stream>PAL_STREAM_COMPRESSED</supported_stream>
  46. <supported_stream>PAL_STREAM_PCM_OFFLOAD</supported_stream>
  47. <supported_stream>PAL_STREAM_VOIP_RX</supported_stream>
  48. </supported_streams>
  49. </config_volume>
  50. <config_lpm>
  51. <use_disable_lpm>1</use_disable_lpm>
  52. <lpm_supported_streams>
  53. <lpm_supported_stream>PAL_STREAM_LOW_LATENCY</lpm_supported_stream>
  54. <lpm_supported_stream>PAL_STREAM_ULTRA_LOW_LATENCY</lpm_supported_stream>
  55. </lpm_supported_streams>
  56. </config_lpm>
  57. <config_gapless key="gapless_supported" value="1"/>
  58. <bt_codecs>
  59. <codec codec_format="CODEC_TYPE_AAC" codec_type="enc|dec" codec_library="lib_bt_bundle.so" />
  60. <codec codec_format="CODEC_TYPE_SBC" codec_type="enc|dec" codec_library="lib_bt_bundle.so" />
  61. <codec codec_format="CODEC_TYPE_LDAC" codec_type="enc" codec_library="lib_bt_bundle.so" />
  62. <codec codec_format="CODEC_TYPE_APTX" codec_type="enc" codec_library="lib_bt_aptx.so" />
  63. <codec codec_format="CODEC_TYPE_APTX_HD" codec_type="enc" codec_library="lib_bt_aptx.so" />
  64. <codec codec_format="CODEC_TYPE_APTX_AD" codec_type="enc" codec_library="lib_bt_aptx.so" />
  65. <codec codec_format="CODEC_TYPE_APTX_DUAL_MONO" codec_type="enc" codec_library="lib_bt_aptx.so" />
  66. <codec codec_format="CODEC_TYPE_APTX_AD_SPEECH" codec_type="enc|dec" codec_library="lib_bt_aptx.so" />
  67. <codec codec_format="CODEC_TYPE_LC3" codec_type="enc|dec" codec_library="lib_bt_ble.so" />
  68. <codec codec_format="CODEC_TYPE_LHDC" codec_type="enc" codec_library="lib_bt_lhdc.so" />
  69. </bt_codecs>
  70. <gain_db_to_level_mapping>
  71. <gain_level_map db="-59" level="5"/>
  72. <gain_level_map db="-17.4" level="4"/>
  73. <gain_level_map db="-13.8" level="3"/>
  74. <gain_level_map db="-10.2" level="2"/>
  75. <gain_level_map db="0" level="1"/>
  76. </gain_db_to_level_mapping>
  77. <config_voice>
  78. <vsid>0xB3000000</vsid>
  79. <loopbackDelay>1000</loopbackDelay>
  80. <mode_map>
  81. <modepair key="0x11C05000" value="0xB3000001"/>
  82. <modepair key="0x11DC5000" value="0xB3000001"/>
  83. <modepair key="0x12006000" value="0xB3000001"/>
  84. <modepair key="0x121C6000" value="0xB3000001"/>
  85. </mode_map>
  86. </config_voice>
  87. <low_power_vote_streams>
  88. <stream_type>PAL_STREAM_VOICE_UI</stream_type>
  89. <stream_type>PAL_STREAM_ACD</stream_type>
  90. <stream_type>PAL_STREAM_ULTRASOUND</stream_type>
  91. </low_power_vote_streams>
  92. <group_device_cfg>
  93. <upd_rx>
  94. <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
  95. <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
  96. </upd_rx>
  97. <handset>
  98. <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
  99. <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
  100. </handset>
  101. <speaker>
  102. <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
  103. <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
  104. </speaker>
  105. <speaker_voice>
  106. <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
  107. <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
  108. </speaker_voice>
  109. </group_device_cfg>
  110. <device_profile>
  111. <in-device>
  112. <id>PAL_DEVICE_IN_HANDSET_MIC</id>
  113. <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
  114. <max_channels>4</max_channels>
  115. <channels>2</channels>
  116. <samplerate>48000</samplerate>
  117. <bit_width>16</bit_width>
  118. <snd_device_name>handset-dmic-endfire</snd_device_name>
  119. <usecase>
  120. <name>PAL_STREAM_LOW_LATENCY</name>
  121. </usecase>
  122. <usecase>
  123. <name>PAL_STREAM_DEEP_BUFFER</name>
  124. <custom-config key="dual-adc">
  125. <channels>4</channels>
  126. <snd_device_name>handset-stereo-dmic-ef</snd_device_name>
  127. <bit_width>24</bit_width>
  128. </custom-config>
  129. <custom-config key="main-mic">
  130. <channels>1</channels>
  131. <snd_device_name>main-mic</snd_device_name>
  132. </custom-config>
  133. <custom-config key="top-mic">
  134. <channels>1</channels>
  135. <snd_device_name>top-mic</snd_device_name>
  136. </custom-config>
  137. <custom-config key="back-mic">
  138. <channels>1</channels>
  139. <snd_device_name>back-mic</snd_device_name>
  140. </custom-config>
  141. <custom-config key="default-mic">
  142. <channels>1</channels>
  143. <snd_device_name>handset-mic</snd_device_name>
  144. </custom-config>
  145. <custom-config key="va-mic-enroll">
  146. <channels>1</channels>
  147. <samplerate>16000</samplerate>
  148. <snd_device_name>va-mic-enroll</snd_device_name>
  149. </custom-config>
  150. <custom-config key="va-mic-asr">
  151. <channels>2</channels>
  152. <samplerate>16000</samplerate>
  153. <snd_device_name>va-mic-asr</snd_device_name>
  154. </custom-config>
  155. </usecase>
  156. <usecase>
  157. <name>PAL_STREAM_VOIP_TX</name>
  158. <priority>2</priority>
  159. <custom-config key="dual-mic">
  160. <channels>2</channels>
  161. <samplerate>48000</samplerate>
  162. <snd_device_name>handset-dmic-endfire</snd_device_name>
  163. </custom-config>
  164. </usecase>
  165. <usecase>
  166. <name>PAL_STREAM_VOICE_CALL</name>
  167. <priority>1</priority>
  168. <samplerate>48000</samplerate>
  169. <sidetone_mode>HW</sidetone_mode>
  170. <bit_width>16</bit_width>
  171. <custom-config key="dual-mic">
  172. <channels>2</channels>
  173. <snd_device_name>handset-dmic-endfire</snd_device_name>
  174. </custom-config>
  175. <custom-config key="quad-mic">
  176. <channels>4</channels>
  177. <snd_device_name>quad-mic</snd_device_name>
  178. </custom-config>
  179. </usecase>
  180. <usecase>
  181. <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
  182. </usecase>
  183. <usecase>
  184. <name>PAL_STREAM_RAW</name>
  185. <custom-config key="unprocessed-hdr-mic-landscape">
  186. <channels>4</channels>
  187. <snd_device_name>unprocessed-hdr-mic-landscape</snd_device_name>
  188. </custom-config>
  189. <custom-config key="unprocessed-hdr-mic-portrait">
  190. <channels>4</channels>
  191. <snd_device_name>unprocessed-hdr-mic-portrait</snd_device_name>
  192. </custom-config>
  193. <custom-config key="unprocessed-hdr-mic-inverted-landscape">
  194. <channels>4</channels>
  195. <snd_device_name>unprocessed-hdr-mic-inverted-landscape</snd_device_name>
  196. </custom-config>
  197. <custom-config key="unprocessed-hdr-mic-inverted-portrait">
  198. <channels>4</channels>
  199. <snd_device_name>unprocessed-hdr-mic-inverted-portrait</snd_device_name>
  200. </custom-config>
  201. <custom-config key="unprocessed-top-mic">
  202. <channels>2</channels>
  203. <samplerate>96000</samplerate>
  204. <snd_device_name>unprocessed-top-mic</snd_device_name>
  205. </custom-config>
  206. </usecase>
  207. <ec_rx_device>
  208. <id>PAL_DEVICE_OUT_HANDSET</id>
  209. <id>PAL_DEVICE_OUT_SPEAKER</id>
  210. </ec_rx_device>
  211. </in-device>
  212. <in-device>
  213. <id>PAL_DEVICE_IN_SPEAKER_MIC</id>
  214. <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
  215. <max_channels>4</max_channels>
  216. <samplerate>48000</samplerate>
  217. <bit_width>16</bit_width>
  218. <channels>1</channels>
  219. <snd_device_name>speaker-mic</snd_device_name>
  220. <usecase>
  221. <name>PAL_STREAM_LOW_LATENCY</name>
  222. </usecase>
  223. <usecase>
  224. <name>PAL_STREAM_DEEP_BUFFER</name>
  225. <custom-config key="camcorder_landscape">
  226. <channels>4</channels>
  227. <snd_device_name>handset-stereo-dmic-ef</snd_device_name>
  228. </custom-config>
  229. </usecase>
  230. <usecase>
  231. <name>PAL_STREAM_VOIP_TX</name>
  232. <priority>2</priority>
  233. <channels>2</channels>
  234. <snd_device_name>speaker-dmic-endfire</snd_device_name>
  235. <custom-config key="game_mode">
  236. <channels>2</channels>
  237. <snd_device_name>speaker-dmic-endfire</snd_device_name>
  238. </custom-config>
  239. </usecase>
  240. <usecase>
  241. <name>PAL_STREAM_VOICE_CALL</name>
  242. <priority>1</priority>
  243. <sidetone_mode>OFF</sidetone_mode>
  244. <bit_width>16</bit_width>
  245. <custom-config key="dual-mic">
  246. <channels>2</channels>
  247. <snd_device_name>speaker-dmic-endfire</snd_device_name>
  248. </custom-config>
  249. <custom-config key="quad-mic">
  250. <channels>4</channels>
  251. <snd_device_name>quad-mic</snd_device_name>
  252. </custom-config>
  253. </usecase>
  254. <usecase>
  255. <name>PAL_STREAM_LOOPBACK</name>
  256. </usecase>
  257. <usecase>
  258. <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
  259. </usecase>
  260. <ec_rx_device>
  261. <id>PAL_DEVICE_OUT_SPEAKER</id>
  262. <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
  263. <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
  264. </ec_rx_device>
  265. </in-device>
  266. <in-device>
  267. <id>PAL_DEVICE_IN_WIRED_HEADSET</id>
  268. <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
  269. <max_channels>1</max_channels>
  270. <channels>1</channels>
  271. <bit_width>16</bit_width>
  272. <snd_device_name>headset-mic</snd_device_name>
  273. <usecase>
  274. <name>PAL_STREAM_LOW_LATENCY</name>
  275. </usecase>
  276. <usecase>
  277. <name>PAL_STREAM_DEEP_BUFFER</name>
  278. <custom-config key="va-mic-enroll">
  279. <channels>1</channels>
  280. <samplerate>16000</samplerate>
  281. <snd_device_name>headset-va-mic-enroll</snd_device_name>
  282. </custom-config>
  283. <custom-config key="va-mic-asr">
  284. <channels>1</channels>
  285. <samplerate>16000</samplerate>
  286. <snd_device_name>headset-va-mic-asr</snd_device_name>
  287. </custom-config>
  288. </usecase>
  289. <usecase>
  290. <name>PAL_STREAM_VOIP_TX</name>
  291. <samplerate>48000</samplerate>
  292. <bit_width>16</bit_width>
  293. </usecase>
  294. <usecase>
  295. <name>PAL_STREAM_VOICE_CALL</name>
  296. <sidetone_mode>HW</sidetone_mode>
  297. <samplerate>48000</samplerate>
  298. <bit_width>16</bit_width>
  299. <priority>1</priority>
  300. </usecase>
  301. <usecase>
  302. <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
  303. </usecase>
  304. <usecase>
  305. <name>PAL_STREAM_LOOPBACK</name>
  306. </usecase>
  307. <ec_rx_device>
  308. <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
  309. <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
  310. </ec_rx_device>
  311. </in-device>
  312. <in-device>
  313. <id>PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET</id>
  314. <back_end_name>SLIM-DEV1-TX-7</back_end_name>
  315. <max_channels>1</max_channels>
  316. <channels>1</channels>
  317. <samplerate>8000</samplerate>
  318. <bit_width>16</bit_width>
  319. <snd_device_name>bt-sco-mic</snd_device_name>
  320. <usecase>
  321. <name>PAL_STREAM_LOW_LATENCY</name>
  322. </usecase>
  323. <usecase>
  324. <name>PAL_STREAM_DEEP_BUFFER</name>
  325. </usecase>
  326. <usecase>
  327. <name>PAL_STREAM_VOIP_TX</name>
  328. </usecase>
  329. <usecase>
  330. <name>PAL_STREAM_VOICE_CALL</name>
  331. <priority>1</priority>
  332. </usecase>
  333. <usecase>
  334. <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
  335. </usecase>
  336. <ec_rx_device>
  337. <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
  338. </ec_rx_device>
  339. </in-device>
  340. <in-device>
  341. <id>PAL_DEVICE_IN_HANDSET_VA_MIC</id>
  342. <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
  343. <max_channels>2</max_channels>
  344. <channels>1</channels>
  345. <samplerate>48000</samplerate>
  346. <bit_width>16</bit_width>
  347. <snd_device_name>va-mic</snd_device_name>
  348. <ec_rx_device>
  349. <id>PAL_DEVICE_OUT_SPEAKER</id>
  350. <id>PAL_DEVICE_OUT_HANDSET</id>
  351. <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
  352. </ec_rx_device>
  353. </in-device>
  354. <in-device>
  355. <id>PAL_DEVICE_IN_HEADSET_VA_MIC</id>
  356. <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
  357. <max_channels>2</max_channels>
  358. <channels>1</channels>
  359. <snd_device_name>headset-va-mic</snd_device_name>
  360. <samplerate>48000</samplerate>
  361. <bit_width>16</bit_width>
  362. <ec_rx_device>
  363. <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
  364. <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
  365. <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
  366. </ec_rx_device>
  367. </in-device>
  368. <in-device>
  369. <id>PAL_DEVICE_IN_USB_HEADSET</id>
  370. <back_end_name>USB_AUDIO-TX</back_end_name>
  371. <max_channels>1</max_channels>
  372. <channels>1</channels>
  373. <samplerate>48000</samplerate>
  374. <bit_width>16</bit_width>
  375. <snd_device_name>usb-headset-mic</snd_device_name>
  376. <usecase>
  377. <name>PAL_STREAM_VOIP_TX</name>
  378. </usecase>
  379. <usecase>
  380. <name>PAL_STREAM_LOW_LATENCY</name>
  381. </usecase>
  382. <usecase>
  383. <name>PAL_STREAM_DEEP_BUFFER</name>
  384. </usecase>
  385. <usecase>
  386. <name>PAL_STREAM_VOICE_CALL</name>
  387. <priority>1</priority>
  388. <sidetone_mode>HW</sidetone_mode>
  389. </usecase>
  390. <usecase>
  391. <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
  392. </usecase>
  393. <ec_rx_device>
  394. <id>PAL_DEVICE_OUT_USB_HEADSET</id>
  395. </ec_rx_device>
  396. </in-device>
  397. <in-device>
  398. <id>PAL_DEVICE_IN_FM_TUNER</id>
  399. <back_end_name>MI2S-LPAIF-TX-TERTIARY</back_end_name>
  400. <max_channels>2</max_channels>
  401. <channels>2</channels>
  402. <snd_device_name>play-fm</snd_device_name>
  403. <samplerate>48000</samplerate>
  404. <bit_width>16</bit_width>
  405. <usecase>
  406. <name>PAL_STREAM_LOOPBACK</name>
  407. </usecase>
  408. </in-device>
  409. <in-device>
  410. <id>PAL_DEVICE_IN_PROXY</id>
  411. <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
  412. <max_channels>2</max_channels>
  413. <channels>1</channels>
  414. <snd_device_name>afe-proxy</snd_device_name>
  415. <usecase>
  416. <name>PAL_STREAM_PROXY</name>
  417. </usecase>
  418. </in-device>
  419. <in-device>
  420. <id>PAL_DEVICE_IN_VI_FEEDBACK</id>
  421. <back_end_name>CODEC_DMA-LPAIF_WSA-TX-0</back_end_name>
  422. <max_channels>2</max_channels>
  423. <channels>2</channels>
  424. <samplerate>48000</samplerate>
  425. <bit_width>32</bit_width>
  426. <snd_device_name>vi-feedback</snd_device_name>
  427. </in-device>
  428. <in-device>
  429. <id>PAL_DEVICE_IN_BLUETOOTH_A2DP</id>
  430. <back_end_name>SLIM-DEV1-TX-7</back_end_name>
  431. <max_channels>1</max_channels>
  432. <channels>1</channels>
  433. <snd_device_name>bt-a2dp-mic</snd_device_name>
  434. <samplerate>44100</samplerate>
  435. <bit_width>16</bit_width>
  436. </in-device>
  437. <in-device>
  438. <id>PAL_DEVICE_IN_TELEPHONY_RX</id>
  439. <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
  440. <max_channels>2</max_channels>
  441. <channels>2</channels>
  442. <snd_device_name>afe-proxy</snd_device_name>
  443. <usecase>
  444. <name>PAL_STREAM_PROXY</name>
  445. </usecase>
  446. </in-device>
  447. <!--ultrasound begin-->
  448. <in-device>
  449. <id>PAL_DEVICE_IN_ULTRASOUND_MIC</id>
  450. <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-4</back_end_name>
  451. <max_channels>2</max_channels>
  452. <channels>1</channels>
  453. <samplerate>96000</samplerate>
  454. <bit_width>16</bit_width>
  455. <snd_device_name>ultrasound-mic</snd_device_name>
  456. <usecase>
  457. <name>PAL_STREAM_ULTRASOUND</name>
  458. </usecase>
  459. </in-device>
  460. <!--ultrasound end-->
  461. <in-device>
  462. <id>PAL_DEVICE_IN_EXT_EC_REF</id>
  463. <back_end_name>TDM-LPAIF-TX-TERTIARY</back_end_name>
  464. <snd_device_name>ext_ec_ref_tx</snd_device_name>
  465. <max_channels>4</max_channels>
  466. <channels>4</channels>
  467. </in-device>
  468. <out-device>
  469. <id>PAL_DEVICE_NONE</id>
  470. <back_end_name>CODEC_DMA-LPAIF_WSA-RX-0</back_end_name>
  471. <max_channels>2</max_channels>
  472. <channels>1</channels>
  473. <snd_device_name>none</snd_device_name>
  474. <samplerate>48000</samplerate>
  475. <bit_width>16</bit_width>
  476. </out-device>
  477. <out-device>
  478. <id>PAL_DEVICE_OUT_SPEAKER</id>
  479. <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
  480. <max_channels>2</max_channels>
  481. <channels>2</channels>
  482. <samplerate>48000</samplerate>
  483. <!--NEED CHK-->
  484. <bit_width>24</bit_width>
  485. <snd_device_name>speaker</snd_device_name>
  486. <speaker_protection_enabled>0</speaker_protection_enabled>
  487. <fractional_sr>0</fractional_sr>
  488. <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
  489. <ext_ec_ref_enabled>1</ext_ec_ref_enabled>
  490. <cps_enabled>0</cps_enabled>
  491. <vbat_enabled>0</vbat_enabled>
  492. <!--specify the supported bit format on speaker end point -->
  493. <!--this should be in the form of pal_audio_fmt_id-->
  494. <!--e.g <supported_bit_format >PAL_AUDIO_FMT_PCM_S24_LE</supported_bit_format>-->
  495. <!--NEED CHK-->
  496. <!-- RAS should be enabled with speaker protection always -->
  497. <ras_enabled>0</ras_enabled>
  498. <!-- Flag to specify speaker in case Voice call is switched from
  499. handset to speaker with only 1 speaker.
  500. Values: Both speaker : 0
  501. Right speaker: 1
  502. Left speaker : 2
  503. -->
  504. <speaker_mono_right>0</speaker_mono_right>
  505. <!-- Time in seconds for Quick cal. Set 0 to disable -->
  506. <quick_cal_time>0</quick_cal_time>
  507. <usecase>
  508. <name>PAL_STREAM_VOICE_CALL</name>
  509. <priority>2</priority>
  510. <channels>2</channels>
  511. <snd_device_name>speaker-mono-2</snd_device_name>
  512. </usecase>
  513. <usecase>
  514. <name>PAL_STREAM_LOW_LATENCY</name>
  515. <channels>2</channels>
  516. <sidetone_mode>HW</sidetone_mode>
  517. <channels>2</channels>
  518. <custom-config key="speaker-top">
  519. <channels>2</channels>
  520. <snd_device_name>speaker-top</snd_device_name>
  521. </custom-config>
  522. <custom-config key="speaker-bot">
  523. <channels>2</channels>
  524. <snd_device_name>speaker-bot</snd_device_name>
  525. </custom-config>
  526. <custom-config key="speaker-default">
  527. <channels>2</channels>
  528. <snd_device_name>speaker</snd_device_name>
  529. </custom-config>
  530. </usecase>
  531. <usecase>
  532. <name>PAL_STREAM_VOIP_RX</name>
  533. <bit_width>16</bit_width>
  534. <channels>1</channels>
  535. <priority>3</priority>
  536. <snd_device_name>speaker</snd_device_name>
  537. </usecase>
  538. <usecase>
  539. <name>PAL_STREAM_ULTRASOUND</name>
  540. <priority>1</priority>
  541. <samplerate>96000</samplerate>
  542. </usecase>
  543. </out-device>
  544. <out-device>
  545. <id>PAL_DEVICE_OUT_HANDSET</id>
  546. <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
  547. <max_channels>2</max_channels>
  548. <channels>1</channels>
  549. <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
  550. <ext_ec_ref_enabled>1</ext_ec_ref_enabled>
  551. <samplerate>48000</samplerate>
  552. <!--NEED CHK-->
  553. <bit_width>24</bit_width>
  554. <fractional_sr>0</fractional_sr>
  555. <snd_device_name>handset</snd_device_name>
  556. <usecase>
  557. <name>PAL_STREAM_VOICE_CALL</name>
  558. <priority>2</priority>
  559. <custom-config key="HAC">
  560. <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset -->
  561. </custom-config>
  562. </usecase>
  563. <usecase>
  564. <name>PAL_STREAM_VOIP_RX</name>
  565. <priority>3</priority>
  566. <custom-config key="HAC">
  567. <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset for voip -->
  568. </custom-config>
  569. </usecase>
  570. <usecase>
  571. <name>PAL_STREAM_ULTRASOUND</name>
  572. <priority>1</priority>
  573. <samplerate>96000</samplerate>
  574. </usecase>
  575. </out-device>
  576. <out-device>
  577. <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
  578. <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
  579. <max_channels>2</max_channels>
  580. <channels>2</channels>
  581. <bit_width>24</bit_width>
  582. <fractional_sr>1</fractional_sr>
  583. <snd_device_name>headphones</snd_device_name>
  584. <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
  585. <usecase>
  586. <name>PAL_STREAM_COMPRESSED</name>
  587. <custom-config key="hifi-filter_custom_key">
  588. <snd_device_name>headphones-hifi-filter</snd_device_name>
  589. </custom-config>
  590. </usecase>
  591. <usecase>
  592. <name>PAL_STREAM_PCM_OFFLOAD</name>
  593. <custom-config key="hifi-filter_custom_key">
  594. <snd_device_name>headphones-hifi-filter</snd_device_name>
  595. </custom-config>
  596. </usecase>
  597. <usecase>
  598. <name>PAL_STREAM_DEEP_BUFFER</name>
  599. <custom-config key="hifi-filter_custom_key">
  600. <snd_device_name>headphones-hifi-filter</snd_device_name>
  601. </custom-config>
  602. </usecase>
  603. -->
  604. <usecase>
  605. <name>PAL_STREAM_VOICE_CALL</name>
  606. <priority>1</priority>
  607. <samplerate>48000</samplerate>
  608. <bit_width>24</bit_width>
  609. </usecase>
  610. <usecase>
  611. <name>PAL_STREAM_VOIP_RX</name>
  612. <priority>2</priority>
  613. <samplerate>48000</samplerate>
  614. <bit_width>24</bit_width>
  615. </usecase>
  616. </out-device>
  617. <out-device>
  618. <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
  619. <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
  620. <max_channels>2</max_channels>
  621. <channels>2</channels>
  622. <fractional_sr>1</fractional_sr>
  623. <bit_width>24</bit_width>
  624. <snd_device_name>headphones</snd_device_name>
  625. <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
  626. <usecase>
  627. <name>PAL_STREAM_COMPRESSED</name>
  628. <custom-config key="hifi-filter_custom_key">
  629. <snd_device_name>headphones-hifi-filter</snd_device_name>
  630. </custom-config>
  631. </usecase>
  632. <usecase>
  633. <name>PAL_STREAM_PCM_OFFLOAD</name>
  634. <custom-config key="hifi-filter_custom_key">
  635. <snd_device_name>headphones-hifi-filter</snd_device_name>
  636. </custom-config>
  637. </usecase>
  638. <usecase>
  639. <name>PAL_STREAM_DEEP_BUFFER</name>
  640. <custom-config key="hifi-filter_custom_key">
  641. <snd_device_name>headphones-hifi-filter</snd_device_name>
  642. </custom-config>
  643. </usecase>
  644. -->
  645. <usecase>
  646. <name>PAL_STREAM_VOICE_CALL</name>
  647. <priority>1</priority>
  648. <samplerate>48000</samplerate>
  649. <bit_width>24</bit_width>
  650. </usecase>
  651. <usecase>
  652. <name>PAL_STREAM_VOIP_RX</name>
  653. <priority>2</priority>
  654. <samplerate>48000</samplerate>
  655. <bit_width>24</bit_width>
  656. </usecase>
  657. </out-device>
  658. <out-device>
  659. <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
  660. <back_end_name>SLIM-DEV1-RX-7</back_end_name>
  661. <max_channels>1</max_channels>
  662. <channels>1</channels>
  663. <snd_device_name>bt-a2dp</snd_device_name>
  664. <samplerate>44100</samplerate>
  665. <bit_width>16</bit_width>
  666. <usecase>
  667. <name>PAL_STREAM_VOICE_CALL</name>
  668. <priority>1</priority>
  669. </usecase>
  670. </out-device>
  671. <out-device>
  672. <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
  673. <back_end_name>SLIM-DEV1-RX-7</back_end_name>
  674. <max_channels>1</max_channels>
  675. <channels>1</channels>
  676. <snd_device_name>bt-sco</snd_device_name>
  677. <samplerate>8000</samplerate>
  678. <bit_width>16</bit_width>
  679. <usecase>
  680. <name>PAL_STREAM_VOICE_CALL</name>
  681. <priority>1</priority>
  682. </usecase>
  683. </out-device>
  684. <out-device>
  685. <id>PAL_DEVICE_OUT_AUX_DIGITAL</id>
  686. <back_end_name>DISPLAY_PORT-RX</back_end_name>
  687. <max_channels>32</max_channels>
  688. <channels>2</channels>
  689. <snd_device_name>display-port</snd_device_name>
  690. <fractional_sr>1</fractional_sr>
  691. <usecase>
  692. <name>PAL_STREAM_VOICE_CALL</name>
  693. <priority>1</priority>
  694. </usecase>
  695. </out-device>
  696. <out-device>
  697. <id>PAL_DEVICE_OUT_HDMI</id>
  698. <back_end_name>DISPLAY_PORT-RX</back_end_name>
  699. <max_channels>32</max_channels>
  700. <channels>2</channels>
  701. <fractional_sr>1</fractional_sr>
  702. <snd_device_name>display-port</snd_device_name>
  703. <usecase>
  704. <name>PAL_STREAM_VOICE_CALL</name>
  705. <priority>1</priority>
  706. </usecase>
  707. </out-device>
  708. <out-device>
  709. <id>PAL_DEVICE_OUT_USB_DEVICE</id>
  710. <back_end_name>USB_AUDIO-RX</back_end_name>
  711. <max_channels>2</max_channels>
  712. <channels>2</channels>
  713. <snd_device_name>usb-headphones</snd_device_name>
  714. <fractional_sr>1</fractional_sr>
  715. <usecase>
  716. <name>PAL_STREAM_VOICE_CALL</name>
  717. <priority>1</priority>
  718. </usecase>
  719. </out-device>
  720. <out-device>
  721. <id>PAL_DEVICE_OUT_USB_HEADSET</id>
  722. <back_end_name>USB_AUDIO-RX</back_end_name>
  723. <max_channels>2</max_channels>
  724. <channels>2</channels>
  725. <snd_device_name>usb-headphones</snd_device_name>
  726. <fractional_sr>1</fractional_sr>
  727. <usecase>
  728. <name>PAL_STREAM_VOICE_CALL</name>
  729. <priority>1</priority>
  730. </usecase>
  731. </out-device>
  732. <out-device>
  733. <id>PAL_DEVICE_OUT_AUX_DIGITAL_1</id>
  734. <back_end_name>DISPLAY_PORT-RX</back_end_name>
  735. <max_channels>8</max_channels>
  736. <channels>2</channels>
  737. <snd_device_name>display-port</snd_device_name>
  738. <fractional_sr>1</fractional_sr>
  739. <usecase>
  740. <name>PAL_STREAM_VOICE_CALL</name>
  741. <priority>1</priority>
  742. </usecase>
  743. </out-device>
  744. <out-device>
  745. <id>PAL_DEVICE_OUT_PROXY</id>
  746. <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
  747. <max_channels>8</max_channels>
  748. <channels>2</channels>
  749. <snd_device_name>afe-proxy</snd_device_name>
  750. <fractional_sr>0</fractional_sr>
  751. <samplerate>48000</samplerate>
  752. <usecase>
  753. <name>PAL_STREAM_VOICE_CALL</name>
  754. <priority>1</priority>
  755. </usecase>
  756. </out-device>
  757. <out-device>
  758. <id>PAL_DEVICE_OUT_HEARING_AID</id>
  759. <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
  760. <max_channels>8</max_channels>
  761. <channels>2</channels>
  762. <snd_device_name>afe-proxy</snd_device_name>
  763. <fractional_sr>0</fractional_sr>
  764. <usecase>
  765. <name>PAL_STREAM_VOICE_CALL</name>
  766. <priority>1</priority>
  767. </usecase>
  768. </out-device>
  769. <out-device>
  770. <id>PAL_DEVICE_OUT_HAPTICS_DEVICE</id>
  771. <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-6</back_end_name>
  772. <max_channels>2</max_channels>
  773. <channels>1</channels>
  774. <snd_device_name>haptics-dev</snd_device_name>
  775. </out-device>
  776. <!--ultrasound begin-->
  777. <out-device>
  778. <id>PAL_DEVICE_OUT_ULTRASOUND</id>
  779. <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-1</back_end_name>
  780. <max_channels>2</max_channels>
  781. <channels>1</channels>
  782. <snd_device_name>ultrasound-handset</snd_device_name>
  783. <samplerate>96000</samplerate>
  784. <bit_width>16</bit_width>
  785. </out-device>
  786. <!--ultrasound end-->
  787. </device_profile>
  788. <in_streams>
  789. <in_stream>
  790. <name>PAL_STREAM_VOIP_TX</name>
  791. <policies>
  792. <ec_ref>
  793. <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
  794. </ec_ref>
  795. </policies>
  796. </in_stream>
  797. <in_stream>
  798. <name>PAL_STREAM_DEEP_BUFFER</name>
  799. <policies>
  800. <ec_ref>
  801. <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
  802. <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
  803. </ec_ref>
  804. </policies>
  805. </in_stream>
  806. <in_stream>
  807. <name>PAL_STREAM_VOICE_UI</name>
  808. <policies>
  809. <ec_ref>
  810. <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
  811. </ec_ref>
  812. </policies>
  813. </in_stream>
  814. <in_stream>
  815. <name>PAL_STREAM_ACD</name>
  816. <policies>
  817. <ec_ref>
  818. <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
  819. <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
  820. </ec_ref>
  821. </policies>
  822. </in_stream>
  823. <in_stream>
  824. <name>PAL_STREAM_PROXY</name>
  825. <policies>
  826. <ec_ref>
  827. <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
  828. <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
  829. <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
  830. <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
  831. </ec_ref>
  832. </policies>
  833. </in_stream>
  834. <in_stream>
  835. <name>PAL_STREAM_RAW</name>
  836. <policies>
  837. <ec_ref>
  838. <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
  839. <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
  840. <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
  841. <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
  842. </ec_ref>
  843. </policies>
  844. </in_stream>
  845. </in_streams>
  846. <acd_platform_info>
  847. <common_config>
  848. <param acd_enable="true" />
  849. <param support_device_switch="true" />
  850. <param support_nlpi_switch="true" />
  851. <param lpi_enable="true" />
  852. <param enable_debug_dumps="false" />
  853. <param concurrent_capture="false" />
  854. <param concurrent_voice_call="false" />
  855. <param concurrent_voip_call="false" />
  856. <param low_latency_bargein_enable="true" />
  857. </common_config>
  858. <capture_profile_list>
  859. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI">
  860. <param sample_rate="16000" />
  861. <param channels="1" />
  862. <param bit_width="16" />
  863. <param snd_name="headset-va-mic-lpi" />
  864. <param ec_ref="false" />
  865. </capture_profile>
  866. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
  867. <param sample_rate="16000" />
  868. <param channels="1" />
  869. <param bit_width="16" />
  870. <param snd_name="headset-va-mic-lpi" />
  871. <param ec_ref="false" />
  872. </capture_profile>
  873. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
  874. <param sample_rate="16000" />
  875. <param channels="1" />
  876. <param bit_width="16" />
  877. <param snd_name="headset-va-mic-lpi" />
  878. <param ec_ref="false" />
  879. </capture_profile>
  880. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
  881. <param sample_rate="16000" />
  882. <param channels="1" />
  883. <param bit_width="16" />
  884. <param snd_name="headset-va-mic" />
  885. <param ec_ref="true" />
  886. </capture_profile>
  887. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC">
  888. <param sample_rate="16000" />
  889. <param channels="1" />
  890. <param bit_width="16" />
  891. <param snd_name="headset-va-mic" />
  892. <param ec_ref="true" />
  893. </capture_profile>
  894. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_LPI">
  895. <param sample_rate="16000" />
  896. <param channels="1" />
  897. <param bit_width="16" />
  898. <param snd_name="va-mic-mono-lpi" />
  899. <param ec_ref="false" />
  900. </capture_profile>
  901. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
  902. <param sample_rate="16000" />
  903. <param channels="1" />
  904. <param bit_width="16" />
  905. <param snd_name="va-mic-mono-lpi" />
  906. <param ec_ref="false" />
  907. </capture_profile>
  908. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
  909. <param sample_rate="16000" />
  910. <param channels="1" />
  911. <param bit_width="16" />
  912. <param snd_name="va-mic-mono-lpi" />
  913. <param ec_ref="false" />
  914. </capture_profile>
  915. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
  916. <param sample_rate="16000" />
  917. <param channels="1" />
  918. <param bit_width="16" />
  919. <param snd_name="va-mic-mono" />
  920. <param ec_ref="true" />
  921. </capture_profile>
  922. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFEC">
  923. <param sample_rate="16000" />
  924. <param channels="1" />
  925. <param bit_width="16" />
  926. <param snd_name="va-mic-mono" />
  927. <param ec_ref="true" />
  928. </capture_profile>
  929. </capture_profile_list>
  930. <!-- ACD -->
  931. <stream_config>
  932. <name>QC_ACD</name>
  933. <param vendor_uuid="4e93281b-296e-4d73-9833-2710c3c7c1db"/>
  934. <!-- Profile specific data which the algorithm can support -->
  935. <param sample_rate="16000" />
  936. <param bit_width="16" />
  937. <param out_channels="1"/> <!-- Module output channels -->
  938. <operating_modes>
  939. <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI"/>
  940. <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  941. </operating_modes>
  942. <sound_models>
  943. <model>
  944. <name>ACD_SOUND_MODEL_ID_EVENT</name>
  945. <bin>event.eai</bin>
  946. <uuid>0x0B001007</uuid>
  947. <contexts>
  948. <context id="0x0800132D"/> <!-- EVENT_ALARM -->
  949. <context id="0x0800132E"/> <!-- EVENT_BABYCRYING -->
  950. <context id="0x0800132F"/> <!-- EVENT_DOGBARKING -->
  951. <context id="0x08001330"/> <!-- EVENT_DOORBELL -->
  952. <context id="0x08001331"/> <!-- EVENT_DOORCLOSE -->
  953. <context id="0x08001332"/> <!-- EVENT_DOOROPEN -->
  954. <context id="0x08001333"/> <!-- EVENT_GLASSBREAKING -->
  955. <context id="0x08001334"/> <!-- EVENT_SIREN -->
  956. </contexts>
  957. </model>
  958. <model>
  959. <name>ACD_SOUND_MODEL_ID_SPEECH</name>
  960. <bin>speech.eai</bin>
  961. <uuid>0x0B001008</uuid>
  962. <contexts>
  963. <context id="0x08001335"/> <!-- AMBIENCE_SPEECH -->
  964. </contexts>
  965. </model>
  966. <model>
  967. <name>ACD_SOUND_MODEL_ID_MUSIC</name>
  968. <bin>music.eai</bin>
  969. <uuid>0x0B001009</uuid>
  970. <contexts>
  971. <context id="0x08001336"/> <!-- AMBIENCE_MUSIC -->
  972. </contexts>
  973. </model>
  974. <model>
  975. <name>ACD_SOUND_MODEL_AMBIENCE_NOISE_SILENCE</name>
  976. <bin></bin> <!-- Following contexts dont have a model, hence empty bin -->
  977. <uuid>0xFFFFFFFF</uuid> <!-- Indicates no sound model -->
  978. <contexts>
  979. <context id="0x08001337"/> <!-- AMBIENCE_NOISY_SPL -->
  980. <context id="0x08001338"/> <!-- AMBIENCE_SILENT_SPL -->
  981. <context id="0x08001339"/> <!-- AMBIENCE_NOISY_SFLUX -->
  982. <context id="0x0800133A"/> <!-- AMBIENCE_SILENT_SFLUX -->
  983. </contexts>
  984. </model>
  985. </sound_models>
  986. </stream_config>
  987. <!-- Sensor PCM Data -->
  988. <stream_config>
  989. <name>QC_SENSOR_PCM_DATA</name>
  990. <param vendor_uuid="c88a2c89-7a55-498c-836f-5d7ec8582990" />
  991. <!-- Profile specific data which the algorithm can support -->
  992. <param sample_rate="16000" />
  993. <param bit_width="16" />
  994. <param out_channels="1" /> <!-- Module output channels -->
  995. <operating_modes>
  996. <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
  997. <low_power_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
  998. <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFEC" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC"/>
  999. <high_performance_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1000. </operating_modes>
  1001. </stream_config>
  1002. </acd_platform_info>
  1003. <sound_trigger_platform_info>
  1004. <common_config>
  1005. <!-- Param used by apk to indicate the SVA version current platform supports -->
  1006. <param version="0x0103" />
  1007. <param enable_failure_detection="false" />
  1008. <param support_device_switch="true" />
  1009. <param support_nlpi_switch="true" />
  1010. <param transit_to_non_lpi_on_charging="false" />
  1011. <!-- Param used to indicate if SVA has dedicated back end path and ports not conflicting with other audio paths -->
  1012. <param dedicated_sva_path="false" />
  1013. <param dedicated_headset_path="false" />
  1014. <param lpi_enable="true" />
  1015. <param enable_debug_dumps="false" />
  1016. <param concurrent_capture="false" />
  1017. <param concurrent_voice_call="false" />
  1018. <param concurrent_voip_call="false" />
  1019. <param low_latency_bargein_enable="true" />
  1020. <param mmap_enable="true" />
  1021. <param mmap_buffer_duration="5000" />
  1022. <param mmap_frame_length="5" /> <!-- 5ms duration of data -->
  1023. <param notify_second_stage_failure="true"/>
  1024. </common_config>
  1025. <capture_profile_list>
  1026. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
  1027. <param sample_rate="16000" />
  1028. <param channels="1" />
  1029. <param bit_width="16" />
  1030. <param snd_name="headset-va-mic-lpi" />
  1031. <param ec_ref="false" />
  1032. </capture_profile>
  1033. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
  1034. <param sample_rate="16000" />
  1035. <param channels="1" />
  1036. <param bit_width="16" />
  1037. <param snd_name="headset-va-mic" />
  1038. <param ec_ref="true" />
  1039. </capture_profile>
  1040. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
  1041. <param sample_rate="16000" />
  1042. <param channels="1" />
  1043. <param bit_width="16" />
  1044. <param snd_name="headset-va-mic-lpi" />
  1045. <param ec_ref="false" />
  1046. </capture_profile>
  1047. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI">
  1048. <param sample_rate="16000" />
  1049. <param channels="1" />
  1050. <param bit_width="16" />
  1051. <param snd_name="headset-va-mic" />
  1052. <param ec_ref="false" />
  1053. </capture_profile>
  1054. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
  1055. <param sample_rate="16000" />
  1056. <param channels="1" />
  1057. <param bit_width="16" />
  1058. <param snd_name="va-mic-mono-lpi" />
  1059. <param ec_ref="false" />
  1060. </capture_profile>
  1061. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_NLPI">
  1062. <param sample_rate="16000" />
  1063. <param channels="1" />
  1064. <param bit_width="16" />
  1065. <param snd_name="va-mic-mono" />
  1066. <param ec_ref="false" />
  1067. </capture_profile>
  1068. <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_LPI">
  1069. <param sample_rate="16000" />
  1070. <param channels="2" />
  1071. <param bit_width="16" />
  1072. <param snd_name="va-mic-dmic-lpi" />
  1073. <param ec_ref="false" />
  1074. </capture_profile>
  1075. <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_NLPI">
  1076. <param sample_rate="16000" />
  1077. <param channels="2" />
  1078. <param bit_width="16" />
  1079. <param snd_name="va-mic-dmic" />
  1080. <param ec_ref="false" />
  1081. </capture_profile>
  1082. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
  1083. <param sample_rate="16000" />
  1084. <param channels="1" />
  1085. <param bit_width="16" />
  1086. <param snd_name="va-mic-mono-lpi" />
  1087. <param ec_ref="false" />
  1088. </capture_profile>
  1089. <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFNS">
  1090. <param sample_rate="16000" />
  1091. <param channels="2" />
  1092. <param bit_width="16" />
  1093. <param snd_name="va-mic-dmic-lpi" />
  1094. <param ec_ref="false" />
  1095. </capture_profile>
  1096. <capture_profile name="TRI_MIC_16KHZ_16BIT_FFNS">
  1097. <param sample_rate="16000" />
  1098. <param channels="3" />
  1099. <param bit_width="16" />
  1100. <param snd_name="va-mic-tmic-lpi" />
  1101. <param ec_ref="false" />
  1102. </capture_profile>
  1103. <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFNS">
  1104. <param sample_rate="16000" />
  1105. <param channels="4" />
  1106. <param bit_width="16" />
  1107. <param snd_name="va-mic-qmic-lpi" />
  1108. <param ec_ref="false" />
  1109. </capture_profile>
  1110. <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
  1111. <param sample_rate="16000" />
  1112. <param channels="1" />
  1113. <param bit_width="16" />
  1114. <param snd_name="va-mic-mono" />
  1115. <param ec_ref="true" />
  1116. </capture_profile>
  1117. <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFECNS">
  1118. <param sample_rate="16000" />
  1119. <param channels="2" />
  1120. <param bit_width="16" />
  1121. <param snd_name="va-mic-dmic" />
  1122. <param ec_ref="true" />
  1123. </capture_profile>
  1124. <capture_profile name="TRI_MIC_16KHZ_16BIT_FFECNS">
  1125. <param sample_rate="16000" />
  1126. <param channels="3" />
  1127. <param bit_width="16" />
  1128. <param snd_name="va-mic-tmic" />
  1129. <param ec_ref="true" />
  1130. </capture_profile>
  1131. <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFECNS">
  1132. <param sample_rate="16000" />
  1133. <param channels="4" />
  1134. <param bit_width="16" />
  1135. <param snd_name="va-mic-qmic" />
  1136. <param ec_ref="true" />
  1137. </capture_profile>
  1138. </capture_profile_list>
  1139. <!-- Multiple sound_model_config tags can be listed, each with unique -->
  1140. <!-- vendor_uuid. The below tag represents QTI SVA sound model -->
  1141. <!-- configuration. ISV must use their own unique vendor_uuid. -->
  1142. <!-- QTI SVA -->
  1143. <sound_model_config>
  1144. <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b"/>
  1145. <!-- durations in us -->
  1146. <param kw_start_tolerance="360000" />
  1147. <param kw_end_tolerance="240000" />
  1148. <param data_before_kw_start="360000" />
  1149. <param data_after_kw_end="480000" />
  1150. <param merge_first_stage_sound_models="false"/>
  1151. <!-- Profile specific data which the algorithm can support -->
  1152. <param sample_rate="16000" />
  1153. <param bit_width="16" />
  1154. <param out_channels="1"/> <!-- Module output channels -->
  1155. <param capture_keyword="2000" />
  1156. <param client_capture_read_delay="2000" />
  1157. <param second_stage_supported="false"/>
  1158. <operating_modes>
  1159. <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
  1160. <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1161. <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1162. </operating_modes>
  1163. <arm_ss_usecase>
  1164. <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
  1165. <param sm_detection_type= "KEYWORD_DETECTION" />
  1166. <param sm_id="0x2" />
  1167. <param module_lib="libcapiv2svacnnvendor.so"/>
  1168. <param sample_rate="16000"/>
  1169. <param bit_width="16"/>
  1170. <param channel_count="1"/>
  1171. </arm_ss_usecase>
  1172. <arm_ss_usecase>
  1173. <param sm_detection_type= "USER_VERIFICATION" />
  1174. <param sm_id="0x4" />
  1175. <param module_lib="libcapiv2uvvendor.so"/>
  1176. <param sample_rate="16000"/>
  1177. <param bit_width="16"/>
  1178. <param channel_count="1"/>
  1179. </arm_ss_usecase>
  1180. <arm_ss_usecase>
  1181. <param sm_detection_type= "KEYWORD_DETECTION" />
  1182. <param sm_id="0x8" />
  1183. <param module_lib="libcapiv2svarnnvendor.so"/>
  1184. <param sample_rate="16000"/>
  1185. <param bit_width="16"/>
  1186. <param channel_count="1"/>
  1187. </arm_ss_usecase>
  1188. <module_params>
  1189. <param module_type="GMM" />
  1190. <param load_sound_model_ids="0xC0000008, 0x0800104C" />
  1191. <param wakeup_config_ids="0xC0000008, 0x08001049" />
  1192. <param buffering_config_ids="0xC0000008, 0x08001044" />
  1193. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1194. </module_params>
  1195. <module_params>
  1196. <param module_type="PDK" />
  1197. <param load_sound_model_ids="0xC0000008, 0x0800124E"/>
  1198. <param unload_sound_model_ids="0xC0000008, 0x08001250"/>
  1199. <param wakeup_config_ids="0xC0000008, 0x08001049" />
  1200. <param buffering_config_ids="0xC0000008, 0x0800124F"/>
  1201. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1202. </module_params>
  1203. </sound_model_config>
  1204. <!-- QTI SVA -->
  1205. <sound_model_config>
  1206. <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51c"/>
  1207. <!-- durations in us -->
  1208. <param kw_start_tolerance="360000" />
  1209. <param kw_end_tolerance="100000" />
  1210. <param data_before_kw_start="360000" />
  1211. <param data_after_kw_end="480000" />
  1212. <param merge_first_stage_sound_models="false"/>
  1213. <!-- Profile specific data which the algorithm can support -->
  1214. <param sample_rate="16000" />
  1215. <param bit_width="16" />
  1216. <param out_channels="1"/> <!-- Module output channels -->
  1217. <param capture_keyword="2000" />
  1218. <param client_capture_read_delay="2000" />
  1219. <param second_stage_supported="false"/>
  1220. <operating_modes>
  1221. <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
  1222. <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1223. <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1224. </operating_modes>
  1225. <arm_ss_usecase>
  1226. <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
  1227. <param sm_detection_type= "KEYWORD_DETECTION" />
  1228. <param sm_id="0x2" />
  1229. <param module_lib="libcapiv2svacnnvendor.so"/>
  1230. <param sample_rate="16000"/>
  1231. <param bit_width="16"/>
  1232. <param channel_count="1"/>
  1233. </arm_ss_usecase>
  1234. <arm_ss_usecase>
  1235. <param sm_detection_type= "USER_VERIFICATION" />
  1236. <param sm_id="0x4" />
  1237. <param module_lib="libcapiv2vopvendor.so"/>
  1238. <param sample_rate="16000"/>
  1239. <param bit_width="16"/>
  1240. <param channel_count="1"/>
  1241. </arm_ss_usecase>
  1242. <arm_ss_usecase>
  1243. <param sm_detection_type= "KEYWORD_DETECTION" />
  1244. <param sm_id="0x8" />
  1245. <param module_lib="libcapiv2svarnnvendor.so"/>
  1246. <param sample_rate="16000"/>
  1247. <param bit_width="16"/>
  1248. <param channel_count="1"/>
  1249. </arm_ss_usecase>
  1250. <module_params>
  1251. <param module_type="GMM" />
  1252. <param load_sound_model_ids="0xC0000008, 0x0800104C" />
  1253. <param wakeup_config_ids="0xC0000008, 0x08001049" />
  1254. <param buffering_config_ids="0xC0000008, 0x08001044" />
  1255. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1256. <streamConfig-metadata>
  1257. <!-- refer kvh2xml.h -->
  1258. <kvpair key="0xBC000000" value="0xBC000005"/>
  1259. </streamConfig-metadata>
  1260. </module_params>
  1261. <module_params>
  1262. <param module_type="PDK" />
  1263. <param load_sound_model_ids="0xC0000008, 0x0800124E"/>
  1264. <param unload_sound_model_ids="0xC0000008, 0x08001250"/>
  1265. <param wakeup_config_ids="0xC0000008, 0x08001049" />
  1266. <param buffering_config_ids="0xC0000008, 0x0800124F"/>
  1267. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1268. <streamConfig-metadata>
  1269. <!-- refer kvh2xml.h -->
  1270. <kvpair key="0xBC000000" value="0xBC000006"/>
  1271. </streamConfig-metadata>
  1272. </module_params>
  1273. </sound_model_config>
  1274. <!-- QTI SVA -->
  1275. <sound_model_config>
  1276. <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51d"/>
  1277. <!-- durations in us -->
  1278. <param kw_start_tolerance="700000" />
  1279. <param kw_end_tolerance="600000" />
  1280. <param data_before_kw_start="360000" />
  1281. <param data_after_kw_end="1000000" />
  1282. <param merge_first_stage_sound_models="false"/>
  1283. <!-- Profile specific data which the algorithm can support -->
  1284. <param sample_rate="16000" />
  1285. <param bit_width="16" />
  1286. <param out_channels="1"/> <!-- Module output channels -->
  1287. <param capture_keyword="2000" />
  1288. <param client_capture_read_delay="2000" />
  1289. <param second_stage_supported="false"/>
  1290. <operating_modes>
  1291. <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
  1292. <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1293. <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
  1294. </operating_modes>
  1295. <arm_ss_usecase>
  1296. <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
  1297. <param sm_detection_type= "KEYWORD_DETECTION" />
  1298. <param sm_id="0x2" />
  1299. <param module_lib="libcapiv2svacnnvendor.so"/>
  1300. <param sample_rate="16000"/>
  1301. <param bit_width="16"/>
  1302. <param channel_count="1"/>
  1303. </arm_ss_usecase>
  1304. <arm_ss_usecase>
  1305. <param sm_detection_type= "USER_VERIFICATION" />
  1306. <param sm_id="0x4" />
  1307. <param module_lib="libcapiv2vopvendor.so"/>
  1308. <param sample_rate="16000"/>
  1309. <param bit_width="16"/>
  1310. <param channel_count="1"/>
  1311. </arm_ss_usecase>
  1312. <arm_ss_usecase>
  1313. <param sm_detection_type= "KEYWORD_DETECTION" />
  1314. <param sm_id="0x8" />
  1315. <param module_lib="libcapiv2svarnnvendor.so"/>
  1316. <param sample_rate="16000"/>
  1317. <param bit_width="16"/>
  1318. <param channel_count="1"/>
  1319. </arm_ss_usecase>
  1320. <module_params>
  1321. <param module_type="GMM" />
  1322. <param load_sound_model_ids="0xC0000008, 0x0800104C" />
  1323. <param wakeup_config_ids="0xC0000008, 0x08001049" />
  1324. <param buffering_config_ids="0xC0000008, 0x08001044" />
  1325. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1326. <streamConfig-metadata>
  1327. <!-- refer kvh2xml.h -->
  1328. <kvpair key="0xBC000000" value="0xBC000005"/>
  1329. </streamConfig-metadata>
  1330. </module_params>
  1331. <module_params>
  1332. <param module_type="PDK" />
  1333. <param load_sound_model_ids="0xC0000008, 0x0800124E"/>
  1334. <param unload_sound_model_ids="0xC0000008, 0x08001250"/>
  1335. <param wakeup_config_ids="0xC0000008, 0x08001049" />
  1336. <param buffering_config_ids="0xC0000008, 0x0800124F"/>
  1337. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1338. <streamConfig-metadata>
  1339. <!-- refer kvh2xml.h -->
  1340. <kvpair key="0xBC000000" value="0xBC000006"/>
  1341. </streamConfig-metadata>
  1342. </module_params>
  1343. </sound_model_config>
  1344. <!-- Hotword -->
  1345. <sound_model_config>
  1346. <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15"/>
  1347. <param get_module_version="true" />
  1348. <param kw_start_tolerance="100" />
  1349. <param kw_end_tolerance="100" />
  1350. <param merge_first_stage_sound_models="false"/>
  1351. <param capture_keyword="2000" />
  1352. <param client_capture_read_delay="2000" />
  1353. <!-- Profile specific data which the algorithm can support -->
  1354. <param sample_rate="16000" />
  1355. <param bit_width="16" />
  1356. <param out_channels="1"/> <!-- Module output channels -->
  1357. <param capture_keyword="2000" />
  1358. <param client_capture_read_delay="2000" />
  1359. <operating_modes>
  1360. <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
  1361. <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
  1362. <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
  1363. </operating_modes>
  1364. <module_params>
  1365. <param module_type="HOTWORD" />
  1366. <param load_sound_model_ids="0xC0000008, 0x0800104C" />
  1367. <param unload_sound_model_ids="0xC0000008, 0x00012C15" />
  1368. <param buffering_config_ids="0xC0000008, 0x08001044" />
  1369. <param version_ids="0xC0000008, 0x18000101" />
  1370. <param engine_reset_ids="0xC0000008, 0x08001051" />
  1371. </module_params>
  1372. </sound_model_config>
  1373. </sound_trigger_platform_info>
  1374. </resource_manager_info>