162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP
362306a36Sopenharmony_ci	tristate "ASoC support for Rockchip"
462306a36Sopenharmony_ci	depends on COMPILE_TEST || ARCH_ROCKCHIP
562306a36Sopenharmony_ci	help
662306a36Sopenharmony_ci	  Say Y or M if you want to add support for codecs attached to
762306a36Sopenharmony_ci	  the Rockchip SoCs' Audio interfaces. You will also need to
862306a36Sopenharmony_ci	  select the audio interfaces to support below.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP_I2S
1162306a36Sopenharmony_ci	tristate "Rockchip I2S Device Driver"
1262306a36Sopenharmony_ci	depends on HAVE_CLK && SND_SOC_ROCKCHIP
1362306a36Sopenharmony_ci	select SND_SOC_GENERIC_DMAENGINE_PCM
1462306a36Sopenharmony_ci	help
1562306a36Sopenharmony_ci	  Say Y or M if you want to add support for I2S driver for
1662306a36Sopenharmony_ci	  Rockchip I2S device. The device supports up to maximum of
1762306a36Sopenharmony_ci	  8 channels each for play and record.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP_I2S_TDM
2062306a36Sopenharmony_ci	tristate "Rockchip I2S/TDM Device Driver"
2162306a36Sopenharmony_ci	depends on HAVE_CLK && SND_SOC_ROCKCHIP
2262306a36Sopenharmony_ci	select SND_SOC_GENERIC_DMAENGINE_PCM
2362306a36Sopenharmony_ci	help
2462306a36Sopenharmony_ci	  Say Y or M if you want to add support for the I2S/TDM driver for
2562306a36Sopenharmony_ci	  Rockchip I2S/TDM devices, found in Rockchip SoCs. These devices
2662306a36Sopenharmony_ci	  interface between the AHB bus and the I2S bus, and support up to a
2762306a36Sopenharmony_ci	  maximum of 8 channels each for playback and recording.
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP_PDM
3162306a36Sopenharmony_ci	tristate "Rockchip PDM Controller Driver"
3262306a36Sopenharmony_ci	depends on HAVE_CLK && SND_SOC_ROCKCHIP
3362306a36Sopenharmony_ci	select SND_SOC_GENERIC_DMAENGINE_PCM
3462306a36Sopenharmony_ci	select RATIONAL
3562306a36Sopenharmony_ci	help
3662306a36Sopenharmony_ci	  Say Y or M if you want to add support for PDM driver for
3762306a36Sopenharmony_ci	  Rockchip PDM Controller. The Controller supports up to maximum of
3862306a36Sopenharmony_ci	  8 channels record.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP_SPDIF
4162306a36Sopenharmony_ci	tristate "Rockchip SPDIF Device Driver"
4262306a36Sopenharmony_ci	depends on HAVE_CLK && SND_SOC_ROCKCHIP
4362306a36Sopenharmony_ci	select SND_SOC_GENERIC_DMAENGINE_PCM
4462306a36Sopenharmony_ci	help
4562306a36Sopenharmony_ci	  Say Y or M if you want to add support for SPDIF driver for
4662306a36Sopenharmony_ci	  Rockchip SPDIF transceiver device.
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP_MAX98090
4962306a36Sopenharmony_ci	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
5062306a36Sopenharmony_ci	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
5162306a36Sopenharmony_ci	select SND_SOC_ROCKCHIP_I2S
5262306a36Sopenharmony_ci	select SND_SOC_MAX98090
5362306a36Sopenharmony_ci	select SND_SOC_TS3A227E
5462306a36Sopenharmony_ci	select SND_SOC_HDMI_CODEC
5562306a36Sopenharmony_ci	help
5662306a36Sopenharmony_ci	  Say Y or M here if you want to add support for SoC audio on Rockchip
5762306a36Sopenharmony_ci	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ciconfig SND_SOC_ROCKCHIP_RT5645
6062306a36Sopenharmony_ci	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
6162306a36Sopenharmony_ci	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
6262306a36Sopenharmony_ci	select SND_SOC_ROCKCHIP_I2S
6362306a36Sopenharmony_ci	select SND_SOC_RT5645
6462306a36Sopenharmony_ci	help
6562306a36Sopenharmony_ci	  Say Y or M here if you want to add support for SoC audio on Rockchip
6662306a36Sopenharmony_ci	  boards using the RT5645/RT5650 codec, such as Veyron.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciconfig SND_SOC_RK3288_HDMI_ANALOG
6962306a36Sopenharmony_ci	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
7062306a36Sopenharmony_ci	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
7162306a36Sopenharmony_ci	select SND_SOC_ROCKCHIP_I2S
7262306a36Sopenharmony_ci	select SND_SOC_HDMI_CODEC
7362306a36Sopenharmony_ci	select SND_SOC_ES8328_I2C
7462306a36Sopenharmony_ci	select SND_SOC_ES8328_SPI if SPI_MASTER
7562306a36Sopenharmony_ci	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
7662306a36Sopenharmony_ci	help
7762306a36Sopenharmony_ci	  Say Y or M here if you want to add support for SoC audio on Rockchip
7862306a36Sopenharmony_ci	  RK3288 boards using an analog output and the built-in HDMI audio.
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciconfig SND_SOC_RK3399_GRU_SOUND
8162306a36Sopenharmony_ci	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
8262306a36Sopenharmony_ci	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK && SPI
8362306a36Sopenharmony_ci	select SND_SOC_ROCKCHIP_I2S
8462306a36Sopenharmony_ci	select SND_SOC_MAX98357A
8562306a36Sopenharmony_ci	select SND_SOC_RT5514
8662306a36Sopenharmony_ci	select SND_SOC_DA7219
8762306a36Sopenharmony_ci	select SND_SOC_RT5514_SPI
8862306a36Sopenharmony_ci	select SND_SOC_HDMI_CODEC
8962306a36Sopenharmony_ci	select SND_SOC_DMIC
9062306a36Sopenharmony_ci	help
9162306a36Sopenharmony_ci	  Say Y or M here if you want to add support multiple codecs for SoC
9262306a36Sopenharmony_ci	  audio on Rockchip RK3399 GRU boards.
93