-
Notifications
You must be signed in to change notification settings - Fork 9
/
mixer_paths_0.xml
150 lines (127 loc) · 4.78 KB
/
mixer_paths_0.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<mixer>
<ctl name="Int Spk Switch" value="0"/>
<ctl name="Headphone Jack Switch" value="0"/>
<ctl name="Mic Jack Switch" value="0"/>
<ctl name="Int Mic Switch" value="0"/>
<ctl name="Sidetone Volume" value="0"/>
<ctl name="DAC1 Playback Volume" value="87"/>
<ctl name="STO1 ADC Boost Volume" value="2"/>
<ctl name="STO2 ADC Boost Volume" value="2"/>
<ctl name="STO3 ADC Boost Volume" value="0"/>
<ctl name="Mono ADC Boost Volume" value="2"/>
<ctl name="ADC1 Capture Volume" value="23"/>
<ctl name="ADC2 Capture Volume" value="23"/>
<ctl name="ADC3 Capture Volume" value="23"/>
<ctl name="Mic Volume" value="207"/>
<ctl name="Frontend PGA Volume" value="1"/>
<ctl name="I2S1 Mux" value="ADMAIF1"/>
<ctl name="ADMAIF1 Mux" value="I2S1"/>
<ctl name="Stereo1 DMIC Mux" value="DMIC2"/>
<ctl name="Stereo1 ADC2 Mux" value="DMIC"/>
<ctl name="Stereo2 DMIC Mux" value="DMIC1"/>
<ctl name="Stereo2 ADC2 Mux" value="DMIC"/>
<ctl name="Stereo3 ADC1 Mux" value="Stereo DAC MIX"/>
<ctl name="DAC1 Mux" value="IF1 DAC 01"/>
<ctl name="DAC1 MIXL DAC1 Switch" value="1"/>
<ctl name="DAC1 MIXR DAC1 Switch" value="1"/>
<ctl name="Stereo DAC MIXL DAC1 L Switch" value="1"/>
<ctl name="Stereo DAC MIXR DAC1 R Switch" value="1"/>
<ctl name="DAC3 L Mux" value="IF3 DAC L"/>
<ctl name="DAC3 R Mux" value="IF3 DAC R"/>
<ctl name="DD1 MIXL DAC3 L Switch" value="1"/>
<ctl name="DD1 MIXR DAC3 R Switch" value="1"/>
<ctl name="DACL Mux" value="DACL"/>
<ctl name="DACR Mux" value="DACR"/>
<!--
Needed for DSP-based hotwording
-->
<ctl name="Mono ADC MIXL ADC2 Switch" value="1"/>
<ctl name="VAD ADC Mux" value="MONO ADC MIX L"/>
<ctl name="IB01 Mux" value="VAD ADC/DAC1 FS"/>
<!--
Stereo1 and Stereo2 rt5677 datapaths are used for capture
stream. Capture can be up to 4 channels (4 DMICs) and we need
2 stereo datapaths.
Stereo3 is used for playback. Only 2 channel playback supported
thus 1 stereo datapath is enough.
-->
<ctl name="Sto1 ADC MIXL ADC2 Switch" value="1"/>
<ctl name="Sto1 ADC MIXR ADC2 Switch" value="1"/>
<ctl name="Sto2 ADC MIXL ADC2 Switch" value="1"/>
<ctl name="Sto2 ADC MIXR ADC2 Switch" value="1"/>
<ctl name="Sto3 ADC MIXL ADC1 Switch" value="1"/>
<ctl name="Sto3 ADC MIXR ADC1 Switch" value="1"/>
<!--
IF1 - link to SoC
IF2 - link to Speaker
IF3 - link to Headset
-->
<ctl name="IF1 ADC1 Mux" value="STO1 ADC MIX"/>
<ctl name="IF1 ADC2 Mux" value="STO2 ADC MIX"/>
<ctl name="IF1 ADC3 Mux" value="OB45"/>
<ctl name="IF1 ADC TDM Swap Mux" value="1/2/3/4"/>
<ctl name="IF2 ADC1 Mux" value="OB01"/>
<ctl name="IF2 ADC2 Mux" value="OB23"/>
<ctl name="IF2 ADC3 Mux" value="OB45"/>
<ctl name="IF2 ADC TDM Swap Mux" value="2/3/1/4"/>
<ctl name="IF3 ADC Mux" value="OB01"/>
<path name="speaker">
<ctl name="Headphone Jack Switch" value="0"/>
<ctl name="ADC3 Capture Volume" value="28"/>
<ctl name="IF2 ADC3 Mux" value="STO3 ADC MIX"/>
<ctl name="IF3 ADC Mux" value="OB01"/>
<ctl name="Int Spk Switch" value="1"/>
</path>
<path name="headphones">
<ctl name="Int Spk Switch" value="0"/>
<ctl name="ADC3 Capture Volume" value="23"/>
<ctl name="IF2 ADC3 Mux" value="OB45"/>
<ctl name="IF3 ADC Mux" value="STO3 ADC MIX"/>
<ctl name="Headphone Jack Switch" value="1"/>
</path>
<!-- dmic -->
<path name="speaker-mic">
<ctl name="Mic Jack Switch" value="0"/>
<ctl name="Stereo1 ADC2 Mux" value="DMIC"/>
<ctl name="Int Mic Switch" value="1"/>
</path>
<!-- analog mic -->
<path name="headset-mic">
<ctl name="Int Mic Switch" value="0"/>
<ctl name="Stereo1 ADC2 Mux" value="DD MIX1"/>
<ctl name="Mic Jack Switch" value="1"/>
<ctl name="STO1 ADC Boost Volume" value="2"/>
<ctl name="ADC1 Capture Volume" value="27"/>
</path>
<path name="voice-headset-mic">
<path name="headset-mic" />
</path>
<path name="voice-rec-mic">
<path name="speaker-mic" />
<ctl name="STO1 ADC Boost Volume" value="2"/>
<ctl name="ADC1 Capture Volume" value="31"/>
</path>
<path name="voice-rec-headset-mic">
<path name="headset-mic" />
<ctl name="ADC1 Capture Volume" value="31"/>
</path>
<path name="handset-mic">
<path name="speaker-mic" />
</path>
<path name="camcorder-mic">
<path name="speaker-mic" />
</path>
<path name="speaker-and-headphones">
<ctl name="ADC3 Capture Volume" value="23"/>
<ctl name="IF2 ADC3 Mux" value="STO3 ADC MIX"/>
<ctl name="IF3 ADC Mux" value="STO3 ADC MIX"/>
<ctl name="Int Spk Switch" value="1"/>
<ctl name="Headphone Jack Switch" value="1"/>
</path>
<path name="speaker-lr-normal">
<ctl name="IF2 ADC3 Swap Mux" value="L/R"/>
</path>
<path name="speaker-lr-reverse">
<ctl name="IF2 ADC3 Swap Mux" value="R/L"/>
</path>
</mixer>