xref: /openbmc/linux/sound/soc/rockchip/Kconfig (revision 081068fd)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
24495c89fSJianqun Xuconfig SND_SOC_ROCKCHIP
34495c89fSJianqun Xu	tristate "ASoC support for Rockchip"
44495c89fSJianqun Xu	depends on COMPILE_TEST || ARCH_ROCKCHIP
54495c89fSJianqun Xu	help
64495c89fSJianqun Xu	  Say Y or M if you want to add support for codecs attached to
74495c89fSJianqun Xu	  the Rockchip SoCs' Audio interfaces. You will also need to
84495c89fSJianqun Xu	  select the audio interfaces to support below.
94495c89fSJianqun Xu
1038306afcSJianqunconfig SND_SOC_ROCKCHIP_I2S
119ce63dbdSJianqun	tristate "Rockchip I2S Device Driver"
122f4574ddSArnd Bergmann	depends on HAVE_CLK && SND_SOC_ROCKCHIP
138d213de7SAndreas Ruprecht	select SND_SOC_GENERIC_DMAENGINE_PCM
149ce63dbdSJianqun	help
159ce63dbdSJianqun	  Say Y or M if you want to add support for I2S driver for
169ce63dbdSJianqun	  Rockchip I2S device. The device supports upto maximum of
179ce63dbdSJianqun	  8 channels each for play and record.
1849bdb044Szhengxing
19*081068fdSNicolas Frattaroliconfig SND_SOC_ROCKCHIP_I2S_TDM
20*081068fdSNicolas Frattaroli	tristate "Rockchip I2S/TDM Device Driver"
21*081068fdSNicolas Frattaroli	depends on HAVE_CLK && SND_SOC_ROCKCHIP
22*081068fdSNicolas Frattaroli	select SND_SOC_GENERIC_DMAENGINE_PCM
23*081068fdSNicolas Frattaroli	help
24*081068fdSNicolas Frattaroli	  Say Y or M if you want to add support for the I2S/TDM driver for
25*081068fdSNicolas Frattaroli	  Rockchip I2S/TDM devices, found in Rockchip SoCs. These devices
26*081068fdSNicolas Frattaroli	  interface between the AHB bus and the I2S bus, and support up to a
27*081068fdSNicolas Frattaroli	  maximum of 8 channels each for playback and recording.
28*081068fdSNicolas Frattaroli
29*081068fdSNicolas Frattaroli
30fc05a5b2SSugar Zhangconfig SND_SOC_ROCKCHIP_PDM
31fc05a5b2SSugar Zhang	tristate "Rockchip PDM Controller Driver"
322f4574ddSArnd Bergmann	depends on HAVE_CLK && SND_SOC_ROCKCHIP
33fc05a5b2SSugar Zhang	select SND_SOC_GENERIC_DMAENGINE_PCM
3441d92e0cSArnd Bergmann	select RATIONAL
35fc05a5b2SSugar Zhang	help
36fc05a5b2SSugar Zhang	  Say Y or M if you want to add support for PDM driver for
37fc05a5b2SSugar Zhang	  Rockchip PDM Controller. The Controller supports up to maximum of
38fc05a5b2SSugar Zhang	  8 channels record.
39fc05a5b2SSugar Zhang
40f874b80eSSjoerd Simonsconfig SND_SOC_ROCKCHIP_SPDIF
41f874b80eSSjoerd Simons	tristate "Rockchip SPDIF Device Driver"
422f4574ddSArnd Bergmann	depends on HAVE_CLK && SND_SOC_ROCKCHIP
43f874b80eSSjoerd Simons	select SND_SOC_GENERIC_DMAENGINE_PCM
44f874b80eSSjoerd Simons	help
45f874b80eSSjoerd Simons	  Say Y or M if you want to add support for SPDIF driver for
46f874b80eSSjoerd Simons	  Rockchip SPDIF transceiver device.
47f874b80eSSjoerd Simons
4849bdb044Szhengxingconfig SND_SOC_ROCKCHIP_MAX98090
4949bdb044Szhengxing	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
502f4574ddSArnd Bergmann	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
5149bdb044Szhengxing	select SND_SOC_ROCKCHIP_I2S
5249bdb044Szhengxing	select SND_SOC_MAX98090
5349bdb044Szhengxing	select SND_SOC_TS3A227E
54bf2f64eaSCheng-Yi Chiang	select SND_SOC_HDMI_CODEC
5549bdb044Szhengxing	help
5649bdb044Szhengxing	  Say Y or M here if you want to add support for SoC audio on Rockchip
57bf2f64eaSCheng-Yi Chiang	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
5886059653Szhengxing
5986059653Szhengxingconfig SND_SOC_ROCKCHIP_RT5645
6086059653Szhengxing	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
612f4574ddSArnd Bergmann	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
6286059653Szhengxing	select SND_SOC_ROCKCHIP_I2S
6386059653Szhengxing	select SND_SOC_RT5645
6486059653Szhengxing	help
6586059653Szhengxing	  Say Y or M here if you want to add support for SoC audio on Rockchip
6686059653Szhengxing	  boards using the RT5645/RT5650 codec, such as Veyron.
67c6eac8a3SXing Zheng
68eaae2ea7SRomain Perierconfig SND_SOC_RK3288_HDMI_ANALOG
69eaae2ea7SRomain Perier	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
702f4574ddSArnd Bergmann	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
71eaae2ea7SRomain Perier	select SND_SOC_ROCKCHIP_I2S
72eaae2ea7SRomain Perier	select SND_SOC_HDMI_CODEC
73b1d0db06SEzequiel Garcia	select SND_SOC_ES8328_I2C
74b1d0db06SEzequiel Garcia	select SND_SOC_ES8328_SPI if SPI_MASTER
75b1d0db06SEzequiel Garcia	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
76eaae2ea7SRomain Perier	help
77eaae2ea7SRomain Perier	  Say Y or M here if you want to add support for SoC audio on Rockchip
78eaae2ea7SRomain Perier	  RK3288 boards using an analog output and the built-in HDMI audio.
79eaae2ea7SRomain Perier
80c6eac8a3SXing Zhengconfig SND_SOC_RK3399_GRU_SOUND
81c6eac8a3SXing Zheng	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
822f4574ddSArnd Bergmann	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK && SPI
83c6eac8a3SXing Zheng	select SND_SOC_ROCKCHIP_I2S
84c6eac8a3SXing Zheng	select SND_SOC_MAX98357A
85c6eac8a3SXing Zheng	select SND_SOC_RT5514
86c6eac8a3SXing Zheng	select SND_SOC_DA7219
87e5abe959SXing Zheng	select SND_SOC_RT5514_SPI
883313faf1SJeffy Chen	select SND_SOC_HDMI_CODEC
89626d84dbSJeffy Chen	select SND_SOC_DMIC
90c6eac8a3SXing Zheng	help
91c6eac8a3SXing Zheng	  Say Y or M here if you want to add support multiple codecs for SoC
92c6eac8a3SXing Zheng	  audio on Rockchip RK3399 GRU boards.
93