xref: /openbmc/linux/sound/soc/rockchip/Kconfig (revision da60fbe7)
1# SPDX-License-Identifier: GPL-2.0-only
2config SND_SOC_ROCKCHIP
3	tristate "ASoC support for Rockchip"
4	depends on COMPILE_TEST || ARCH_ROCKCHIP
5	help
6	  Say Y or M if you want to add support for codecs attached to
7	  the Rockchip SoCs' Audio interfaces. You will also need to
8	  select the audio interfaces to support below.
9
10config SND_SOC_ROCKCHIP_I2S
11	tristate "Rockchip I2S Device Driver"
12	depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
13	select SND_SOC_GENERIC_DMAENGINE_PCM
14	help
15	  Say Y or M if you want to add support for I2S driver for
16	  Rockchip I2S device. The device supports upto maximum of
17	  8 channels each for play and record.
18
19config SND_SOC_ROCKCHIP_PDM
20	tristate "Rockchip PDM Controller Driver"
21	depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
22	select SND_SOC_GENERIC_DMAENGINE_PCM
23	select RATIONAL
24	help
25	  Say Y or M if you want to add support for PDM driver for
26	  Rockchip PDM Controller. The Controller supports up to maximum of
27	  8 channels record.
28
29config SND_SOC_ROCKCHIP_SPDIF
30	tristate "Rockchip SPDIF Device Driver"
31	depends on CLKDEV_LOOKUP && SND_SOC_ROCKCHIP
32	select SND_SOC_GENERIC_DMAENGINE_PCM
33	help
34	  Say Y or M if you want to add support for SPDIF driver for
35	  Rockchip SPDIF transceiver device.
36
37config SND_SOC_ROCKCHIP_MAX98090
38	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
39	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
40	select SND_SOC_ROCKCHIP_I2S
41	select SND_SOC_MAX98090
42	select SND_SOC_TS3A227E
43	select SND_SOC_HDMI_CODEC
44	help
45	  Say Y or M here if you want to add support for SoC audio on Rockchip
46	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
47
48config SND_SOC_ROCKCHIP_RT5645
49	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
50	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
51	select SND_SOC_ROCKCHIP_I2S
52	select SND_SOC_RT5645
53	help
54	  Say Y or M here if you want to add support for SoC audio on Rockchip
55	  boards using the RT5645/RT5650 codec, such as Veyron.
56
57config SND_SOC_RK3288_HDMI_ANALOG
58	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
59	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
60	select SND_SOC_ROCKCHIP_I2S
61	select SND_SOC_HDMI_CODEC
62	select SND_SOC_ES8328_I2C
63	select SND_SOC_ES8328_SPI if SPI_MASTER
64	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
65	help
66	  Say Y or M here if you want to add support for SoC audio on Rockchip
67	  RK3288 boards using an analog output and the built-in HDMI audio.
68
69config SND_SOC_RK3399_GRU_SOUND
70	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
71	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP && SPI
72	select SND_SOC_ROCKCHIP_I2S
73	select SND_SOC_MAX98357A
74	select SND_SOC_RT5514
75	select SND_SOC_DA7219
76	select SND_SOC_RT5514_SPI
77	select SND_SOC_HDMI_CODEC
78	select SND_SOC_DMIC
79	help
80	  Say Y or M here if you want to add support multiple codecs for SoC
81	  audio on Rockchip RK3399 GRU boards.
82