xref: /linux/sound/soc/rockchip/Kconfig (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "Rockchip"
3	depends on COMPILE_TEST || ARCH_ROCKCHIP
4	depends on HAVE_CLK
5
6config SND_SOC_ROCKCHIP_I2S
7	tristate "Rockchip I2S Device Driver"
8	select SND_SOC_GENERIC_DMAENGINE_PCM
9	help
10	  Say Y or M if you want to add support for I2S driver for
11	  Rockchip I2S device. The device supports up to maximum of
12	  8 channels each for play and record.
13
14config SND_SOC_ROCKCHIP_I2S_TDM
15	tristate "Rockchip I2S/TDM Device Driver"
16	select SND_SOC_GENERIC_DMAENGINE_PCM
17	help
18	  Say Y or M if you want to add support for the I2S/TDM driver for
19	  Rockchip I2S/TDM devices, found in Rockchip SoCs. These devices
20	  interface between the AHB bus and the I2S bus, and support up to a
21	  maximum of 8 channels each for playback and recording.
22
23
24config SND_SOC_ROCKCHIP_PDM
25	tristate "Rockchip PDM Controller Driver"
26	select SND_SOC_GENERIC_DMAENGINE_PCM
27	select RATIONAL
28	help
29	  Say Y or M if you want to add support for PDM driver for
30	  Rockchip PDM Controller. The Controller supports up to maximum of
31	  8 channels record.
32
33config SND_SOC_ROCKCHIP_SAI
34	tristate "Rockchip SAI Controller Driver"
35	select SND_SOC_GENERIC_DMAENGINE_PCM
36	help
37	  Say Y or M if you want to add support for the Rockchip Serial Audio
38	  Interface controller found on Rockchip SoCs such as the RK3576. The
39	  controller may support both playback and recording, with up to 4 lanes
40	  for each and up to 128 channels per lane in TDM mode.
41
42config SND_SOC_ROCKCHIP_SPDIF
43	tristate "Rockchip SPDIF Device Driver"
44	select SND_SOC_GENERIC_DMAENGINE_PCM
45	help
46	  Say Y or M if you want to add support for SPDIF driver for
47	  Rockchip SPDIF transceiver device.
48
49config SND_SOC_ROCKCHIP_MAX98090
50	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
51	depends on I2C && GPIOLIB
52	select SND_SOC_ROCKCHIP_I2S
53	select SND_SOC_MAX98090
54	select SND_SOC_TS3A227E
55	select SND_SOC_HDMI_CODEC
56	help
57	  Say Y or M here if you want to add support for SoC audio on Rockchip
58	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
59
60config SND_SOC_ROCKCHIP_RT5645
61	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
62	depends on I2C && GPIOLIB
63	select SND_SOC_ROCKCHIP_I2S
64	select SND_SOC_RT5645
65	help
66	  Say Y or M here if you want to add support for SoC audio on Rockchip
67	  boards using the RT5645/RT5650 codec, such as Veyron.
68
69config SND_SOC_RK3288_HDMI_ANALOG
70	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
71	depends on I2C && GPIOLIB
72	select SND_SOC_ROCKCHIP_I2S
73	select SND_SOC_HDMI_CODEC
74	select SND_SOC_ES8328_I2C
75	select SND_SOC_ES8328_SPI if SPI_MASTER
76	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
77	help
78	  Say Y or M here if you want to add support for SoC audio on Rockchip
79	  RK3288 boards using an analog output and the built-in HDMI audio.
80
81config SND_SOC_RK3399_GRU_SOUND
82	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
83	depends on I2C && GPIOLIB && SPI
84	select SND_SOC_ROCKCHIP_I2S
85	select SND_SOC_MAX98357A
86	select SND_SOC_RT5514
87	select SND_SOC_DA7219
88	select SND_SOC_RT5514_SPI
89	select SND_SOC_HDMI_CODEC
90	select SND_SOC_DMIC
91	help
92	  Say Y or M here if you want to add support multiple codecs for SoC
93	  audio on Rockchip RK3399 GRU boards.
94
95endmenu
96