xref: /OK3568_Linux_fs/kernel/sound/soc/meson/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunmenu "ASoC support for Amlogic platforms"
3*4882a593Smuzhiyun	depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunconfig SND_MESON_AIU
6*4882a593Smuzhiyun	tristate "Amlogic AIU"
7*4882a593Smuzhiyun	select SND_MESON_CODEC_GLUE
8*4882a593Smuzhiyun	select SND_PCM_IEC958
9*4882a593Smuzhiyun	imply SND_SOC_MESON_T9015
10*4882a593Smuzhiyun	imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
11*4882a593Smuzhiyun	help
12*4882a593Smuzhiyun	  Select Y or M to add support for the Audio output subsystem found
13*4882a593Smuzhiyun	  in the Amlogic Meson8, Meson8b and GX SoC families
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunconfig SND_MESON_AXG_FIFO
16*4882a593Smuzhiyun	tristate
17*4882a593Smuzhiyun	select REGMAP_MMIO
18*4882a593Smuzhiyun	imply COMMON_CLK_AXG_AUDIO
19*4882a593Smuzhiyun	imply RESET_MESON_AUDIO_ARB
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunconfig SND_MESON_AXG_FRDDR
22*4882a593Smuzhiyun	tristate "Amlogic AXG Playback FIFO support"
23*4882a593Smuzhiyun	select SND_MESON_AXG_FIFO
24*4882a593Smuzhiyun	help
25*4882a593Smuzhiyun	  Select Y or M to add support for the frontend playback interfaces
26*4882a593Smuzhiyun	  embedded in the Amlogic AXG SoC family
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunconfig SND_MESON_AXG_TODDR
29*4882a593Smuzhiyun	tristate "Amlogic AXG Capture FIFO support"
30*4882a593Smuzhiyun	select SND_MESON_AXG_FIFO
31*4882a593Smuzhiyun	help
32*4882a593Smuzhiyun	  Select Y or M to add support for the frontend capture interfaces
33*4882a593Smuzhiyun	  embedded in the Amlogic AXG SoC family
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunconfig SND_MESON_AXG_TDM_FORMATTER
36*4882a593Smuzhiyun	tristate
37*4882a593Smuzhiyun	select REGMAP_MMIO
38*4882a593Smuzhiyun	imply COMMON_CLK_AXG_AUDIO
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunconfig SND_MESON_AXG_TDM_INTERFACE
41*4882a593Smuzhiyun	tristate
42*4882a593Smuzhiyun	select SND_MESON_AXG_TDM_FORMATTER
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunconfig SND_MESON_AXG_TDMIN
45*4882a593Smuzhiyun	tristate "Amlogic AXG TDM Input Support"
46*4882a593Smuzhiyun	select SND_MESON_AXG_TDM_FORMATTER
47*4882a593Smuzhiyun	select SND_MESON_AXG_TDM_INTERFACE
48*4882a593Smuzhiyun	help
49*4882a593Smuzhiyun	  Select Y or M to add support for TDM input formatter embedded
50*4882a593Smuzhiyun	  in the Amlogic AXG SoC family
51*4882a593Smuzhiyun
52*4882a593Smuzhiyunconfig SND_MESON_AXG_TDMOUT
53*4882a593Smuzhiyun	tristate "Amlogic AXG TDM Output Support"
54*4882a593Smuzhiyun	select SND_MESON_AXG_TDM_FORMATTER
55*4882a593Smuzhiyun	select SND_MESON_AXG_TDM_INTERFACE
56*4882a593Smuzhiyun	help
57*4882a593Smuzhiyun	  Select Y or M to add support for TDM output formatter embedded
58*4882a593Smuzhiyun	  in the Amlogic AXG SoC family
59*4882a593Smuzhiyun
60*4882a593Smuzhiyunconfig SND_MESON_AXG_SOUND_CARD
61*4882a593Smuzhiyun	tristate "Amlogic AXG Sound Card Support"
62*4882a593Smuzhiyun	select SND_MESON_AXG_TDM_INTERFACE
63*4882a593Smuzhiyun	select SND_MESON_CARD_UTILS
64*4882a593Smuzhiyun	imply SND_MESON_AXG_FRDDR
65*4882a593Smuzhiyun	imply SND_MESON_AXG_TODDR
66*4882a593Smuzhiyun	imply SND_MESON_AXG_TDMIN
67*4882a593Smuzhiyun	imply SND_MESON_AXG_TDMOUT
68*4882a593Smuzhiyun	imply SND_MESON_AXG_SPDIFOUT
69*4882a593Smuzhiyun	imply SND_MESON_AXG_SPDIFIN
70*4882a593Smuzhiyun	imply SND_MESON_AXG_PDM
71*4882a593Smuzhiyun	imply SND_MESON_G12A_TOACODEC
72*4882a593Smuzhiyun	imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
73*4882a593Smuzhiyun	help
74*4882a593Smuzhiyun	  Select Y or M to add support for the AXG SoC sound card
75*4882a593Smuzhiyun
76*4882a593Smuzhiyunconfig SND_MESON_AXG_SPDIFOUT
77*4882a593Smuzhiyun	tristate "Amlogic AXG SPDIF Output Support"
78*4882a593Smuzhiyun	select SND_PCM_IEC958
79*4882a593Smuzhiyun	imply SND_SOC_SPDIF
80*4882a593Smuzhiyun	imply COMMON_CLK_AXG_AUDIO
81*4882a593Smuzhiyun	help
82*4882a593Smuzhiyun	  Select Y or M to add support for SPDIF output serializer embedded
83*4882a593Smuzhiyun	  in the Amlogic AXG SoC family
84*4882a593Smuzhiyun
85*4882a593Smuzhiyunconfig SND_MESON_AXG_SPDIFIN
86*4882a593Smuzhiyun	tristate "Amlogic AXG SPDIF Input Support"
87*4882a593Smuzhiyun	imply SND_SOC_SPDIF
88*4882a593Smuzhiyun	help
89*4882a593Smuzhiyun	  Select Y or M to add support for SPDIF input embedded
90*4882a593Smuzhiyun	  in the Amlogic AXG SoC family
91*4882a593Smuzhiyun
92*4882a593Smuzhiyunconfig SND_MESON_AXG_PDM
93*4882a593Smuzhiyun	tristate "Amlogic AXG PDM Input Support"
94*4882a593Smuzhiyun	imply SND_SOC_DMIC
95*4882a593Smuzhiyun	imply COMMON_CLK_AXG_AUDIO
96*4882a593Smuzhiyun	help
97*4882a593Smuzhiyun	  Select Y or M to add support for PDM input embedded
98*4882a593Smuzhiyun	  in the Amlogic AXG SoC family
99*4882a593Smuzhiyun
100*4882a593Smuzhiyunconfig SND_MESON_CARD_UTILS
101*4882a593Smuzhiyun       tristate
102*4882a593Smuzhiyun
103*4882a593Smuzhiyunconfig SND_MESON_CODEC_GLUE
104*4882a593Smuzhiyun	tristate
105*4882a593Smuzhiyun
106*4882a593Smuzhiyunconfig SND_MESON_GX_SOUND_CARD
107*4882a593Smuzhiyun	tristate "Amlogic GX Sound Card Support"
108*4882a593Smuzhiyun	select SND_MESON_CARD_UTILS
109*4882a593Smuzhiyun	imply SND_MESON_AIU
110*4882a593Smuzhiyun	help
111*4882a593Smuzhiyun	  Select Y or M to add support for the GXBB/GXL SoC sound card
112*4882a593Smuzhiyun
113*4882a593Smuzhiyunconfig SND_MESON_G12A_TOACODEC
114*4882a593Smuzhiyun	tristate "Amlogic G12A To Internal DAC Control Support"
115*4882a593Smuzhiyun	select SND_MESON_CODEC_GLUE
116*4882a593Smuzhiyun	select REGMAP_MMIO
117*4882a593Smuzhiyun	imply SND_SOC_MESON_T9015
118*4882a593Smuzhiyun	help
119*4882a593Smuzhiyun	  Select Y or M to add support for the internal audio DAC on the
120*4882a593Smuzhiyun	  g12a SoC family
121*4882a593Smuzhiyun
122*4882a593Smuzhiyunconfig SND_MESON_G12A_TOHDMITX
123*4882a593Smuzhiyun	tristate "Amlogic G12A To HDMI TX Control Support"
124*4882a593Smuzhiyun	select REGMAP_MMIO
125*4882a593Smuzhiyun	select SND_MESON_CODEC_GLUE
126*4882a593Smuzhiyun	imply SND_SOC_HDMI_CODEC
127*4882a593Smuzhiyun	help
128*4882a593Smuzhiyun	  Select Y or M to add support for HDMI audio on the g12a SoC
129*4882a593Smuzhiyun	  family
130*4882a593Smuzhiyun
131*4882a593Smuzhiyunconfig SND_SOC_MESON_T9015
132*4882a593Smuzhiyun	tristate "Amlogic T9015 DAC"
133*4882a593Smuzhiyun	select REGMAP_MMIO
134*4882a593Smuzhiyun	help
135*4882a593Smuzhiyun	  Say Y or M if you want to add support for the internal DAC found
136*4882a593Smuzhiyun	  on GXL, G12 and SM1 SoC family.
137*4882a593Smuzhiyunendmenu
138