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