xref: /linux/sound/soc/rockchip/Kconfig (revision a9e6060bb2a6cae6d43a98ec0794844ad01273d3)
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 up to 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_SAI
41	tristate "Rockchip SAI Controller 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 the Rockchip Serial Audio
46	  Interface controller found on Rockchip SoCs such as the RK3576. The
47	  controller may support both playback and recording, with up to 4 lanes
48	  for each and up to 128 channels per lane in TDM mode.
49
50config SND_SOC_ROCKCHIP_SPDIF
51	tristate "Rockchip SPDIF Device Driver"
52	depends on HAVE_CLK && SND_SOC_ROCKCHIP
53	select SND_SOC_GENERIC_DMAENGINE_PCM
54	help
55	  Say Y or M if you want to add support for SPDIF driver for
56	  Rockchip SPDIF transceiver device.
57
58config SND_SOC_ROCKCHIP_MAX98090
59	tristate "ASoC support for Rockchip boards using a MAX98090 codec"
60	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
61	select SND_SOC_ROCKCHIP_I2S
62	select SND_SOC_MAX98090
63	select SND_SOC_TS3A227E
64	select SND_SOC_HDMI_CODEC
65	help
66	  Say Y or M here if you want to add support for SoC audio on Rockchip
67	  boards using the MAX98090 codec and HDMI codec, such as Veyron.
68
69config SND_SOC_ROCKCHIP_RT5645
70	tristate "ASoC support for Rockchip boards using a RT5645/RT5650 codec"
71	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
72	select SND_SOC_ROCKCHIP_I2S
73	select SND_SOC_RT5645
74	help
75	  Say Y or M here if you want to add support for SoC audio on Rockchip
76	  boards using the RT5645/RT5650 codec, such as Veyron.
77
78config SND_SOC_RK3288_HDMI_ANALOG
79	tristate "ASoC support multiple codecs for Rockchip RK3288 boards"
80	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK
81	select SND_SOC_ROCKCHIP_I2S
82	select SND_SOC_HDMI_CODEC
83	select SND_SOC_ES8328_I2C
84	select SND_SOC_ES8328_SPI if SPI_MASTER
85	select DRM_DW_HDMI_I2S_AUDIO if DRM_DW_HDMI
86	help
87	  Say Y or M here if you want to add support for SoC audio on Rockchip
88	  RK3288 boards using an analog output and the built-in HDMI audio.
89
90config SND_SOC_RK3399_GRU_SOUND
91	tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
92	depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && HAVE_CLK && SPI
93	select SND_SOC_ROCKCHIP_I2S
94	select SND_SOC_MAX98357A
95	select SND_SOC_RT5514
96	select SND_SOC_DA7219
97	select SND_SOC_RT5514_SPI
98	select SND_SOC_HDMI_CODEC
99	select SND_SOC_DMIC
100	help
101	  Say Y or M here if you want to add support multiple codecs for SoC
102	  audio on Rockchip RK3399 GRU boards.
103