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