blob: 98e211f75b2ea9e2e9dc1dc72a0af161ae145d2f [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>
Ariande48bfd2025-04-11 18:51:46 +020076 <use_volume_set_param>1</use_volume_set_param>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +000077 <supported_streams>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +000078 <supported_stream>PAL_STREAM_COMPRESSED</supported_stream>
Ariande48bfd2025-04-11 18:51:46 +020079 <supported_stream>PAL_STREAM_PCM_OFFLOAD</supported_stream>
80 <supported_stream>PAL_STREAM_VOIP_RX</supported_stream>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +000081 </supported_streams>
82 </config_volume>
83 <config_lpm>
84 <use_disable_lpm>1</use_disable_lpm>
85 <lpm_supported_streams>
86 <lpm_supported_stream>PAL_STREAM_LOW_LATENCY</lpm_supported_stream>
87 <lpm_supported_stream>PAL_STREAM_ULTRA_LOW_LATENCY</lpm_supported_stream>
88 </lpm_supported_streams>
89 </config_lpm>
90 <config_gapless key="gapless_supported" value="1"/>
91 <bt_codecs>
92 <codec codec_format="CODEC_TYPE_AAC" codec_type="enc|dec" codec_library="lib_bt_bundle.so" />
93 <codec codec_format="CODEC_TYPE_SBC" codec_type="enc|dec" codec_library="lib_bt_bundle.so" />
94 <codec codec_format="CODEC_TYPE_LDAC" codec_type="enc" codec_library="lib_bt_bundle.so" />
95 <codec codec_format="CODEC_TYPE_APTX" codec_type="enc" codec_library="lib_bt_aptx.so" />
96 <codec codec_format="CODEC_TYPE_APTX_HD" codec_type="enc" codec_library="lib_bt_aptx.so" />
97 <codec codec_format="CODEC_TYPE_APTX_AD" codec_type="enc" codec_library="lib_bt_aptx.so" />
98 <codec codec_format="CODEC_TYPE_APTX_DUAL_MONO" codec_type="enc" codec_library="lib_bt_aptx.so" />
99 <codec codec_format="CODEC_TYPE_APTX_AD_SPEECH" codec_type="enc|dec" codec_library="lib_bt_aptx.so" />
100 <codec codec_format="CODEC_TYPE_LC3" codec_type="enc|dec" codec_library="lib_bt_ble.so" />
101 </bt_codecs>
102 <gain_db_to_level_mapping>
103 <gain_level_map db="-59" level="5"/>
104 <gain_level_map db="-17.4" level="4"/>
105 <gain_level_map db="-13.8" level="3"/>
106 <gain_level_map db="-10.2" level="2"/>
107 <gain_level_map db="0" level="1"/>
108 </gain_db_to_level_mapping>
109 <config_voice>
110 <vsid>0xB3000000</vsid>
111 <loopbackDelay>1000</loopbackDelay>
112 <maxVolIndex>5</maxVolIndex>
113 <mode_map>
114 <modepair key="0x11C05000" value="0xB3000001"/>
115 <modepair key="0x11DC5000" value="0xB3000001"/>
116 <modepair key="0x12006000" value="0xB3000001"/>
117 <modepair key="0x121C6000" value="0xB3000001"/>
118 </mode_map>
119 </config_voice>
120 <low_power_vote_streams>
121 <stream_type>PAL_STREAM_VOICE_UI</stream_type>
122 <stream_type>PAL_STREAM_ACD</stream_type>
123 <stream_type>PAL_STREAM_ULTRASOUND</stream_type>
124 <stream_type>PAL_STREAM_SENSOR_PCM_DATA</stream_type>
125 </low_power_vote_streams>
Arian2617c0d2025-04-11 17:26:06 +0200126 <group_device_cfg>
127 <upd_rx>
128 <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
129 <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
130 </upd_rx>
131 <handset>
132 <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
133 <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
134 </handset>
135 <speaker>
136 <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
137 <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
138 </speaker>
139 <speaker_voice>
140 <devicepp_mfc sample_rate="48000" channels="2" bit_width="24" />
141 <group_dev sample_rate = "96000" channels="3" bit_fmt="PAL_AUDIO_FMT_PCM_S24_LE" slot_mask="7" />
142 </speaker_voice>
143 </group_device_cfg>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000144 <device_profile>
145 <in-device>
146 <id>PAL_DEVICE_IN_HANDSET_MIC</id>
147 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
148 <max_channels>4</max_channels>
Arian90a76232025-04-11 14:03:23 +0200149 <channels>2</channels>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000150 <samplerate>48000</samplerate>
151 <bit_width>16</bit_width>
Arian90a76232025-04-11 14:03:23 +0200152 <snd_device_name>handset-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000153 <usecase>
154 <name>PAL_STREAM_LOW_LATENCY</name>
155 </usecase>
156 <usecase>
157 <name>PAL_STREAM_DEEP_BUFFER</name>
158 </usecase>
159 <usecase>
160 <name>PAL_STREAM_VOIP_TX</name>
161 <priority>2</priority>
162 </usecase>
163 <usecase>
164 <name>PAL_STREAM_VOICE_CALL</name>
165 <priority>1</priority>
166 <sidetone_mode>HW</sidetone_mode>
167 <bit_width>16</bit_width>
168 <custom-config key="dual-mic">
169 <channels>2</channels>
170 <snd_device_name>handset-dmic-endfire</snd_device_name>
171 </custom-config>
172 <custom-config key="quad-mic">
173 <channels>4</channels>
174 <snd_device_name>quad-mic</snd_device_name>
175 </custom-config>
176 </usecase>
177 <usecase>
178 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
179 </usecase>
180 <usecase>
181 <name>PAL_STREAM_RAW</name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000182 <custom-config key="unprocessed-hdr-mic-landscape">
183 <channels>4</channels>
184 <snd_device_name>unprocessed-hdr-mic-landscape</snd_device_name>
185 </custom-config>
186 <custom-config key="unprocessed-hdr-mic-portrait">
187 <channels>4</channels>
188 <snd_device_name>unprocessed-hdr-mic-portrait</snd_device_name>
189 </custom-config>
190 <custom-config key="unprocessed-hdr-mic-inverted-landscape">
191 <channels>4</channels>
192 <snd_device_name>unprocessed-hdr-mic-inverted-landscape</snd_device_name>
193 </custom-config>
194 <custom-config key="unprocessed-hdr-mic-inverted-portrait">
195 <channels>4</channels>
196 <snd_device_name>unprocessed-hdr-mic-inverted-portrait</snd_device_name>
197 </custom-config>
198 </usecase>
199 <ec_rx_device>
200 <id>PAL_DEVICE_OUT_HANDSET</id>
201 <id>PAL_DEVICE_OUT_SPEAKER</id>
202 </ec_rx_device>
203 </in-device>
204 <in-device>
205 <id>PAL_DEVICE_IN_SPEAKER_MIC</id>
206 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
207 <max_channels>4</max_channels>
208 <samplerate>48000</samplerate>
209 <bit_width>16</bit_width>
210 <channels>1</channels>
211 <snd_device_name>speaker-mic</snd_device_name>
212 <usecase>
213 <name>PAL_STREAM_LOW_LATENCY</name>
214 </usecase>
215 <usecase>
216 <name>PAL_STREAM_DEEP_BUFFER</name>
Arian439041c2025-05-24 17:40:16 +0200217 <custom-config key="camcorder_landscape">
218 <channels>4</channels>
219 <snd_device_name>handset-stereo-dmic-ef</snd_device_name>
220 </custom-config>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000221 </usecase>
222 <usecase>
223 <name>PAL_STREAM_VOIP_TX</name>
224 <priority>2</priority>
Ariand4772ea2025-04-11 16:53:46 +0200225 <channels>2</channels>
226 <snd_device_name>speaker-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000227 </usecase>
228 <usecase>
229 <name>PAL_STREAM_VOICE_CALL</name>
230 <priority>1</priority>
231 <sidetone_mode>OFF</sidetone_mode>
232 <bit_width>16</bit_width>
Ariand4772ea2025-04-11 16:53:46 +0200233 <channels>2</channels>
234 <snd_device_name>speaker-dmic-endfire</snd_device_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000235 <custom-config key="dual-mic">
236 <channels>2</channels>
237 <snd_device_name>speaker-dmic-endfire</snd_device_name>
238 </custom-config>
239 <custom-config key="quad-mic">
240 <channels>4</channels>
241 <snd_device_name>quad-mic</snd_device_name>
242 </custom-config>
243 </usecase>
244 <usecase>
245 <name>PAL_STREAM_LOOPBACK</name>
246 </usecase>
247 <usecase>
248 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
249 </usecase>
250 <ec_rx_device>
251 <id>PAL_DEVICE_OUT_SPEAKER</id>
Arian141da192025-04-11 17:39:34 +0200252 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
253 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000254 </ec_rx_device>
255 </in-device>
256 <in-device>
257 <id>PAL_DEVICE_IN_WIRED_HEADSET</id>
258 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-3</back_end_name>
259 <max_channels>1</max_channels>
260 <channels>1</channels>
Arian2617c0d2025-04-11 17:26:06 +0200261 <bit_width>16</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000262 <snd_device_name>headset-mic</snd_device_name>
263 <usecase>
264 <name>PAL_STREAM_LOW_LATENCY</name>
265 </usecase>
266 <usecase>
267 <name>PAL_STREAM_DEEP_BUFFER</name>
268 </usecase>
269 <usecase>
270 <name>PAL_STREAM_VOIP_TX</name>
271 <samplerate>48000</samplerate>
272 <bit_width>16</bit_width>
273 </usecase>
274 <usecase>
275 <name>PAL_STREAM_VOICE_CALL</name>
276 <sidetone_mode>HW</sidetone_mode>
277 <samplerate>48000</samplerate>
278 <bit_width>16</bit_width>
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_WIRED_HEADSET</id>
286 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
287 </ec_rx_device>
288 </in-device>
289 <in-device>
290 <id>PAL_DEVICE_IN_BLUETOOTH_SCO_HEADSET</id>
291 <back_end_name>SLIM-DEV1-TX-7</back_end_name>
292 <max_channels>1</max_channels>
293 <channels>1</channels>
294 <samplerate>8000</samplerate>
295 <bit_width>16</bit_width>
296 <snd_device_name>bt-sco-mic</snd_device_name>
297 <usecase>
298 <name>PAL_STREAM_LOW_LATENCY</name>
299 </usecase>
300 <usecase>
301 <name>PAL_STREAM_DEEP_BUFFER</name>
302 </usecase>
303 <usecase>
304 <name>PAL_STREAM_VOIP_TX</name>
305 </usecase>
306 <usecase>
307 <name>PAL_STREAM_VOICE_CALL</name>
308 <priority>1</priority>
309 </usecase>
310 <usecase>
311 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
312 </usecase>
313 <ec_rx_device>
314 <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
315 </ec_rx_device>
316 </in-device>
317 <in-device>
318 <id>PAL_DEVICE_IN_HANDSET_VA_MIC</id>
319 <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
320 <max_channels>2</max_channels>
321 <channels>1</channels>
322 <samplerate>48000</samplerate>
323 <bit_width>16</bit_width>
324 <snd_device_name>va-mic</snd_device_name>
325 <ec_rx_device>
326 <id>PAL_DEVICE_OUT_SPEAKER</id>
327 <id>PAL_DEVICE_OUT_HANDSET</id>
328 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
329 </ec_rx_device>
330 </in-device>
331 <in-device>
332 <id>PAL_DEVICE_IN_HEADSET_VA_MIC</id>
333 <back_end_name>CODEC_DMA-LPAIF_VA-TX-0</back_end_name>
334 <max_channels>2</max_channels>
335 <channels>1</channels>
336 <snd_device_name>headset-va-mic</snd_device_name>
337 <samplerate>48000</samplerate>
338 <bit_width>16</bit_width>
339 <ec_rx_device>
340 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
341 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
342 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
343 </ec_rx_device>
344 </in-device>
345 <in-device>
346 <id>PAL_DEVICE_IN_USB_HEADSET</id>
347 <back_end_name>USB_AUDIO-TX</back_end_name>
348 <max_channels>1</max_channels>
349 <channels>1</channels>
350 <samplerate>48000</samplerate>
351 <bit_width>16</bit_width>
352 <snd_device_name>usb-headset-mic</snd_device_name>
353 <usecase>
354 <name>PAL_STREAM_VOIP_TX</name>
355 </usecase>
356 <usecase>
357 <name>PAL_STREAM_LOW_LATENCY</name>
358 </usecase>
359 <usecase>
360 <name>PAL_STREAM_DEEP_BUFFER</name>
361 </usecase>
362 <usecase>
363 <name>PAL_STREAM_VOICE_CALL</name>
364 <priority>1</priority>
365 <sidetone_mode>HW</sidetone_mode>
366 </usecase>
367 <usecase>
368 <name>PAL_STREAM_ULTRA_LOW_LATENCY</name>
369 </usecase>
370 <ec_rx_device>
371 <id>PAL_DEVICE_OUT_USB_HEADSET</id>
372 </ec_rx_device>
373 </in-device>
374 <in-device>
375 <id>PAL_DEVICE_IN_FM_TUNER</id>
376 <back_end_name>MI2S-LPAIF-TX-TERTIARY</back_end_name>
377 <max_channels>2</max_channels>
378 <channels>2</channels>
379 <snd_device_name>play-fm</snd_device_name>
380 <samplerate>48000</samplerate>
381 <bit_width>16</bit_width>
382 <usecase>
383 <name>PAL_STREAM_LOOPBACK</name>
384 </usecase>
385 </in-device>
386 <in-device>
387 <id>PAL_DEVICE_IN_PROXY</id>
388 <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
389 <max_channels>2</max_channels>
390 <channels>2</channels>
391 <snd_device_name>afe-proxy</snd_device_name>
392 <usecase>
393 <name>PAL_STREAM_PROXY</name>
394 </usecase>
395 </in-device>
396 <in-device>
397 <id>PAL_DEVICE_IN_VI_FEEDBACK</id>
398 <back_end_name>CODEC_DMA-LPAIF_WSA-TX-0</back_end_name>
399 <max_channels>2</max_channels>
400 <channels>2</channels>
401 <samplerate>48000</samplerate>
402 <bit_width>32</bit_width>
403 <snd_device_name>vi-feedback</snd_device_name>
404 </in-device>
405 <in-device>
406 <id>PAL_DEVICE_IN_BLUETOOTH_A2DP</id>
407 <back_end_name>SLIM-DEV1-TX-7</back_end_name>
408 <max_channels>1</max_channels>
409 <channels>1</channels>
410 <snd_device_name>bt-a2dp-mic</snd_device_name>
411 <samplerate>44100</samplerate>
412 <bit_width>16</bit_width>
413 </in-device>
414 <in-device>
415 <id>PAL_DEVICE_IN_TELEPHONY_RX</id>
416 <back_end_name>PCM_RT_PROXY-TX-1</back_end_name>
417 <max_channels>2</max_channels>
418 <channels>2</channels>
419 <snd_device_name>afe-proxy</snd_device_name>
420 <usecase>
421 <name>PAL_STREAM_PROXY</name>
422 </usecase>
423 </in-device>
424 <in-device>
425 <id>PAL_DEVICE_IN_ULTRASOUND_MIC</id>
426 <back_end_name>CODEC_DMA-LPAIF_RXTX-TX-4</back_end_name>
427 <max_channels>2</max_channels>
428 <channels>1</channels>
429 <samplerate>96000</samplerate>
430 <bit_width>16</bit_width>
431 <snd_device_name>ultrasound-mic</snd_device_name>
432 <usecase>
433 <name>PAL_STREAM_ULTRASOUND</name>
434 </usecase>
435 </in-device>
436 <in-device>
437 <id>PAL_DEVICE_IN_EXT_EC_REF</id>
Arian6ad2edd2025-04-11 16:54:38 +0200438 <back_end_name>TDM-LPAIF-TX-TERTIARY</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000439 <snd_device_name>ext_ec_ref_tx</snd_device_name>
Arian141da192025-04-11 17:39:34 +0200440 <max_channels>4</max_channels>
441 <channels>4</channels>
442 <bit_width>24</bit_width>
443 <samplerate>96000</samplerate>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000444 </in-device>
445 <out-device>
446 <id>PAL_DEVICE_NONE</id>
447 <back_end_name>CODEC_DMA-LPAIF_WSA-RX-0</back_end_name>
448 <max_channels>2</max_channels>
449 <channels>1</channels>
450 <snd_device_name>none</snd_device_name>
451 <samplerate>48000</samplerate>
452 <bit_width>16</bit_width>
453 </out-device>
454 <out-device>
455 <id>PAL_DEVICE_OUT_SPEAKER</id>
Arian6ad2edd2025-04-11 16:54:38 +0200456 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000457 <max_channels>2</max_channels>
458 <channels>2</channels>
459 <samplerate>48000</samplerate>
Arian2617c0d2025-04-11 17:26:06 +0200460 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000461 <snd_device_name>speaker</snd_device_name>
462 <speaker_protection_enabled>0</speaker_protection_enabled>
463 <fractional_sr>0</fractional_sr>
464 <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
Arian141da192025-04-11 17:39:34 +0200465 <ext_ec_ref_enabled>1</ext_ec_ref_enabled>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000466 <cps_enabled>0</cps_enabled>
467 <vbat_enabled>0</vbat_enabled>
468 <!--specify the supported bit format on speaker end point -->
469 <!--this should be in the form of pal_audio_fmt_id-->
470 <!--e.g <supported_bit_format >PAL_AUDIO_FMT_PCM_S24_LE</supported_bit_format>-->
Arian2617c0d2025-04-11 17:26:06 +0200471 <supported_bit_format>PAL_AUDIO_FMT_PCM_S24_LE</supported_bit_format>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000472 <!-- RAS should be enabled with speaker protection always -->
473 <ras_enabled>0</ras_enabled>
474 <!-- Flag to specify speaker in case Voice call is switched from
475 handset to speaker with only 1 speaker.
476 Values: Both speaker : 0
477 Right speaker: 1
478 Left speaker : 2
479 -->
480 <speaker_mono_right>0</speaker_mono_right>
481 <!-- Time in seconds for Quick cal. Set 0 to disable -->
482 <quick_cal_time>0</quick_cal_time>
483 <usecase>
484 <name>PAL_STREAM_VOICE_CALL</name>
485 <priority>2</priority>
486 <channels>1</channels>
487 <snd_device_name>speaker-mono-2</snd_device_name>
488 </usecase>
489 <usecase>
490 <name>PAL_STREAM_VOIP_RX</name>
Arian2617c0d2025-04-11 17:26:06 +0200491 <bit_width>16</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000492 <priority>3</priority>
493 </usecase>
494 <usecase>
495 <name>PAL_STREAM_ULTRASOUND</name>
496 <priority>1</priority>
497 <samplerate>96000</samplerate>
498 </usecase>
499 </out-device>
500 <out-device>
501 <id>PAL_DEVICE_OUT_HANDSET</id>
Arian6ad2edd2025-04-11 16:54:38 +0200502 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-0</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000503 <max_channels>2</max_channels>
504 <channels>1</channels>
505 <!-- To enable external EC reference the flag extec_ref_enabled must be added as 1 -->
Arian141da192025-04-11 17:39:34 +0200506 <ext_ec_ref_enabled>1</ext_ec_ref_enabled>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000507 <samplerate>48000</samplerate>
Arian2617c0d2025-04-11 17:26:06 +0200508 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000509 <fractional_sr>0</fractional_sr>
510 <snd_device_name>handset</snd_device_name>
511 <handset_protection_enabled>0</handset_protection_enabled>
512 <usecase>
513 <name>PAL_STREAM_VOICE_CALL</name>
514 <priority>2</priority>
515 <custom-config key="HAC">
516 <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset -->
517 </custom-config>
518 </usecase>
519 <usecase>
520 <name>PAL_STREAM_VOIP_RX</name>
521 <priority>3</priority>
522 <custom-config key="HAC">
523 <snd_device_name>voice-handset-hac</snd_device_name> <!-- override sound device name with HAC handset for voip -->
524 </custom-config>
525 </usecase>
526 <usecase>
527 <name>PAL_STREAM_ULTRASOUND</name>
528 <priority>1</priority>
529 <samplerate>96000</samplerate>
530 </usecase>
531 </out-device>
532 <out-device>
533 <id>PAL_DEVICE_OUT_WIRED_HEADPHONE</id>
534 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
535 <max_channels>2</max_channels>
536 <channels>2</channels>
Arian2617c0d2025-04-11 17:26:06 +0200537 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000538 <fractional_sr>1</fractional_sr>
539 <snd_device_name>headphones</snd_device_name>
540 <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
541 <usecase>
542 <name>PAL_STREAM_COMPRESSED</name>
543 <custom-config key="hifi-filter_custom_key">
544 <snd_device_name>headphones-hifi-filter</snd_device_name>
545 </custom-config>
546 </usecase>
547 <usecase>
548 <name>PAL_STREAM_PCM_OFFLOAD</name>
549 <custom-config key="hifi-filter_custom_key">
550 <snd_device_name>headphones-hifi-filter</snd_device_name>
551 </custom-config>
552 </usecase>
553 <usecase>
554 <name>PAL_STREAM_DEEP_BUFFER</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 -->
560 <usecase>
561 <name>PAL_STREAM_VOICE_CALL</name>
562 <priority>1</priority>
563 <samplerate>48000</samplerate>
Arian2617c0d2025-04-11 17:26:06 +0200564 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000565 </usecase>
566 <usecase>
567 <name>PAL_STREAM_VOIP_RX</name>
568 <priority>2</priority>
569 <samplerate>48000</samplerate>
Arian2617c0d2025-04-11 17:26:06 +0200570 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000571 </usecase>
572 </out-device>
573 <out-device>
574 <id>PAL_DEVICE_OUT_WIRED_HEADSET</id>
575 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-0</back_end_name>
576 <max_channels>2</max_channels>
577 <channels>2</channels>
578 <fractional_sr>1</fractional_sr>
Arian2617c0d2025-04-11 17:26:06 +0200579 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000580 <snd_device_name>headphones</snd_device_name>
581 <!--HIFI Filter Headphones-Uncomment this when param key hifi_filter is true
582 <usecase>
583 <name>PAL_STREAM_COMPRESSED</name>
584 <custom-config key="hifi-filter_custom_key">
585 <snd_device_name>headphones-hifi-filter</snd_device_name>
586 </custom-config>
587 </usecase>
588 <usecase>
589 <name>PAL_STREAM_PCM_OFFLOAD</name>
590 <custom-config key="hifi-filter_custom_key">
591 <snd_device_name>headphones-hifi-filter</snd_device_name>
592 </custom-config>
593 </usecase>
594 <usecase>
595 <name>PAL_STREAM_DEEP_BUFFER</name>
596 <custom-config key="hifi-filter_custom_key">
597 <snd_device_name>headphones-hifi-filter</snd_device_name>
598 </custom-config>
599 </usecase>
600 -->
601 <usecase>
602 <name>PAL_STREAM_VOICE_CALL</name>
603 <priority>1</priority>
604 <samplerate>48000</samplerate>
Arian2617c0d2025-04-11 17:26:06 +0200605 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000606 </usecase>
607 <usecase>
608 <name>PAL_STREAM_VOIP_RX</name>
609 <priority>2</priority>
610 <samplerate>48000</samplerate>
Arian2617c0d2025-04-11 17:26:06 +0200611 <bit_width>24</bit_width>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000612 </usecase>
613 </out-device>
614 <out-device>
615 <id>PAL_DEVICE_OUT_BLUETOOTH_A2DP</id>
616 <back_end_name>SLIM-DEV1-RX-7</back_end_name>
617 <max_channels>1</max_channels>
618 <channels>1</channels>
619 <snd_device_name>bt-a2dp</snd_device_name>
620 <samplerate>44100</samplerate>
621 <bit_width>16</bit_width>
622 <usecase>
623 <name>PAL_STREAM_VOICE_CALL</name>
624 <priority>1</priority>
625 </usecase>
626 </out-device>
627 <out-device>
628 <id>PAL_DEVICE_OUT_BLUETOOTH_SCO</id>
629 <back_end_name>SLIM-DEV1-RX-7</back_end_name>
630 <max_channels>1</max_channels>
631 <channels>1</channels>
632 <snd_device_name>bt-sco</snd_device_name>
633 <samplerate>8000</samplerate>
634 <bit_width>16</bit_width>
635 <usecase>
636 <name>PAL_STREAM_VOICE_CALL</name>
637 <priority>1</priority>
638 </usecase>
639 </out-device>
640 <out-device>
641 <id>PAL_DEVICE_OUT_AUX_DIGITAL</id>
642 <back_end_name>DISPLAY_PORT-RX</back_end_name>
643 <max_channels>32</max_channels>
644 <channels>2</channels>
645 <snd_device_name>display-port</snd_device_name>
646 <fractional_sr>1</fractional_sr>
647 <usecase>
648 <name>PAL_STREAM_VOICE_CALL</name>
649 <priority>1</priority>
650 </usecase>
651 </out-device>
652 <out-device>
653 <id>PAL_DEVICE_OUT_HDMI</id>
654 <back_end_name>DISPLAY_PORT-RX</back_end_name>
655 <max_channels>32</max_channels>
656 <channels>2</channels>
657 <fractional_sr>1</fractional_sr>
658 <snd_device_name>display-port</snd_device_name>
659 <usecase>
660 <name>PAL_STREAM_VOICE_CALL</name>
661 <priority>1</priority>
662 </usecase>
663 </out-device>
664 <out-device>
665 <id>PAL_DEVICE_OUT_USB_DEVICE</id>
666 <back_end_name>USB_AUDIO-RX</back_end_name>
667 <max_channels>2</max_channels>
668 <channels>2</channels>
669 <snd_device_name>usb-headphones</snd_device_name>
670 <fractional_sr>1</fractional_sr>
671 <usecase>
672 <name>PAL_STREAM_VOICE_CALL</name>
673 <priority>1</priority>
674 </usecase>
675 </out-device>
676 <out-device>
677 <id>PAL_DEVICE_OUT_USB_HEADSET</id>
678 <back_end_name>USB_AUDIO-RX</back_end_name>
679 <max_channels>2</max_channels>
680 <channels>2</channels>
681 <snd_device_name>usb-headphones</snd_device_name>
682 <fractional_sr>1</fractional_sr>
683 <usecase>
684 <name>PAL_STREAM_VOICE_CALL</name>
685 <priority>1</priority>
686 </usecase>
687 </out-device>
688 <out-device>
689 <id>PAL_DEVICE_OUT_AUX_DIGITAL_1</id>
690 <back_end_name>DISPLAY_PORT-RX</back_end_name>
691 <max_channels>8</max_channels>
692 <channels>2</channels>
693 <snd_device_name>display-port</snd_device_name>
694 <fractional_sr>1</fractional_sr>
695 <usecase>
696 <name>PAL_STREAM_VOICE_CALL</name>
697 <priority>1</priority>
698 </usecase>
699 </out-device>
700 <out-device>
701 <id>PAL_DEVICE_OUT_PROXY</id>
702 <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
703 <max_channels>8</max_channels>
704 <channels>2</channels>
705 <snd_device_name>afe-proxy</snd_device_name>
706 <fractional_sr>0</fractional_sr>
707 <samplerate>48000</samplerate>
708 <usecase>
709 <name>PAL_STREAM_VOICE_CALL</name>
710 <priority>1</priority>
711 </usecase>
712 </out-device>
713 <out-device>
714 <id>PAL_DEVICE_OUT_HEARING_AID</id>
715 <back_end_name>PCM_RT_PROXY-RX-1</back_end_name>
716 <max_channels>8</max_channels>
717 <channels>2</channels>
718 <snd_device_name>afe-proxy</snd_device_name>
719 <fractional_sr>0</fractional_sr>
720 <usecase>
721 <name>PAL_STREAM_VOICE_CALL</name>
722 <priority>1</priority>
723 </usecase>
724 </out-device>
725 <out-device>
726 <id>PAL_DEVICE_OUT_HAPTICS_DEVICE</id>
727 <back_end_name>CODEC_DMA-LPAIF_RXTX-RX-6</back_end_name>
728 <max_channels>2</max_channels>
729 <channels>1</channels>
730 <snd_device_name>haptics-dev</snd_device_name>
731 </out-device>
732 <out-device>
733 <id>PAL_DEVICE_OUT_ULTRASOUND</id>
Arian6ad2edd2025-04-11 16:54:38 +0200734 <back_end_name>TDM-LPAIF-RX-TERTIARY-VIRT-1</back_end_name>
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +0000735 <max_channels>2</max_channels>
736 <channels>1</channels>
737 <snd_device_name>ultrasound-handset</snd_device_name>
738 <samplerate>96000</samplerate>
739 <bit_width>16</bit_width>
740 </out-device>
741 </device_profile>
742 <in_streams>
743 <in_stream>
744 <name>PAL_STREAM_VOIP_TX</name>
745 <policies>
746 <ec_ref>
747 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
748 </ec_ref>
749 </policies>
750 </in_stream>
751 <in_stream>
752 <name>PAL_STREAM_DEEP_BUFFER</name>
753 <policies>
754 <ec_ref>
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_VOICE_UI</name>
762 <policies>
763 <ec_ref>
764 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
765 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
766 </ec_ref>
767 </policies>
768 </in_stream>
769 <in_stream>
770 <name>PAL_STREAM_ACD</name>
771 <policies>
772 <ec_ref>
773 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
774 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
775 </ec_ref>
776 </policies>
777 </in_stream>
778 <in_stream>
779 <name>PAL_STREAM_PROXY</name>
780 <policies>
781 <ec_ref>
782 <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
783 <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
784 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
785 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
786 </ec_ref>
787 </policies>
788 </in_stream>
789 <in_stream>
790 <name>PAL_STREAM_RAW</name>
791 <policies>
792 <ec_ref>
793 <disabled_stream>PAL_STREAM_COMPRESSED</disabled_stream>
794 <disabled_stream>PAL_STREAM_ULTRA_LOW_LATENCY</disabled_stream>
795 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
796 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
797 </ec_ref>
798 </policies>
799 </in_stream>
800 <in_stream>
801 <name>PAL_STREAM_SENSOR_PCM_DATA</name>
802 <policies>
803 <ec_ref>
804 <disabled_stream>PAL_STREAM_LOW_LATENCY</disabled_stream>
805 <disabled_stream>PAL_STREAM_GENERIC</disabled_stream>
806 </ec_ref>
807 </policies>
808 </in_stream>
809 </in_streams>
810 <acd_platform_info>
811 <common_config>
812 <param acd_enable="true" />
813 <param support_device_switch="true" />
814 <param support_nlpi_switch="true" />
815 <param lpi_enable="true" />
816 <param enable_debug_dumps="false" />
817 <param concurrent_capture="true" />
818 <param concurrent_voice_call="true" />
819 <param concurrent_voip_call="true" />
820 <param low_latency_bargein_enable="false" />
821 </common_config>
822 <capture_profile_list>
823 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_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_RAW_LPI">
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_FFNS">
838 <param sample_rate="16000" />
839 <param channels="1" />
840 <param bit_width="16" />
841 <param snd_name="headset-va-mic-lpi" />
842 <param ec_ref="false" />
843 </capture_profile>
844 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
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_HEADSET_FFEC">
852 <param sample_rate="16000" />
853 <param channels="1" />
854 <param bit_width="16" />
855 <param snd_name="headset-va-mic" />
856 <param ec_ref="true" />
857 </capture_profile>
858 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_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_RAW_LPI">
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_FFNS">
873 <param sample_rate="16000" />
874 <param channels="1" />
875 <param bit_width="16" />
876 <param snd_name="va-mic-mono-lpi" />
877 <param ec_ref="false" />
878 </capture_profile>
879 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
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 name="SINGLE_MIC_16KHZ_16BIT_FFEC">
887 <param sample_rate="16000" />
888 <param channels="1" />
889 <param bit_width="16" />
890 <param snd_name="va-mic-mono" />
891 <param ec_ref="true" />
892 </capture_profile>
893 </capture_profile_list>
894 <!-- ACD -->
895 <stream_config>
896 <name>QC_ACD</name>
897 <param vendor_uuid="4e93281b-296e-4d73-9833-2710c3c7c1db"/>
898 <!-- Profile specific data which the algorithm can support -->
899 <param sample_rate="16000" />
900 <param bit_width="16" />
901 <param out_channels="1"/> <!-- Module output channels -->
902 <operating_modes>
903 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_LPI"/>
904 <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
905 </operating_modes>
906 <sound_models>
907 <model>
908 <name>ACD_SOUND_MODEL_ID_EVENT</name>
909 <bin>event.eai</bin>
910 <uuid>0x0B001007</uuid>
911 <contexts>
912 <context id="0x0800132D"/> <!-- EVENT_ALARM -->
913 <context id="0x0800132E"/> <!-- EVENT_BABYCRYING -->
914 <context id="0x0800132F"/> <!-- EVENT_DOGBARKING -->
915 <context id="0x08001330"/> <!-- EVENT_DOORBELL -->
916 <context id="0x08001331"/> <!-- EVENT_DOORCLOSE -->
917 <context id="0x08001332"/> <!-- EVENT_DOOROPEN -->
918 <context id="0x08001333"/> <!-- EVENT_GLASSBREAKING -->
919 <context id="0x08001334"/> <!-- EVENT_SIREN -->
920 </contexts>
921 </model>
922 <model>
923 <name>ACD_SOUND_MODEL_ID_SPEECH</name>
924 <bin>speech.eai</bin>
925 <uuid>0x0B001008</uuid>
926 <contexts>
927 <context id="0x08001335"/> <!-- AMBIENCE_SPEECH -->
928 </contexts>
929 </model>
930 <model>
931 <name>ACD_SOUND_MODEL_ID_MUSIC</name>
932 <bin>music.eai</bin>
933 <uuid>0x0B001009</uuid>
934 <contexts>
935 <context id="0x08001336"/> <!-- AMBIENCE_MUSIC -->
936 </contexts>
937 </model>
938 <model>
939 <name>ACD_SOUND_MODEL_AMBIENCE_NOISE_SILENCE</name>
940 <bin></bin> <!-- Following contexts dont have a model, hence empty bin -->
941 <uuid>0xFFFFFFFF</uuid> <!-- Indicates no sound model -->
942 <contexts>
943 <context id="0x08001337"/> <!-- AMBIENCE_NOISY_SPL -->
944 <context id="0x08001338"/> <!-- AMBIENCE_SILENT_SPL -->
945 <context id="0x08001339"/> <!-- AMBIENCE_NOISY_SFLUX -->
946 <context id="0x0800133A"/> <!-- AMBIENCE_SILENT_SFLUX -->
947 </contexts>
948 </model>
949 </sound_models>
950 </stream_config>
951 <!-- Sensor PCM Data -->
952 <stream_config>
953 <name>QC_SENSOR_PCM_DATA</name>
954 <param vendor_uuid="c88a2c89-7a55-498c-836f-5d7ec8582990" />
955 <!-- Profile specific data which the algorithm can support -->
956 <param sample_rate="16000" />
957 <param bit_width="16" />
958 <param out_channels="1" /> <!-- Module output channels -->
959 <operating_modes>
960 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
961 <low_power_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
962 <high_performance capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFEC" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFEC"/>
963 <high_performance_ns capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
964 </operating_modes>
965 </stream_config>
966 </acd_platform_info>
967 <sound_trigger_platform_info>
968 <common_config>
969 <!-- Param used by apk to indicate the SVA version current platform supports -->
970 <param version="0x0103" />
971 <param enable_failure_detection="false" />
972 <param support_device_switch="true" />
973 <param support_nlpi_switch="true" />
974 <param transit_to_non_lpi_on_charging="false" />
975 <!-- Param used to indicate if SVA has dedicated back end path and ports not conflicting with other audio paths -->
976 <param dedicated_sva_path="true" />
977 <param dedicated_headset_path="false" />
978 <param lpi_enable="true" />
979 <param enable_debug_dumps="false" />
980 <param concurrent_capture="true" />
981 <param concurrent_voice_call="true" />
982 <param concurrent_voip_call="true" />
983 <param low_latency_bargein_enable="false" />
984 <param mmap_enable="true" />
985 <param mmap_buffer_duration="5000" />
986 <param mmap_frame_length="5" /> <!-- 5ms duration of data -->
987 <param notify_second_stage_failure="false"/>
988 </common_config>
989 <capture_profile_list>
990 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS">
991 <param sample_rate="16000" />
992 <param channels="1" />
993 <param bit_width="16" />
994 <param snd_name="headset-va-mic-lpi" />
995 <param ec_ref="false" />
996 </capture_profile>
997 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS">
998 <param sample_rate="16000" />
999 <param channels="1" />
1000 <param bit_width="16" />
1001 <param snd_name="headset-va-mic" />
1002 <param ec_ref="true" />
1003 </capture_profile>
1004 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI">
1005 <param sample_rate="16000" />
1006 <param channels="1" />
1007 <param bit_width="16" />
1008 <param snd_name="headset-va-mic-lpi" />
1009 <param ec_ref="false" />
1010 </capture_profile>
1011 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI">
1012 <param sample_rate="16000" />
1013 <param channels="1" />
1014 <param bit_width="16" />
1015 <param snd_name="headset-va-mic" />
1016 <param ec_ref="false" />
1017 </capture_profile>
1018 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_LPI">
1019 <param sample_rate="16000" />
1020 <param channels="1" />
1021 <param bit_width="16" />
1022 <param snd_name="va-mic-mono-lpi" />
1023 <param ec_ref="false" />
1024 </capture_profile>
1025 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_RAW_NLPI">
1026 <param sample_rate="16000" />
1027 <param channels="1" />
1028 <param bit_width="16" />
1029 <param snd_name="va-mic-mono" />
1030 <param ec_ref="false" />
1031 </capture_profile>
1032 <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_LPI">
1033 <param sample_rate="16000" />
1034 <param channels="2" />
1035 <param bit_width="16" />
1036 <param snd_name="va-mic-dmic-lpi" />
1037 <param ec_ref="false" />
1038 </capture_profile>
1039 <capture_profile name="DUAL_MIC_16KHZ_16BIT_RAW_NLPI">
1040 <param sample_rate="16000" />
1041 <param channels="2" />
1042 <param bit_width="16" />
1043 <param snd_name="va-mic-dmic" />
1044 <param ec_ref="false" />
1045 </capture_profile>
1046 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFNS">
1047 <param sample_rate="16000" />
1048 <param channels="1" />
1049 <param bit_width="16" />
1050 <param snd_name="va-mic-mono-lpi" />
1051 <param ec_ref="false" />
1052 </capture_profile>
1053 <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFNS">
1054 <param sample_rate="16000" />
1055 <param channels="2" />
1056 <param bit_width="16" />
1057 <param snd_name="va-mic-dmic-lpi" />
1058 <param ec_ref="false" />
1059 </capture_profile>
1060 <capture_profile name="TRI_MIC_16KHZ_16BIT_FFNS">
1061 <param sample_rate="16000" />
1062 <param channels="3" />
1063 <param bit_width="16" />
1064 <param snd_name="va-mic-tmic-lpi" />
1065 <param ec_ref="false" />
1066 </capture_profile>
1067 <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFNS">
1068 <param sample_rate="16000" />
1069 <param channels="4" />
1070 <param bit_width="16" />
1071 <param snd_name="va-mic-qmic-lpi" />
1072 <param ec_ref="false" />
1073 </capture_profile>
1074 <capture_profile name="SINGLE_MIC_16KHZ_16BIT_FFECNS">
1075 <param sample_rate="16000" />
1076 <param channels="1" />
1077 <param bit_width="16" />
1078 <param snd_name="va-mic-mono" />
1079 <param ec_ref="true" />
1080 </capture_profile>
1081 <capture_profile name="DUAL_MIC_16KHZ_16BIT_FFECNS">
1082 <param sample_rate="16000" />
1083 <param channels="2" />
1084 <param bit_width="16" />
1085 <param snd_name="va-mic-dmic" />
1086 <param ec_ref="true" />
1087 </capture_profile>
1088 <capture_profile name="TRI_MIC_16KHZ_16BIT_FFECNS">
1089 <param sample_rate="16000" />
1090 <param channels="3" />
1091 <param bit_width="16" />
1092 <param snd_name="va-mic-tmic" />
1093 <param ec_ref="true" />
1094 </capture_profile>
1095 <capture_profile name="QUAD_MIC_16KHZ_16BIT_FFECNS">
1096 <param sample_rate="16000" />
1097 <param channels="4" />
1098 <param bit_width="16" />
1099 <param snd_name="va-mic-qmic" />
1100 <param ec_ref="true" />
1101 </capture_profile>
1102 </capture_profile_list>
1103 <!-- Multiple sound_model_config tags can be listed, each with unique -->
1104 <!-- vendor_uuid. The below tag represents QTI SVA sound model -->
1105 <!-- configuration. ISV must use their own unique vendor_uuid. -->
1106 <!-- QTI SVA -->
1107 <sound_model_config>
1108 <param vendor_uuid="68ab2d40-e860-11e3-95ef-0002a5d5c51b"/>
1109 <!-- durations in us -->
1110 <param kw_start_tolerance="360000" />
1111 <param kw_end_tolerance="240000" />
1112 <param data_before_kw_start="360000" />
1113 <param data_after_kw_end="480000" />
1114 <param merge_first_stage_sound_models="false"/>
1115 <!-- Profile specific data which the algorithm can support -->
1116 <param sample_rate="16000" />
1117 <param bit_width="16" />
1118 <param out_channels="1"/> <!-- Module output channels -->
1119 <param capture_keyword="2000" /> <!-- Default history buffer length -->
1120 <param client_capture_read_delay="2000" /> <!-- reserved buffer duration for rt data -->
1121 <param pre_roll_duration="500" /> <!-- Default preroll duration -->
1122 <operating_modes>
1123 <low_power capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFNS"/>
1124 <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
1125 <high_performance_and_charging capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_FFECNS"/>
1126 </operating_modes>
1127 <arm_ss_usecase>
1128 <!-- Options are "KEYWORD_DETECTION", "USER_VERIFICATION", "CUSTOM_DETECTION" -->
1129 <param sm_detection_type= "KEYWORD_DETECTION" />
1130 <param sm_id="0x2" />
1131 <param module_lib="libcapiv2svacnnvendor.so"/>
1132 <param sample_rate="16000"/>
1133 <param bit_width="16"/>
1134 <param channel_count="1"/>
1135 </arm_ss_usecase>
1136 <arm_ss_usecase>
1137 <param sm_detection_type= "USER_VERIFICATION" />
1138 <param sm_id="0x4" />
1139 <param module_lib="libcapiv2uvvendor.so"/>
1140 <param sample_rate="16000"/>
1141 <param bit_width="16"/>
1142 <param channel_count="1"/>
1143 </arm_ss_usecase>
1144 <arm_ss_usecase>
1145 <param sm_detection_type= "KEYWORD_DETECTION" />
1146 <param sm_id="0x8" />
1147 <param module_lib="libcapiv2svarnnvendor.so"/>
1148 <param sample_rate="16000"/>
1149 <param bit_width="16"/>
1150 <param channel_count="1"/>
1151 </arm_ss_usecase>
1152 <module_params>
1153 <param module_type="GMM" />
1154 <param load_sound_model_ids="0xC0000008, 0x0800104C" />
1155 <param wakeup_config_ids="0xC0000008, 0x08001049" />
1156 <param buffering_config_ids="0xC0000008, 0x08001044" />
1157 <param engine_reset_ids="0xC0000008, 0x08001051" />
1158 </module_params>
1159 <module_params>
1160 <param module_type="PDK" />
1161 <param load_sound_model_ids="0xC0000008, 0x0800124E"/>
1162 <param unload_sound_model_ids="0xC0000008, 0x08001250"/>
1163 <param wakeup_config_ids="0xC0000008, 0x08001049" />
1164 <param buffering_config_ids="0xC0000008, 0x0800124F"/>
1165 <param engine_reset_ids="0xC0000008, 0x08001051" />
1166 </module_params>
1167 </sound_model_config>
1168 <!-- Hotword -->
1169 <sound_model_config>
1170 <param vendor_uuid="7038ddc8-30f2-11e6-b0ac-40a8f03d3f15"/>
Arian6e834f02025-09-01 18:07:37 +02001171 <param get_module_version="true" />
ParsaAslaniYCa0aa8402025-10-23 11:57:48 +00001172 <param kw_start_tolerance="100" />
1173 <param kw_end_tolerance="100" />
1174 <param merge_first_stage_sound_models="false"/>
1175 <param capture_keyword="2000" />
1176 <param client_capture_read_delay="2000" />
1177 <!-- Profile specific data which the algorithm can support -->
1178 <param sample_rate="16000" />
1179 <param bit_width="16" />
1180 <param out_channels="1"/> <!-- Module output channels -->
1181 <param capture_keyword="2000" />
1182 <param client_capture_read_delay="2000" />
1183 <operating_modes>
Arian031a9482025-04-11 18:58:55 +02001184 <low_power capture_profile_handset="SINGLE_MIC_16KHZ_16BIT_RAW_LPI" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_LPI"/>
1185 <high_performance capture_profile_handset="DUAL_MIC_16KHZ_16BIT_FFECNS" capture_profile_headset="SINGLE_MIC_16KHZ_16BIT_HEADSET_RAW_NLPI"/>
1186 <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 +00001187 </operating_modes>
1188 <module_params>
1189 <param module_type="HOTWORD" />
1190 <param load_sound_model_ids="0xC0000008, 0x0800104C" />
1191 <param unload_sound_model_ids="0xC0000008, 0x00012C15" />
1192 <param buffering_config_ids="0xC0000008, 0x08001044" />
1193 <param version_ids="0xC0000008, 0x18000101" />
1194 <param engine_reset_ids="0xC0000008, 0x08001051" />
1195 </module_params>
1196 </sound_model_config>
1197 </sound_trigger_platform_info>
1198</resource_manager_info>