ade75716ed03a431ed023c5c68e1d4c01431fd69
[firefly-linux-kernel-4.4.55.git] / sound / soc / rockchip / Kconfig
1 config SND_RK_SOC
2         tristate "SoC Audio for the Rockchip System-on-Chip"
3         depends on SND_SOC
4         help
5           Say Y or M if you want to add support for codecs attached to
6           the ROCKCHIP IIS interface. You will also need
7           to select the audio interfaces to support below.
8
9 config SND_RK_SOC_I2S
10         tristate
11
12 config SND_RK_SOC_SPDIF
13         tristate
14
15 config SND_RK_SOC_I2S_8CH
16         bool "Soc RK I2S 8 Channel support(I2S0)"
17         default y
18         depends on SND_RK_SOC_I2S && !ARCH_RK3066B && !ARCH_RK3188 && !ARCH_RK319X
19         help
20        This supports the use of the 8 Channel I2S interface on rk processors.
21                                 
22 if SND_RK_SOC_I2S_8CH
23 choice
24   bool "Set I2S0 using the number of channels"
25   default SND_I2SO_USE_DOUBLE_CHANNELS
26         config SND_I2SO_USE_EIGHT_CHANNELS
27                 tristate  "I2S0 use 8 channels"
28
29         config SND_I2SO_USE_DOUBLE_CHANNELS
30                 tristate  "I2S0 use 2 channels"
31 endchoice
32 endif
33
34 config SND_RK_SOC_I2S_2CH
35         bool "Soc RK I2S 2 Channel support(I2S1)"
36         depends on SND_RK_SOC_I2S && !ARCH_RK2928 && !ARCH_RK3026
37         default y if (ARCH_RK3066B || ARCH_RK3188)
38         help
39          This supports the use of the 2 Channel I2S interface on rk processors.
40                  
41 choice
42         bool "Set I2S GRF Output Voltage"
43         depends on (ARCH_RK3066B || ARCH_RK3188) && SND_RK_SOC_I2S_2CH
44         default SND_I2S_USE_33V
45
46         config SND_I2S_USE_33V
47                 bool "I2S use 3.3V"
48
49         config SND_I2S_USE_18V
50                 bool "I2S use 1.8V"
51 endchoice
52
53 config SND_RK_SOC_I2S2_2CH
54         bool "Soc RK I2S 2 Channel support(I2S2)"
55         default n
56         depends on SND_RK_SOC_I2S && ARCH_RK30 && !ARCH_RK2928 && !ARCH_RK3066B && !ARCH_RK3026
57         help
58                 This supports the use of the 2 Channel I2S2 interface on rk30 processors.
59
60 if      SND_RK_SOC_I2S_2CH || SND_RK_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH
61 choice
62   bool "Set i2s on DMA event mode"
63   default SND_I2S_DMA_EVENT_STATIC
64         config SND_I2S_DMA_EVENT_DYNAMIC
65                 tristate  "dynamic mode"
66
67         config SND_I2S_DMA_EVENT_STATIC
68                 tristate  "static mode"
69 endchoice
70 endif
71
72 if SND_RK_SOC && RK_HDMI
73 choice
74   bool "Set audio support for HDMI"
75   default SND_RK_SOC_HDMI_I2S
76         config SND_RK_SOC_HDMI_I2S
77                 depends on !RK616_USE_MCLK_12M || !SND_RK_SOC_RK616
78                 select SND_RK_SOC_I2S
79                 select SND_SOC_HDMI_I2S
80                 tristate  "HDMI use I2S"
81
82         config SND_RK_SOC_HDMI_SPDIF
83                 depends on SND_RK_SOC_RK616
84                 select SND_RK_SOC_SPDIF
85                 select SND_SOC_HDMI_SPDIF
86                 tristate  "HDMI use SPDIF"
87 endchoice
88 endif
89
90 config SND_RK_SOC_AK4396
91         tristate "SoC I2S Audio support for rockchip - AK4396"
92         depends on SND_RK_SOC
93         select SND_RK_SOC_I2S
94         select SND_SOC_AK4396
95         help
96           Say Y if you want to add support for SoC audio on rockchip
97           with the AK4396.
98
99 config SND_RK_SOC_ES8323
100         tristate "SoC I2S Audio support for rockchip - ES8323"
101         depends on SND_RK_SOC
102         select SND_RK_SOC_I2S
103         select SND_SOC_ES8323
104         help
105           Say Y if you want to add support for SoC audio on rockchip
106           with the ES8323.
107
108 config SND_SOC_ES8323_PCM
109         tristate "SoC I2S Audio support for rockchip - ES8323 for PCM modem"
110         depends on SND_RK_SOC
111         help
112           Say Y if you want to add support for SoC audio on rockchip
113           with the ES8323 for PCM modem.
114
115 config SND_RK_SOC_WM8988
116         tristate "SoC I2S Audio support for rockchip - WM8988"
117         depends on SND_RK_SOC
118         select SND_RK_SOC_I2S
119         select SND_SOC_WM8988
120         help
121           Say Y if you want to add support for SoC audio on rockchip
122           with the WM8988.
123
124 config SND_RK_SOC_WM8900
125         tristate "SoC I2S Audio support for rockchip - WM8900"
126         depends on SND_RK_SOC
127         select SND_RK_SOC_I2S
128         select SND_SOC_WM8900
129         help
130           Say Y if you want to add support for SoC audio on rockchip
131           with the WM8900.
132
133 config SND_RK_SOC_RT5512
134         tristate "SoC I2S Audio support for rockchip - RICHTEK5512"
135         depends on SND_RK_SOC
136         select SND_SOC_RT5512
137         select SND_RK_SOC_I2S
138         help
139           Say Y if you want to add support for SoC audio on the rockchip.
140
141 config SND_RK_SOC_CX2070X
142         tristate "SoC I2S Audio support for rockchip - CX2070X"
143         depends on SND_RK_SOC
144         select SND_SOC_CX2070X
145         select SND_RK_SOC_I2S
146         help
147           Say Y if you want to add support for SoC audio on the rockchip.
148
149 config SND_RK_SOC_RT5621
150         tristate "SoC I2S Audio support for rockchip - rt5621"
151         depends on SND_RK_SOC
152         select SND_RK_SOC_I2S
153         select SND_SOC_RT5621
154         help
155           Say Y if you want to add support for SoC audio on rockchip
156           with the rt5621.
157 config SND_RK_SOC_RT5623
158         tristate "SoC I2S Audio support for rockchip - rt5623"
159         depends on SND_RK_SOC
160         select SND_RK_SOC_I2S
161         select SND_SOC_RT5623
162         help
163           Say Y if you want to add support for SoC audio on rockchip
164           with the rt5623.
165
166 config SND_RK_SOC_RT5631
167         tristate "SoC I2S Audio support for rockchip - RT5631"
168         depends on SND_RK_SOC
169         select SND_RK_SOC_I2S
170         select SND_SOC_RT5631
171         help
172           Say Y if you want to add support for SoC audio on rockchip
173           with the RT5631.
174           
175 config SND_RK_SOC_RT5631_PHONE
176         tristate "SoC I2S Audio support for rockchip(phone) - RT5631"
177         depends on SND_RK_SOC
178         select SND_RK_SOC_I2S
179         select SND_SOC_RT5631_PHONE
180         help
181           Say Y if you want to add support for SoC audio on rockchip
182           with the RT5631.
183           Driver code to use on the phone or voice Tablet.
184           
185 config SND_RK_SOC_RT5625
186         tristate "SoC I2S Audio support for rockchip - RT5625"
187         depends on SND_RK_SOC
188         select SND_RK_SOC_I2S
189         help
190           Say Y if you want to add support for SoC audio on rockchip
191           with the RT5625.
192
193 choice
194         depends on SND_RK_SOC_RT5625
195         prompt  "RT5625 hardware select"
196
197         config SND_SOC_RT5625_SPK_FORM_SPKOUT
198         bool "spk from spkout"
199         select SND_SOC_RT5625
200         help
201           if your codec output hardware connect is spk from spkout, choose it
202
203         config SND_SOC_RT5625_SPK_FORM_HPOUT
204         bool "spk from hpout"
205         select SND_SOC_RT5625
206         help
207           if your codec output hardware connect is spk from spkout, choose it
208 endchoice
209
210 config SND_RK_SOC_RT5640
211         tristate "SoC I2S Audio support for rockchip - RT5640(RT5642)"
212         depends on SND_RK_SOC
213         select SND_RK_SOC_I2S
214         select SND_SOC_RT5640
215         help
216            RT5640 is pin to pin as RT5642, but not have dsp function.
217           
218 config SND_RK_SOC_RT3224
219         tristate "SoC I2S Audio support for rockchip - RT3224"
220         depends on SND_RK_SOC
221         select SND_RK_SOC_I2S
222         select SND_SOC_RT3224
223         help
224           RT3224 is pin to pin as RT3261, but not have dsp function.
225           
226 config SND_RK_SOC_RT5639
227         tristate "SoC I2S Audio support for rockchip - RT5639"
228         depends on SND_RK_SOC
229         select SND_RK_SOC_I2S
230         select SND_SOC_RT5639
231         help
232           rt5639
233           
234 config SND_RK_SOC_RT5616
235         tristate "SoC I2S Audio support for rockchip - RT5616"
236         depends on SND_RK_SOC
237         select SND_RK_SOC_I2S
238         select SND_SOC_RT5616
239         help
240           Say Y if you want to add support for SoC audio on rockchip
241           with the RT5616.
242           
243 config SND_RK_SOC_RT3261
244         tristate "SoC I2S Audio support for rockchip - RT3261"
245         depends on SND_RK_SOC
246         select SND_RK_SOC_I2S
247         select SND_SOC_RT3261
248         help
249           Say Y if you want to add support for SoC audio on rockchip
250           with the RT3261.
251
252 config SND_RK_SOC_WM8994
253         tristate "SoC I2S Audio support for rockchip - WM8994"
254         depends on SND_RK_SOC && MFD_WM8994
255         select SND_RK_SOC_I2S
256         select SND_SOC_WM8994
257         help
258           Say Y if you want to add support for SoC audio on rockchip
259           with the WM8994.
260
261 config SND_RK_SOC_CS42L52
262         tristate "SoC I2S Audio support for rockchip - CS42L52"
263         depends on SND_RK_SOC
264         select SND_RK_SOC_I2S
265         select SND_SOC_CS42L52
266         help
267           Say Y if you want to add support for SoC audio on rockchip
268           with the CS42L52.
269
270 config SND_RK_SOC_AIC3111
271         tristate "SoC I2S Audio support for rockchip - AIC3111"
272         depends on SND_RK_SOC
273         select SND_RK_SOC_I2S
274         select SND_SOC_TLV320AIC3111
275         help
276           Say Y if you want to add support for SoC audio on rockchip
277           with the AIC3111.
278
279 config SND_RK_SOC_AIC3262
280         tristate "SoC I2S Audio support for rockchip - AIC3262"
281         depends on SND_RK_SOC
282         select SND_RK_SOC_I2S
283         select SND_SOC_TLV320AIC326X
284         help
285           Say Y if you want to add support for SoC audio on rockchip
286           with the AIC3262.
287
288 config SND_RK_SOC_RK1000
289         tristate "SoC I2S Audio support for rockchip - RK1000"
290         depends on SND_RK_SOC
291         select SND_RK_SOC_I2S
292         select SND_SOC_RK1000
293         help
294           Say Y if you want to add support for SoC audio on rockchip
295           with the RK1000.
296
297 config SND_RK_SOC_RK610
298         tristate "SoC I2S Audio support for rockchip - RK610"
299         depends on SND_RK_SOC && MFD_RK610
300         select SND_RK_SOC_I2S
301         select SND_SOC_RK610
302         help
303           Say Y if you want to add support for SoC audio on rockchip
304           with the RK610(JETTA).
305
306 config SND_RK_SOC_RK616
307         tristate "SoC I2S Audio support for rockchip - RK616"
308         depends on SND_RK_SOC && MFD_RK616
309         select SND_RK_SOC_I2S
310         select SND_SOC_RK616
311         help
312           Say Y if you want to add support for SoC audio on rockchip
313           with the RK616(JETTA).
314
315 config SND_RK_SOC_RK2928
316         tristate "SoC I2S Audio support for rockchip - RK2928"
317         depends on SND_RK_SOC && ARCH_RK2928
318         select SND_RK_SOC_I2S
319         select SND_SOC_RK2928
320         select SND_RK_CODEC_SOC_SLAVE
321         help
322           Say Y if you want to add support for SoC audio on rockchip
323           with the RK2928 internal codec.
324
325 config SND_RK_SOC_RK3026
326         tristate "SoC I2S Audio support for rockchip - RK3026&R3028A"
327         depends on SND_RK_SOC && ARCH_RK3026
328         select SND_RK_SOC_I2S
329         select SND_SOC_RK3026
330         select SND_RK_CODEC_SOC_SLAVE
331         help
332           Say Y if you want to add support for SoC audio on rockchip
333           with the RK3026 internal codec.
334
335 config SND_RK_SOC_RK3190
336         tristate "SoC I2S Audio support for rockchip - RK3190"
337         depends on SND_RK_SOC
338         select SND_RK_SOC_I2S
339         select SND_SOC_RK3190
340         select SND_RK_CODEC_SOC_SLAVE
341         help
342           Say Y if you want to add support for SoC audio on rockchip
343           with the RK3190 internal codec.
344
345 if SND_RK_SOC_I2S_2CH || SND_RK_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH  
346 choice
347   bool "Set i2s type"
348   default SND_RK_CODEC_SOC_SLAVE
349         config SND_RK_CODEC_SOC_MASTER
350                 tristate  "Codec run in Master"
351
352         config SND_RK_CODEC_SOC_SLAVE
353                 tristate  "Codec run in Slave"
354 endchoice
355
356 config ADJUST_VOL_BY_CODEC
357         bool "Adjust volume by codec"
358     default n
359     help
360           adjust volume by codec
361
362 config PHONE_INCALL_IS_SUSPEND
363         bool "Incalling Whether suspend codec"
364     default n
365     help
366                 set "y" phone incall status cannot into suspend codec
367
368 endif
369