1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!-- Copyright (c) 2019, 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<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
26<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                          -->
27<mixer>
28    <!-- Initial default value of ALSA command -->
29    <!-- PCM timeout -->
30    <ctl name="PCM Stream Wait Time in MSec" value="100"/>
31    <ctl name="Voice PCM Stream Wait Time in MSec" value="500"/>
32
33    <!-- Enable it when AOC is ready to trim delay and padding -->
34    <ctl name="Gapless Offload Enable" value="1"/>
35
36    <!-- TDM 0 setting -->
37    <ctl name="TDM_0_RX Chan" value="Four"/>
38    <ctl name="TDM_0_RX Format" value="S32_LE"/>
39    <ctl name="TDM_0_TX Chan" value="Four"/>
40    <ctl name="TDM_0_TX Format" value="S32_LE"/>
41
42    <!-- Haptic setting -->
43    <ctl name="HAPTIC_RX Format" value="S32_LE"/>
44    <ctl name="HAPTIC_RX SlotFmt" value="S32_LE"/>
45    <ctl name="HAPTIC_RX Chan" value="Four"/>
46    <ctl name="HAPTIC_RX nSlot" value="Four"/>
47    <ctl name="RX Slots" id="0" value="2"/>
48    <ctl name="RX Slots" id="1" value="3"/>
49
50    <!-- Cirrus Booster Amp TDM slot assignment-->
51    <!-- RX slot -->
52    <ctl name="ASPRX1 Slot Position" value="0"/>
53    <ctl name="ASPRX2 Slot Position" value="1"/>
54    <ctl name="R ASPRX1 Slot Position" value="1"/>
55    <ctl name="R ASPRX2 Slot Position" value="0"/>
56    <!-- TX slot -->
57    <ctl name="ASPTX1 Slot Position" value="0"/>
58    <ctl name="R ASPTX1 Slot Position" value="1"/>
59    <ctl name="ASPTX2 Slot Position" value="2"/>
60    <ctl name="R ASPTX2 Slot Position" value="3"/>
61    <ctl name="ASPTX3 Slot Position" value="4"/>
62    <ctl name="R ASPTX3 Slot Position" value="5"/>
63    <ctl name="ASPTX4 Slot Position" value="6"/>
64    <ctl name="R ASPTX4 Slot Position" value="7"/>
65
66    <!-- Cirrus Booster Amp DRE and VBST config-->
67    <ctl name="VBSTMON Output Switch" value="1"/>
68    <ctl name="R VBSTMON Output Switch" value="1"/>
69    <ctl name="DRE DRE Switch" value="1"/>
70    <ctl name="R DRE DRE Switch" value="1"/>
71
72    <!-- Cirrus Booster Amp Output Gain -->
73    <ctl name="AMP PCM Gain" value="17"/>
74    <ctl name="R AMP PCM Gain" value="17"/>
75    <ctl name="Digital PCM Volume" value="817"/>
76    <ctl name="R Digital PCM Volume" value="817"/>
77
78    <!-- Cirrus Booster Amp Power -->
79    <ctl name="Main AMP Enable Switch" value="0"/>
80    <ctl name="R Main AMP Enable Switch" value="0"/>
81
82    <!-- Cirrus Booster mode -->
83    <ctl name="PCM Source" value="DSP"/>
84    <ctl name="R PCM Source" value="DSP"/>
85    <ctl name="DSP1 Firmware" value="Protection"/>
86    <ctl name="R DSP1 Firmware" value="Protection"/>
87    <ctl name="DSP RX1 Source" value="ASPRX1"/>
88    <ctl name="DSP RX2 Source" value="ASPRX1"/>
89    <ctl name="R DSP RX1 Source" value="ASPRX1"/>
90    <ctl name="R DSP RX2 Source" value="ASPRX1"/>
91    <ctl name="Boost Peak Current Limit" value="3.50A"/>
92    <ctl name="R Boost Peak Current Limit" value="3.50A"/>
93
94    <!-- Cirrus ASP TX source -->
95    <ctl name="ASP TX1 Source" value="VMON" />
96    <ctl name="R ASP TX1 Source" value="VMON" />
97    <ctl name="ASP TX2 Source" value="IMON" />
98    <ctl name="R ASP TX2 Source" value="IMON" />
99    <ctl name="ASP TX3 Source" value="Zero" />
100    <ctl name="R ASP TX3 Source" value="Zero" />
101    <ctl name="ASP TX4 Source" value="Zero" />
102    <ctl name="R ASP TX4 Source" value="Zero" />
103
104    <!-- audio RX route initial/default value -->
105    <ctl name="TDM_0_RX Mixer EP1" value="0"/>
106    <ctl name="TDM_0_RX Mixer EP2" value="0"/>
107    <ctl name="TDM_0_RX Mixer EP3" value="0"/>
108    <ctl name="TDM_0_RX Mixer EP4" value="0"/>
109    <ctl name="TDM_0_RX Mixer EP5" value="0"/>
110    <ctl name="TDM_0_RX Mixer EP6" value="0"/>
111    <ctl name="TDM_0_RX Mixer EP7" value="0"/>
112    <ctl name="TDM_0_RX Mixer EP8" value="0"/>
113    <ctl name="TDM_0_RX Mixer NoHost1" value="0"/>
114    <ctl name="TDM_0_RX Mixer VOIP" value="0"/>
115    <ctl name="TDM_0_RX Mixer RAW" value="0"/>
116    <ctl name="TDM_0_RX Mixer IMSV" value="0"/>
117
118    <ctl name="TDM_1_RX Mixer EP1" value="0"/>
119    <ctl name="TDM_1_RX Mixer EP2" value="0"/>
120    <ctl name="TDM_1_RX Mixer EP3" value="0"/>
121    <ctl name="TDM_1_RX Mixer EP4" value="0"/>
122    <ctl name="TDM_1_RX Mixer EP5" value="0"/>
123    <ctl name="TDM_1_RX Mixer EP6" value="0"/>
124    <ctl name="TDM_1_RX Mixer EP7" value="0"/>
125    <ctl name="TDM_1_RX Mixer EP8" value="0"/>
126    <ctl name="TDM_1_RX Mixer NoHost1" value="0"/>
127
128    <ctl name="USB_RX Mixer EP1" value="0"/>
129    <ctl name="USB_RX Mixer EP2" value="0"/>
130    <ctl name="USB_RX Mixer EP3" value="0"/>
131    <ctl name="USB_RX Mixer EP4" value="0"/>
132    <ctl name="USB_RX Mixer EP5" value="0"/>
133    <ctl name="USB_RX Mixer EP6" value="0"/>
134    <ctl name="USB_RX Mixer EP7" value="0"/>
135    <ctl name="USB_RX Mixer NoHost1" value="0"/>
136    <ctl name="USB_RX Mixer VOIP" value="0"/>
137    <ctl name="USB_RX Mixer HIFI" value="0"/>
138    <ctl name="USB_RX Mixer RAW" value="0"/>
139    <ctl name="USB_RX Mixer IMSV" value="0"/>
140
141    <ctl name="BT_RX Mixer EP1" value="0"/>
142    <ctl name="BT_RX Mixer EP2" value="0"/>
143    <ctl name="BT_RX Mixer EP3" value="0"/>
144    <ctl name="BT_RX Mixer EP4" value="0"/>
145    <ctl name="BT_RX Mixer EP5" value="0"/>
146    <ctl name="BT_RX Mixer EP6" value="0"/>
147    <ctl name="BT_RX Mixer EP7" value="0"/>
148    <ctl name="BT_RX Mixer NoHost1" value="0"/>
149    <ctl name="BT_RX Mixer VOIP" value="0"/>
150    <ctl name="BT_RX Mixer IMSV" value="0"/>
151    <ctl name="BT_RX Mixer RAW" value="0"/>
152
153    <ctl name="INCALL_RX Mixer EP1" value="0"/>
154    <ctl name="INCALL_RX Mixer EP2" value="0"/>
155    <ctl name="INCALL_RX Mixer EP3" value="0"/>
156    <ctl name="INCALL_RX Mixer EP4" value="0"/>
157    <ctl name="INCALL_RX Mixer EP5" value="0"/>
158    <ctl name="INCALL_RX Mixer EP6" value="0"/>
159    <ctl name="INCALL_RX Mixer EP7" value="0"/>
160    <ctl name="INCALL_RX Mixer NoHost1" value="0"/>
161
162    <ctl name="SINK_IDS" id="0" value="-1"/>
163    <ctl name="SINK_IDS" id="1" value="-1"/>
164
165    <!-- audio TX route initial/default value -->
166    <ctl name="EP1 TX Mixer TDM_0_TX" value="0"/>
167    <ctl name="EP2 TX Mixer TDM_0_TX" value="0"/>
168    <ctl name="EP3 TX Mixer TDM_0_TX" value="0"/>
169    <ctl name="EP4 TX Mixer TDM_0_TX" value="0"/>
170    <ctl name="EP5 TX Mixer TDM_0_TX" value="0"/>
171    <ctl name="EP6 TX Mixer TDM_0_TX" value="0"/>
172    <ctl name="NoHost1 TX Mixer TDM_0_TX" value="0"/>
173
174    <ctl name="EP1 TX Mixer TDM_1_TX" value="0"/>
175    <ctl name="EP2 TX Mixer TDM_1_TX" value="0"/>
176    <ctl name="EP3 TX Mixer TDM_1_TX" value="0"/>
177    <ctl name="EP4 TX Mixer TDM_1_TX" value="0"/>
178    <ctl name="EP5 TX Mixer TDM_1_TX" value="0"/>
179    <ctl name="EP6 TX Mixer TDM_1_TX" value="0"/>
180    <ctl name="NoHost1 TX Mixer TDM_1_TX" value="0"/>
181
182    <ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="0"/>
183    <ctl name="EP2 TX Mixer INTERNAL_MIC_TX" value="0"/>
184    <ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="0"/>
185    <ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="0"/>
186    <ctl name="EP5 TX Mixer INTERNAL_MIC_TX" value="0"/>
187    <ctl name="EP6 TX Mixer INTERNAL_MIC_TX" value="0"/>
188    <ctl name="NoHost1 TX Mixer INTERNAL_MIC_TX" value="0"/>
189    <ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="0"/>
190
191    <ctl name="EP1 TX Mixer BT_TX" value="0"/>
192    <ctl name="EP2 TX Mixer BT_TX" value="0"/>
193    <ctl name="EP3 TX Mixer BT_TX" value="0"/>
194    <ctl name="EP4 TX Mixer BT_TX" value="0"/>
195    <ctl name="EP5 TX Mixer BT_TX" value="0"/>
196    <ctl name="EP6 TX Mixer BT_TX" value="0"/>
197    <ctl name="NoHost1 TX Mixer BT_TX" value="0"/>
198    <ctl name="VOIP TX Mixer BT_TX" value="0"/>
199
200    <ctl name="EP1 TX Mixer USB_TX" value="0"/>
201    <ctl name="EP2 TX Mixer USB_TX" value="0"/>
202    <ctl name="EP3 TX Mixer USB_TX" value="0"/>
203    <ctl name="EP4 TX Mixer USB_TX" value="0"/>
204    <ctl name="EP5 TX Mixer USB_TX" value="0"/>
205    <ctl name="EP6 TX Mixer USB_TX" value="0"/>
206    <ctl name="NoHost1 TX Mixer USB_TX" value="0"/>
207    <ctl name="VOIP TX Mixer USB_TX" value="0"/>
208
209    <ctl name="EP1 TX Mixer INCALL_TX" value="0"/>
210    <ctl name="EP2 TX Mixer INCALL_TX" value="0"/>
211    <ctl name="EP3 TX Mixer INCALL_TX" value="0"/>
212    <ctl name="EP4 TX Mixer INCALL_TX" value="0"/>
213    <ctl name="EP5 TX Mixer INCALL_TX" value="0"/>
214    <ctl name="EP6 TX Mixer INCALL_TX" value="0"/>
215    <ctl name="NoHost1 TX Mixer INCALL_TX" value="0"/>
216
217    <ctl name="EP4 TX Mixer I2S_2_TX" value="0"/>
218
219    <!-- AoC Mic setting -->
220    <ctl name="MIC DC Blocker" value="1" />
221    <ctl name="MIC HW Gain At High Power Mode (cB)" value="0" />
222    <ctl name="MIC Record Soft Gain (dB)" value="-40"/>
223
224    <!-- USB setting v2 -->
225    <ctl name="USB Bus ID v2" value="2"/>
226    <ctl name="USB Dev ID v2" value="2"/>
227    <ctl name="USB Playback EP ID v2" value="1"/>
228    <ctl name="USB Playback FORMAT v2" value="0"/>
229    <ctl name="USB Playback SR v2" value="48000"/>
230    <ctl name="USB Playback CH v2" value="2"/>
231    <ctl name="USB Playback BW v2" value="24"/>
232    <ctl name="USB Capture EP ID v2" value="1"/>
233    <ctl name="USB Capture FORMAT v2" value="0"/>
234    <ctl name="USB Capture SR v2" value="48000"/>
235    <ctl name="USB Capture CH v2" value="1"/>
236    <ctl name="USB Capture BW v2" value="16"/>
237
238    <ctl name="AoC Modem Downlink ASRC Mode" value="ASP_ON"/>
239    <ctl name="Voice Call Mic Source" value="Builtin_MIC"/>
240    <ctl name="Mic Spatial Module Enable" value="0"/>
241    <ctl name="Audio Capture Eraser Enable" value="0"/>
242
243    <!-- audio PDM mic default state -->
244    <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="-1"/>
245    <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="-1"/>
246    <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="-1"/>
247    <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
248    <ctl name="Audio Capture Mic Source" value="Builtin_MIC"/>
249
250    <!-- sidetone controls -->
251    <ctl name="Sidetone Enable" value="0"/>
252    <ctl name="Sidetone Volume" value="-96"/>
253    <ctl name="Sidetone Selected Mic" value="0"/>
254    <ctl name="Sidetone EQ Stage Number" value="1"/>
255    <!-- IEEE 754, value is in float -->
256    <ctl name="Sidetone Biquad0" id="0" value="0"/>
257    <ctl name="Sidetone Biquad0" id="1" value="0"/>
258    <ctl name="Sidetone Biquad0" id="2" value="0"/>
259    <ctl name="Sidetone Biquad0" id="3" value="0"/>
260    <ctl name="Sidetone Biquad0" id="4" value="0"/>
261    <ctl name="Sidetone Biquad0" id="5" value="0"/>
262    <ctl name="Sidetone Biquad1" id="0" value="0"/>
263    <ctl name="Sidetone Biquad1" id="1" value="0"/>
264    <ctl name="Sidetone Biquad1" id="2" value="0"/>
265    <ctl name="Sidetone Biquad1" id="3" value="0"/>
266    <ctl name="Sidetone Biquad1" id="4" value="0"/>
267    <ctl name="Sidetone Biquad1" id="5" value="0"/>
268    <ctl name="Sidetone Biquad2" id="0" value="0"/>
269    <ctl name="Sidetone Biquad2" id="1" value="0"/>
270    <ctl name="Sidetone Biquad2" id="2" value="0"/>
271    <ctl name="Sidetone Biquad2" id="3" value="0"/>
272    <ctl name="Sidetone Biquad2" id="4" value="0"/>
273    <ctl name="Sidetone Biquad2" id="5" value="0"/>
274    <ctl name="Sidetone Biquad3" id="0" value="0"/>
275    <ctl name="Sidetone Biquad3" id="1" value="0"/>
276    <ctl name="Sidetone Biquad3" id="2" value="0"/>
277    <ctl name="Sidetone Biquad3" id="3" value="0"/>
278    <ctl name="Sidetone Biquad3" id="4" value="0"/>
279    <ctl name="Sidetone Biquad3" id="5" value="0"/>
280    <ctl name="Sidetone Biquad4" id="0" value="0"/>
281    <ctl name="Sidetone Biquad4" id="1" value="0"/>
282    <ctl name="Sidetone Biquad4" id="2" value="0"/>
283    <ctl name="Sidetone Biquad4" id="3" value="0"/>
284    <ctl name="Sidetone Biquad4" id="4" value="0"/>
285    <ctl name="Sidetone Biquad4" id="5" value="0"/>
286
287    <ctl name="Incall Capture Stream0" value="Off"/>
288    <ctl name="Incall Capture Stream1" value="Off"/>
289    <ctl name="Incall Capture Stream2" value="Off"/>
290
291    <!-- These two controls control the muting function of mics and sinks during the voice call. -->
292    <!-- They would be enabled by HAL. -->
293    <ctl name="Incall Sink Mute" value="0"/>
294    <ctl name="Incall Mic Mute" value="0"/>
295
296    <!-- Decoder Reference Enable is controlled in aoc_control -->
297    <ctl name="Decoder Reference Enable" value="0"/>
298    <ctl name="LVM Enable" value="0"/>
299
300    <!-- sidetone dynamic control -->
301    <path name="sidetone-for handset">
302        <!-- 1065353216 = 0x3f800000 = 1.0 -->
303        <ctl name="Sidetone Biquad0" id="0" value="1065353216"/>
304        <ctl name="Sidetone Biquad0" id="1" value="1065353216"/>
305        <ctl name="Sidetone Biquad0" id="2" value="0"/>
306        <ctl name="Sidetone Biquad0" id="3" value="0"/>
307        <ctl name="Sidetone Biquad0" id="4" value="0"/>
308        <ctl name="Sidetone Biquad0" id="5" value="0"/>
309        <ctl name="Sidetone Biquad1" id="0" value="1065353216"/>
310        <ctl name="Sidetone Biquad1" id="1" value="1065353216"/>
311        <ctl name="Sidetone Biquad1" id="2" value="0"/>
312        <ctl name="Sidetone Biquad1" id="3" value="0"/>
313        <ctl name="Sidetone Biquad1" id="4" value="0"/>
314        <ctl name="Sidetone Biquad1" id="5" value="0"/>
315        <ctl name="Sidetone Biquad2" id="0" value="1065353216"/>
316        <ctl name="Sidetone Biquad2" id="1" value="1065353216"/>
317        <ctl name="Sidetone Biquad2" id="2" value="0"/>
318        <ctl name="Sidetone Biquad2" id="3" value="0"/>
319        <ctl name="Sidetone Biquad2" id="4" value="0"/>
320        <ctl name="Sidetone Biquad2" id="5" value="0"/>
321        <ctl name="Sidetone Biquad3" id="0" value="1065353216"/>
322        <ctl name="Sidetone Biquad3" id="1" value="1065353216"/>
323        <ctl name="Sidetone Biquad3" id="2" value="0"/>
324        <ctl name="Sidetone Biquad3" id="3" value="0"/>
325        <ctl name="Sidetone Biquad3" id="4" value="0"/>
326        <ctl name="Sidetone Biquad3" id="5" value="0"/>
327        <ctl name="Sidetone Biquad4" id="0" value="1065353216"/>
328        <ctl name="Sidetone Biquad4" id="1" value="1065353216"/>
329        <ctl name="Sidetone Biquad4" id="2" value="0"/>
330        <ctl name="Sidetone Biquad4" id="3" value="0"/>
331        <ctl name="Sidetone Biquad4" id="4" value="0"/>
332        <ctl name="Sidetone Biquad4" id="5" value="0"/>
333        <ctl name="Sidetone EQ Stage Number" value="5"/>
334        <ctl name="Sidetone Volume" value="-90"/>
335        <ctl name="Sidetone Enable" value="1"/>
336    </path>
337
338    <!-- audio playback dynamic route -->
339    <path name="deep-buffer-playbackP">
340        <ctl name="TDM_0_RX Mixer EP6" value="1"/>
341    </path>
342
343    <path name="deep-buffer-playbackP hac-handset">
344    </path>
345
346    <path name="deep-buffer-playbackP bt">
347        <ctl name="BT_RX Mixer EP6" value="1"/>
348    </path>
349
350    <path name="deep-buffer-playbackP usb-headphone">
351        <ctl name="USB_RX Mixer EP6" value="1"/>
352    </path>
353
354    <path name="deep-buffer-playbackP hearing-aid">
355    </path>
356
357    <path name="low-latency-playbackP">
358        <ctl name="TDM_0_RX Mixer EP2" value="1"/>
359    </path>
360
361    <path name="low-latency-playbackP hac-handset">
362    </path>
363
364    <path name="low-latency-playbackP bt">
365        <ctl name="BT_RX Mixer EP2" value="1"/>
366    </path>
367
368    <path name="low-latency-playbackP usb-headphone">
369        <ctl name="USB_RX Mixer EP2" value="1"/>
370    </path>
371
372    <path name="low-latency-playbackP hearing-aid">
373    </path>
374
375    <path name="raw-playbackP">
376        <ctl name="TDM_0_RX Mixer RAW" value="1"/>
377    </path>
378
379    <path name="raw-playbackP hac-handset">
380    </path>
381
382    <path name="raw-playbackP usb-headphone">
383        <ctl name="USB_RX Mixer RAW" value="1"/>
384    </path>
385
386    <path name="raw-playbackP bt">
387        <ctl name="BT_RX Mixer RAW" value="1"/>
388    </path>
389
390    <path name="raw-playbackP hearing-aid">
391    </path>
392
393    <path name="mmap-playbackP">
394        <ctl name="TDM_0_RX Mixer EP1" value="1"/>
395    </path>
396
397    <path name="mmap-playbackP hac-handset">
398    </path>
399
400    <path name="mmap-playbackP usb-headphone">
401        <ctl name="USB_RX Mixer EP1" value="1"/>
402    </path>
403
404    <path name="mmap-playbackP bt">
405        <ctl name="BT_RX Mixer EP1" value="1"/>
406    </path>
407
408    <path name="mmap-playbackP usb-tty-full">
409    </path>
410
411    <path name="mmap-playbackP usb-tty-hco">
412    </path>
413
414    <path name="mmap-playbackP usb-tty-vco">
415    </path>
416
417    <path name="mmap-playbackP hearing-aid">
418    </path>
419
420    <path name="compress-offload-playback">
421        <ctl name="LVM Enable" value="1" />
422    </path>
423
424    <path name="compress-offload-playbackP">
425        <path name="compress-offload-playback" />
426        <ctl name="TDM_0_RX Mixer EP7" value="1"/>
427    </path>
428
429    <path name="compress-offload-playbackP hac-handset">
430        <path name="compress-offload-playback" />
431    </path>
432
433    <path name="compress-offload-playbackP bt">
434        <path name="compress-offload-playback" />
435        <ctl name="BT_RX Mixer EP7" value="1"/>
436    </path>
437
438    <path name="compress-offload-playbackP usb-headphone">
439        <path name="compress-offload-playback" />
440        <ctl name="USB_RX Mixer EP7" value="1"/>
441    </path>
442
443    <path name="compress-offload-playbackP hearing-aid">
444        <path name="compress-offload-playback" />
445    </path>
446
447    <path name="immersive-playbackP">
448        <ctl name="TDM_0_RX Mixer IMSV" value="1"/>
449    </path>
450
451    <path name="immersive-playbackP bt">
452        <ctl name="BT_RX Mixer IMSV" value="1"/>
453    </path>
454
455    <path name="immersive-playbackP usb-headphone">
456        <ctl name="USB_RX Mixer IMSV" value="1"/>
457    </path>
458
459    <path name="voip-playbackP">
460        <ctl name="TDM_0_RX Mixer VOIP" value="1"/>
461    </path>
462
463    <path name="voip-playbackP hac-handset">
464    </path>
465
466    <path name="voip-playbackP bt">
467        <ctl name="BT_RX Mixer VOIP" value="1"/>
468    </path>
469
470    <path name="voip-playbackP usb-headphone">
471        <ctl name="USB_RX Mixer VOIP" value="1"/>
472    </path>
473
474    <path name="voip-playbackP hearing-aid">
475    </path>
476
477    <path name="haptic-audioP">
478        <ctl name="TDM_0_RX Mixer EP3" value="1"/>
479        <ctl name="TDM_0_RX Mixer EP8" value="1"/>
480    </path>
481
482    <path name="haptic-audioP hac-handset">
483    </path>
484
485    <path name="haptic-audioP bt">
486        <ctl name="BT_RX Mixer EP3" value="1"/>
487        <ctl name="TDM_0_RX Mixer EP8" value="1"/>
488    </path>
489
490    <path name="haptic-audioP usb-headphone">
491        <ctl name="USB_RX Mixer EP3" value="1"/>
492        <ctl name="TDM_0_RX Mixer EP8" value="1"/>
493    </path>
494
495    <path name="hifi-playbackP">
496    </path>
497
498    <path name="hifi-playbackP usb-headphone">
499        <ctl name="USB_RX Mixer HIFI" value="1"/>
500    </path>
501
502    <path name="hifi-recordC">
503    </path>
504
505    <path name="hifi-recordC usb-headset-mic">
506    </path>
507
508    <!-- audio capture dynamic route -->
509    <path name="audio-recordC">
510        <ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="1"/>
511    </path>
512
513    <path name="audio-recordC usb-headset-mic">
514        <ctl name="EP1 TX Mixer USB_TX" value="1"/>
515    </path>
516
517    <path name="audio-recordC bt-mic">
518        <ctl name="EP1 TX Mixer BT_TX" value="1"/>
519    </path>
520
521    <path name="voip-recordC">
522        <ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="1"/>
523    </path>
524
525    <path name="voip-recordC usb-headset-mic">
526        <ctl name="VOIP TX Mixer USB_TX" value="1"/>
527    </path>
528
529    <path name="voip-recordC bt-mic">
530        <ctl name="VOIP TX Mixer BT_TX" value="1"/>
531    </path>
532
533    <!-- voice-call dynamic route -->
534    <path name="voice-callP">
535        <ctl name="TDM_0_RX Mixer EP5" value="1"/>
536    </path>
537
538    <path name="voice-callP bt">
539        <ctl name="BT_RX Mixer EP5" value="1"/>
540    </path>
541
542    <path name="voice-callP usb-headphone">
543        <ctl name="USB_RX Mixer EP5" value="1"/>
544    </path>
545
546    <path name="voice-callP hearing-aid">
547        <ctl name="INCALL_RX Mixer EP5" value="1"/>
548    </path>
549
550    <path name="voice-callP call-screen">
551        <ctl name="INCALL_RX Mixer EP5" value="1"/>
552    </path>
553
554    <path name="voice-callC">
555        <ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="1"/>
556    </path>
557
558    <path name="voice-callC usb-headset-mic">
559        <ctl name="EP4 TX Mixer USB_TX" value="1"/>
560    </path>
561
562    <path name="voice-callC bt-mic">
563        <ctl name="EP4 TX Mixer BT_TX" value="1"/>
564    </path>
565
566    <path name="voice-callC hearing-aid">
567        <ctl name="EP4 TX Mixer INCALL_TX" value="1"/>
568    </path>
569
570    <path name="voice-callC call-screen">
571        <ctl name="EP4 TX Mixer INCALL_TX" value="1"/>
572    </path>
573
574    <path name="hostless-ulC spk-vi">
575        <ctl name="NoHost1 TX Mixer TDM_0_TX" value="1"/>
576    </path>
577
578    <path name="telephony-rx-captureC">
579        <ctl name="Incall Capture Stream0" value="DL"/>
580    </path>
581
582    <path name="incall-capture1C uplink">
583        <ctl name="Incall Capture Stream1" value="UL"/>
584    </path>
585
586    <path name="incall-capture1C downlink">
587        <ctl name="Incall Capture Stream1" value="DL"/>
588    </path>
589
590    <path name="incall-capture1C call">
591        <ctl name="Incall Capture Stream1" value="UL_DL"/>
592    </path>
593
594    <path name="incall-capture2C uplink">
595        <ctl name="Incall Capture Stream2" value="UL"/>
596    </path>
597
598    <path name="incall-capture2C downlink">
599        <ctl name="Incall Capture Stream2" value="DL"/>
600    </path>
601
602    <path name="incall-capture2C call">
603        <ctl name="Incall Capture Stream2" value="UL_DL"/>
604    </path>
605
606    <path name="low-latency-recordC">
607        <ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="1"/>
608    </path>
609
610    <path name="low-latency-recordC usb-headset-mic">
611        <ctl name="EP3 TX Mixer USB_TX" value="1"/>
612    </path>
613
614    <path name="low-latency-recordC bt-mic">
615        <ctl name="EP3 TX Mixer BT_TX" value="1"/>
616    </path>
617
618    <path name="mmap-recordC">
619        <ctl name="EP2 TX Mixer INTERNAL_MIC_TX" value="1"/>
620    </path>
621
622    <path name="mmap-recordC usb-headset-mic">
623        <ctl name="EP2 TX Mixer USB_TX" value="1"/>
624    </path>
625
626    <path name="mmap-recordC bt-mic">
627        <ctl name="EP2 TX Mixer BT_TX" value="1"/>
628    </path>
629
630    <!-- codec setting -->>
631    <!-- Rx device -->
632    <path name="handset">
633        <ctl name="PCM Source" value="ASP"/>
634        <ctl name="AMP PCM Gain" value="6"/>
635        <ctl name="Main AMP Enable Switch" value="1"/>
636    </path>
637
638    <path name="voice-handset">
639        <ctl name="Boost Peak Current Limit" value="3.50A"/>
640        <ctl name="PCM Source" value="ASP"/>
641        <ctl name="AMP PCM Gain" value="6"/>
642        <ctl name="Main AMP Enable Switch" value="1"/>
643    </path>
644
645    <path name="voice-hac">
646        <path name="voice-handset"/>
647    </path>
648
649    <path name="voice-hac-handset">
650    </path>
651
652    <path name="speaker">
653        <ctl name="Boost Peak Current Limit" value="1.70A"/>
654        <ctl name="R Boost Peak Current Limit" value="1.90A"/>
655        <ctl name="Main AMP Enable Switch" value="1"/>
656        <ctl name="R Main AMP Enable Switch" value="1"/>
657    </path>
658
659    <path name="voice-speaker">
660        <ctl name="R Boost Peak Current Limit" value="3.50A"/>
661        <ctl name="ASPTX1 Slot Position" value="1"/>
662        <ctl name="R ASPTX1 Slot Position" value="0"/>
663        <ctl name="R DSP RX2 Source" value="ASPRX2"/>
664        <ctl name="R Main AMP Enable Switch" value="1"/>
665    </path>
666
667    <path name="speaker-safe">
668        <ctl name="R Boost Peak Current Limit" value="3.50A"/>
669        <ctl name="R Main AMP Enable Switch" value="1"/>
670    </path>
671
672    <!-- Tx device -->
673    <path name="handset-mic">
674        <ctl name="Mic Spatial Module Enable" value="1"/>
675        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
676        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
677        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
678        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
679        <ctl name="MIC DC Blocker" value="1"/>
680    </path>
681
682    <path name="handset-mic-post">
683        <ctl name="MIC Record Soft Gain (dB)" value="22"/>
684    </path>
685
686    <path name="voice-handset-mic">
687        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
688        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
689        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
690        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
691        <ctl name="MIC DC Blocker" value="1"/>
692        <ctl name="MIC HW Gain At High Power Mode (cB)" value="130"/>
693    </path>
694
695    <path name="voice-handset-mic-post">
696        <ctl name="MIC Record Soft Gain (dB)" value="0"/>
697    </path>
698
699    <path name="speaker-mic">
700        <ctl name="Mic Spatial Module Enable" value="1"/>
701        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
702        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
703        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
704        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
705        <ctl name="MIC DC Blocker" value="1"/>
706    </path>
707
708    <path name="speaker-mic-post">
709        <ctl name="MIC Record Soft Gain (dB)" value="22"/>
710    </path>
711
712    <path name="voice-speaker-mic">
713        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
714        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
715        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
716        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
717        <ctl name="MIC DC Blocker" value="1"/>
718        <ctl name="MIC HW Gain At High Power Mode (cB)" value="130"/>
719    </path>
720
721    <path name="voice-speaker-mic-post">
722        <ctl name="MIC Record Soft Gain (dB)" value="0"/>
723    </path>
724
725    <path name="camcorder-mic">
726        <ctl name="Mic Spatial Module Enable" value="1"/>
727        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
728        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
729        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
730        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
731        <ctl name="MIC DC Blocker" value="1"/>
732    </path>
733
734    <path name="camcorder-mic-post">
735        <ctl name="MIC Record Soft Gain (dB)" value="0"/>
736    </path>
737
738    <path name="voice-recog-mic">
739        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
740        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
741        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
742        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
743        <ctl name="MIC DC Blocker" value="1"/>
744    </path>
745
746    <path name="voice-recog-mic-post">
747        <ctl name="MIC Record Soft Gain (dB)" value="22"/>
748    </path>
749
750    <path name="voice-recog-aec-mic">
751        <ctl name="Audio Capture Eraser Enable" value="1"/>
752        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
753        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
754        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
755        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
756        <ctl name="MIC DC Blocker" value="1"/>
757        <ctl name="Audio Capture Mic Source" value="ERASER"/>
758    </path>
759
760    <path name="voice-recog-aec-mic-post">
761        <ctl name="MIC Record Soft Gain (dB)" value="0"/>
762    </path>
763
764    <path name="unprocessed-mic">
765        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
766        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
767        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
768        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
769        <ctl name="MIC DC Blocker" value="1"/>
770    </path>
771
772    <path name="unprocessed-mic-post">
773        <ctl name="MIC Record Soft Gain (dB)" value="5"/>
774    </path>
775
776    <path name="unprocessed-dual-mic">
777        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
778        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
779        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
780        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
781        <ctl name="MIC DC Blocker" value="1"/>
782    </path>
783
784    <path name="unprocessed-dual-mic-post">
785        <ctl name="MIC Record Soft Gain (dB)" value="5"/>
786    </path>
787
788    <path name="unprocessed-triple-mic">
789        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
790        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
791        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
792        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
793        <ctl name="MIC DC Blocker" value="1"/>
794    </path>
795
796    <path name="unprocessed-triple-mic-post">
797        <ctl name="MIC Record Soft Gain (dB)" value="5"/>
798    </path>
799
800    <path name="bt-mic">
801        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
802        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
803        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
804        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
805        <ctl name="Audio Capture Mic Source" value="BT_MIC"/>
806        <ctl name="Voice Call Mic Source" value="BT_MIC"/>
807    </path>
808
809    <path name="bt-mic-post">
810        <ctl name="MIC Record Soft Gain (dB)" value="0"/>
811    </path>
812
813    <path name="usb-headset-mic">
814        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
815        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="1"/>
816        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
817        <ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
818        <ctl name="Audio Capture Mic Source" value="USB_MIC"/>
819        <ctl name="Voice Call Mic Source" value="USB_MIC"/>
820    </path>
821
822    <path name="usb-headset-mic-post">
823        <ctl name="MIC Record Soft Gain (dB)" value="0"/>
824    </path>
825
826    <!-- cs35l41 specific path to load firmware in cs35l41.c -->
827    <path name="cs35l41-load-protection-firmware-start">
828        <!-- Enable it after get the protection firmware-->
829        <ctl name="DSP Booted" value="0" />
830        <ctl name="R DSP Booted" value="0" />
831        <ctl name="DSP1 Preload Switch" value="0" />
832        <ctl name="R DSP1 Preload Switch" value="0" />
833    </path>
834
835    <path name="cs35l41-load-protection-firmware-end">
836        <!-- Enable it after get the protection firmware-->
837        <ctl name="DSP1 Preload Switch" value="1" />
838        <ctl name="R DSP1 Preload Switch" value="1" />
839    </path>
840    <!-- cs35l41 specific path to load firmware in cs35l41.c end-->
841</mixer>
842