1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "ASoC support for Amlogic platforms"
3 depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
7 select SND_MESON_CODEC_GLUE
9 imply SND_SOC_MESON_T9015
10 imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
12 Select Y or M to add support for the Audio output subsystem found
13 in the Amlogic Meson8, Meson8b and GX SoC families
15 config SND_MESON_AXG_FIFO
18 imply COMMON_CLK_AXG_AUDIO
19 imply RESET_MESON_AUDIO_ARB
21 config SND_MESON_AXG_FRDDR
22 tristate "Amlogic AXG Playback FIFO support"
23 select SND_MESON_AXG_FIFO
25 Select Y or M to add support for the frontend playback interfaces
26 embedded in the Amlogic AXG SoC family
28 config SND_MESON_AXG_TODDR
29 tristate "Amlogic AXG Capture FIFO support"
30 select SND_MESON_AXG_FIFO
32 Select Y or M to add support for the frontend capture interfaces
33 embedded in the Amlogic AXG SoC family
35 config SND_MESON_AXG_TDM_FORMATTER
38 imply COMMON_CLK_AXG_AUDIO
40 config SND_MESON_AXG_TDM_INTERFACE
42 select SND_MESON_AXG_TDM_FORMATTER
44 config SND_MESON_AXG_TDMIN
45 tristate "Amlogic AXG TDM Input Support"
46 select SND_MESON_AXG_TDM_FORMATTER
47 select SND_MESON_AXG_TDM_INTERFACE
49 Select Y or M to add support for TDM input formatter embedded
50 in the Amlogic AXG SoC family
52 config SND_MESON_AXG_TDMOUT
53 tristate "Amlogic AXG TDM Output Support"
54 select SND_MESON_AXG_TDM_FORMATTER
55 select SND_MESON_AXG_TDM_INTERFACE
57 Select Y or M to add support for TDM output formatter embedded
58 in the Amlogic AXG SoC family
60 config SND_MESON_AXG_SOUND_CARD
61 tristate "Amlogic AXG Sound Card Support"
62 select SND_MESON_AXG_TDM_INTERFACE
63 select SND_MESON_CARD_UTILS
64 imply SND_MESON_AXG_FRDDR
65 imply SND_MESON_AXG_TODDR
66 imply SND_MESON_AXG_TDMIN
67 imply SND_MESON_AXG_TDMOUT
68 imply SND_MESON_AXG_SPDIFOUT
69 imply SND_MESON_AXG_SPDIFIN
70 imply SND_MESON_AXG_PDM
71 imply SND_MESON_G12A_TOACODEC
72 imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
74 Select Y or M to add support for the AXG SoC sound card
76 config SND_MESON_AXG_SPDIFOUT
77 tristate "Amlogic AXG SPDIF Output Support"
80 imply COMMON_CLK_AXG_AUDIO
82 Select Y or M to add support for SPDIF output serializer embedded
83 in the Amlogic AXG SoC family
85 config SND_MESON_AXG_SPDIFIN
86 tristate "Amlogic AXG SPDIF Input Support"
89 Select Y or M to add support for SPDIF input embedded
90 in the Amlogic AXG SoC family
92 config SND_MESON_AXG_PDM
93 tristate "Amlogic AXG PDM Input Support"
95 imply COMMON_CLK_AXG_AUDIO
97 Select Y or M to add support for PDM input embedded
98 in the Amlogic AXG SoC family
100 config SND_MESON_CARD_UTILS
103 config SND_MESON_CODEC_GLUE
106 config SND_MESON_GX_SOUND_CARD
107 tristate "Amlogic GX Sound Card Support"
108 select SND_MESON_CARD_UTILS
111 Select Y or M to add support for the GXBB/GXL SoC sound card
113 config SND_MESON_G12A_TOACODEC
114 tristate "Amlogic G12A To Internal DAC Control Support"
115 select SND_MESON_CODEC_GLUE
117 imply SND_SOC_MESON_T9015
119 Select Y or M to add support for the internal audio DAC on the
122 config SND_MESON_G12A_TOHDMITX
123 tristate "Amlogic G12A To HDMI TX Control Support"
125 select SND_MESON_CODEC_GLUE
126 imply SND_SOC_HDMI_CODEC
128 Select Y or M to add support for HDMI audio on the g12a SoC
131 config SND_SOC_MESON_T9015
132 tristate "Amlogic T9015 DAC"
135 Say Y or M if you want to add support for the internal DAC found
136 on GXL, G12 and SM1 SoC family.