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