HiFi: Speaker: Set HPOUT2R Input 1 source to AIF1RX2 to support right channel
[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' 15"
27     cset "name='HPOUT1R Input 1' 16"
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' 15"
53     cset "name='HPOUT2R Input 1' 16"
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' 0"
61     cset "name='HPOUT2R Input 1' 0"
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' 15"
80     cset "name='HPOUT3R Input 1' 16"
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' 0"
88     cset "name='HPOUT3R Input 1' 0"
89     cset "name='HPOUT3 Digital Switch' 0,0"
90   ]
91
92   Value {
93     PlaybackPCM "hw:0,0"
94   }
95 }
96
97 # Dock Audio Ouput Mode setting not included in Note4
98 SectionDevice."Line" {
99   Comment "lineout for dock"
100
101   EnableSequence [
102 # Path
103     cset "name='VPS Switch' 1"
104     cset "name='HPOUT2L Input 1' 15"
105     cset "name='HPOUT2R Input 1' 16"
106     cset "name='HPOUT2 Digital Switch' 1,1"
107   ]
108
109   DisableSequence [
110 # Path
111     cset "name='VPS Switch' 0"
112     cset "name='HPOUT2L Input 1' 0"
113     cset "name='HPOUT2R Input 1' 0"
114     cset "name='HPOUT2 Digital Switch' 0,0"
115   ]
116   Value {
117     PlaybackPCM "hw:0,0"
118   }
119 }
120
121 SectionDevice."HDMI" {
122   Comment "playback via HDMI"
123
124   EnableSequence [
125 # Path
126     cset "name='HDMI Switch' 1"
127     cset "name='SPKOUTL Input 1' 15"
128   ]
129
130   DisableSequence [
131 # Path
132     cset "name='HDMI Switch' 0"
133     cset "name='SPKOUTL Input 1' 0"
134   ]
135
136   Value {
137     PlaybackPCM "hw:0,0"
138   }
139 }
140
141 SectionDevice."Bluetooth" {
142   Comment "bluetooth sco with codec master"
143
144   EnableSequence [
145 # Gain
146     cset "name='AIF3TX1 Input 1 Volume' 32"
147     cset "name='AIF1TX1 Input 1 Volume' 32"
148 # Path
149     cset "name='AIF3TX1 Input 1' 15"
150     cset "name='AIF1TX1 Input 1' 29"
151   ]
152
153   DisableSequence [
154     cset "name='AIF3TX1 Input 1' 0"
155     cset "name='AIF1TX1 Input 1' 0"
156   ]
157
158   Value {
159     PlaybackPCM "hw:0,0"
160     CapturePCM "hw:0,0"
161   }
162 }
163
164 SectionDevice."MainMic" {
165   Comment "built-in main mic"
166
167   EnableSequence [
168 # Gain
169     cset "name='IN1R Digital Volume' 166"
170     cset "name='AIF1TX1 Input 1 Volume' 32"
171 # Path
172     cset "name='Main Mic Switch' 1"
173     cset "name='IN1 OSR' 0"
174     cset "name='IN1R HPF Switch' 1"
175     cset "name='AIF1TX1 Input 1' 8"
176   ]
177
178   DisableSequence [
179 # Path
180     cset "name='Main Mic Switch' 0"
181     cset "name='IN1 OSR' 1"
182     cset "name='IN1R HPF Switch' 0"
183     cset "name='AIF1TX1 Input 1' 0"
184   ]
185
186   Value {
187     CapturePCM "hw:0,0"
188   }
189 }
190
191 SectionDevice."SubMic" {
192   Comment "built-in sub mic"
193
194   EnableSequence [
195 # Gain
196     cset "name='IN3L Digital Volume' 166"
197     cset "name='AIF1TX1 Input 1 Volume' 32"
198 # Path
199     cset "name='Sub Mic Switch' 1"
200     cset "name='IN3 OSR' 0"
201     cset "name='IN3L HPF Switch' 1"
202     cset "name='AIF1TX1 Input 1' 11"
203   ]
204
205   DisableSequence [
206 # Path
207     cset "name='Sub Mic Switch' 0"
208     cset "name='IN3 OSR' 1"
209     cset "name='IN3L HPF Switch' 0"
210     cset "name='AIF1TX1 Input 1' 0"
211   ]
212
213   Value {
214     CapturePCM "hw:0,0"
215   }
216 }
217
218 SectionDevice."ThirdMic" {
219   Comment "built-in thrid mic"
220
221   EnableSequence [
222 # Gain
223     cset "name='IN3R Digital Volume' 166"
224     cset "name='AIF1TX1 Input 1 Volume' 32"
225 # Path
226     cset "name='Third Mic Switch' 1"
227     cset "name='IN3 OSR' 0"
228     cset "name='IN3R HPF Switch' 1"
229     cset "name='AIF1TX1 Input 1' 12"
230   ]
231
232   DisableSequence [
233 # Path
234     cset "name='Third Mic Switch' 0"
235     cset "name='IN3 OSR' 1"
236     cset "name='IN3R HPF Switch' 0"
237     cset "name='AIF1TX1 Input 1' 0"
238   ]
239
240   Value {
241     CapturePCM "hw:0,0"
242   }
243 }
244
245 SectionDevice."HeadsetMic" {
246   Comment "external headset mic"
247
248   EnableSequence [
249 # Gain
250     cset "name='AIF1TX1 Input 1 Volume' 32"
251     cset "name='IN2R Volume' 32"
252 # Path
253     cset "name='Headset Mic Switch' 1"
254     cset "name='AIF1TX1 Input 1' 10"
255   ]
256
257   DisableSequence [
258 # Path
259     cset "name='Headset Mic Switch' 0"
260     cset "name='AIF1TX1 Input 1' 0"
261   ]
262
263   Value {
264     CapturePCM "hw:0,0"
265   }
266 }