rk: restore file mode
[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         select SND_SOC_GENERIC_DMAENGINE_PCM
5         help
6           Say Y or M if you want to add support for codecs attached to
7           the ROCKCHIP IIS interface. You will also need
8           to select the audio interfaces to support below.
9
10 config SND_RK_SOC_I2S
11         tristate
12
13 config SND_RK_SOC_SPDIF
14         tristate
15
16 if SND_RK_SOC
17
18 if SND_RK_SOC && RK_HDMI
19 choice
20   bool "Set audio support for HDMI"
21   default SND_RK_SOC_HDMI_I2S
22         config SND_RK_SOC_HDMI_I2S
23                 depends on !RK616_USE_MCLK_12M || !SND_RK_SOC_RK616
24                 select SND_RK_SOC_I2S
25                 select SND_SOC_HDMI_I2S
26                 tristate  "HDMI use I2S"
27
28         config SND_RK_SOC_HDMI_SPDIF
29                 #depends on SND_RK_SOC_RK616
30                 select SND_RK_SOC_SPDIF
31                 select SND_SOC_HDMI_SPDIF
32                 tristate  "HDMI use SPDIF"
33 endchoice
34 endif #SND_RK_SOC && RK_HDMI
35
36 config SND_RK_SOC_SPDIF_CARD
37         tristate "SoC spdif card support for rockchip"
38         depends on !SND_RK_SOC_HDMI_SPDIF
39                 select SND_RK_SOC_SPDIF
40                 select SND_SOC_HDMI_SPDIF
41
42
43
44 config SND_RK_SOC_AK4396
45         tristate "SoC I2S Audio support for rockchip - AK4396"
46         depends on SND_RK_SOC
47         select SND_RK_SOC_I2S
48         select SND_SOC_AK4396
49         help
50           Say Y if you want to add support for SoC audio on rockchip
51           with the AK4396.
52
53 config SND_RK_SOC_ES8323
54         tristate "SoC I2S Audio support for rockchip - ES8323"
55         depends on SND_RK_SOC
56         select SND_RK_SOC_I2S
57         select SND_SOC_ES8323
58         help
59           Say Y if you want to add support for SoC audio on rockchip
60           with the ES8323.
61
62 config SND_RK_SOC_ES8316
63         tristate "SoC I2S Audio support for rockchip - ES8316"
64         depends on SND_RK_SOC
65         select SND_RK_SOC_I2S
66         select SND_SOC_ES8316
67         help
68           Say Y if you want to add support for SoC audio on rockchip
69           with the ES8316.
70
71 config SND_SOC_ES8323_PCM
72         tristate "SoC I2S Audio support for rockchip - ES8323 for PCM modem"
73         depends on SND_RK_SOC
74         help
75           Say Y if you want to add support for SoC audio on rockchip
76           with the ES8323 for PCM modem.
77
78 config SND_RK_SOC_WM8988
79         tristate "SoC I2S Audio support for rockchip - WM8988"
80         depends on SND_RK_SOC
81         select SND_RK_SOC_I2S
82         select SND_SOC_WM8988
83         help
84           Say Y if you want to add support for SoC audio on rockchip
85           with the WM8988.
86
87 config SND_RK_SOC_WM8900
88         tristate "SoC I2S Audio support for rockchip - WM8900"
89         depends on SND_RK_SOC
90         select SND_RK_SOC_I2S
91         select SND_SOC_WM8900
92         help
93           Say Y if you want to add support for SoC audio on rockchip
94           with the WM8900.
95
96 config SND_RK_SOC_RT5512
97         tristate "SoC I2S Audio support for rockchip - RICHTEK5512"
98         depends on SND_RK_SOC
99         select SND_SOC_RT5512
100         select SND_RK_SOC_I2S
101         help
102           Say Y if you want to add support for SoC audio on the rockchip.
103
104 config SND_RK_SOC_CX2070X
105         tristate "SoC I2S Audio support for rockchip - CX2070X"
106         depends on SND_RK_SOC
107         select SND_SOC_CX2070X
108         select SND_RK_SOC_I2S
109         help
110           Say Y if you want to add support for SoC audio on the rockchip.
111
112 config SND_RK_SOC_RT5621
113         tristate "SoC I2S Audio support for rockchip - rt5621"
114         depends on SND_RK_SOC
115         select SND_RK_SOC_I2S
116         select SND_SOC_RT5621
117         help
118           Say Y if you want to add support for SoC audio on rockchip
119           with the rt5621.
120 config SND_RK_SOC_RT5623
121         tristate "SoC I2S Audio support for rockchip - rt5623"
122         depends on SND_RK_SOC
123         select SND_RK_SOC_I2S
124         select SND_SOC_RT5623
125         help
126           Say Y if you want to add support for SoC audio on rockchip
127           with the rt5623.
128
129 config SND_RK_SOC_RT5631
130         tristate "SoC I2S Audio support for rockchip - RT5631"
131         depends on SND_RK_SOC
132         select SND_RK_SOC_I2S
133         select SND_SOC_RT5631
134         help
135           Say Y if you want to add support for SoC audio on rockchip
136           with the RT5631.
137
138 config SND_RK_SOC_RT5631_PHONE
139         tristate "SoC I2S Audio support for rockchip(phone) - RT5631"
140         depends on SND_RK_SOC
141         select SND_RK_SOC_I2S
142         select SND_SOC_RT5631_PHONE
143         help
144           Say Y if you want to add support for SoC audio on rockchip
145           with the RT5631.
146           Driver code to use on the phone or voice Tablet.
147
148 config SND_RK_SOC_RT5625
149         tristate "SoC I2S Audio support for rockchip - RT5625"
150         depends on SND_RK_SOC
151         select SND_RK_SOC_I2S
152         help
153           Say Y if you want to add support for SoC audio on rockchip
154           with the RT5625.
155
156 choice
157         depends on SND_RK_SOC_RT5625
158         prompt  "RT5625 hardware select"
159
160         config SND_SOC_RT5625_SPK_FORM_SPKOUT
161         bool "spk from spkout"
162         select SND_SOC_RT5625
163         help
164           if your codec output hardware connect is spk from spkout, choose it
165
166         config SND_SOC_RT5625_SPK_FORM_HPOUT
167         bool "spk from hpout"
168         select SND_SOC_RT5625
169         help
170           if your codec output hardware connect is spk from spkout, choose it
171 endchoice
172
173 config SND_RK_SOC_RT5640
174         tristate "SoC I2S Audio support for rockchip - RT5640(RT5642)"
175         depends on SND_RK_SOC
176         select SND_RK_SOC_I2S
177         select SND_SOC_RT5640
178         help
179            RT5640 is pin to pin as RT5642, but not have dsp function.
180
181 config SND_RK_SOC_RT3224
182         tristate "SoC I2S Audio support for rockchip - RT3224"
183         depends on SND_RK_SOC
184         select SND_RK_SOC_I2S
185         select SND_SOC_RT3224
186         help
187           RT3224 is pin to pin as RT3261, but not have dsp function.
188
189 config SND_RK_SOC_RT5639
190         tristate "SoC I2S Audio support for rockchip - RT5639"
191         depends on SND_RK_SOC
192         select SND_RK_SOC_I2S
193         select SND_SOC_RT5639
194         help
195           rt5639
196
197 config SND_RK_SOC_RT5616
198         tristate "SoC I2S Audio support for rockchip - RT5616"
199         depends on SND_RK_SOC
200         select SND_RK_SOC_I2S
201         select SND_SOC_RT5616
202         help
203           Say Y if you want to add support for SoC audio on rockchip
204           with the RT5616.
205
206 config SND_RK_SOC_RT3261
207         tristate "SoC I2S Audio support for rockchip - RT3261"
208         depends on SND_RK_SOC
209         select SND_RK_SOC_I2S
210         select SND_SOC_RT3261
211         help
212           Say Y if you want to add support for SoC audio on rockchip
213           with the RT3261.
214
215 config SND_RK_SOC_WM8994
216         tristate "SoC I2S Audio support for rockchip - WM8994"
217         depends on SND_RK_SOC && MFD_WM8994
218         select SND_RK_SOC_I2S
219         select SND_SOC_WM8994
220         help
221           Say Y if you want to add support for SoC audio on rockchip
222           with the WM8994.
223
224 config SND_RK_SOC_CS42L52
225         tristate "SoC I2S Audio support for rockchip - CS42L52"
226         depends on SND_RK_SOC
227         select SND_RK_SOC_I2S
228         select SND_SOC_CS42L52
229         help
230           Say Y if you want to add support for SoC audio on rockchip
231           with the CS42L52.
232
233 config SND_RK_SOC_AIC3111
234         tristate "SoC I2S Audio support for rockchip - AIC3111"
235         depends on SND_RK_SOC
236         select SND_RK_SOC_I2S
237         select SND_SOC_TLV320AIC3111
238         help
239           Say Y if you want to add support for SoC audio on rockchip
240           with the AIC3111.
241
242 config SND_RK_SOC_AIC3262
243         tristate "SoC I2S Audio support for rockchip - AIC3262"
244         depends on SND_RK_SOC
245         select SND_RK_SOC_I2S
246         select SND_SOC_TLV320AIC326X
247         help
248           Say Y if you want to add support for SoC audio on rockchip
249           with the AIC3262.
250
251 config SND_RK_SOC_RK1000
252         tristate "SoC I2S Audio support for rockchip - RK1000"
253         depends on SND_RK_SOC
254         select SND_RK_SOC_I2S
255         select SND_SOC_RK1000
256         help
257           Say Y if you want to add support for SoC audio on rockchip
258           with the RK1000.
259
260 config SND_RK_SOC_RK3036
261         tristate "SoC I2S Audio support for rockchip - RK3036"
262         depends on SND_RK_SOC
263         select SND_RK_SOC_I2S
264         select SND_SOC_RK3036
265         help
266           Say Y if you want to add support for SoC audio on rockchip
267           with the RK3036 s40.
268
269 config SND_RK_SOC_RK312X
270         tristate "SoC I2S Audio support for rockchip - RK312X"
271         depends on SND_RK_SOC
272         select SND_RK_SOC_I2S
273         select SND_SOC_RK312X
274         help
275           Say Y if you want to add support for SoC audio on rockchip
276           with the rk3128 && rk3126 internal codec.
277
278 config SND_RK_SOC_RK610
279         tristate "SoC I2S Audio support for rockchip - RK610"
280         depends on SND_RK_SOC && MFD_RK610
281         select SND_RK_SOC_I2S
282         select SND_SOC_RK610
283         help
284           Say Y if you want to add support for SoC audio on rockchip
285           with the RK610(JETTA).
286
287 config SND_RK_SOC_RK616
288         tristate "SoC I2S Audio support for rockchip - RK616"
289         depends on SND_RK_SOC && MFD_RK616
290         select SND_RK_SOC_I2S
291         select SND_SOC_RK616
292         help
293           Say Y if you want to add support for SoC audio on rockchip
294           with the RK616(JETTA).
295
296 config SND_RK_SOC_RK2928
297         tristate "SoC I2S Audio support for rockchip - RK2928"
298         depends on SND_RK_SOC && ARCH_RK2928
299         select SND_RK_SOC_I2S
300         select SND_SOC_RK2928
301         select SND_RK_CODEC_SOC_SLAVE
302         help
303           Say Y if you want to add support for SoC audio on rockchip
304           with the RK2928 internal codec.
305
306 config SND_RK_SOC_RK3026
307         tristate "SoC I2S Audio support for rockchip - RK3026&R3028A"
308         depends on SND_RK_SOC && ARCH_RK3026
309         select SND_RK_SOC_I2S
310         select SND_SOC_RK3026
311         select SND_RK_CODEC_SOC_SLAVE
312         help
313           Say Y if you want to add support for SoC audio on rockchip
314           with the RK3026 internal codec.
315
316 config SND_RK_SOC_RK3190
317         tristate "SoC I2S Audio support for rockchip - RK3190"
318         depends on SND_RK_SOC
319         select SND_RK_SOC_I2S
320         select SND_SOC_RK3190
321         select SND_RK_CODEC_SOC_SLAVE
322         help
323           Say Y if you want to add support for SoC audio on rockchip
324           with the RK3190 internal codec.
325
326 endif #SND_RK_SOC