xref: /linux/sound/soc/rockchip/Kconfig (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2*cae3cc43SKuninori Morimotomenu "Rockchip"
34495c89fSJianqun Xu	depends on COMPILE_TEST || ARCH_ROCKCHIP
4*cae3cc43SKuninori Morimoto	depends on HAVE_CLK
54495c89fSJianqun Xu
638306afcSJianqunconfig SND_SOC_ROCKCHIP_I2S
79ce63dbdSJianqun	tristate "Rockchip I2S Device Driver"
88d213de7SAndreas Ruprecht	select SND_SOC_GENERIC_DMAENGINE_PCM
99ce63dbdSJianqun	help
109ce63dbdSJianqun	  Say Y or M if you want to add support for I2S driver for
119ce63dbdSJianqun	  Rockchip I2S device. The device supports up to maximum of
129ce63dbdSJianqun	  8 channels each for play and record.
1349bdb044Szhengxing
14081068fdSNicolas Frattaroliconfig SND_SOC_ROCKCHIP_I2S_TDM
15081068fdSNicolas Frattaroli	tristate "Rockchip I2S/TDM Device Driver"
16081068fdSNicolas Frattaroli	select SND_SOC_GENERIC_DMAENGINE_PCM
17081068fdSNicolas Frattaroli	help
18081068fdSNicolas Frattaroli	  Say Y or M if you want to add support for the I2S/TDM driver for
19081068fdSNicolas Frattaroli	  Rockchip I2S/TDM devices, found in Rockchip SoCs. These devices
20081068fdSNicolas Frattaroli	  interface between the AHB bus and the I2S bus, and support up to a
21081068fdSNicolas Frattaroli	  maximum of 8 channels each for playback and recording.
22081068fdSNicolas Frattaroli
23081068fdSNicolas Frattaroli
24fc05a5b2SSugar Zhangconfig SND_SOC_ROCKCHIP_PDM
25fc05a5b2SSugar Zhang	tristate "Rockchip PDM Controller Driver"
26fc05a5b2SSugar Zhang	select SND_SOC_GENERIC_DMAENGINE_PCM
2741d92e0cSArnd Bergmann	select RATIONAL
28fc05a5b2SSugar Zhang	help
29fc05a5b2SSugar Zhang	  Say Y or M if you want to add support for PDM driver for
30fc05a5b2SSugar Zhang	  Rockchip PDM Controller. The Controller supports up to maximum of
31fc05a5b2SSugar Zhang	  8 channels record.
32fc05a5b2SSugar Zhang
33cc78d1eaSNicolas Frattaroliconfig SND_SOC_ROCKCHIP_SAI
34cc78d1eaSNicolas Frattaroli	tristate "Rockchip SAI Controller Driver"
35cc78d1eaSNicolas Frattaroli	select SND_SOC_GENERIC_DMAENGINE_PCM
36cc78d1eaSNicolas Frattaroli	help
37cc78d1eaSNicolas Frattaroli	  Say Y or M if you want to add support for the Rockchip Serial Audio
38cc78d1eaSNicolas Frattaroli	  Interface controller found on Rockchip SoCs such as the RK3576. The
39cc78d1eaSNicolas Frattaroli	  controller may support both playback and recording, with up to 4 lanes
40cc78d1eaSNicolas Frattaroli	  for each and up to 128 channels per lane in TDM mode.
41cc78d1eaSNicolas Frattaroli
42f874b80eSSjoerd Simonsconfig SND_SOC_ROCKCHIP_SPDIF
43f874b80eSSjoerd Simons	tristate "Rockchip SPDIF Device Driver"
44f874b80eSSjoerd Simons	select SND_SOC_GENERIC_DMAENGINE_PCM
45f874b80eSSjoerd Simons	help
46f874b80eSSjoerd Simons	  Say Y or M if you want to add support for SPDIF driver for
47f874b80eSSjoerd Simons	  Rockchip SPDIF transceiver device.
48f874b80eSSjoerd Simons
4949bdb044Szhengxingconfig SND_SOC_ROCKCHIP_MAX98090
5049bdb044Szhengxing	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
51*cae3cc43SKuninori Morimoto	depends on I2C && GPIOLIB
5249bdb044Szhengxing	select SND_SOC_ROCKCHIP_I2S
5349bdb044Szhengxing	select SND_SOC_MAX98090
5449bdb044Szhengxing	select SND_SOC_TS3A227E
55bf2f64eaSCheng-Yi Chiang	select SND_SOC_HDMI_CODEC
5649bdb044Szhengxing	help
5749bdb044Szhengxing	  Say Y or M here if you want to add support for SoC audio on Rockchip
58bf2f64eaSCheng-Yi Chiang	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
5986059653Szhengxing
6086059653Szhengxingconfig SND_SOC_ROCKCHIP_RT5645
6186059653Szhengxing	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
62*cae3cc43SKuninori Morimoto	depends on I2C && GPIOLIB
6386059653Szhengxing	select SND_SOC_ROCKCHIP_I2S
6486059653Szhengxing	select SND_SOC_RT5645
6586059653Szhengxing	help
6686059653Szhengxing	  Say Y or M here if you want to add support for SoC audio on Rockchip
6786059653Szhengxing	  boards using the RT5645/RT5650 codec, such as Veyron.
68c6eac8a3SXing Zheng
69eaae2ea7SRomain Perierconfig SND_SOC_RK3288_HDMI_ANALOG
70eaae2ea7SRomain Perier	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
71*cae3cc43SKuninori Morimoto	depends on I2C && GPIOLIB
72eaae2ea7SRomain Perier	select SND_SOC_ROCKCHIP_I2S
73eaae2ea7SRomain Perier	select SND_SOC_HDMI_CODEC
74b1d0db06SEzequiel Garcia	select SND_SOC_ES8328_I2C
75b1d0db06SEzequiel Garcia	select SND_SOC_ES8328_SPI if SPI_MASTER
76b1d0db06SEzequiel Garcia	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
77eaae2ea7SRomain Perier	help
78eaae2ea7SRomain Perier	  Say Y or M here if you want to add support for SoC audio on Rockchip
79eaae2ea7SRomain Perier	  RK3288 boards using an analog output and the built-in HDMI audio.
80eaae2ea7SRomain Perier
81c6eac8a3SXing Zhengconfig SND_SOC_RK3399_GRU_SOUND
82c6eac8a3SXing Zheng	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
83*cae3cc43SKuninori Morimoto	depends on I2C && GPIOLIB && SPI
84c6eac8a3SXing Zheng	select SND_SOC_ROCKCHIP_I2S
85c6eac8a3SXing Zheng	select SND_SOC_MAX98357A
86c6eac8a3SXing Zheng	select SND_SOC_RT5514
87c6eac8a3SXing Zheng	select SND_SOC_DA7219
88e5abe959SXing Zheng	select SND_SOC_RT5514_SPI
893313faf1SJeffy Chen	select SND_SOC_HDMI_CODEC
90626d84dbSJeffy Chen	select SND_SOC_DMIC
91c6eac8a3SXing Zheng	help
92c6eac8a3SXing Zheng	  Say Y or M here if you want to add support multiple codecs for SoC
93c6eac8a3SXing Zheng	  audio on Rockchip RK3399 GRU boards.
94*cae3cc43SKuninori Morimoto
95*cae3cc43SKuninori Morimotoendmenu
96