rk3188: spdif support
[firefly-linux-kernel-4.4.55.git] / sound / soc / rk29 / Kconfig
1 config SND_RK29_SOC
2         tristate "SoC Audio for the Rockchip System-on-Chip"
3         depends on PLAT_RK && 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_RK29_SOC_I2S
10         tristate
11
12 config SND_RK29_SOC_I2S_8CH
13         bool "Soc RK29 I2S 8 Channel support(I2S0)"
14         default y
15         depends on SND_RK29_SOC_I2S && !ARCH_RK3066B && !ARCH_RK3188
16         help
17                 This supports the use of the 8 Channel I2S interface on rk29 processors.
18                                 
19 if SND_RK29_SOC_I2S_8CH
20 choice
21   bool "Set I2S0 using the number of channels"
22   default SND_I2SO_USE_DOUBLE_CHANNELS
23         config SND_I2SO_USE_EIGHT_CHANNELS
24                 tristate  "I2S0 use 8 channels"
25
26         config SND_I2SO_USE_DOUBLE_CHANNELS
27                 tristate  "I2S0 use 2 channels"
28 endchoice
29 endif
30
31 config SND_RK29_SOC_I2S_2CH
32         bool "Soc RK29 I2S 2 Channel support(I2S1)"
33         depends on SND_RK29_SOC_I2S && !ARCH_RK2928     
34         default y if (ARCH_RK3066B || ARCH_RK3188)
35         help
36                 This supports the use of the 2 Channel I2S interface on rk29 processors.
37
38 config SND_RK_SOC_I2S2_2CH
39         bool "Soc RK29 I2S 2 Channel support(I2S2)"
40         default n
41         depends on SND_RK29_SOC_I2S && ARCH_RK30 && !ARCH_RK2928 && !ARCH_RK3066B
42         help
43                 This supports the use of the 2 Channel I2S2 interface on rk30 processors.
44
45 config SND_ROCKCHIP_SPDIF
46         tristate
47         select SND_SOC_SPDIF
48 if      SND_RK29_SOC_I2S_2CH || SND_RK29_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH
49 choice
50   bool "Set i2s on DMA event mode"
51   default SND_I2S_DMA_EVENT_STATIC
52         config SND_I2S_DMA_EVENT_DYNAMIC
53                 tristate  "dynamic mode"
54
55         config SND_I2S_DMA_EVENT_STATIC
56                 tristate  "static mode"
57 endchoice
58 endif
59 config SND_RK_SOC_SPDIF
60         bool "spdif support for rockchip rk29 or rk30"
61         depends on SND_RK29_SOC 
62         select SND_ROCKCHIP_SPDIF
63         help
64           Say Y if you want to add support for SoC audio on rockchip
65           with the spdif.
66           
67 config SND_RK29_SOC_SPDIF
68         bool "Soc RK29 SPDIF support"
69         depends on SND_RK29_SOC
70         depends on SND_RK29_SOC_I2S
71         help
72                 This supports the use of SPDIF interface on rk29 processors
73                 
74 config SND_RK29_SOC_ES8323
75         tristate "SoC I2S Audio support for rockchip - ES8323"
76         depends on SND_RK29_SOC
77         select SND_RK29_SOC_I2S
78         select SND_SOC_ES8323
79         help
80           Say Y if you want to add support for SoC audio on rockchip
81           with the ES8323.
82
83 config SND_RK29_SOC_WM8988
84         tristate "SoC I2S Audio support for rockchip - WM8988"
85         depends on SND_RK29_SOC
86         select SND_RK29_SOC_I2S
87         select SND_SOC_WM8988
88         help
89           Say Y if you want to add support for SoC audio on rockchip
90           with the WM8988.
91
92 config SND_RK29_SOC_WM8900
93         tristate "SoC I2S Audio support for rockchip - WM8900"
94         depends on SND_RK29_SOC
95         select SND_RK29_SOC_I2S
96         select SND_SOC_WM8900
97         help
98           Say Y if you want to add support for SoC audio on rockchip
99           with the WM8900.
100 config SND_RK29_SOC_RT5621
101         tristate "SoC I2S Audio support for rockchip - rt5621"
102         depends on SND_RK29_SOC
103         select SND_RK29_SOC_I2S
104         select SND_SOC_RT5621
105         help
106           Say Y if you want to add support for SoC audio on rockchip
107           with the rt5621.
108 config SND_RK29_SOC_RT5623
109         tristate "SoC I2S Audio support for rockchip - rt5623"
110         depends on SND_RK29_SOC
111         select SND_RK29_SOC_I2S
112         select SND_SOC_RT5623
113         help
114           Say Y if you want to add support for SoC audio on rockchip
115           with the rt5623.
116 config SND_RK29_SOC_RT5631
117         tristate "SoC I2S Audio support for rockchip - RT5631"
118         depends on SND_RK29_SOC
119         select SND_RK29_SOC_I2S
120         select SND_SOC_RT5631
121         help
122           Say Y if you want to add support for SoC audio on rockchip
123           with the RT5631.
124           
125 config SND_RK29_SOC_RT5631_PHONE
126         tristate "SoC I2S Audio support for rockchip(phone) - RT5631"
127         depends on SND_RK29_SOC
128         select SND_RK29_SOC_I2S
129         select SND_SOC_RT5631_PHONE
130         help
131           Say Y if you want to add support for SoC audio on rockchip
132           with the RT5631.
133           Driver code to use on the phone or voice Tablet.
134           
135 config SND_RK29_SOC_RT5625
136         tristate "SoC I2S Audio support for rockchip - RT5625"
137         depends on SND_RK29_SOC
138         select SND_RK29_SOC_I2S
139         help
140           Say Y if you want to add support for SoC audio on rockchip
141           with the RT5625.
142
143 choice
144         depends on SND_RK29_SOC_RT5625
145         prompt  "RT5625 hardware select"
146
147         config SND_SOC_RT5625_SPK_FORM_SPKOUT
148         bool "spk from spkout"
149         select SND_SOC_RT5625
150         help
151           if your codec output hardware connect is spk from spkout, choose it
152
153         config SND_SOC_RT5625_SPK_FORM_HPOUT
154         bool "spk from hpout"
155         select SND_SOC_RT5625
156         help
157           if your codec output hardware connect is spk from spkout, choose it
158 endchoice
159
160 config SND_RK29_SOC_RT5640
161         tristate "SoC I2S Audio support for rockchip - RT5640(RT5642)"
162         depends on SND_RK29_SOC
163         select SND_RK29_SOC_I2S
164         select SND_SOC_RT5640
165         help
166            RT5640 is pin to pin as RT5642, but not have dsp function.
167           
168 config SND_RK29_SOC_RT3224
169         tristate "SoC I2S Audio support for rockchip - RT3224"
170         depends on SND_RK29_SOC
171         select SND_RK29_SOC_I2S
172         select SND_SOC_RT3224
173         help
174           RT3224 is pin to pin as RT3261, but not have dsp function.
175           
176 config SND_RK29_SOC_RT5639
177         tristate "SoC I2S Audio support for rockchip - RT5639"
178         depends on SND_RK29_SOC
179         select SND_RK29_SOC_I2S
180         select SND_SOC_RT5639
181         help
182           rt5639
183           
184 config SND_RK29_SOC_RT5616
185         tristate "SoC I2S Audio support for rockchip - RT5616"
186         depends on SND_RK29_SOC
187         select SND_RK29_SOC_I2S
188         select SND_SOC_RT5616
189         help
190           Say Y if you want to add support for SoC audio on rockchip
191           with the RT5616.
192           
193 config SND_RK29_SOC_RT3261
194         tristate "SoC I2S Audio support for rockchip - RT3261"
195         depends on SND_RK29_SOC
196         select SND_RK29_SOC_I2S
197         select SND_SOC_RT3261
198         help
199           Say Y if you want to add support for SoC audio on rockchip
200           with the RT3261.
201
202 config SND_RK29_SOC_WM8994
203         tristate "SoC I2S Audio support for rockchip - WM8994"
204         depends on SND_RK29_SOC && MFD_WM8994
205         select SND_RK29_SOC_I2S
206         select SND_SOC_WM8994
207         help
208           Say Y if you want to add support for SoC audio on rockchip
209           with the WM8994.
210
211 config SND_RK29_SOC_CS42L52
212         tristate "SoC I2S Audio support for rockchip - CS42L52"
213         depends on SND_RK29_SOC
214         select SND_RK29_SOC_I2S
215         select SND_SOC_CS42L52
216         help
217           Say Y if you want to add support for SoC audio on rockchip
218           with the CS42L52.
219
220 config SND_RK29_SOC_AIC3111
221         tristate "SoC I2S Audio support for rockchip - AIC3111"
222         depends on SND_RK29_SOC
223         select SND_RK29_SOC_I2S
224         select SND_SOC_TLV320AIC3111
225         help
226           Say Y if you want to add support for SoC audio on rockchip
227           with the AIC3111.
228
229 config SND_RK29_SOC_AIC3262
230         tristate "SoC I2S Audio support for rockchip - AIC3262"
231         depends on SND_RK29_SOC
232         select SND_RK29_SOC_I2S
233         select SND_SOC_TLV320AIC326X
234         help
235           Say Y if you want to add support for SoC audio on rockchip
236           with the AIC3262.
237
238 config SND_RK29_SOC_RK1000
239         tristate "SoC I2S Audio support for rockchip - RK1000"
240         depends on SND_RK29_SOC
241         select SND_RK29_SOC_I2S
242         select SND_SOC_RK1000
243         help
244           Say Y if you want to add support for SoC audio on rockchip
245           with the RK1000.
246
247 config SND_RK29_SOC_HDMI
248         tristate "SoC I2S Audio support for rockchip - HDMI"
249         depends on SND_RK29_SOC && HDMI_ITV
250         select SND_RK29_SOC_I2S
251         help
252           Say Y if you want to add support for SoC audio on rockchip
253           with the HDMI.
254
255 config SND_RK29_SOC_RK610
256         tristate "SoC I2S Audio support for rockchip - RK610"
257         depends on SND_RK29_SOC && MFD_RK610
258         select SND_RK29_SOC_I2S
259         select SND_SOC_RK610
260         help
261           Say Y if you want to add support for SoC audio on rockchip
262           with the RK610(JETTA).
263
264 config SND_RK29_SOC_RK616
265         tristate "SoC I2S Audio support for rockchip - RK616"
266         depends on SND_RK29_SOC && MFD_RK616
267         select SND_RK29_SOC_I2S
268         select SND_SOC_RK616
269         help
270           Say Y if you want to add support for SoC audio on rockchip
271           with the RK616(JETTA).
272
273 config SND_RK_SOC_RK2928
274         tristate "SoC I2S Audio support for rockchip - RK2928"
275         depends on SND_RK29_SOC && ARCH_RK2928
276         select SND_RK29_SOC_I2S
277         select SND_SOC_RK2928
278         select SND_RK29_CODEC_SOC_SLAVE
279         help
280           Say Y if you want to add support for SoC audio on rockchip
281           with the RK2928 internal codec.
282
283 if SND_RK29_SOC_I2S_2CH || SND_RK29_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH  
284 choice
285   bool "Set i2s type"
286   default SND_RK29_CODEC_SOC_SLAVE
287         config SND_RK29_CODEC_SOC_MASTER
288                 tristate  "Codec run in Master"
289
290         config SND_RK29_CODEC_SOC_SLAVE
291                 tristate  "Codec run in Slave"
292 endchoice
293
294 config ADJUST_VOL_BY_CODEC
295         bool "Adjust volume by codec"
296     default n
297     help
298           adjust volume by codec
299
300 config PHONE_INCALL_IS_SUSPEND
301         bool "Incalling Whether suspend codec"
302     default n
303     help
304                 set "y" phone incall status cannot into suspend codec
305
306 endif
307