xref: /openbmc/linux/sound/soc/rockchip/Kconfig (revision ec8f24b7)
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"
128d213de7SAndreas Ruprecht	depends on CLKDEV_LOOKUP && 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
19fc05a5b2SSugar Zhangconfig SND_SOC_ROCKCHIP_PDM
20fc05a5b2SSugar Zhang	tristate "Rockchip PDM Controller Driver"
21fc05a5b2SSugar Zhang	depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
22fc05a5b2SSugar Zhang	select SND_SOC_GENERIC_DMAENGINE_PCM
23fc05a5b2SSugar Zhang	help
24fc05a5b2SSugar Zhang	  Say Y or M if you want to add support for PDM driver for
25fc05a5b2SSugar Zhang	  Rockchip PDM Controller. The Controller supports up to maximum of
26fc05a5b2SSugar Zhang	  8 channels record.
27fc05a5b2SSugar Zhang
28f874b80eSSjoerd Simonsconfig SND_SOC_ROCKCHIP_SPDIF
29f874b80eSSjoerd Simons	tristate "Rockchip SPDIF Device Driver"
30f874b80eSSjoerd Simons	depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
31f874b80eSSjoerd Simons	select SND_SOC_GENERIC_DMAENGINE_PCM
32f874b80eSSjoerd Simons	help
33f874b80eSSjoerd Simons	  Say Y or M if you want to add support for SPDIF driver for
34f874b80eSSjoerd Simons	  Rockchip SPDIF transceiver device.
35f874b80eSSjoerd Simons
3649bdb044Szhengxingconfig SND_SOC_ROCKCHIP_MAX98090
3749bdb044Szhengxing	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
389d705947SAxel Lin	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
3949bdb044Szhengxing	select SND_SOC_ROCKCHIP_I2S
4049bdb044Szhengxing	select SND_SOC_MAX98090
4149bdb044Szhengxing	select SND_SOC_TS3A227E
4249bdb044Szhengxing	help
4349bdb044Szhengxing	  Say Y or M here if you want to add support for SoC audio on Rockchip
4449bdb044Szhengxing	  boards using the MAX98090 codec, such as Veyron.
4586059653Szhengxing
4686059653Szhengxingconfig SND_SOC_ROCKCHIP_RT5645
4786059653Szhengxing	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
489d705947SAxel Lin	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
4986059653Szhengxing	select SND_SOC_ROCKCHIP_I2S
5086059653Szhengxing	select SND_SOC_RT5645
5186059653Szhengxing	help
5286059653Szhengxing	  Say Y or M here if you want to add support for SoC audio on Rockchip
5386059653Szhengxing	  boards using the RT5645/RT5650 codec, such as Veyron.
54c6eac8a3SXing Zheng
55eaae2ea7SRomain Perierconfig SND_SOC_RK3288_HDMI_ANALOG
56eaae2ea7SRomain Perier	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
57eaae2ea7SRomain Perier	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
58eaae2ea7SRomain Perier	select SND_SOC_ROCKCHIP_I2S
59eaae2ea7SRomain Perier	select SND_SOC_HDMI_CODEC
60b1d0db06SEzequiel Garcia	select SND_SOC_ES8328_I2C
61b1d0db06SEzequiel Garcia	select SND_SOC_ES8328_SPI if SPI_MASTER
62b1d0db06SEzequiel Garcia	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
63eaae2ea7SRomain Perier	help
64eaae2ea7SRomain Perier	  Say Y or M here if you want to add support for SoC audio on Rockchip
65eaae2ea7SRomain Perier	  RK3288 boards using an analog output and the built-in HDMI audio.
66eaae2ea7SRomain Perier
67c6eac8a3SXing Zhengconfig SND_SOC_RK3399_GRU_SOUND
68c6eac8a3SXing Zheng	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
69f506513aSArnd Bergmann	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP && SPI
70c6eac8a3SXing Zheng	select SND_SOC_ROCKCHIP_I2S
71c6eac8a3SXing Zheng	select SND_SOC_MAX98357A
72c6eac8a3SXing Zheng	select SND_SOC_RT5514
73c6eac8a3SXing Zheng	select SND_SOC_DA7219
74e5abe959SXing Zheng	select SND_SOC_RT5514_SPI
753313faf1SJeffy Chen	select SND_SOC_HDMI_CODEC
76626d84dbSJeffy Chen	select SND_SOC_DMIC
77c6eac8a3SXing Zheng	help
78c6eac8a3SXing Zheng	  Say Y or M here if you want to add support multiple codecs for SoC
79c6eac8a3SXing Zheng	  audio on Rockchip RK3399 GRU boards.
80