^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) tristate "ASoC support for Rockchip"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) depends on COMPILE_TEST || ARCH_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Say Y or M if you want to add support for codecs attached to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) the Rockchip SoCs' Audio interfaces. You will also need to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) select the audio interfaces to support below.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) config SND_SOC_ROCKCHIP_DLP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) tristate "Rockchip Digital Loopback Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) depends on SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Say Y or M if you want to add support for DLP driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Rockchip DMA-Based Digital Loopback.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) config SND_SOC_ROCKCHIP_I2S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) tristate "Rockchip I2S Device Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) select SND_SOC_GENERIC_DMAENGINE_PCM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Say Y or M if you want to add support for I2S driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Rockchip I2S device. The device supports upto maximum of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 8 channels each for play and record.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) config SND_SOC_ROCKCHIP_I2S_TDM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) tristate "Rockchip I2S/TDM Device Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) select SND_SOC_GENERIC_DMAENGINE_PCM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Say Y or M if you want to add support for I2S/TDM driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Rockchip I2S/TDM device. The device supports up to maximum of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 8 channels each for play and record.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) config SND_SOC_ROCKCHIP_MULTI_DAIS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) tristate "Rockchip Multi-DAIS Device Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) Say Y or M if you want to add support for Multi-dais driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Rockchip.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) config SND_SOC_ROCKCHIP_PDM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) tristate "Rockchip PDM Controller Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) select SND_SOC_GENERIC_DMAENGINE_PCM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) select RATIONAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) Say Y or M if you want to add support for PDM driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Rockchip PDM Controller. The Controller supports up to maximum of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 8 channels record.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) config SND_SOC_ROCKCHIP_SPDIF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) tristate "Rockchip SPDIF Device Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) select SND_PCM_IEC958
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) select SND_SOC_GENERIC_DMAENGINE_PCM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) Say Y or M if you want to add support for SPDIF driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) Rockchip SPDIF transceiver device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) config SND_SOC_ROCKCHIP_SPDIFRX
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) tristate "Rockchip SPDIFRX Device Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) select SND_SOC_GENERIC_DMAENGINE_PCM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) Say Y or M if you want to add support for SPDIFRX driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) Rockchip SPDIF receiver device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) config SND_SOC_ROCKCHIP_VAD
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) tristate "Rockchip Voice Activity Detection Driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) Say Y or M if you want to add support for VAD driver for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) Rockchip VAD device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) config SND_SOC_ROCKCHIP_MAX98090
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) tristate "ASoC support for Rockchip boards using a MAX98090 codec"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) select SND_SOC_ROCKCHIP_I2S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) select SND_SOC_MAX98090
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) select SND_SOC_TS3A227E
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) select SND_SOC_HDMI_CODEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) Say Y or M here if you want to add support for SoC audio on Rockchip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) boards using the MAX98090 codec and HDMI codec, such as Veyron.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) config SND_SOC_ROCKCHIP_MULTICODECS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) tristate "ASoC support for Rockchip multicodecs"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) depends on SND_SOC_ROCKCHIP && CLKDEV_LOOKUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) Say Y or M here if you want to add support for SoC audio on Rockchip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) boards using multicodecs, such as RK3308 boards.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) config SND_SOC_ROCKCHIP_RT5645
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) select SND_SOC_ROCKCHIP_I2S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) select SND_SOC_RT5645
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) Say Y or M here if you want to add support for SoC audio on Rockchip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) boards using the RT5645/RT5650 codec, such as Veyron.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) config SND_SOC_ROCKCHIP_HDMI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) tristate "ASoC support for Rockchip HDMI audio"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) depends on SND_SOC_ROCKCHIP && CLKDEV_LOOKUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) select SND_SOC_HDMI_CODEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) Say Y or M here if you want to add support for SoC audio on Rockchip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) boards using built-in HDMI or external HDMI.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) config SND_SOC_RK3288_HDMI_ANALOG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) select SND_SOC_ROCKCHIP_I2S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) select SND_SOC_HDMI_CODEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) select SND_SOC_ES8328_I2C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) select SND_SOC_ES8328_SPI if SPI_MASTER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) Say Y or M here if you want to add support for SoC audio on Rockchip
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) RK3288 boards using an analog output and the built-in HDMI audio.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) config SND_SOC_RK3399_GRU_SOUND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP && SPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) select SND_SOC_ROCKCHIP_I2S
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) select SND_SOC_MAX98357A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) select SND_SOC_RT5514
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) select SND_SOC_DA7219
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) select SND_SOC_RT5514_SPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) select SND_SOC_HDMI_CODEC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) select SND_SOC_DMIC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) Say Y or M here if you want to add support multiple codecs for SoC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) audio on Rockchip RK3399 GRU boards.