Use names instead of integer indexes for mux inputs
[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='AIF1TX1 Input 1 Volume' 32"
172 # Path
173     cset "name='Main Mic Switch' 1"
174     cset "name='IN1 OSR' 0"
175     cset "name='IN1R HPF Switch' 1"
176     cset "name='AIF1TX1 Input 1' IN1R"
177   ]
178
179   DisableSequence [
180 # Path
181     cset "name='Main Mic Switch' 0"
182     cset "name='IN1 OSR' 1"
183     cset "name='IN1R HPF Switch' 0"
184     cset "name='AIF1TX1 Input 1' None"
185   ]
186
187   Value {
188     CapturePCM "hw:0,0"
189   }
190 }
191
192 SectionDevice."SubMic" {
193   Comment "built-in sub mic"
194
195   EnableSequence [
196 # Gain
197     cset "name='IN3L Digital Volume' 166"
198     cset "name='AIF1TX1 Input 1 Volume' 32"
199 # Path
200     cset "name='Sub Mic Switch' 1"
201     cset "name='IN3 OSR' 0"
202     cset "name='IN3L HPF Switch' 1"
203     cset "name='AIF1TX1 Input 1' IN3L"
204   ]
205
206   DisableSequence [
207 # Path
208     cset "name='Sub Mic Switch' 0"
209     cset "name='IN3 OSR' 1"
210     cset "name='IN3L HPF Switch' 0"
211     cset "name='AIF1TX1 Input 1' None"
212   ]
213
214   Value {
215     CapturePCM "hw:0,0"
216   }
217 }
218
219 SectionDevice."ThirdMic" {
220   Comment "built-in thrid mic"
221
222   EnableSequence [
223 # Gain
224     cset "name='IN3R Digital Volume' 166"
225     cset "name='AIF1TX1 Input 1 Volume' 32"
226 # Path
227     cset "name='Third Mic Switch' 1"
228     cset "name='IN3 OSR' 0"
229     cset "name='IN3R HPF Switch' 1"
230     cset "name='AIF1TX1 Input 1' IN3R"
231   ]
232
233   DisableSequence [
234 # Path
235     cset "name='Third Mic Switch' 0"
236     cset "name='IN3 OSR' 1"
237     cset "name='IN3R HPF Switch' 0"
238     cset "name='AIF1TX1 Input 1' None"
239   ]
240
241   Value {
242     CapturePCM "hw:0,0"
243   }
244 }
245
246 SectionDevice."HeadsetMic" {
247   Comment "external headset mic"
248
249   EnableSequence [
250 # Gain
251     cset "name='AIF1TX1 Input 1 Volume' 32"
252     cset "name='IN2R Volume' 32"
253 # Path
254     cset "name='Headset Mic Switch' 1"
255     cset "name='AIF1TX1 Input 1' IN2R"
256   ]
257
258   DisableSequence [
259 # Path
260     cset "name='Headset Mic Switch' 0"
261     cset "name='AIF1TX1 Input 1' None"
262   ]
263
264   Value {
265     CapturePCM "hw:0,0"
266   }
267 }