1bc84a597cdf74c6242575e2e422bfedc65c0f99
[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_RT5631
77         tristate "SoC I2S Audio support for rockchip - RT5631"
78         depends on SND_RK29_SOC
79         select SND_RK29_SOC_I2S
80         select SND_SOC_RT5631
81         help
82           Say Y if you want to add support for SoC audio on rockchip
83           with the RT5631.
84
85 config SND_RK29_SOC_RT5625
86         tristate "SoC I2S Audio support for rockchip - RT5625"
87         depends on SND_RK29_SOC
88         select SND_RK29_SOC_I2S
89         help
90           Say Y if you want to add support for SoC audio on rockchip
91           with the RT5625.
92
93 choice
94         depends on SND_RK29_SOC_RT5625
95         prompt  "RT5625 hardware select"
96
97         config SND_SOC_RT5625_SPK_FORM_SPKOUT
98         bool "spk from spkout"
99         select SND_SOC_RT5625
100         help
101           if your codec output hardware connect is spk from spkout, choose it
102
103         config SND_SOC_RT5625_SPK_FORM_HPOUT
104         bool "spk from hpout"
105         select SND_SOC_RT5625
106         help
107           if your codec output hardware connect is spk from spkout, choose it
108 endchoice
109
110 config SND_RK29_SOC_WM8994
111         tristate "SoC I2S Audio support for rockchip - WM8994"
112         depends on SND_RK29_SOC && MFD_WM8994
113         select SND_RK29_SOC_I2S
114         select SND_SOC_WM8994
115         help
116           Say Y if you want to add support for SoC audio on rockchip
117           with the WM8994.
118
119 config SND_RK29_SOC_CS42L52
120         tristate "SoC I2S Audio support for rockchip - CS42L52"
121         depends on SND_RK29_SOC
122         select SND_RK29_SOC_I2S
123         select SND_SOC_CS42L52
124         help
125           Say Y if you want to add support for SoC audio on rockchip
126           with the CS42L52.
127
128 config SND_RK29_SOC_AIC3111
129         tristate "SoC I2S Audio support for rockchip - AIC3111"
130         depends on SND_RK29_SOC
131         select SND_RK29_SOC_I2S
132         select SND_SOC_TLV320AIC3111
133         help
134           Say Y if you want to add support for SoC audio on rockchip
135           with the AIC3111.
136
137 config SND_RK29_SOC_AIC3262
138         tristate "SoC I2S Audio support for rockchip - AIC3262"
139         depends on SND_RK29_SOC
140         select SND_RK29_SOC_I2S
141         select SND_SOC_TLV320AIC326X
142         help
143           Say Y if you want to add support for SoC audio on rockchip
144           with the AIC3262.
145
146 config SND_RK29_SOC_RK1000
147         tristate "SoC I2S Audio support for rockchip - RK1000"
148         depends on SND_RK29_SOC
149         select SND_RK29_SOC_I2S
150         select SND_SOC_RK1000
151         help
152           Say Y if you want to add support for SoC audio on rockchip
153           with the RK1000.
154
155 config SND_RK29_SOC_HDMI
156         tristate "SoC I2S Audio support for rockchip - HDMI"
157         depends on SND_RK29_SOC && HDMI_ITV
158         select SND_RK29_SOC_I2S
159         help
160           Say Y if you want to add support for SoC audio on rockchip
161           with the HDMI.
162
163 config SND_RK29_SOC_RK610
164         tristate "SoC I2S Audio support for rockchip - RK610"
165         depends on SND_RK29_SOC && MFD_RK610
166         select SND_RK29_SOC_I2S
167         select SND_SOC_RK610
168         help
169           Say Y if you want to add support for SoC audio on rockchip
170           with the RK610(JETTA).
171
172 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_CS42L52 || SND_RK29_SOC_AIC3111 || SND_RK29_SOC_HDMI || SND_RK29_SOC_RK610 || SND_RK29_SOC_AIC3262
173 choice
174   bool "Set i2s type"
175   default SND_RK29_CODEC_SOC_SLAVE
176         config SND_RK29_CODEC_SOC_MASTER
177                 tristate  "Codec run in Master"
178
179         config SND_RK29_CODEC_SOC_SLAVE
180                 tristate  "Codec run in Slave"
181 endchoice
182
183 config ADJUST_VOL_BY_CODEC
184         bool "Adjust volume by codec"
185     default n
186     help
187           adjust volume by codec
188
189 config PHONE_INCALL_IS_SUSPEND
190         bool "Incalling Whether suspend codec"
191     default n
192     help
193                 set "y" phone incall status cannot into suspend codec
194
195 endif
196