blob: 7b7fb372ee7ad45b187cd263aad31f3d11e482dc [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>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000163 <custom-config key="unprocessed-hdr-mic-landscape">
164 <channels>4</channels>
165 <snd_device_name>unprocessed-hdr-mic-landscape</snd_device_name>
166 </custom-config>
167 <custom-config key="unprocessed-hdr-mic-portrait">
168 <channels>4</channels>
169 <snd_device_name>unprocessed-hdr-mic-portrait</snd_device_name>
170 </custom-config>
171 <custom-config key="unprocessed-hdr-mic-inverted-landscape">
172 <channels>4</channels>
173 <snd_device_name>unprocessed-hdr-mic-inverted-landscape</snd_device_name>
174 </custom-config>
175 <custom-config key="unprocessed-hdr-mic-inverted-portrait">
176 <channels>4</channels>
177 <snd_device_name>unprocessed-hdr-mic-inverted-portrait</snd_device_name>
178 </custom-config>
179 </usecase>
180 <ec_rx_device>
181 <id>PAL_DEVICE_OUT_HANDSET</id>
182 <id>PAL_DEVICE_OUT_SPEAKER</id>
183 </ec_rx_device>
184 </in-device>
185 <in-device>
186 <id>PAL_DEVICE_IN_SPEAKER_MIC</id>
187 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
188 <max_channels>4</max_channels>
189 <samplerate>48000</samplerate>
190 <bit_width>16</bit_width>
191 <channels>1</channels>
192 <snd_device_name>speaker-mic</snd_device_name>
193 <usecase>
194 <name>PAL_STREAM_LOW_LATENCY</name>
195 </usecase>
196 <usecase>
197 <name>PAL_STREAM_DEEP_BUFFER</name>
198 </usecase>
199 <usecase>
200 <name>PAL_STREAM_VOIP_TX</name>
201 <priority>2</priority>
Ariand4772ea2025-04-11 16:53:46 +0200202 <channels>2</channels>
203 <snd_device_name>speaker-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000204 </usecase>
205 <usecase>
206 <name>PAL_STREAM_VOICE_CALL</name>
207 <priority>1</priority>
208 <sidetone_mode>OFF</sidetone_mode>
209 <bit_width>16</bit_width>
Ariand4772ea2025-04-11 16:53:46 +0200210 <channels>2</channels>
211 <snd_device_name>speaker-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000212 <custom-config key="dual-mic">
213 <channels>2</channels>
214 <snd_device_name>speaker-dmic-endfire</snd_device_name>
215 </custom-config>
216 <custom-config key="quad-mic">
217 <channels>4</channels>
218 <snd_device_name>quad-mic</snd_device_name>
219 </custom-config>
220 </usecase>
221 <usecase>
222 <name>PAL_STREAM_LOOPBACK</name>
223 </usecase>
224 <usecase>
225 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
226 </usecase>
227 <ec_rx_device>
228 <id>PAL_DEVICE_OUT_SPEAKER</id>
229 </ec_rx_device>
230 </in-device>
231 <in-device>
232 <id>PAL_DEVICE_IN_WIRED_HEADSET</id>
233 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
234 <max_channels>1</max_channels>
235 <channels>1</channels>
236 <snd_device_name>headset-mic</snd_device_name>
237 <usecase>
238 <name>PAL_STREAM_LOW_LATENCY</name>
239 </usecase>
240 <usecase>
241 <name>PAL_STREAM_DEEP_BUFFER</name>
242 </usecase>
243 <usecase>
244 <name>PAL_STREAM_VOIP_TX</name>
245 <samplerate>48000</samplerate>
246 <bit_width>16</bit_width>
247 </usecase>
248 <usecase>
249 <name>PAL_STREAM_VOICE_CALL</name>
250 <sidetone_mode>HW</sidetone_mode>
251 <samplerate>48000</samplerate>
252 <bit_width>16</bit_width>
253 <priority>1</priority>
254 </usecase>
255 <usecase>
256 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
257 </usecase>
258 <ec_rx_device>
259 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
260 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
261 </ec_rx_device>
262 </in-device>
263 <in-device>
264 <id>PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET</id>
265 <back_end_name>SLIM-DEV1-TX-7</back_end_name>
266 <max_channels>1</max_channels>
267 <channels>1</channels>
268 <samplerate>8000</samplerate>
269 <bit_width>16</bit_width>
270 <snd_device_name>bt-sco-mic</snd_device_name>
271 <usecase>
272 <name>PAL_STREAM_LOW_LATENCY</name>
273 </usecase>
274 <usecase>
275 <name>PAL_STREAM_DEEP_BUFFER</name>
276 </usecase>
277 <usecase>
278 <name>PAL_STREAM_VOIP_TX</name>
279 </usecase>
280 <usecase>
281 <name>PAL_STREAM_VOICE_CALL</name>
282 <priority>1</priority>
283 </usecase>
284 <usecase>
285 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
286 </usecase>
287 <ec_rx_device>
288 <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
289 </ec_rx_device>
290 </in-device>
291 <in-device>
292 <id>PAL_DEVICE_IN_HANDSET_VA_MIC</id>
293 <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
294 <max_channels>2</max_channels>
295 <channels>1</channels>
296 <samplerate>48000</samplerate>
297 <bit_width>16</bit_width>
298 <snd_device_name>va-mic</snd_device_name>
299 <ec_rx_device>
300 <id>PAL_DEVICE_OUT_SPEAKER</id>
301 <id>PAL_DEVICE_OUT_HANDSET</id>
302 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
303 </ec_rx_device>
304 </in-device>
305 <in-device>
306 <id>PAL_DEVICE_IN_HEADSET_VA_MIC</id>
307 <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
308 <max_channels>2</max_channels>
309 <channels>1</channels>
310 <snd_device_name>headset-va-mic</snd_device_name>
311 <samplerate>48000</samplerate>
312 <bit_width>16</bit_width>
313 <ec_rx_device>
314 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
315 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
316 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
317 </ec_rx_device>
318 </in-device>
319 <in-device>
320 <id>PAL_DEVICE_IN_USB_HEADSET</id>
321 <back_end_name>USB_AUDIO-TX</back_end_name>
322 <max_channels>1</max_channels>
323 <channels>1</channels>
324 <samplerate>48000</samplerate>
325 <bit_width>16</bit_width>
326 <snd_device_name>usb-headset-mic</snd_device_name>
327 <usecase>
328 <name>PAL_STREAM_VOIP_TX</name>
329 </usecase>
330 <usecase>
331 <name>PAL_STREAM_LOW_LATENCY</name>
332 </usecase>
333 <usecase>
334 <name>PAL_STREAM_DEEP_BUFFER</name>
335 </usecase>
336 <usecase>
337 <name>PAL_STREAM_VOICE_CALL</name>
338 <priority>1</priority>
339 <sidetone_mode>HW</sidetone_mode>
340 </usecase>
341 <usecase>
342 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
343 </usecase>
344 <ec_rx_device>
345 <id>PAL_DEVICE_OUT_USB_HEADSET</id>
346 </ec_rx_device>
347 </in-device>
348 <in-device>
349 <id>PAL_DEVICE_IN_FM_TUNER</id>
350 <back_end_name>MI2S-LPAIF-TX-TERTIARY</back_end_name>
351 <max_channels>2</max_channels>
352 <channels>2</channels>
353 <snd_device_name>play-fm</snd_device_name>
354 <samplerate>48000</samplerate>
355 <bit_width>16</bit_width>
356 <usecase>
357 <name>PAL_STREAM_LOOPBACK</name>
358 </usecase>
359 </in-device>
360 <in-device>
361 <id>PAL_DEVICE_IN_PROXY</id>
362 <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
363 <max_channels>2</max_channels>
364 <channels>2</channels>
365 <snd_device_name>afe-proxy</snd_device_name>
366 <usecase>
367 <name>PAL_STREAM_PROXY</name>
368 </usecase>
369 </in-device>
370 <in-device>
371 <id>PAL_DEVICE_IN_VI_FEEDBACK</id>
372 <back_end_name>CODEC_DMA-LPAIF_WSA-TX-0</back_end_name>
373 <max_channels>2</max_channels>
374 <channels>2</channels>
375 <samplerate>48000</samplerate>
376 <bit_width>32</bit_width>
377 <snd_device_name>vi-feedback</snd_device_name>
378 </in-device>
379 <in-device>
380 <id>PAL_DEVICE_IN_BLUETOOTH_A2DP</id>
381 <back_end_name>SLIM-DEV1-TX-7</back_end_name>
382 <max_channels>1</max_channels>
383 <channels>1</channels>
384 <snd_device_name>bt-a2dp-mic</snd_device_name>
385 <samplerate>44100</samplerate>
386 <bit_width>16</bit_width>
387 </in-device>
388 <in-device>
389 <id>PAL_DEVICE_IN_TELEPHONY_RX</id>
390 <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
391 <max_channels>2</max_channels>
392 <channels>2</channels>
393 <snd_device_name>afe-proxy</snd_device_name>
394 <usecase>
395 <name>PAL_STREAM_PROXY</name>
396 </usecase>
397 </in-device>
398 <in-device>
399 <id>PAL_DEVICE_IN_ULTRASOUND_MIC</id>
400 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-4</back_end_name>
401 <max_channels>2</max_channels>
402 <channels>1</channels>
403 <samplerate>96000</samplerate>
404 <bit_width>16</bit_width>
405 <snd_device_name>ultrasound-mic</snd_device_name>
406 <usecase>
407 <name>PAL_STREAM_ULTRASOUND</name>
408 </usecase>
409 </in-device>
410 <in-device>
411 <id>PAL_DEVICE_IN_EXT_EC_REF</id>
Arian6ad2edd2025-04-11 16:54:38 +0200412 <back_end_name>TDM-LPAIF-TX-TERTIARY</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000413 <snd_device_name>ext_ec_ref_tx</snd_device_name>
414 <max_channels>2</max_channels>
415 <channels>2</channels>
416 <bit_width>16</bit_width>
417 <samplerate>48000</samplerate>
418 </in-device>
419 <out-device>
420 <id>PAL_DEVICE_NONE</id>
421 <back_end_name>CODEC_DMA-LPAIF_WSA-RX-0</back_end_name>
422 <max_channels>2</max_channels>
423 <channels>1</channels>
424 <snd_device_name>none</snd_device_name>
425 <samplerate>48000</samplerate>
426 <bit_width>16</bit_width>
427 </out-device>
428 <out-device>
429 <id>PAL_DEVICE_OUT_SPEAKER</id>
Arian6ad2edd2025-04-11 16:54:38 +0200430 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000431 <max_channels>2</max_channels>
432 <channels>2</channels>
433 <samplerate>48000</samplerate>
434 <bit_width>16</bit_width>
435 <snd_device_name>speaker</snd_device_name>
436 <speaker_protection_enabled>0</speaker_protection_enabled>
437 <fractional_sr>0</fractional_sr>
438 <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
439 <ext_ec_ref_enabled>0</ext_ec_ref_enabled>
440 <cps_enabled>0</cps_enabled>
441 <vbat_enabled>0</vbat_enabled>
442 <!--specify the supported bit format on speaker end point -->
443 <!--this should be in the form of pal_audio_fmt_id-->
444 <!--e.g <supported_bit_format >PAL_AUDIO_FMT_PCM_S24_LE</supported_bit_format>-->
445 <supported_bit_format>PAL_AUDIO_FMT_PCM_S16_LE</supported_bit_format>
446 <!-- RAS should be enabled with speaker protection always -->
447 <ras_enabled>0</ras_enabled>
448 <!-- Flag to specify speaker in case Voice call is switched from
449 handset to speaker with only 1 speaker.
450 Values: Both speaker : 0
451 Right speaker: 1
452 Left speaker : 2
453 -->
454 <speaker_mono_right>0</speaker_mono_right>
455 <!-- Time in seconds for Quick cal. Set 0 to disable -->
456 <quick_cal_time>0</quick_cal_time>
457 <usecase>
458 <name>PAL_STREAM_VOICE_CALL</name>
459 <priority>2</priority>
460 <channels>1</channels>
461 <snd_device_name>speaker-mono-2</snd_device_name>
462 </usecase>
463 <usecase>
464 <name>PAL_STREAM_VOIP_RX</name>
465 <priority>3</priority>
466 </usecase>
467 <usecase>
468 <name>PAL_STREAM_ULTRASOUND</name>
469 <priority>1</priority>
470 <samplerate>96000</samplerate>
471 </usecase>
472 </out-device>
473 <out-device>
474 <id>PAL_DEVICE_OUT_HANDSET</id>
Arian6ad2edd2025-04-11 16:54:38 +0200475 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000476 <max_channels>2</max_channels>
477 <channels>1</channels>
478 <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
479 <ext_ec_ref_enabled>0</ext_ec_ref_enabled>
480 <samplerate>48000</samplerate>
481 <bit_width>16</bit_width>
482 <fractional_sr>0</fractional_sr>
483 <snd_device_name>handset</snd_device_name>
484 <handset_protection_enabled>0</handset_protection_enabled>
485 <usecase>
486 <name>PAL_STREAM_VOICE_CALL</name>
487 <priority>2</priority>
488 <custom-config key="HAC">
489 <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset -->
490 </custom-config>
491 </usecase>
492 <usecase>
493 <name>PAL_STREAM_VOIP_RX</name>
494 <priority>3</priority>
495 <custom-config key="HAC">
496 <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset for voip -->
497 </custom-config>
498 </usecase>
499 <usecase>
500 <name>PAL_STREAM_ULTRASOUND</name>
501 <priority>1</priority>
502 <samplerate>96000</samplerate>
503 </usecase>
504 </out-device>
505 <out-device>
506 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
507 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
508 <max_channels>2</max_channels>
509 <channels>2</channels>
510 <fractional_sr>1</fractional_sr>
511 <snd_device_name>headphones</snd_device_name>
512 <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
513 <usecase>
514 <name>PAL_STREAM_COMPRESSED</name>
515 <custom-config key="hifi-filter_custom_key">
516 <snd_device_name>headphones-hifi-filter</snd_device_name>
517 </custom-config>
518 </usecase>
519 <usecase>
520 <name>PAL_STREAM_PCM_OFFLOAD</name>
521 <custom-config key="hifi-filter_custom_key">
522 <snd_device_name>headphones-hifi-filter</snd_device_name>
523 </custom-config>
524 </usecase>
525 <usecase>
526 <name>PAL_STREAM_DEEP_BUFFER</name>
527 <custom-config key="hifi-filter_custom_key">
528 <snd_device_name>headphones-hifi-filter</snd_device_name>
529 </custom-config>
530 </usecase>
531 -->
532 <usecase>
533 <name>PAL_STREAM_VOICE_CALL</name>
534 <priority>1</priority>
535 <samplerate>48000</samplerate>
536 <bit_width>16</bit_width>
537 </usecase>
538 <usecase>
539 <name>PAL_STREAM_VOIP_RX</name>
540 <priority>2</priority>
541 <samplerate>48000</samplerate>
542 <bit_width>16</bit_width>
543 </usecase>
544 </out-device>
545 <out-device>
546 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
547 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
548 <max_channels>2</max_channels>
549 <channels>2</channels>
550 <fractional_sr>1</fractional_sr>
551 <snd_device_name>headphones</snd_device_name>
552 <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
553 <usecase>
554 <name>PAL_STREAM_COMPRESSED</name>
555 <custom-config key="hifi-filter_custom_key">
556 <snd_device_name>headphones-hifi-filter</snd_device_name>
557 </custom-config>
558 </usecase>
559 <usecase>
560 <name>PAL_STREAM_PCM_OFFLOAD</name>
561 <custom-config key="hifi-filter_custom_key">
562 <snd_device_name>headphones-hifi-filter</snd_device_name>
563 </custom-config>
564 </usecase>
565 <usecase>
566 <name>PAL_STREAM_DEEP_BUFFER</name>
567 <custom-config key="hifi-filter_custom_key">
568 <snd_device_name>headphones-hifi-filter</snd_device_name>
569 </custom-config>
570 </usecase>
571 -->
572 <usecase>
573 <name>PAL_STREAM_VOICE_CALL</name>
574 <priority>1</priority>
575 <samplerate>48000</samplerate>
576 <bit_width>16</bit_width>
577 </usecase>
578 <usecase>
579 <name>PAL_STREAM_VOIP_RX</name>
580 <priority>2</priority>
581 <samplerate>48000</samplerate>
582 <bit_width>16</bit_width>
583 </usecase>
584 </out-device>
585 <out-device>
586 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
587 <back_end_name>SLIM-DEV1-RX-7</back_end_name>
588 <max_channels>1</max_channels>
589 <channels>1</channels>
590 <snd_device_name>bt-a2dp</snd_device_name>
591 <samplerate>44100</samplerate>
592 <bit_width>16</bit_width>
593 <usecase>
594 <name>PAL_STREAM_VOICE_CALL</name>
595 <priority>1</priority>
596 </usecase>
597 </out-device>
598 <out-device>
599 <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
600 <back_end_name>SLIM-DEV1-RX-7</back_end_name>
601 <max_channels>1</max_channels>
602 <channels>1</channels>
603 <snd_device_name>bt-sco</snd_device_name>
604 <samplerate>8000</samplerate>
605 <bit_width>16</bit_width>
606 <usecase>
607 <name>PAL_STREAM_VOICE_CALL</name>
608 <priority>1</priority>
609 </usecase>
610 </out-device>
611 <out-device>
612 <id>PAL_DEVICE_OUT_AUX_DIGITAL</id>
613 <back_end_name>DISPLAY_PORT-RX</back_end_name>
614 <max_channels>32</max_channels>
615 <channels>2</channels>
616 <snd_device_name>display-port</snd_device_name>
617 <fractional_sr>1</fractional_sr>
618 <usecase>
619 <name>PAL_STREAM_VOICE_CALL</name>
620 <priority>1</priority>
621 </usecase>
622 </out-device>
623 <out-device>
624 <id>PAL_DEVICE_OUT_HDMI</id>
625 <back_end_name>DISPLAY_PORT-RX</back_end_name>
626 <max_channels>32</max_channels>
627 <channels>2</channels>
628 <fractional_sr>1</fractional_sr>
629 <snd_device_name>display-port</snd_device_name>
630 <usecase>
631 <name>PAL_STREAM_VOICE_CALL</name>
632 <priority>1</priority>
633 </usecase>
634 </out-device>
635 <out-device>
636 <id>PAL_DEVICE_OUT_USB_DEVICE</id>
637 <back_end_name>USB_AUDIO-RX</back_end_name>
638 <max_channels>2</max_channels>
639 <channels>2</channels>
640 <snd_device_name>usb-headphones</snd_device_name>
641 <fractional_sr>1</fractional_sr>
642 <usecase>
643 <name>PAL_STREAM_VOICE_CALL</name>
644 <priority>1</priority>
645 </usecase>
646 </out-device>
647 <out-device>
648 <id>PAL_DEVICE_OUT_USB_HEADSET</id>
649 <back_end_name>USB_AUDIO-RX</back_end_name>
650 <max_channels>2</max_channels>
651 <channels>2</channels>
652 <snd_device_name>usb-headphones</snd_device_name>
653 <fractional_sr>1</fractional_sr>
654 <usecase>
655 <name>PAL_STREAM_VOICE_CALL</name>
656 <priority>1</priority>
657 </usecase>
658 </out-device>
659 <out-device>
660 <id>PAL_DEVICE_OUT_AUX_DIGITAL_1</id>
661 <back_end_name>DISPLAY_PORT-RX</back_end_name>
662 <max_channels>8</max_channels>
663 <channels>2</channels>
664 <snd_device_name>display-port</snd_device_name>
665 <fractional_sr>1</fractional_sr>
666 <usecase>
667 <name>PAL_STREAM_VOICE_CALL</name>
668 <priority>1</priority>
669 </usecase>
670 </out-device>
671 <out-device>
672 <id>PAL_DEVICE_OUT_PROXY</id>
673 <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
674 <max_channels>8</max_channels>
675 <channels>2</channels>
676 <snd_device_name>afe-proxy</snd_device_name>
677 <fractional_sr>0</fractional_sr>
678 <samplerate>48000</samplerate>
679 <usecase>
680 <name>PAL_STREAM_VOICE_CALL</name>
681 <priority>1</priority>
682 </usecase>
683 </out-device>
684 <out-device>
685 <id>PAL_DEVICE_OUT_HEARING_AID</id>
686 <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
687 <max_channels>8</max_channels>
688 <channels>2</channels>
689 <snd_device_name>afe-proxy</snd_device_name>
690 <fractional_sr>0</fractional_sr>
691 <usecase>
692 <name>PAL_STREAM_VOICE_CALL</name>
693 <priority>1</priority>
694 </usecase>
695 </out-device>
696 <out-device>
697 <id>PAL_DEVICE_OUT_HAPTICS_DEVICE</id>
698 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-6</back_end_name>
699 <max_channels>2</max_channels>
700 <channels>1</channels>
701 <snd_device_name>haptics-dev</snd_device_name>
702 </out-device>
703 <out-device>
704 <id>PAL_DEVICE_OUT_ULTRASOUND</id>
Arian6ad2edd2025-04-11 16:54:38 +0200705 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-1</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000706 <max_channels>2</max_channels>
707 <channels>1</channels>
708 <snd_device_name>ultrasound-handset</snd_device_name>
709 <samplerate>96000</samplerate>
710 <bit_width>16</bit_width>
711 </out-device>
712 </device_profile>
713 <in_streams>
714 <in_stream>
715 <name>PAL_STREAM_VOIP_TX</name>
716 <policies>
717 <ec_ref>
718 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
719 </ec_ref>
720 </policies>
721 </in_stream>
722 <in_stream>
723 <name>PAL_STREAM_DEEP_BUFFER</name>
724 <policies>
725 <ec_ref>
726 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
727 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
728 </ec_ref>
729 </policies>
730 </in_stream>
731 <in_stream>
732 <name>PAL_STREAM_VOICE_UI</name>
733 <policies>
734 <ec_ref>
735 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
736 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
737 </ec_ref>
738 </policies>
739 </in_stream>
740 <in_stream>
741 <name>PAL_STREAM_ACD</name>
742 <policies>
743 <ec_ref>
744 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
745 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
746 </ec_ref>
747 </policies>
748 </in_stream>
749 <in_stream>
750 <name>PAL_STREAM_PROXY</name>
751 <policies>
752 <ec_ref>
753 <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
754 <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
755 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
756 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
757 </ec_ref>
758 </policies>
759 </in_stream>
760 <in_stream>
761 <name>PAL_STREAM_RAW</name>
762 <policies>
763 <ec_ref>
764 <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
765 <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
766 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
767 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
768 </ec_ref>
769 </policies>
770 </in_stream>
771 <in_stream>
772 <name>PAL_STREAM_SENSOR_PCM_DATA</name>
773 <policies>
774 <ec_ref>
775 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
776 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
777 </ec_ref>
778 </policies>
779 </in_stream>
780 </in_streams>
781 <acd_platform_info>
782 <common_config>
783 <param acd_enable="true" />
784 <param support_device_switch="true" />
785 <param support_nlpi_switch="true" />
786 <param lpi_enable="true" />
787 <param enable_debug_dumps="false" />
788 <param concurrent_capture="true" />
789 <param concurrent_voice_call="true" />
790 <param concurrent_voip_call="true" />
791 <param low_latency_bargein_enable="false" />
792 </common_config>
793 <capture_profile_list>
794 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI">
795 <param sample_rate="16000" />
796 <param channels="1" />
797 <param bit_width="16" />
798 <param snd_name="headset-va-mic-lpi" />
799 <param ec_ref="false" />
800 </capture_profile>
801 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
802 <param sample_rate="16000" />
803 <param channels="1" />
804 <param bit_width="16" />
805 <param snd_name="headset-va-mic-lpi" />
806 <param ec_ref="false" />
807 </capture_profile>
808 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
809 <param sample_rate="16000" />
810 <param channels="1" />
811 <param bit_width="16" />
812 <param snd_name="headset-va-mic-lpi" />
813 <param ec_ref="false" />
814 </capture_profile>
815 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
816 <param sample_rate="16000" />
817 <param channels="1" />
818 <param bit_width="16" />
819 <param snd_name="headset-va-mic" />
820 <param ec_ref="true" />
821 </capture_profile>
822 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC">
823 <param sample_rate="16000" />
824 <param channels="1" />
825 <param bit_width="16" />
826 <param snd_name="headset-va-mic" />
827 <param ec_ref="true" />
828 </capture_profile>
829 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_LPI">
830 <param sample_rate="16000" />
831 <param channels="1" />
832 <param bit_width="16" />
833 <param snd_name="va-mic-mono-lpi" />
834 <param ec_ref="false" />
835 </capture_profile>
836 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
837 <param sample_rate="16000" />
838 <param channels="1" />
839 <param bit_width="16" />
840 <param snd_name="va-mic-mono-lpi" />
841 <param ec_ref="false" />
842 </capture_profile>
843 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
844 <param sample_rate="16000" />
845 <param channels="1" />
846 <param bit_width="16" />
847 <param snd_name="va-mic-mono-lpi" />
848 <param ec_ref="false" />
849 </capture_profile>
850 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
851 <param sample_rate="16000" />
852 <param channels="1" />
853 <param bit_width="16" />
854 <param snd_name="va-mic-mono" />
855 <param ec_ref="true" />
856 </capture_profile>
857 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFEC">
858 <param sample_rate="16000" />
859 <param channels="1" />
860 <param bit_width="16" />
861 <param snd_name="va-mic-mono" />
862 <param ec_ref="true" />
863 </capture_profile>
864 </capture_profile_list>
865 <!-- ACD -->
866 <stream_config>
867 <name>QC_ACD</name>
868 <param vendor_uuid="4e93281b-296e-4d73-9833-2710c3c7c1db"/>
869 <!-- Profile specific data which the algorithm can support -->
870 <param sample_rate="16000" />
871 <param bit_width="16" />
872 <param out_channels="1"/> <!-- Module output channels -->
873 <operating_modes>
874 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI"/>
875 <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
876 </operating_modes>
877 <sound_models>
878 <model>
879 <name>ACD_SOUND_MODEL_ID_EVENT</name>
880 <bin>event.eai</bin>
881 <uuid>0x0B001007</uuid>
882 <contexts>
883 <context id="0x0800132D"/> <!-- EVENT_ALARM -->
884 <context id="0x0800132E"/> <!-- EVENT_BABYCRYING -->
885 <context id="0x0800132F"/> <!-- EVENT_DOGBARKING -->
886 <context id="0x08001330"/> <!-- EVENT_DOORBELL -->
887 <context id="0x08001331"/> <!-- EVENT_DOORCLOSE -->
888 <context id="0x08001332"/> <!-- EVENT_DOOROPEN -->
889 <context id="0x08001333"/> <!-- EVENT_GLASSBREAKING -->
890 <context id="0x08001334"/> <!-- EVENT_SIREN -->
891 </contexts>
892 </model>
893 <model>
894 <name>ACD_SOUND_MODEL_ID_SPEECH</name>
895 <bin>speech.eai</bin>
896 <uuid>0x0B001008</uuid>
897 <contexts>
898 <context id="0x08001335"/> <!-- AMBIENCE_SPEECH -->
899 </contexts>
900 </model>
901 <model>
902 <name>ACD_SOUND_MODEL_ID_MUSIC</name>
903 <bin>music.eai</bin>
904 <uuid>0x0B001009</uuid>
905 <contexts>
906 <context id="0x08001336"/> <!-- AMBIENCE_MUSIC -->
907 </contexts>
908 </model>
909 <model>
910 <name>ACD_SOUND_MODEL_AMBIENCE_NOISE_SILENCE</name>
911 <bin></bin> <!-- Following contexts dont have a model, hence empty bin -->
912 <uuid>0xFFFFFFFF</uuid> <!-- Indicates no sound model -->
913 <contexts>
914 <context id="0x08001337"/> <!-- AMBIENCE_NOISY_SPL -->
915 <context id="0x08001338"/> <!-- AMBIENCE_SILENT_SPL -->
916 <context id="0x08001339"/> <!-- AMBIENCE_NOISY_SFLUX -->
917 <context id="0x0800133A"/> <!-- AMBIENCE_SILENT_SFLUX -->
918 </contexts>
919 </model>
920 </sound_models>
921 </stream_config>
922 <!-- Sensor PCM Data -->
923 <stream_config>
924 <name>QC_SENSOR_PCM_DATA</name>
925 <param vendor_uuid="c88a2c89-7a55-498c-836f-5d7ec8582990" />
926 <!-- Profile specific data which the algorithm can support -->
927 <param sample_rate="16000" />
928 <param bit_width="16" />
929 <param out_channels="1" /> <!-- Module output channels -->
930 <operating_modes>
931 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
932 <low_power_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
933 <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFEC" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC"/>
934 <high_performance_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
935 </operating_modes>
936 </stream_config>
937 </acd_platform_info>
938 <sound_trigger_platform_info>
939 <common_config>
940 <!-- Param used by apk to indicate the SVA version current platform supports -->
941 <param version="0x0103" />
942 <param enable_failure_detection="false" />
943 <param support_device_switch="true" />
944 <param support_nlpi_switch="true" />
945 <param transit_to_non_lpi_on_charging="false" />
946 <!-- Param used to indicate if SVA has dedicated back end path and ports not conflicting with other audio paths -->
947 <param dedicated_sva_path="true" />
948 <param dedicated_headset_path="false" />
949 <param lpi_enable="true" />
950 <param enable_debug_dumps="false" />
951 <param concurrent_capture="true" />
952 <param concurrent_voice_call="true" />
953 <param concurrent_voip_call="true" />
954 <param low_latency_bargein_enable="false" />
955 <param mmap_enable="true" />
956 <param mmap_buffer_duration="5000" />
957 <param mmap_frame_length="5" /> <!-- 5ms duration of data -->
958 <param notify_second_stage_failure="false"/>
959 </common_config>
960 <capture_profile_list>
961 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
962 <param sample_rate="16000" />
963 <param channels="1" />
964 <param bit_width="16" />
965 <param snd_name="headset-va-mic-lpi" />
966 <param ec_ref="false" />
967 </capture_profile>
968 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
969 <param sample_rate="16000" />
970 <param channels="1" />
971 <param bit_width="16" />
972 <param snd_name="headset-va-mic" />
973 <param ec_ref="true" />
974 </capture_profile>
975 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
976 <param sample_rate="16000" />
977 <param channels="1" />
978 <param bit_width="16" />
979 <param snd_name="headset-va-mic-lpi" />
980 <param ec_ref="false" />
981 </capture_profile>
982 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI">
983 <param sample_rate="16000" />
984 <param channels="1" />
985 <param bit_width="16" />
986 <param snd_name="headset-va-mic" />
987 <param ec_ref="false" />
988 </capture_profile>
989 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
990 <param sample_rate="16000" />
991 <param channels="1" />
992 <param bit_width="16" />
993 <param snd_name="va-mic-mono-lpi" />
994 <param ec_ref="false" />
995 </capture_profile>
996 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_NLPI">
997 <param sample_rate="16000" />
998 <param channels="1" />
999 <param bit_width="16" />
1000 <param snd_name="va-mic-mono" />
1001 <param ec_ref="false" />
1002 </capture_profile>
1003 <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_LPI">
1004 <param sample_rate="16000" />
1005 <param channels="2" />
1006 <param bit_width="16" />
1007 <param snd_name="va-mic-dmic-lpi" />
1008 <param ec_ref="false" />
1009 </capture_profile>
1010 <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_NLPI">
1011 <param sample_rate="16000" />
1012 <param channels="2" />
1013 <param bit_width="16" />
1014 <param snd_name="va-mic-dmic" />
1015 <param ec_ref="false" />
1016 </capture_profile>
1017 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
1018 <param sample_rate="16000" />
1019 <param channels="1" />
1020 <param bit_width="16" />
1021 <param snd_name="va-mic-mono-lpi" />
1022 <param ec_ref="false" />
1023 </capture_profile>
1024 <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFNS">
1025 <param sample_rate="16000" />
1026 <param channels="2" />
1027 <param bit_width="16" />
1028 <param snd_name="va-mic-dmic-lpi" />
1029 <param ec_ref="false" />
1030 </capture_profile>
1031 <capture_profile name="TRI_MIC_16KHZ_16BIT_FFNS">
1032 <param sample_rate="16000" />
1033 <param channels="3" />
1034 <param bit_width="16" />
1035 <param snd_name="va-mic-tmic-lpi" />
1036 <param ec_ref="false" />
1037 </capture_profile>
1038 <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFNS">
1039 <param sample_rate="16000" />
1040 <param channels="4" />
1041 <param bit_width="16" />
1042 <param snd_name="va-mic-qmic-lpi" />
1043 <param ec_ref="false" />
1044 </capture_profile>
1045 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
1046 <param sample_rate="16000" />
1047 <param channels="1" />
1048 <param bit_width="16" />
1049 <param snd_name="va-mic-mono" />
1050 <param ec_ref="true" />
1051 </capture_profile>
1052 <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFECNS">
1053 <param sample_rate="16000" />
1054 <param channels="2" />
1055 <param bit_width="16" />
1056 <param snd_name="va-mic-dmic" />
1057 <param ec_ref="true" />
1058 </capture_profile>
1059 <capture_profile name="TRI_MIC_16KHZ_16BIT_FFECNS">
1060 <param sample_rate="16000" />
1061 <param channels="3" />
1062 <param bit_width="16" />
1063 <param snd_name="va-mic-tmic" />
1064 <param ec_ref="true" />
1065 </capture_profile>
1066 <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFECNS">
1067 <param sample_rate="16000" />
1068 <param channels="4" />
1069 <param bit_width="16" />
1070 <param snd_name="va-mic-qmic" />
1071 <param ec_ref="true" />
1072 </capture_profile>
1073 </capture_profile_list>
1074 <!-- Multiple sound_model_config tags can be listed, each with unique -->
1075 <!-- vendor_uuid. The below tag represents QTI SVA sound model -->
1076 <!-- configuration. ISV must use their own unique vendor_uuid. -->
1077 <!-- QTI SVA -->
1078 <sound_model_config>
1079 <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b"/>
1080 <!-- durations in us -->
1081 <param kw_start_tolerance="360000" />
1082 <param kw_end_tolerance="240000" />
1083 <param data_before_kw_start="360000" />
1084 <param data_after_kw_end="480000" />
1085 <param merge_first_stage_sound_models="false"/>
1086 <!-- Profile specific data which the algorithm can support -->
1087 <param sample_rate="16000" />
1088 <param bit_width="16" />
1089 <param out_channels="1"/> <!-- Module output channels -->
1090 <param capture_keyword="2000" /> <!-- Default history buffer length -->
1091 <param client_capture_read_delay="2000" /> <!-- reserved buffer duration for rt data -->
1092 <param pre_roll_duration="500" /> <!-- Default preroll duration -->
1093 <operating_modes>
1094 <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
1095 <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
1096 <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
1097 </operating_modes>
1098 <arm_ss_usecase>
1099 <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
1100 <param sm_detection_type= "KEYWORD_DETECTION" />
1101 <param sm_id="0x2" />
1102 <param module_lib="libcapiv2svacnnvendor.so"/>
1103 <param sample_rate="16000"/>
1104 <param bit_width="16"/>
1105 <param channel_count="1"/>
1106 </arm_ss_usecase>
1107 <arm_ss_usecase>
1108 <param sm_detection_type= "USER_VERIFICATION" />
1109 <param sm_id="0x4" />
1110 <param module_lib="libcapiv2uvvendor.so"/>
1111 <param sample_rate="16000"/>
1112 <param bit_width="16"/>
1113 <param channel_count="1"/>
1114 </arm_ss_usecase>
1115 <arm_ss_usecase>
1116 <param sm_detection_type= "KEYWORD_DETECTION" />
1117 <param sm_id="0x8" />
1118 <param module_lib="libcapiv2svarnnvendor.so"/>
1119 <param sample_rate="16000"/>
1120 <param bit_width="16"/>
1121 <param channel_count="1"/>
1122 </arm_ss_usecase>
1123 <module_params>
1124 <param module_type="GMM" />
1125 <param load_sound_model_ids="0xC0000008, 0x0800104C" />
1126 <param wakeup_config_ids="0xC0000008, 0x08001049" />
1127 <param buffering_config_ids="0xC0000008, 0x08001044" />
1128 <param engine_reset_ids="0xC0000008, 0x08001051" />
1129 </module_params>
1130 <module_params>
1131 <param module_type="PDK" />
1132 <param load_sound_model_ids="0xC0000008, 0x0800124E"/>
1133 <param unload_sound_model_ids="0xC0000008, 0x08001250"/>
1134 <param wakeup_config_ids="0xC0000008, 0x08001049" />
1135 <param buffering_config_ids="0xC0000008, 0x0800124F"/>
1136 <param engine_reset_ids="0xC0000008, 0x08001051" />
1137 </module_params>
1138 </sound_model_config>
1139 <!-- Hotword -->
1140 <sound_model_config>
1141 <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15"/>
1142 <param get_module_version="false" />
1143 <param kw_start_tolerance="100" />
1144 <param kw_end_tolerance="100" />
1145 <param merge_first_stage_sound_models="false"/>
1146 <param capture_keyword="2000" />
1147 <param client_capture_read_delay="2000" />
1148 <!-- Profile specific data which the algorithm can support -->
1149 <param sample_rate="16000" />
1150 <param bit_width="16" />
1151 <param out_channels="1"/> <!-- Module output channels -->
1152 <param capture_keyword="2000" />
1153 <param client_capture_read_delay="2000" />
1154 <operating_modes>
Arian031a9482025-04-11 18:58:55 +02001155 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
1156 <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
1157 <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +00001158 </operating_modes>
1159 <module_params>
1160 <param module_type="HOTWORD" />
1161 <param load_sound_model_ids="0xC0000008, 0x0800104C" />
1162 <param unload_sound_model_ids="0xC0000008, 0x00012C15" />
1163 <param buffering_config_ids="0xC0000008, 0x08001044" />
1164 <param version_ids="0xC0000008, 0x18000101" />
1165 <param engine_reset_ids="0xC0000008, 0x08001051" />
1166 </module_params>
1167 </sound_model_config>
1168 </sound_trigger_platform_info>
1169</resource_manager_info>