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