resourcemanager_waipio_mtp.xml 62 KB

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