rt3261: add first version, playback is ok.
[firefly-linux-kernel-4.4.55.git] / sound / soc / rk29 / Kconfig
1 config SND_RK29_SOC
2         tristate "SoC Audio for the rockchip RK29/RK30 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
16         help
17                 This supports the use of the 8 Channel I2S interface on rk29 processors.
18
19 config SND_RK29_SOC_I2S_2CH
20         bool "Soc RK29 I2S 2 Channel support(I2S1)"
21         default n
22         depends on SND_RK29_SOC_I2S
23         help
24                 This supports the use of the 2 Channel I2S interface on rk29 processors.
25
26 config SND_RK_SOC_I2S2_2CH
27         bool "Soc RK29 I2S 2 Channel support(I2S2)"
28         default n
29         depends on SND_RK29_SOC_I2S && ARCH_RK30
30         help
31                 This supports the use of the 2 Channel I2S2 interface on rk30 processors.
32
33 if      SND_RK29_SOC_I2S_2CH || SND_RK29_SOC_I2S_8CH || SND_RK_SOC_I2S2_2CH
34 choice
35   bool "Set i2s on DMA event mode"
36   default SND_I2S_DMA_EVENT_STATIC
37         config SND_I2S_DMA_EVENT_DYNAMIC
38                 tristate  "dynamic mode"
39
40         config SND_I2S_DMA_EVENT_STATIC
41                 tristate  "static mode"
42 endchoice
43 endif
44
45 config SND_RK29_SOC_SPDIF
46         bool "Soc RK29 SPDIF support"
47         depends on SND_RK29_SOC
48         depends on SND_RK29_SOC_I2S
49         help
50                 This supports the use of SPDIF interface on rk29 processors
51 config SND_RK29_SOC_WM8988
52         tristate "SoC I2S Audio support for rockchip - WM8988"
53         depends on SND_RK29_SOC
54         select SND_RK29_SOC_I2S
55         select SND_SOC_WM8988
56         help
57           Say Y if you want to add support for SoC audio on rockchip
58           with the WM8988.
59
60 config SND_RK29_SOC_WM8900
61         tristate "SoC I2S Audio support for rockchip - WM8900"
62         depends on SND_RK29_SOC
63         select SND_RK29_SOC_I2S
64         select SND_SOC_WM8900
65         help
66           Say Y if you want to add support for SoC audio on rockchip
67           with the WM8900.
68 config SND_RK29_SOC_RT5621
69         tristate "SoC I2S Audio support for rockchip - rt5621"
70         depends on SND_RK29_SOC
71         select SND_RK29_SOC_I2S
72         select SND_SOC_RT5621
73         help
74           Say Y if you want to add support for SoC audio on rockchip
75           with the rt5621.
76 config SND_RK29_SOC_RT5623
77         tristate "SoC I2S Audio support for rockchip - rt5623"
78         depends on SND_RK29_SOC
79         select SND_RK29_SOC_I2S
80         select SND_SOC_RT5623
81         help
82           Say Y if you want to add support for SoC audio on rockchip
83           with the rt5623.
84 config SND_RK29_SOC_RT5631
85         tristate "SoC I2S Audio support for rockchip - RT5631"
86         depends on SND_RK29_SOC
87         select SND_RK29_SOC_I2S
88         select SND_SOC_RT5631
89         help
90           Say Y if you want to add support for SoC audio on rockchip
91           with the RT5631.
92
93 config SND_RK29_SOC_RT5625
94         tristate "SoC I2S Audio support for rockchip - RT5625"
95         depends on SND_RK29_SOC
96         select SND_RK29_SOC_I2S
97         help
98           Say Y if you want to add support for SoC audio on rockchip
99           with the RT5625.
100
101 choice
102         depends on SND_RK29_SOC_RT5625
103         prompt  "RT5625 hardware select"
104
105         config SND_SOC_RT5625_SPK_FORM_SPKOUT
106         bool "spk from spkout"
107         select SND_SOC_RT5625
108         help
109           if your codec output hardware connect is spk from spkout, choose it
110
111         config SND_SOC_RT5625_SPK_FORM_HPOUT
112         bool "spk from hpout"
113         select SND_SOC_RT5625
114         help
115           if your codec output hardware connect is spk from spkout, choose it
116 endchoice
117
118 config SND_RK29_SOC_RT3261
119         tristate "SoC I2S Audio support for rockchip - RT3261"
120         depends on SND_RK29_SOC
121         select SND_RK29_SOC_I2S
122         select SND_SOC_RT3261
123         help
124           Say Y if you want to add support for SoC audio on rockchip
125           with the RT3261.
126
127 config SND_RK29_SOC_WM8994
128         tristate "SoC I2S Audio support for rockchip - WM8994"
129         depends on SND_RK29_SOC && MFD_WM8994
130         select SND_RK29_SOC_I2S
131         select SND_SOC_WM8994
132         help
133           Say Y if you want to add support for SoC audio on rockchip
134           with the WM8994.
135
136 config SND_RK29_SOC_CS42L52
137         tristate "SoC I2S Audio support for rockchip - CS42L52"
138         depends on SND_RK29_SOC
139         select SND_RK29_SOC_I2S
140         select SND_SOC_CS42L52
141         help
142           Say Y if you want to add support for SoC audio on rockchip
143           with the CS42L52.
144
145 config SND_RK29_SOC_AIC3111
146         tristate "SoC I2S Audio support for rockchip - AIC3111"
147         depends on SND_RK29_SOC
148         select SND_RK29_SOC_I2S
149         select SND_SOC_TLV320AIC3111
150         help
151           Say Y if you want to add support for SoC audio on rockchip
152           with the AIC3111.
153
154 config SND_RK29_SOC_AIC3262
155         tristate "SoC I2S Audio support for rockchip - AIC3262"
156         depends on SND_RK29_SOC
157         select SND_RK29_SOC_I2S
158         select SND_SOC_TLV320AIC326X
159         help
160           Say Y if you want to add support for SoC audio on rockchip
161           with the AIC3262.
162
163 config SND_RK29_SOC_RK1000
164         tristate "SoC I2S Audio support for rockchip - RK1000"
165         depends on SND_RK29_SOC
166         select SND_RK29_SOC_I2S
167         select SND_SOC_RK1000
168         help
169           Say Y if you want to add support for SoC audio on rockchip
170           with the RK1000.
171
172 config SND_RK29_SOC_HDMI
173         tristate "SoC I2S Audio support for rockchip - HDMI"
174         depends on SND_RK29_SOC && HDMI_ITV
175         select SND_RK29_SOC_I2S
176         help
177           Say Y if you want to add support for SoC audio on rockchip
178           with the HDMI.
179
180 config SND_RK29_SOC_RK610
181         tristate "SoC I2S Audio support for rockchip - RK610"
182         depends on SND_RK29_SOC && MFD_RK610
183         select SND_RK29_SOC_I2S
184         select SND_SOC_RK610
185         help
186           Say Y if you want to add support for SoC audio on rockchip
187           with the RK610(JETTA).
188
189 if SND_RK29_SOC_WM8988 || SND_RK29_SOC_RK1000 || SND_RK29_SOC_WM8994 || SND_RK29_SOC_WM8900 || SND_RK29_SOC_RT5621 || SND_RK29_SOC_RT5631 || SND_RK29_SOC_RT5625 || SND_RK29_SOC_RT3261 || SND_RK29_SOC_CS42L52 || SND_RK29_SOC_AIC3111 || SND_RK29_SOC_HDMI || SND_RK29_SOC_RK610 || SND_RK29_SOC_AIC3262
190 choice
191   bool "Set i2s type"
192   default SND_RK29_CODEC_SOC_SLAVE
193         config SND_RK29_CODEC_SOC_MASTER
194                 tristate  "Codec run in Master"
195
196         config SND_RK29_CODEC_SOC_SLAVE
197                 tristate  "Codec run in Slave"
198 endchoice
199
200 config ADJUST_VOL_BY_CODEC
201         bool "Adjust volume by codec"
202     default n
203     help
204           adjust volume by codec
205
206 config PHONE_INCALL_IS_SUSPEND
207         bool "Incalling Whether suspend codec"
208     default n
209     help
210                 set "y" phone incall status cannot into suspend codec
211
212 endif
213