Use names instead of integer indexes for mux inputs
[platform/adaptation/samsung_exynos/alsa-ucm-conf-wm5110.git] / wm5110 / voicecall
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 "Voice"
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' AIF2RX1"
27     cset "name='HPOUT1R Input 1' AIF2RX2"
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' 0"
35     cset "name='HPOUT1R Input 1' 0"
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' 15"
50 # Path
51     cset "name='SPK Switch' 1"
52     cset "name='HPOUT2L Input 1' AIF2RX1"
53     cset "name='HPOUT2R Input 1' None"
54     cset "name='HPOUT2 Digital Switch' 1,1"
55   ]
56
57   DisableSequence [
58 # Path
59     cset "name='SPK Switch' 0"
60     cset "name='HPOUT2L Input 1' None"
61     cset "name='HPOUT2R Input 1' None"
62     cset "name='HPOUT2 Digital Switch' 0,0"
63   ]
64
65   Value {
66     PlaybackPCM "hw:0,0"
67   }
68 }
69
70 SectionDevice."Earpiece" {
71   Comment "built-in earpiece, receiver"
72
73   EnableSequence [
74 # Gain
75     cset "name='HPOUT3L Input 1 Volume' 40"
76     cset "name='HPOUT3R Input 1 Volume' 40"
77 # Path
78     cset "name='RCV Switch' 1"
79     cset "name='HPOUT3L Input 1' AIF2RX1"
80     cset "name='HPOUT3R Input 1' AIF2RX2"
81     cset "name='HPOUT3 Digital Switch' 1,1"
82   ]
83
84   DisableSequence [
85 # Path
86     cset "name='RCV Switch' 0"
87     cset "name='HPOUT3L Input 1' None"
88     cset "name='HPOUT3R Input 1' None"
89     cset "name='HPOUT3 Digital Switch' 0,0"
90   ]
91
92   Value {
93     PlaybackPCM "hw:0,0"
94   }
95 }
96
97 SectionDevice."Bluetooth" {
98   Comment "bluetooth sco with codec master"
99
100   EnableSequence [
101 # Gain
102     cset "name='AIF3TX1 Input 1 Volume' 32"
103     cset "name='AIF2TX1 Input 1 Volume' 32"
104 # Path
105     cset "name='AIF3TX1 Input 1' AIF2RX1"
106     cset "name='AIF2TX1 Input 1' AIF3RX1"
107   ]
108
109   DisableSequence [
110     cset "name='AIF3TX1 Input 1' None"
111     cset "name='AIF2TX1 Input 1' None"
112   ]
113
114   Value {
115     PlaybackPCM "hw:0,0"
116     CapturePCM "hw:0,0"
117   }
118 }
119
120 SectionDevice."MainMic" {
121   Comment "built-in main mic"
122
123   EnableSequence [
124 # Gain
125     cset "name='IN1R Digital Volume' 166"
126     cset "name='AIF2TX1 Input 1 Volume' 32"
127 # Path
128     cset "name='Main Mic Switch' 1"
129     cset "name='IN1 OSR' 0"
130     cset "name='IN1R HPF Switch' 1"
131     cset "name='AIF2TX1 Input 1' IN1R"
132   ]
133
134   DisableSequence [
135 # Path
136     cset "name='Main Mic Switch' 0"
137     cset "name='IN1 OSR' 1"
138     cset "name='IN1R HPF Switch' 0"
139     cset "name='AIF2TX1 Input 1' None"
140   ]
141
142   Value {
143     CapturePCM "hw:0,0"
144   }
145 }
146
147 SectionDevice."SubMic" {
148   Comment "built-in sub mic"
149
150   EnableSequence [
151 # Gain
152     cset "name='IN3L Digital Volume' 166"
153     cset "name='AIF2TX1 Input 1 Volume' 32"
154 # Path
155     cset "name='Sub Mic Switch' 1"
156     cset "name='IN3 OSR' 0"
157     cset "name='IN3L HPF Switch' 1"
158     cset "name='AIF2TX1 Input 1' IN3L"
159   ]
160
161   DisableSequence [
162 # Path
163     cset "name='Sub Mic Switch' 0"
164     cset "name='IN3 OSR' 1"
165     cset "name='IN3L HPF Switch' 0"
166     cset "name='AIF2TX1 Input 1' None"
167   ]
168
169   Value {
170     CapturePCM "hw:0,0"
171   }
172 }
173
174 SectionDevice."ThirdMic" {
175   Comment "built-in thrid mic"
176
177   EnableSequence [
178 # Gain
179     cset "name='IN3R Digital Volume' 166"
180     cset "name='AIF2TX1 Input 1 Volume' 32"
181 # Path
182     cset "name='Third Mic Switch' 1"
183     cset "name='IN3 OSR' 0"
184     cset "name='IN3R HPF Switch' 1"
185     cset "name='AIF2TX1 Input 1' IN3R"
186   ]
187
188   DisableSequence [
189 # Path
190     cset "name='Third Mic Switch' 0"
191     cset "name='IN3 OSR' 1"
192     cset "name='IN3R HPF Switch' 0"
193     cset "name='AIF2TX1 Input 1' None"
194   ]
195
196   Value {
197     CapturePCM "hw:0,0"
198   }
199 }
200
201 SectionDevice."HeadsetMic" {
202   Comment "external headset mic"
203
204   EnableSequence [
205 # Gain
206     cset "name='AIF2TX1 Input 1 Volume' 32"
207     cset "name='IN2R Volume' 32"
208 # Path
209     cset "name='Headset Mic Switch' 1"
210     cset "name='AIF2TX1 Input 1' IN2R"
211   ]
212
213   DisableSequence [
214 # Path
215     cset "name='Headset Mic Switch' 0"
216     cset "name='AIF2TX1 Input 1' None"
217   ]
218
219   Value {
220     CapturePCM "hw:0,0"
221   }
222 }