0001 # SPDX-License-Identifier: GPL-2.0-only
0002 menu "ASoC support for Amlogic platforms"
0003 depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
0004
0005 config SND_MESON_AIU
0006 tristate "Amlogic AIU"
0007 select SND_MESON_CODEC_GLUE
0008 select SND_PCM_IEC958
0009 imply SND_SOC_MESON_T9015
0010 imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
0011 help
0012 Select Y or M to add support for the Audio output subsystem found
0013 in the Amlogic Meson8, Meson8b and GX SoC families
0014
0015 config SND_MESON_AXG_FIFO
0016 tristate
0017 select REGMAP_MMIO
0018 imply COMMON_CLK_AXG_AUDIO
0019 imply RESET_MESON_AUDIO_ARB
0020
0021 config SND_MESON_AXG_FRDDR
0022 tristate "Amlogic AXG Playback FIFO support"
0023 select SND_MESON_AXG_FIFO
0024 help
0025 Select Y or M to add support for the frontend playback interfaces
0026 embedded in the Amlogic AXG SoC family
0027
0028 config SND_MESON_AXG_TODDR
0029 tristate "Amlogic AXG Capture FIFO support"
0030 select SND_MESON_AXG_FIFO
0031 help
0032 Select Y or M to add support for the frontend capture interfaces
0033 embedded in the Amlogic AXG SoC family
0034
0035 config SND_MESON_AXG_TDM_FORMATTER
0036 tristate
0037 select REGMAP_MMIO
0038 imply COMMON_CLK_AXG_AUDIO
0039
0040 config SND_MESON_AXG_TDM_INTERFACE
0041 tristate
0042 select SND_MESON_AXG_TDM_FORMATTER
0043
0044 config SND_MESON_AXG_TDMIN
0045 tristate "Amlogic AXG TDM Input Support"
0046 select SND_MESON_AXG_TDM_FORMATTER
0047 select SND_MESON_AXG_TDM_INTERFACE
0048 help
0049 Select Y or M to add support for TDM input formatter embedded
0050 in the Amlogic AXG SoC family
0051
0052 config SND_MESON_AXG_TDMOUT
0053 tristate "Amlogic AXG TDM Output Support"
0054 select SND_MESON_AXG_TDM_FORMATTER
0055 select SND_MESON_AXG_TDM_INTERFACE
0056 help
0057 Select Y or M to add support for TDM output formatter embedded
0058 in the Amlogic AXG SoC family
0059
0060 config SND_MESON_AXG_SOUND_CARD
0061 tristate "Amlogic AXG Sound Card Support"
0062 select SND_MESON_AXG_TDM_INTERFACE
0063 select SND_MESON_CARD_UTILS
0064 imply SND_MESON_AXG_FRDDR
0065 imply SND_MESON_AXG_TODDR
0066 imply SND_MESON_AXG_TDMIN
0067 imply SND_MESON_AXG_TDMOUT
0068 imply SND_MESON_AXG_SPDIFOUT
0069 imply SND_MESON_AXG_SPDIFIN
0070 imply SND_MESON_AXG_PDM
0071 imply SND_MESON_G12A_TOACODEC
0072 imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
0073 help
0074 Select Y or M to add support for the AXG SoC sound card
0075
0076 config SND_MESON_AXG_SPDIFOUT
0077 tristate "Amlogic AXG SPDIF Output Support"
0078 select SND_PCM_IEC958
0079 imply SND_SOC_SPDIF
0080 imply COMMON_CLK_AXG_AUDIO
0081 help
0082 Select Y or M to add support for SPDIF output serializer embedded
0083 in the Amlogic AXG SoC family
0084
0085 config SND_MESON_AXG_SPDIFIN
0086 tristate "Amlogic AXG SPDIF Input Support"
0087 imply SND_SOC_SPDIF
0088 help
0089 Select Y or M to add support for SPDIF input embedded
0090 in the Amlogic AXG SoC family
0091
0092 config SND_MESON_AXG_PDM
0093 tristate "Amlogic AXG PDM Input Support"
0094 imply SND_SOC_DMIC
0095 imply COMMON_CLK_AXG_AUDIO
0096 help
0097 Select Y or M to add support for PDM input embedded
0098 in the Amlogic AXG SoC family
0099
0100 config SND_MESON_CARD_UTILS
0101 tristate
0102
0103 config SND_MESON_CODEC_GLUE
0104 tristate
0105
0106 config SND_MESON_GX_SOUND_CARD
0107 tristate "Amlogic GX Sound Card Support"
0108 select SND_MESON_CARD_UTILS
0109 imply SND_MESON_AIU
0110 help
0111 Select Y or M to add support for the GXBB/GXL SoC sound card
0112
0113 config SND_MESON_G12A_TOACODEC
0114 tristate "Amlogic G12A To Internal DAC Control Support"
0115 select SND_MESON_CODEC_GLUE
0116 select REGMAP_MMIO
0117 imply SND_SOC_MESON_T9015
0118 help
0119 Select Y or M to add support for the internal audio DAC on the
0120 g12a SoC family
0121
0122 config SND_MESON_G12A_TOHDMITX
0123 tristate "Amlogic G12A To HDMI TX Control Support"
0124 select REGMAP_MMIO
0125 select SND_MESON_CODEC_GLUE
0126 imply SND_SOC_HDMI_CODEC
0127 help
0128 Select Y or M to add support for HDMI audio on the g12a SoC
0129 family
0130
0131 config SND_SOC_MESON_T9015
0132 tristate "Amlogic T9015 DAC"
0133 select REGMAP_MMIO
0134 help
0135 Say Y or M if you want to add support for the internal DAC found
0136 on GXL, G12 and SM1 SoC family.
0137 endmenu