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