xref: /openbmc/linux/sound/soc/rockchip/Kconfig (revision 7b0364ea)
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 HAVE_CLK && 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_I2S_TDM
20	tristate "Rockchip I2S/TDM Device Driver"
21	depends on HAVE_CLK && SND_SOC_ROCKCHIP
22	select SND_SOC_GENERIC_DMAENGINE_PCM
23	help
24	  Say Y or M if you want to add support for the I2S/TDM driver for
25	  Rockchip I2S/TDM devices, found in Rockchip SoCs. These devices
26	  interface between the AHB bus and the I2S bus, and support up to a
27	  maximum of 8 channels each for playback and recording.
28
29
30config SND_SOC_ROCKCHIP_PDM
31	tristate "Rockchip PDM Controller Driver"
32	depends on HAVE_CLK && SND_SOC_ROCKCHIP
33	select SND_SOC_GENERIC_DMAENGINE_PCM
34	select RATIONAL
35	help
36	  Say Y or M if you want to add support for PDM driver for
37	  Rockchip PDM Controller. The Controller supports up to maximum of
38	  8 channels record.
39
40config SND_SOC_ROCKCHIP_SPDIF
41	tristate "Rockchip SPDIF Device Driver"
42	depends on HAVE_CLK && SND_SOC_ROCKCHIP
43	select SND_SOC_GENERIC_DMAENGINE_PCM
44	help
45	  Say Y or M if you want to add support for SPDIF driver for
46	  Rockchip SPDIF transceiver device.
47
48config SND_SOC_ROCKCHIP_MAX98090
49	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
50	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
51	select SND_SOC_ROCKCHIP_I2S
52	select SND_SOC_MAX98090
53	select SND_SOC_TS3A227E
54	select SND_SOC_HDMI_CODEC
55	help
56	  Say Y or M here if you want to add support for SoC audio on Rockchip
57	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
58
59config SND_SOC_ROCKCHIP_RT5645
60	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
61	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
62	select SND_SOC_ROCKCHIP_I2S
63	select SND_SOC_RT5645
64	help
65	  Say Y or M here if you want to add support for SoC audio on Rockchip
66	  boards using the RT5645/RT5650 codec, such as Veyron.
67
68config SND_SOC_RK3288_HDMI_ANALOG
69	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
70	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
71	select SND_SOC_ROCKCHIP_I2S
72	select SND_SOC_HDMI_CODEC
73	select SND_SOC_ES8328_I2C
74	select SND_SOC_ES8328_SPI if SPI_MASTER
75	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
76	help
77	  Say Y or M here if you want to add support for SoC audio on Rockchip
78	  RK3288 boards using an analog output and the built-in HDMI audio.
79
80config SND_SOC_RK3399_GRU_SOUND
81	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
82	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK && SPI
83	select SND_SOC_ROCKCHIP_I2S
84	select SND_SOC_MAX98357A
85	select SND_SOC_RT5514
86	select SND_SOC_DA7219
87	select SND_SOC_RT5514_SPI
88	select SND_SOC_HDMI_CODEC
89	select SND_SOC_DMIC
90	help
91	  Say Y or M here if you want to add support multiple codecs for SoC
92	  audio on Rockchip RK3399 GRU boards.
93