blob: 3f0ca55098afbb38315ffea4fc5ddd6c7a8e75fb [file] [log] [blame]
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +00001<?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<!-- -->
29<!-- Changes from Qualcomm Innovation Center are provided under the following license: -->
30<!-- Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. -->
31<!-- -->
32<!-- Redistribution and use in source and binary forms, with or without -->
33<!-- modification, are permitted (subject to the limitations in the -->
34<!-- disclaimer below) provided that the following conditions are met: -->
35<!-- -->
36<!-- * Redistributions of source code must retain the above copyright -->
37<!-- notice, this list of conditions and the following disclaimer. -->
38<!-- -->
39<!-- * Redistributions in binary form must reproduce the above -->
40<!-- copyright notice, this list of conditions and the following -->
41<!-- disclaimer in the documentation and/or other materials provided -->
42<!-- with the distribution. -->
43<!-- -->
44<!-- * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its -->
45<!-- contributors may be used to endorse or promote products derived -->
46<!-- from this software without specific prior written permission. -->
47<!-- -->
48<!-- NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE -->
49<!-- GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT -->
50<!-- HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED -->
51<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
52<!-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -->
53<!-- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -->
54<!-- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -->
55<!-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -->
56<!-- GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -->
57<!-- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -->
58<!-- IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -->
59<!-- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
60<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
61<resource_manager_info>
62 <config_params>
63 <param key="native_audio_mode" value="multiple_mix_dsp"/>
64 <!-- Uncomment HIFI Filter Headphones related sections when set this
65 hifi_filter key to true -->
66 <param key="hifi_filter" value="false"/>
67 <param key="max_sessions" value="128"/>
68 <param key="max_nonTunnel_sessions" value="4"/>
69 <param key="logging_level" value ="3" />
70 <param key="context_manager_enable" value ="false" />
71 <param key="upd_dedicated_be" value ="true" />
72 <param key="dual_mono" value ="false" />
73 <param key="signal_handler" value ="true" />
74 </config_params>
75 <config_volume>
76 <use_volume_set_param>0</use_volume_set_param>
77 <supported_streams>
78 <supported_stream>PAL_STREAM_ULTRA_LOW_LATENCY</supported_stream>
79 <supported_stream>PAL_STREAM_COMPRESSED</supported_stream>
80 </supported_streams>
81 </config_volume>
82 <config_lpm>
83 <use_disable_lpm>1</use_disable_lpm>
84 <lpm_supported_streams>
85 <lpm_supported_stream>PAL_STREAM_LOW_LATENCY</lpm_supported_stream>
86 <lpm_supported_stream>PAL_STREAM_ULTRA_LOW_LATENCY</lpm_supported_stream>
87 </lpm_supported_streams>
88 </config_lpm>
89 <config_gapless key="gapless_supported" value="1"/>
90 <bt_codecs>
91 <codec codec_format="CODEC_TYPE_AAC" codec_type="enc|dec" codec_library="lib_bt_bundle.so" />
92 <codec codec_format="CODEC_TYPE_SBC" codec_type="enc|dec" codec_library="lib_bt_bundle.so" />
93 <codec codec_format="CODEC_TYPE_LDAC" codec_type="enc" codec_library="lib_bt_bundle.so" />
94 <codec codec_format="CODEC_TYPE_APTX" codec_type="enc" codec_library="lib_bt_aptx.so" />
95 <codec codec_format="CODEC_TYPE_APTX_HD" codec_type="enc" codec_library="lib_bt_aptx.so" />
96 <codec codec_format="CODEC_TYPE_APTX_AD" codec_type="enc" codec_library="lib_bt_aptx.so" />
97 <codec codec_format="CODEC_TYPE_APTX_DUAL_MONO" codec_type="enc" codec_library="lib_bt_aptx.so" />
98 <codec codec_format="CODEC_TYPE_APTX_AD_SPEECH" codec_type="enc|dec" codec_library="lib_bt_aptx.so" />
99 <codec codec_format="CODEC_TYPE_LC3" codec_type="enc|dec" codec_library="lib_bt_ble.so" />
100 </bt_codecs>
101 <gain_db_to_level_mapping>
102 <gain_level_map db="-59" level="5"/>
103 <gain_level_map db="-17.4" level="4"/>
104 <gain_level_map db="-13.8" level="3"/>
105 <gain_level_map db="-10.2" level="2"/>
106 <gain_level_map db="0" level="1"/>
107 </gain_db_to_level_mapping>
108 <config_voice>
109 <vsid>0xB3000000</vsid>
110 <loopbackDelay>1000</loopbackDelay>
111 <maxVolIndex>5</maxVolIndex>
112 <mode_map>
113 <modepair key="0x11C05000" value="0xB3000001"/>
114 <modepair key="0x11DC5000" value="0xB3000001"/>
115 <modepair key="0x12006000" value="0xB3000001"/>
116 <modepair key="0x121C6000" value="0xB3000001"/>
117 </mode_map>
118 </config_voice>
119 <low_power_vote_streams>
120 <stream_type>PAL_STREAM_VOICE_UI</stream_type>
121 <stream_type>PAL_STREAM_ACD</stream_type>
122 <stream_type>PAL_STREAM_ULTRASOUND</stream_type>
123 <stream_type>PAL_STREAM_SENSOR_PCM_DATA</stream_type>
124 </low_power_vote_streams>
125 <device_profile>
126 <in-device>
127 <id>PAL_DEVICE_IN_HANDSET_MIC</id>
128 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
129 <max_channels>4</max_channels>
Arian90a76232025-04-11 14:03:23 +0200130 <channels>2</channels>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000131 <samplerate>48000</samplerate>
132 <bit_width>16</bit_width>
Arian90a76232025-04-11 14:03:23 +0200133 <snd_device_name>handset-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000134 <usecase>
135 <name>PAL_STREAM_LOW_LATENCY</name>
136 </usecase>
137 <usecase>
138 <name>PAL_STREAM_DEEP_BUFFER</name>
139 </usecase>
140 <usecase>
141 <name>PAL_STREAM_VOIP_TX</name>
142 <priority>2</priority>
143 </usecase>
144 <usecase>
145 <name>PAL_STREAM_VOICE_CALL</name>
146 <priority>1</priority>
147 <sidetone_mode>HW</sidetone_mode>
148 <bit_width>16</bit_width>
149 <custom-config key="dual-mic">
150 <channels>2</channels>
151 <snd_device_name>handset-dmic-endfire</snd_device_name>
152 </custom-config>
153 <custom-config key="quad-mic">
154 <channels>4</channels>
155 <snd_device_name>quad-mic</snd_device_name>
156 </custom-config>
157 </usecase>
158 <usecase>
159 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
160 </usecase>
161 <usecase>
162 <name>PAL_STREAM_RAW</name>
163 <snd_device_name>handset-mic-unprocessed</snd_device_name>
164 <custom-config key="unprocessed-hdr-mic-landscape">
165 <channels>4</channels>
166 <snd_device_name>unprocessed-hdr-mic-landscape</snd_device_name>
167 </custom-config>
168 <custom-config key="unprocessed-hdr-mic-portrait">
169 <channels>4</channels>
170 <snd_device_name>unprocessed-hdr-mic-portrait</snd_device_name>
171 </custom-config>
172 <custom-config key="unprocessed-hdr-mic-inverted-landscape">
173 <channels>4</channels>
174 <snd_device_name>unprocessed-hdr-mic-inverted-landscape</snd_device_name>
175 </custom-config>
176 <custom-config key="unprocessed-hdr-mic-inverted-portrait">
177 <channels>4</channels>
178 <snd_device_name>unprocessed-hdr-mic-inverted-portrait</snd_device_name>
179 </custom-config>
180 </usecase>
181 <ec_rx_device>
182 <id>PAL_DEVICE_OUT_HANDSET</id>
183 <id>PAL_DEVICE_OUT_SPEAKER</id>
184 </ec_rx_device>
185 </in-device>
186 <in-device>
187 <id>PAL_DEVICE_IN_SPEAKER_MIC</id>
188 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
189 <max_channels>4</max_channels>
190 <samplerate>48000</samplerate>
191 <bit_width>16</bit_width>
192 <channels>1</channels>
193 <snd_device_name>speaker-mic</snd_device_name>
194 <usecase>
195 <name>PAL_STREAM_LOW_LATENCY</name>
196 </usecase>
197 <usecase>
198 <name>PAL_STREAM_DEEP_BUFFER</name>
199 </usecase>
200 <usecase>
201 <name>PAL_STREAM_VOIP_TX</name>
202 <priority>2</priority>
Ariand4772ea2025-04-11 16:53:46 +0200203 <channels>2</channels>
204 <snd_device_name>speaker-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000205 </usecase>
206 <usecase>
207 <name>PAL_STREAM_VOICE_CALL</name>
208 <priority>1</priority>
209 <sidetone_mode>OFF</sidetone_mode>
210 <bit_width>16</bit_width>
Ariand4772ea2025-04-11 16:53:46 +0200211 <channels>2</channels>
212 <snd_device_name>speaker-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000213 <custom-config key="dual-mic">
214 <channels>2</channels>
215 <snd_device_name>speaker-dmic-endfire</snd_device_name>
216 </custom-config>
217 <custom-config key="quad-mic">
218 <channels>4</channels>
219 <snd_device_name>quad-mic</snd_device_name>
220 </custom-config>
221 </usecase>
222 <usecase>
223 <name>PAL_STREAM_LOOPBACK</name>
224 </usecase>
225 <usecase>
226 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
227 </usecase>
228 <ec_rx_device>
229 <id>PAL_DEVICE_OUT_SPEAKER</id>
230 </ec_rx_device>
231 </in-device>
232 <in-device>
233 <id>PAL_DEVICE_IN_WIRED_HEADSET</id>
234 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
235 <max_channels>1</max_channels>
236 <channels>1</channels>
237 <snd_device_name>headset-mic</snd_device_name>
238 <usecase>
239 <name>PAL_STREAM_LOW_LATENCY</name>
240 </usecase>
241 <usecase>
242 <name>PAL_STREAM_DEEP_BUFFER</name>
243 </usecase>
244 <usecase>
245 <name>PAL_STREAM_VOIP_TX</name>
246 <samplerate>48000</samplerate>
247 <bit_width>16</bit_width>
248 </usecase>
249 <usecase>
250 <name>PAL_STREAM_VOICE_CALL</name>
251 <sidetone_mode>HW</sidetone_mode>
252 <samplerate>48000</samplerate>
253 <bit_width>16</bit_width>
254 <priority>1</priority>
255 </usecase>
256 <usecase>
257 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
258 </usecase>
259 <ec_rx_device>
260 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
261 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
262 </ec_rx_device>
263 </in-device>
264 <in-device>
265 <id>PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET</id>
266 <back_end_name>SLIM-DEV1-TX-7</back_end_name>
267 <max_channels>1</max_channels>
268 <channels>1</channels>
269 <samplerate>8000</samplerate>
270 <bit_width>16</bit_width>
271 <snd_device_name>bt-sco-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 </usecase>
278 <usecase>
279 <name>PAL_STREAM_VOIP_TX</name>
280 </usecase>
281 <usecase>
282 <name>PAL_STREAM_VOICE_CALL</name>
283 <priority>1</priority>
284 </usecase>
285 <usecase>
286 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
287 </usecase>
288 <ec_rx_device>
289 <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
290 </ec_rx_device>
291 </in-device>
292 <in-device>
293 <id>PAL_DEVICE_IN_HANDSET_VA_MIC</id>
294 <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
295 <max_channels>2</max_channels>
296 <channels>1</channels>
297 <samplerate>48000</samplerate>
298 <bit_width>16</bit_width>
299 <snd_device_name>va-mic</snd_device_name>
300 <ec_rx_device>
301 <id>PAL_DEVICE_OUT_SPEAKER</id>
302 <id>PAL_DEVICE_OUT_HANDSET</id>
303 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
304 </ec_rx_device>
305 </in-device>
306 <in-device>
307 <id>PAL_DEVICE_IN_HEADSET_VA_MIC</id>
308 <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
309 <max_channels>2</max_channels>
310 <channels>1</channels>
311 <snd_device_name>headset-va-mic</snd_device_name>
312 <samplerate>48000</samplerate>
313 <bit_width>16</bit_width>
314 <ec_rx_device>
315 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
316 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
317 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
318 </ec_rx_device>
319 </in-device>
320 <in-device>
321 <id>PAL_DEVICE_IN_USB_HEADSET</id>
322 <back_end_name>USB_AUDIO-TX</back_end_name>
323 <max_channels>1</max_channels>
324 <channels>1</channels>
325 <samplerate>48000</samplerate>
326 <bit_width>16</bit_width>
327 <snd_device_name>usb-headset-mic</snd_device_name>
328 <usecase>
329 <name>PAL_STREAM_VOIP_TX</name>
330 </usecase>
331 <usecase>
332 <name>PAL_STREAM_LOW_LATENCY</name>
333 </usecase>
334 <usecase>
335 <name>PAL_STREAM_DEEP_BUFFER</name>
336 </usecase>
337 <usecase>
338 <name>PAL_STREAM_VOICE_CALL</name>
339 <priority>1</priority>
340 <sidetone_mode>HW</sidetone_mode>
341 </usecase>
342 <usecase>
343 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
344 </usecase>
345 <ec_rx_device>
346 <id>PAL_DEVICE_OUT_USB_HEADSET</id>
347 </ec_rx_device>
348 </in-device>
349 <in-device>
350 <id>PAL_DEVICE_IN_FM_TUNER</id>
351 <back_end_name>MI2S-LPAIF-TX-TERTIARY</back_end_name>
352 <max_channels>2</max_channels>
353 <channels>2</channels>
354 <snd_device_name>play-fm</snd_device_name>
355 <samplerate>48000</samplerate>
356 <bit_width>16</bit_width>
357 <usecase>
358 <name>PAL_STREAM_LOOPBACK</name>
359 </usecase>
360 </in-device>
361 <in-device>
362 <id>PAL_DEVICE_IN_PROXY</id>
363 <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
364 <max_channels>2</max_channels>
365 <channels>2</channels>
366 <snd_device_name>afe-proxy</snd_device_name>
367 <usecase>
368 <name>PAL_STREAM_PROXY</name>
369 </usecase>
370 </in-device>
371 <in-device>
372 <id>PAL_DEVICE_IN_VI_FEEDBACK</id>
373 <back_end_name>CODEC_DMA-LPAIF_WSA-TX-0</back_end_name>
374 <max_channels>2</max_channels>
375 <channels>2</channels>
376 <samplerate>48000</samplerate>
377 <bit_width>32</bit_width>
378 <snd_device_name>vi-feedback</snd_device_name>
379 </in-device>
380 <in-device>
381 <id>PAL_DEVICE_IN_BLUETOOTH_A2DP</id>
382 <back_end_name>SLIM-DEV1-TX-7</back_end_name>
383 <max_channels>1</max_channels>
384 <channels>1</channels>
385 <snd_device_name>bt-a2dp-mic</snd_device_name>
386 <samplerate>44100</samplerate>
387 <bit_width>16</bit_width>
388 </in-device>
389 <in-device>
390 <id>PAL_DEVICE_IN_TELEPHONY_RX</id>
391 <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
392 <max_channels>2</max_channels>
393 <channels>2</channels>
394 <snd_device_name>afe-proxy</snd_device_name>
395 <usecase>
396 <name>PAL_STREAM_PROXY</name>
397 </usecase>
398 </in-device>
399 <in-device>
400 <id>PAL_DEVICE_IN_ULTRASOUND_MIC</id>
401 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-4</back_end_name>
402 <max_channels>2</max_channels>
403 <channels>1</channels>
404 <samplerate>96000</samplerate>
405 <bit_width>16</bit_width>
406 <snd_device_name>ultrasound-mic</snd_device_name>
407 <usecase>
408 <name>PAL_STREAM_ULTRASOUND</name>
409 </usecase>
410 </in-device>
411 <in-device>
412 <id>PAL_DEVICE_IN_EXT_EC_REF</id>
Arian6ad2edd2025-04-11 16:54:38 +0200413 <back_end_name>TDM-LPAIF-TX-TERTIARY</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000414 <snd_device_name>ext_ec_ref_tx</snd_device_name>
415 <max_channels>2</max_channels>
416 <channels>2</channels>
417 <bit_width>16</bit_width>
418 <samplerate>48000</samplerate>
419 </in-device>
420 <out-device>
421 <id>PAL_DEVICE_NONE</id>
422 <back_end_name>CODEC_DMA-LPAIF_WSA-RX-0</back_end_name>
423 <max_channels>2</max_channels>
424 <channels>1</channels>
425 <snd_device_name>none</snd_device_name>
426 <samplerate>48000</samplerate>
427 <bit_width>16</bit_width>
428 </out-device>
429 <out-device>
430 <id>PAL_DEVICE_OUT_SPEAKER</id>
Arian6ad2edd2025-04-11 16:54:38 +0200431 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000432 <max_channels>2</max_channels>
433 <channels>2</channels>
434 <samplerate>48000</samplerate>
435 <bit_width>16</bit_width>
436 <snd_device_name>speaker</snd_device_name>
437 <speaker_protection_enabled>0</speaker_protection_enabled>
438 <fractional_sr>0</fractional_sr>
439 <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
440 <ext_ec_ref_enabled>0</ext_ec_ref_enabled>
441 <cps_enabled>0</cps_enabled>
442 <vbat_enabled>0</vbat_enabled>
443 <!--specify the supported bit format on speaker end point -->
444 <!--this should be in the form of pal_audio_fmt_id-->
445 <!--e.g <supported_bit_format >PAL_AUDIO_FMT_PCM_S24_LE</supported_bit_format>-->
446 <supported_bit_format>PAL_AUDIO_FMT_PCM_S16_LE</supported_bit_format>
447 <!-- RAS should be enabled with speaker protection always -->
448 <ras_enabled>0</ras_enabled>
449 <!-- Flag to specify speaker in case Voice call is switched from
450 handset to speaker with only 1 speaker.
451 Values: Both speaker : 0
452 Right speaker: 1
453 Left speaker : 2
454 -->
455 <speaker_mono_right>0</speaker_mono_right>
456 <!-- Time in seconds for Quick cal. Set 0 to disable -->
457 <quick_cal_time>0</quick_cal_time>
458 <usecase>
459 <name>PAL_STREAM_VOICE_CALL</name>
460 <priority>2</priority>
461 <channels>1</channels>
462 <snd_device_name>speaker-mono-2</snd_device_name>
463 </usecase>
464 <usecase>
465 <name>PAL_STREAM_VOIP_RX</name>
466 <priority>3</priority>
467 </usecase>
468 <usecase>
469 <name>PAL_STREAM_ULTRASOUND</name>
470 <priority>1</priority>
471 <samplerate>96000</samplerate>
472 </usecase>
473 </out-device>
474 <out-device>
475 <id>PAL_DEVICE_OUT_HANDSET</id>
Arian6ad2edd2025-04-11 16:54:38 +0200476 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000477 <max_channels>2</max_channels>
478 <channels>1</channels>
479 <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
480 <ext_ec_ref_enabled>0</ext_ec_ref_enabled>
481 <samplerate>48000</samplerate>
482 <bit_width>16</bit_width>
483 <fractional_sr>0</fractional_sr>
484 <snd_device_name>handset</snd_device_name>
485 <handset_protection_enabled>0</handset_protection_enabled>
486 <usecase>
487 <name>PAL_STREAM_VOICE_CALL</name>
488 <priority>2</priority>
489 <custom-config key="HAC">
490 <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset -->
491 </custom-config>
492 </usecase>
493 <usecase>
494 <name>PAL_STREAM_VOIP_RX</name>
495 <priority>3</priority>
496 <custom-config key="HAC">
497 <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset for voip -->
498 </custom-config>
499 </usecase>
500 <usecase>
501 <name>PAL_STREAM_ULTRASOUND</name>
502 <priority>1</priority>
503 <samplerate>96000</samplerate>
504 </usecase>
505 </out-device>
506 <out-device>
507 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
508 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
509 <max_channels>2</max_channels>
510 <channels>2</channels>
511 <fractional_sr>1</fractional_sr>
512 <snd_device_name>headphones</snd_device_name>
513 <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
514 <usecase>
515 <name>PAL_STREAM_COMPRESSED</name>
516 <custom-config key="hifi-filter_custom_key">
517 <snd_device_name>headphones-hifi-filter</snd_device_name>
518 </custom-config>
519 </usecase>
520 <usecase>
521 <name>PAL_STREAM_PCM_OFFLOAD</name>
522 <custom-config key="hifi-filter_custom_key">
523 <snd_device_name>headphones-hifi-filter</snd_device_name>
524 </custom-config>
525 </usecase>
526 <usecase>
527 <name>PAL_STREAM_DEEP_BUFFER</name>
528 <custom-config key="hifi-filter_custom_key">
529 <snd_device_name>headphones-hifi-filter</snd_device_name>
530 </custom-config>
531 </usecase>
532 -->
533 <usecase>
534 <name>PAL_STREAM_VOICE_CALL</name>
535 <priority>1</priority>
536 <samplerate>48000</samplerate>
537 <bit_width>16</bit_width>
538 </usecase>
539 <usecase>
540 <name>PAL_STREAM_VOIP_RX</name>
541 <priority>2</priority>
542 <samplerate>48000</samplerate>
543 <bit_width>16</bit_width>
544 </usecase>
545 </out-device>
546 <out-device>
547 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
548 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
549 <max_channels>2</max_channels>
550 <channels>2</channels>
551 <fractional_sr>1</fractional_sr>
552 <snd_device_name>headphones</snd_device_name>
553 <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
554 <usecase>
555 <name>PAL_STREAM_COMPRESSED</name>
556 <custom-config key="hifi-filter_custom_key">
557 <snd_device_name>headphones-hifi-filter</snd_device_name>
558 </custom-config>
559 </usecase>
560 <usecase>
561 <name>PAL_STREAM_PCM_OFFLOAD</name>
562 <custom-config key="hifi-filter_custom_key">
563 <snd_device_name>headphones-hifi-filter</snd_device_name>
564 </custom-config>
565 </usecase>
566 <usecase>
567 <name>PAL_STREAM_DEEP_BUFFER</name>
568 <custom-config key="hifi-filter_custom_key">
569 <snd_device_name>headphones-hifi-filter</snd_device_name>
570 </custom-config>
571 </usecase>
572 -->
573 <usecase>
574 <name>PAL_STREAM_VOICE_CALL</name>
575 <priority>1</priority>
576 <samplerate>48000</samplerate>
577 <bit_width>16</bit_width>
578 </usecase>
579 <usecase>
580 <name>PAL_STREAM_VOIP_RX</name>
581 <priority>2</priority>
582 <samplerate>48000</samplerate>
583 <bit_width>16</bit_width>
584 </usecase>
585 </out-device>
586 <out-device>
587 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
588 <back_end_name>SLIM-DEV1-RX-7</back_end_name>
589 <max_channels>1</max_channels>
590 <channels>1</channels>
591 <snd_device_name>bt-a2dp</snd_device_name>
592 <samplerate>44100</samplerate>
593 <bit_width>16</bit_width>
594 <usecase>
595 <name>PAL_STREAM_VOICE_CALL</name>
596 <priority>1</priority>
597 </usecase>
598 </out-device>
599 <out-device>
600 <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
601 <back_end_name>SLIM-DEV1-RX-7</back_end_name>
602 <max_channels>1</max_channels>
603 <channels>1</channels>
604 <snd_device_name>bt-sco</snd_device_name>
605 <samplerate>8000</samplerate>
606 <bit_width>16</bit_width>
607 <usecase>
608 <name>PAL_STREAM_VOICE_CALL</name>
609 <priority>1</priority>
610 </usecase>
611 </out-device>
612 <out-device>
613 <id>PAL_DEVICE_OUT_AUX_DIGITAL</id>
614 <back_end_name>DISPLAY_PORT-RX</back_end_name>
615 <max_channels>32</max_channels>
616 <channels>2</channels>
617 <snd_device_name>display-port</snd_device_name>
618 <fractional_sr>1</fractional_sr>
619 <usecase>
620 <name>PAL_STREAM_VOICE_CALL</name>
621 <priority>1</priority>
622 </usecase>
623 </out-device>
624 <out-device>
625 <id>PAL_DEVICE_OUT_HDMI</id>
626 <back_end_name>DISPLAY_PORT-RX</back_end_name>
627 <max_channels>32</max_channels>
628 <channels>2</channels>
629 <fractional_sr>1</fractional_sr>
630 <snd_device_name>display-port</snd_device_name>
631 <usecase>
632 <name>PAL_STREAM_VOICE_CALL</name>
633 <priority>1</priority>
634 </usecase>
635 </out-device>
636 <out-device>
637 <id>PAL_DEVICE_OUT_USB_DEVICE</id>
638 <back_end_name>USB_AUDIO-RX</back_end_name>
639 <max_channels>2</max_channels>
640 <channels>2</channels>
641 <snd_device_name>usb-headphones</snd_device_name>
642 <fractional_sr>1</fractional_sr>
643 <usecase>
644 <name>PAL_STREAM_VOICE_CALL</name>
645 <priority>1</priority>
646 </usecase>
647 </out-device>
648 <out-device>
649 <id>PAL_DEVICE_OUT_USB_HEADSET</id>
650 <back_end_name>USB_AUDIO-RX</back_end_name>
651 <max_channels>2</max_channels>
652 <channels>2</channels>
653 <snd_device_name>usb-headphones</snd_device_name>
654 <fractional_sr>1</fractional_sr>
655 <usecase>
656 <name>PAL_STREAM_VOICE_CALL</name>
657 <priority>1</priority>
658 </usecase>
659 </out-device>
660 <out-device>
661 <id>PAL_DEVICE_OUT_AUX_DIGITAL_1</id>
662 <back_end_name>DISPLAY_PORT-RX</back_end_name>
663 <max_channels>8</max_channels>
664 <channels>2</channels>
665 <snd_device_name>display-port</snd_device_name>
666 <fractional_sr>1</fractional_sr>
667 <usecase>
668 <name>PAL_STREAM_VOICE_CALL</name>
669 <priority>1</priority>
670 </usecase>
671 </out-device>
672 <out-device>
673 <id>PAL_DEVICE_OUT_PROXY</id>
674 <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
675 <max_channels>8</max_channels>
676 <channels>2</channels>
677 <snd_device_name>afe-proxy</snd_device_name>
678 <fractional_sr>0</fractional_sr>
679 <samplerate>48000</samplerate>
680 <usecase>
681 <name>PAL_STREAM_VOICE_CALL</name>
682 <priority>1</priority>
683 </usecase>
684 </out-device>
685 <out-device>
686 <id>PAL_DEVICE_OUT_HEARING_AID</id>
687 <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
688 <max_channels>8</max_channels>
689 <channels>2</channels>
690 <snd_device_name>afe-proxy</snd_device_name>
691 <fractional_sr>0</fractional_sr>
692 <usecase>
693 <name>PAL_STREAM_VOICE_CALL</name>
694 <priority>1</priority>
695 </usecase>
696 </out-device>
697 <out-device>
698 <id>PAL_DEVICE_OUT_HAPTICS_DEVICE</id>
699 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-6</back_end_name>
700 <max_channels>2</max_channels>
701 <channels>1</channels>
702 <snd_device_name>haptics-dev</snd_device_name>
703 </out-device>
704 <out-device>
705 <id>PAL_DEVICE_OUT_ULTRASOUND</id>
Arian6ad2edd2025-04-11 16:54:38 +0200706 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-1</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000707 <max_channels>2</max_channels>
708 <channels>1</channels>
709 <snd_device_name>ultrasound-handset</snd_device_name>
710 <samplerate>96000</samplerate>
711 <bit_width>16</bit_width>
712 </out-device>
713 </device_profile>
714 <in_streams>
715 <in_stream>
716 <name>PAL_STREAM_VOIP_TX</name>
717 <policies>
718 <ec_ref>
719 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
720 </ec_ref>
721 </policies>
722 </in_stream>
723 <in_stream>
724 <name>PAL_STREAM_DEEP_BUFFER</name>
725 <policies>
726 <ec_ref>
727 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
728 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
729 </ec_ref>
730 </policies>
731 </in_stream>
732 <in_stream>
733 <name>PAL_STREAM_VOICE_UI</name>
734 <policies>
735 <ec_ref>
736 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
737 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
738 </ec_ref>
739 </policies>
740 </in_stream>
741 <in_stream>
742 <name>PAL_STREAM_ACD</name>
743 <policies>
744 <ec_ref>
745 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
746 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
747 </ec_ref>
748 </policies>
749 </in_stream>
750 <in_stream>
751 <name>PAL_STREAM_PROXY</name>
752 <policies>
753 <ec_ref>
754 <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
755 <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
756 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
757 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
758 </ec_ref>
759 </policies>
760 </in_stream>
761 <in_stream>
762 <name>PAL_STREAM_RAW</name>
763 <policies>
764 <ec_ref>
765 <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
766 <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
767 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
768 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
769 </ec_ref>
770 </policies>
771 </in_stream>
772 <in_stream>
773 <name>PAL_STREAM_SENSOR_PCM_DATA</name>
774 <policies>
775 <ec_ref>
776 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
777 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
778 </ec_ref>
779 </policies>
780 </in_stream>
781 </in_streams>
782 <acd_platform_info>
783 <common_config>
784 <param acd_enable="true" />
785 <param support_device_switch="true" />
786 <param support_nlpi_switch="true" />
787 <param lpi_enable="true" />
788 <param enable_debug_dumps="false" />
789 <param concurrent_capture="true" />
790 <param concurrent_voice_call="true" />
791 <param concurrent_voip_call="true" />
792 <param low_latency_bargein_enable="false" />
793 </common_config>
794 <capture_profile_list>
795 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI">
796 <param sample_rate="16000" />
797 <param channels="1" />
798 <param bit_width="16" />
799 <param snd_name="headset-va-mic-lpi" />
800 <param ec_ref="false" />
801 </capture_profile>
802 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
803 <param sample_rate="16000" />
804 <param channels="1" />
805 <param bit_width="16" />
806 <param snd_name="headset-va-mic-lpi" />
807 <param ec_ref="false" />
808 </capture_profile>
809 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
810 <param sample_rate="16000" />
811 <param channels="1" />
812 <param bit_width="16" />
813 <param snd_name="headset-va-mic-lpi" />
814 <param ec_ref="false" />
815 </capture_profile>
816 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
817 <param sample_rate="16000" />
818 <param channels="1" />
819 <param bit_width="16" />
820 <param snd_name="headset-va-mic" />
821 <param ec_ref="true" />
822 </capture_profile>
823 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC">
824 <param sample_rate="16000" />
825 <param channels="1" />
826 <param bit_width="16" />
827 <param snd_name="headset-va-mic" />
828 <param ec_ref="true" />
829 </capture_profile>
830 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_LPI">
831 <param sample_rate="16000" />
832 <param channels="1" />
833 <param bit_width="16" />
834 <param snd_name="va-mic-mono-lpi" />
835 <param ec_ref="false" />
836 </capture_profile>
837 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
838 <param sample_rate="16000" />
839 <param channels="1" />
840 <param bit_width="16" />
841 <param snd_name="va-mic-mono-lpi" />
842 <param ec_ref="false" />
843 </capture_profile>
844 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
845 <param sample_rate="16000" />
846 <param channels="1" />
847 <param bit_width="16" />
848 <param snd_name="va-mic-mono-lpi" />
849 <param ec_ref="false" />
850 </capture_profile>
851 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
852 <param sample_rate="16000" />
853 <param channels="1" />
854 <param bit_width="16" />
855 <param snd_name="va-mic-mono" />
856 <param ec_ref="true" />
857 </capture_profile>
858 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFEC">
859 <param sample_rate="16000" />
860 <param channels="1" />
861 <param bit_width="16" />
862 <param snd_name="va-mic-mono" />
863 <param ec_ref="true" />
864 </capture_profile>
865 </capture_profile_list>
866 <!-- ACD -->
867 <stream_config>
868 <name>QC_ACD</name>
869 <param vendor_uuid="4e93281b-296e-4d73-9833-2710c3c7c1db"/>
870 <!-- Profile specific data which the algorithm can support -->
871 <param sample_rate="16000" />
872 <param bit_width="16" />
873 <param out_channels="1"/> <!-- Module output channels -->
874 <operating_modes>
875 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI"/>
876 <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
877 </operating_modes>
878 <sound_models>
879 <model>
880 <name>ACD_SOUND_MODEL_ID_EVENT</name>
881 <bin>event.eai</bin>
882 <uuid>0x0B001007</uuid>
883 <contexts>
884 <context id="0x0800132D"/> <!-- EVENT_ALARM -->
885 <context id="0x0800132E"/> <!-- EVENT_BABYCRYING -->
886 <context id="0x0800132F"/> <!-- EVENT_DOGBARKING -->
887 <context id="0x08001330"/> <!-- EVENT_DOORBELL -->
888 <context id="0x08001331"/> <!-- EVENT_DOORCLOSE -->
889 <context id="0x08001332"/> <!-- EVENT_DOOROPEN -->
890 <context id="0x08001333"/> <!-- EVENT_GLASSBREAKING -->
891 <context id="0x08001334"/> <!-- EVENT_SIREN -->
892 </contexts>
893 </model>
894 <model>
895 <name>ACD_SOUND_MODEL_ID_SPEECH</name>
896 <bin>speech.eai</bin>
897 <uuid>0x0B001008</uuid>
898 <contexts>
899 <context id="0x08001335"/> <!-- AMBIENCE_SPEECH -->
900 </contexts>
901 </model>
902 <model>
903 <name>ACD_SOUND_MODEL_ID_MUSIC</name>
904 <bin>music.eai</bin>
905 <uuid>0x0B001009</uuid>
906 <contexts>
907 <context id="0x08001336"/> <!-- AMBIENCE_MUSIC -->
908 </contexts>
909 </model>
910 <model>
911 <name>ACD_SOUND_MODEL_AMBIENCE_NOISE_SILENCE</name>
912 <bin></bin> <!-- Following contexts dont have a model, hence empty bin -->
913 <uuid>0xFFFFFFFF</uuid> <!-- Indicates no sound model -->
914 <contexts>
915 <context id="0x08001337"/> <!-- AMBIENCE_NOISY_SPL -->
916 <context id="0x08001338"/> <!-- AMBIENCE_SILENT_SPL -->
917 <context id="0x08001339"/> <!-- AMBIENCE_NOISY_SFLUX -->
918 <context id="0x0800133A"/> <!-- AMBIENCE_SILENT_SFLUX -->
919 </contexts>
920 </model>
921 </sound_models>
922 </stream_config>
923 <!-- Sensor PCM Data -->
924 <stream_config>
925 <name>QC_SENSOR_PCM_DATA</name>
926 <param vendor_uuid="c88a2c89-7a55-498c-836f-5d7ec8582990" />
927 <!-- Profile specific data which the algorithm can support -->
928 <param sample_rate="16000" />
929 <param bit_width="16" />
930 <param out_channels="1" /> <!-- Module output channels -->
931 <operating_modes>
932 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
933 <low_power_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
934 <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFEC" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC"/>
935 <high_performance_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
936 </operating_modes>
937 </stream_config>
938 </acd_platform_info>
939 <sound_trigger_platform_info>
940 <common_config>
941 <!-- Param used by apk to indicate the SVA version current platform supports -->
942 <param version="0x0103" />
943 <param enable_failure_detection="false" />
944 <param support_device_switch="true" />
945 <param support_nlpi_switch="true" />
946 <param transit_to_non_lpi_on_charging="false" />
947 <!-- Param used to indicate if SVA has dedicated back end path and ports not conflicting with other audio paths -->
948 <param dedicated_sva_path="true" />
949 <param dedicated_headset_path="false" />
950 <param lpi_enable="true" />
951 <param enable_debug_dumps="false" />
952 <param concurrent_capture="true" />
953 <param concurrent_voice_call="true" />
954 <param concurrent_voip_call="true" />
955 <param low_latency_bargein_enable="false" />
956 <param mmap_enable="true" />
957 <param mmap_buffer_duration="5000" />
958 <param mmap_frame_length="5" /> <!-- 5ms duration of data -->
959 <param notify_second_stage_failure="false"/>
960 </common_config>
961 <capture_profile_list>
962 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
963 <param sample_rate="16000" />
964 <param channels="1" />
965 <param bit_width="16" />
966 <param snd_name="headset-va-mic-lpi" />
967 <param ec_ref="false" />
968 </capture_profile>
969 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
970 <param sample_rate="16000" />
971 <param channels="1" />
972 <param bit_width="16" />
973 <param snd_name="headset-va-mic" />
974 <param ec_ref="true" />
975 </capture_profile>
976 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
977 <param sample_rate="16000" />
978 <param channels="1" />
979 <param bit_width="16" />
980 <param snd_name="headset-va-mic-lpi" />
981 <param ec_ref="false" />
982 </capture_profile>
983 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI">
984 <param sample_rate="16000" />
985 <param channels="1" />
986 <param bit_width="16" />
987 <param snd_name="headset-va-mic" />
988 <param ec_ref="false" />
989 </capture_profile>
990 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
991 <param sample_rate="16000" />
992 <param channels="1" />
993 <param bit_width="16" />
994 <param snd_name="va-mic-mono-lpi" />
995 <param ec_ref="false" />
996 </capture_profile>
997 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_NLPI">
998 <param sample_rate="16000" />
999 <param channels="1" />
1000 <param bit_width="16" />
1001 <param snd_name="va-mic-mono" />
1002 <param ec_ref="false" />
1003 </capture_profile>
1004 <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_LPI">
1005 <param sample_rate="16000" />
1006 <param channels="2" />
1007 <param bit_width="16" />
1008 <param snd_name="va-mic-dmic-lpi" />
1009 <param ec_ref="false" />
1010 </capture_profile>
1011 <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_NLPI">
1012 <param sample_rate="16000" />
1013 <param channels="2" />
1014 <param bit_width="16" />
1015 <param snd_name="va-mic-dmic" />
1016 <param ec_ref="false" />
1017 </capture_profile>
1018 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
1019 <param sample_rate="16000" />
1020 <param channels="1" />
1021 <param bit_width="16" />
1022 <param snd_name="va-mic-mono-lpi" />
1023 <param ec_ref="false" />
1024 </capture_profile>
1025 <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFNS">
1026 <param sample_rate="16000" />
1027 <param channels="2" />
1028 <param bit_width="16" />
1029 <param snd_name="va-mic-dmic-lpi" />
1030 <param ec_ref="false" />
1031 </capture_profile>
1032 <capture_profile name="TRI_MIC_16KHZ_16BIT_FFNS">
1033 <param sample_rate="16000" />
1034 <param channels="3" />
1035 <param bit_width="16" />
1036 <param snd_name="va-mic-tmic-lpi" />
1037 <param ec_ref="false" />
1038 </capture_profile>
1039 <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFNS">
1040 <param sample_rate="16000" />
1041 <param channels="4" />
1042 <param bit_width="16" />
1043 <param snd_name="va-mic-qmic-lpi" />
1044 <param ec_ref="false" />
1045 </capture_profile>
1046 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
1047 <param sample_rate="16000" />
1048 <param channels="1" />
1049 <param bit_width="16" />
1050 <param snd_name="va-mic-mono" />
1051 <param ec_ref="true" />
1052 </capture_profile>
1053 <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFECNS">
1054 <param sample_rate="16000" />
1055 <param channels="2" />
1056 <param bit_width="16" />
1057 <param snd_name="va-mic-dmic" />
1058 <param ec_ref="true" />
1059 </capture_profile>
1060 <capture_profile name="TRI_MIC_16KHZ_16BIT_FFECNS">
1061 <param sample_rate="16000" />
1062 <param channels="3" />
1063 <param bit_width="16" />
1064 <param snd_name="va-mic-tmic" />
1065 <param ec_ref="true" />
1066 </capture_profile>
1067 <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFECNS">
1068 <param sample_rate="16000" />
1069 <param channels="4" />
1070 <param bit_width="16" />
1071 <param snd_name="va-mic-qmic" />
1072 <param ec_ref="true" />
1073 </capture_profile>
1074 </capture_profile_list>
1075 <!-- Multiple sound_model_config tags can be listed, each with unique -->
1076 <!-- vendor_uuid. The below tag represents QTI SVA sound model -->
1077 <!-- configuration. ISV must use their own unique vendor_uuid. -->
1078 <!-- QTI SVA -->
1079 <sound_model_config>
1080 <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b"/>
1081 <!-- durations in us -->
1082 <param kw_start_tolerance="360000" />
1083 <param kw_end_tolerance="240000" />
1084 <param data_before_kw_start="360000" />
1085 <param data_after_kw_end="480000" />
1086 <param merge_first_stage_sound_models="false"/>
1087 <!-- Profile specific data which the algorithm can support -->
1088 <param sample_rate="16000" />
1089 <param bit_width="16" />
1090 <param out_channels="1"/> <!-- Module output channels -->
1091 <param capture_keyword="2000" /> <!-- Default history buffer length -->
1092 <param client_capture_read_delay="2000" /> <!-- reserved buffer duration for rt data -->
1093 <param pre_roll_duration="500" /> <!-- Default preroll duration -->
1094 <operating_modes>
1095 <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
1096 <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
1097 <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
1098 </operating_modes>
1099 <arm_ss_usecase>
1100 <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
1101 <param sm_detection_type= "KEYWORD_DETECTION" />
1102 <param sm_id="0x2" />
1103 <param module_lib="libcapiv2svacnnvendor.so"/>
1104 <param sample_rate="16000"/>
1105 <param bit_width="16"/>
1106 <param channel_count="1"/>
1107 </arm_ss_usecase>
1108 <arm_ss_usecase>
1109 <param sm_detection_type= "USER_VERIFICATION" />
1110 <param sm_id="0x4" />
1111 <param module_lib="libcapiv2uvvendor.so"/>
1112 <param sample_rate="16000"/>
1113 <param bit_width="16"/>
1114 <param channel_count="1"/>
1115 </arm_ss_usecase>
1116 <arm_ss_usecase>
1117 <param sm_detection_type= "KEYWORD_DETECTION" />
1118 <param sm_id="0x8" />
1119 <param module_lib="libcapiv2svarnnvendor.so"/>
1120 <param sample_rate="16000"/>
1121 <param bit_width="16"/>
1122 <param channel_count="1"/>
1123 </arm_ss_usecase>
1124 <module_params>
1125 <param module_type="GMM" />
1126 <param load_sound_model_ids="0xC0000008, 0x0800104C" />
1127 <param wakeup_config_ids="0xC0000008, 0x08001049" />
1128 <param buffering_config_ids="0xC0000008, 0x08001044" />
1129 <param engine_reset_ids="0xC0000008, 0x08001051" />
1130 </module_params>
1131 <module_params>
1132 <param module_type="PDK" />
1133 <param load_sound_model_ids="0xC0000008, 0x0800124E"/>
1134 <param unload_sound_model_ids="0xC0000008, 0x08001250"/>
1135 <param wakeup_config_ids="0xC0000008, 0x08001049" />
1136 <param buffering_config_ids="0xC0000008, 0x0800124F"/>
1137 <param engine_reset_ids="0xC0000008, 0x08001051" />
1138 </module_params>
1139 </sound_model_config>
1140 <!-- Hotword -->
1141 <sound_model_config>
1142 <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15"/>
1143 <param get_module_version="false" />
1144 <param kw_start_tolerance="100" />
1145 <param kw_end_tolerance="100" />
1146 <param merge_first_stage_sound_models="false"/>
1147 <param capture_keyword="2000" />
1148 <param client_capture_read_delay="2000" />
1149 <!-- Profile specific data which the algorithm can support -->
1150 <param sample_rate="16000" />
1151 <param bit_width="16" />
1152 <param out_channels="1"/> <!-- Module output channels -->
1153 <param capture_keyword="2000" />
1154 <param client_capture_read_delay="2000" />
1155 <operating_modes>
1156 <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
1157 <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_RAW_NLPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
1158 <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_RAW_NLPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
1159 </operating_modes>
1160 <module_params>
1161 <param module_type="HOTWORD" />
1162 <param load_sound_model_ids="0xC0000008, 0x0800104C" />
1163 <param unload_sound_model_ids="0xC0000008, 0x00012C15" />
1164 <param buffering_config_ids="0xC0000008, 0x08001044" />
1165 <param version_ids="0xC0000008, 0x18000101" />
1166 <param engine_reset_ids="0xC0000008, 0x08001051" />
1167 </module_params>
1168 </sound_model_config>
1169 </sound_trigger_platform_info>
1170</resource_manager_info>