hifi: add IN1L controls in MainMic usecase
[platform/adaptation/samsung_exynos/alsa-ucm-conf-wm5110.git] / wm5110 / hifi
1 # Use case Configuration for Mobile device
2 # By Inha Song <ideal.song@samsung.com>
3
4 SectionVerb {
5   EnableSequence [
6   ]
7   DisableSequence [
8   ]
9
10   Value {
11     TQ "Music"
12     PlaybackCTL "hw:0"
13     CaptureCTL "hw:0"
14   }
15 }
16
17 SectionDevice."Headphones" {
18   Comment "3.5mm Headphones"
19
20   EnableSequence [
21 # Gain
22     cset "name='HPOUT1L Input 1 Volume' 15"
23     cset "name='HPOUT1R Input 1 Volume' 15"
24 # Path
25     cset "name='HP Switch' 1"
26     cset "name='HPOUT1L Input 1' AIF1RX1"
27     cset "name='HPOUT1R Input 1' AIF1RX2"
28     cset "name='HPOUT1 Digital Switch' 1,1"
29   ]
30
31   DisableSequence [
32 # Path
33     cset "name='HP Switch' 0"
34     cset "name='HPOUT1L Input 1' None"
35     cset "name='HPOUT1R Input 1' None"
36     cset "name='HPOUT1 Digital Switch' 0,0"
37   ]
38
39   Value {
40     PlaybackPCM "hw:0,0"
41   }
42 }
43
44 SectionDevice."Speaker" {
45   Comment "built-in Speaker"
46
47   EnableSequence [
48 # Gain
49     cset "name='HPOUT2L Input 1 Volume' 32"
50     cset "name='HPOUT2R Input 1 Volume' 32"
51 # Path
52     cset "name='SPK Switch' 1"
53     cset "name='HPOUT2L Input 1' AIF1RX1"
54     cset "name='HPOUT2R Input 1' None"
55     cset "name='HPOUT2 Digital Switch' 1,1"
56   ]
57
58   DisableSequence [
59 # Path
60     cset "name='SPK Switch' 0"
61     cset "name='HPOUT2L Input 1' None"
62     cset "name='HPOUT2R Input 1' None"
63     cset "name='HPOUT2 Digital Switch' 0,0"
64   ]
65
66   Value {
67     PlaybackPCM "hw:0,0"
68   }
69 }
70
71 SectionDevice."Earpiece" {
72   Comment "built-in earpiece, receiver"
73
74   EnableSequence [
75 # Gain
76     cset "name='HPOUT3L Input 1 Volume' 40"
77     cset "name='HPOUT3R Input 1 Volume' 40"
78 # Path
79     cset "name='RCV Switch' 1"
80     cset "name='HPOUT3L Input 1' AIF1RX1"
81     cset "name='HPOUT3R Input 1' AIF1RX2"
82     cset "name='HPOUT3 Digital Switch' 1,1"
83   ]
84
85   DisableSequence [
86 # Path
87     cset "name='RCV Switch' 0"
88     cset "name='HPOUT3L Input 1' None"
89     cset "name='HPOUT3R Input 1' None"
90     cset "name='HPOUT3 Digital Switch' 0,0"
91   ]
92
93   Value {
94     PlaybackPCM "hw:0,0"
95   }
96 }
97
98 # Dock Audio Ouput Mode setting not included in Note4
99 SectionDevice."Line" {
100   Comment "lineout for dock"
101
102   EnableSequence [
103 # Path
104     cset "name='VPS Switch' 1"
105     cset "name='HPOUT2L Input 1' AIF1RX1"
106     cset "name='HPOUT2R Input 1' None"
107     cset "name='HPOUT2 Digital Switch' 1,1"
108   ]
109
110   DisableSequence [
111 # Path
112     cset "name='VPS Switch' 0"
113     cset "name='HPOUT2L Input 1' None"
114     cset "name='HPOUT2R Input 1' None"
115     cset "name='HPOUT2 Digital Switch' 0,0"
116   ]
117   Value {
118     PlaybackPCM "hw:0,0"
119   }
120 }
121
122 SectionDevice."HDMI" {
123   Comment "playback via HDMI"
124
125   EnableSequence [
126 # Path
127     cset "name='HDMI Switch' 1"
128     cset "name='SPKOUTL Input 1' AIF1RX1"
129   ]
130
131   DisableSequence [
132 # Path
133     cset "name='HDMI Switch' 0"
134     cset "name='SPKOUTL Input 1' None"
135   ]
136
137   Value {
138     PlaybackPCM "hw:0,0"
139   }
140 }
141
142 SectionDevice."Bluetooth" {
143   Comment "bluetooth sco with codec master"
144
145   EnableSequence [
146 # Gain
147     cset "name='AIF3TX1 Input 1 Volume' 32"
148     cset "name='AIF1TX1 Input 1 Volume' 32"
149 # Path
150     cset "name='AIF3TX1 Input 1' AIF1RX1"
151     cset "name='AIF1TX1 Input 1' AIF3RX1"
152   ]
153
154   DisableSequence [
155     cset "name='AIF3TX1 Input 1' None"
156     cset "name='AIF1TX1 Input 1' None"
157   ]
158
159   Value {
160     PlaybackPCM "hw:0,0"
161     CapturePCM "hw:0,0"
162   }
163 }
164
165 SectionDevice."MainMic" {
166   Comment "built-in main mic"
167
168   EnableSequence [
169 # Gain
170     cset "name='IN1R Digital Volume' 166"
171     cset "name='IN1L Digital Volume' 166"
172     cset "name='AIF1TX1 Input 1 Volume' 32"
173     cset "name='AIF1TX2 Input 1 Volume' 32"
174 # Path
175     cset "name='Main Mic Switch' 1"
176     cset "name='IN1 OSR' 0"
177     cset "name='IN1R HPF Switch' 1"
178     cset "name='AIF1TX1 Input 1' IN1R"
179     cset "name='AIF1TX2 Input 1' IN1L"
180   ]
181
182   DisableSequence [
183 # Path
184     cset "name='Main Mic Switch' 0"
185     cset "name='IN1 OSR' 1"
186     cset "name='IN1R HPF Switch' 0"
187     cset "name='AIF1TX1 Input 1' None"
188   ]
189
190   Value {
191     CapturePCM "hw:0,0"
192   }
193 }
194
195 SectionDevice."SubMic" {
196   Comment "built-in sub mic"
197
198   EnableSequence [
199 # Gain
200     cset "name='IN3L Digital Volume' 166"
201     cset "name='AIF1TX1 Input 1 Volume' 32"
202 # Path
203     cset "name='Sub Mic Switch' 1"
204     cset "name='IN3 OSR' 0"
205     cset "name='IN3L HPF Switch' 1"
206     cset "name='AIF1TX1 Input 1' IN3L"
207   ]
208
209   DisableSequence [
210 # Path
211     cset "name='Sub Mic Switch' 0"
212     cset "name='IN3 OSR' 1"
213     cset "name='IN3L HPF Switch' 0"
214     cset "name='AIF1TX1 Input 1' None"
215   ]
216
217   Value {
218     CapturePCM "hw:0,0"
219   }
220 }
221
222 SectionDevice."ThirdMic" {
223   Comment "built-in thrid mic"
224
225   EnableSequence [
226 # Gain
227     cset "name='IN3R Digital Volume' 166"
228     cset "name='AIF1TX1 Input 1 Volume' 32"
229 # Path
230     cset "name='Third Mic Switch' 1"
231     cset "name='IN3 OSR' 0"
232     cset "name='IN3R HPF Switch' 1"
233     cset "name='AIF1TX1 Input 1' IN3R"
234   ]
235
236   DisableSequence [
237 # Path
238     cset "name='Third Mic Switch' 0"
239     cset "name='IN3 OSR' 1"
240     cset "name='IN3R HPF Switch' 0"
241     cset "name='AIF1TX1 Input 1' None"
242   ]
243
244   Value {
245     CapturePCM "hw:0,0"
246   }
247 }
248
249 SectionDevice."HeadsetMic" {
250   Comment "external headset mic"
251
252   EnableSequence [
253 # Gain
254     cset "name='AIF1TX1 Input 1 Volume' 32"
255     cset "name='IN2R Volume' 32"
256 # Path
257     cset "name='Headset Mic Switch' 1"
258     cset "name='AIF1TX1 Input 1' IN2R"
259   ]
260
261   DisableSequence [
262 # Path
263     cset "name='Headset Mic Switch' 0"
264     cset "name='AIF1TX1 Input 1' None"
265   ]
266
267   Value {
268     CapturePCM "hw:0,0"
269   }
270 }