162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_cimenu "ASoC support for Amlogic platforms"
362306a36Sopenharmony_ci	depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciconfig SND_MESON_AIU
662306a36Sopenharmony_ci	tristate "Amlogic AIU"
762306a36Sopenharmony_ci	select SND_MESON_CODEC_GLUE
862306a36Sopenharmony_ci	select SND_PCM_IEC958
962306a36Sopenharmony_ci	imply SND_SOC_MESON_T9015
1062306a36Sopenharmony_ci	imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
1162306a36Sopenharmony_ci	help
1262306a36Sopenharmony_ci	  Select Y or M to add support for the Audio output subsystem found
1362306a36Sopenharmony_ci	  in the Amlogic Meson8, Meson8b and GX SoC families
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciconfig SND_MESON_AXG_FIFO
1662306a36Sopenharmony_ci	tristate
1762306a36Sopenharmony_ci	select REGMAP_MMIO
1862306a36Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
1962306a36Sopenharmony_ci	imply RESET_MESON_AUDIO_ARB
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciconfig SND_MESON_AXG_FRDDR
2262306a36Sopenharmony_ci	tristate "Amlogic AXG Playback FIFO support"
2362306a36Sopenharmony_ci	select SND_MESON_AXG_FIFO
2462306a36Sopenharmony_ci	help
2562306a36Sopenharmony_ci	  Select Y or M to add support for the frontend playback interfaces
2662306a36Sopenharmony_ci	  embedded in the Amlogic AXG SoC family
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig SND_MESON_AXG_TODDR
2962306a36Sopenharmony_ci	tristate "Amlogic AXG Capture FIFO support"
3062306a36Sopenharmony_ci	select SND_MESON_AXG_FIFO
3162306a36Sopenharmony_ci	help
3262306a36Sopenharmony_ci	  Select Y or M to add support for the frontend capture interfaces
3362306a36Sopenharmony_ci	  embedded in the Amlogic AXG SoC family
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciconfig SND_MESON_AXG_TDM_FORMATTER
3662306a36Sopenharmony_ci	tristate
3762306a36Sopenharmony_ci	select REGMAP_MMIO
3862306a36Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ciconfig SND_MESON_AXG_TDM_INTERFACE
4162306a36Sopenharmony_ci	tristate
4262306a36Sopenharmony_ci	select SND_MESON_AXG_TDM_FORMATTER
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciconfig SND_MESON_AXG_TDMIN
4562306a36Sopenharmony_ci	tristate "Amlogic AXG TDM Input Support"
4662306a36Sopenharmony_ci	select SND_MESON_AXG_TDM_FORMATTER
4762306a36Sopenharmony_ci	select SND_MESON_AXG_TDM_INTERFACE
4862306a36Sopenharmony_ci	help
4962306a36Sopenharmony_ci	  Select Y or M to add support for TDM input formatter embedded
5062306a36Sopenharmony_ci	  in the Amlogic AXG SoC family
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciconfig SND_MESON_AXG_TDMOUT
5362306a36Sopenharmony_ci	tristate "Amlogic AXG TDM Output Support"
5462306a36Sopenharmony_ci	select SND_MESON_AXG_TDM_FORMATTER
5562306a36Sopenharmony_ci	select SND_MESON_AXG_TDM_INTERFACE
5662306a36Sopenharmony_ci	help
5762306a36Sopenharmony_ci	  Select Y or M to add support for TDM output formatter embedded
5862306a36Sopenharmony_ci	  in the Amlogic AXG SoC family
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciconfig SND_MESON_AXG_SOUND_CARD
6162306a36Sopenharmony_ci	tristate "Amlogic AXG Sound Card Support"
6262306a36Sopenharmony_ci	select SND_MESON_AXG_TDM_INTERFACE
6362306a36Sopenharmony_ci	select SND_MESON_CARD_UTILS
6462306a36Sopenharmony_ci	imply SND_MESON_AXG_FRDDR
6562306a36Sopenharmony_ci	imply SND_MESON_AXG_TODDR
6662306a36Sopenharmony_ci	imply SND_MESON_AXG_TDMIN
6762306a36Sopenharmony_ci	imply SND_MESON_AXG_TDMOUT
6862306a36Sopenharmony_ci	imply SND_MESON_AXG_SPDIFOUT
6962306a36Sopenharmony_ci	imply SND_MESON_AXG_SPDIFIN
7062306a36Sopenharmony_ci	imply SND_MESON_AXG_PDM
7162306a36Sopenharmony_ci	imply SND_MESON_G12A_TOACODEC
7262306a36Sopenharmony_ci	imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
7362306a36Sopenharmony_ci	help
7462306a36Sopenharmony_ci	  Select Y or M to add support for the AXG SoC sound card
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ciconfig SND_MESON_AXG_SPDIFOUT
7762306a36Sopenharmony_ci	tristate "Amlogic AXG SPDIF Output Support"
7862306a36Sopenharmony_ci	select SND_PCM_IEC958
7962306a36Sopenharmony_ci	imply SND_SOC_SPDIF
8062306a36Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
8162306a36Sopenharmony_ci	help
8262306a36Sopenharmony_ci	  Select Y or M to add support for SPDIF output serializer embedded
8362306a36Sopenharmony_ci	  in the Amlogic AXG SoC family
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ciconfig SND_MESON_AXG_SPDIFIN
8662306a36Sopenharmony_ci	tristate "Amlogic AXG SPDIF Input Support"
8762306a36Sopenharmony_ci	imply SND_SOC_SPDIF
8862306a36Sopenharmony_ci	help
8962306a36Sopenharmony_ci	  Select Y or M to add support for SPDIF input embedded
9062306a36Sopenharmony_ci	  in the Amlogic AXG SoC family
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ciconfig SND_MESON_AXG_PDM
9362306a36Sopenharmony_ci	tristate "Amlogic AXG PDM Input Support"
9462306a36Sopenharmony_ci	imply SND_SOC_DMIC
9562306a36Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
9662306a36Sopenharmony_ci	help
9762306a36Sopenharmony_ci	  Select Y or M to add support for PDM input embedded
9862306a36Sopenharmony_ci	  in the Amlogic AXG SoC family
9962306a36Sopenharmony_ci
10062306a36Sopenharmony_ciconfig SND_MESON_CARD_UTILS
10162306a36Sopenharmony_ci	tristate
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciconfig SND_MESON_CODEC_GLUE
10462306a36Sopenharmony_ci	tristate
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_ciconfig SND_MESON_GX_SOUND_CARD
10762306a36Sopenharmony_ci	tristate "Amlogic GX Sound Card Support"
10862306a36Sopenharmony_ci	select SND_MESON_CARD_UTILS
10962306a36Sopenharmony_ci	imply SND_MESON_AIU
11062306a36Sopenharmony_ci	help
11162306a36Sopenharmony_ci	  Select Y or M to add support for the GXBB/GXL SoC sound card
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ciconfig SND_MESON_G12A_TOACODEC
11462306a36Sopenharmony_ci	tristate "Amlogic G12A To Internal DAC Control Support"
11562306a36Sopenharmony_ci	select SND_MESON_CODEC_GLUE
11662306a36Sopenharmony_ci	select REGMAP_MMIO
11762306a36Sopenharmony_ci	imply SND_SOC_MESON_T9015
11862306a36Sopenharmony_ci	help
11962306a36Sopenharmony_ci	  Select Y or M to add support for the internal audio DAC on the
12062306a36Sopenharmony_ci	  g12a SoC family
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ciconfig SND_MESON_G12A_TOHDMITX
12362306a36Sopenharmony_ci	tristate "Amlogic G12A To HDMI TX Control Support"
12462306a36Sopenharmony_ci	select REGMAP_MMIO
12562306a36Sopenharmony_ci	select SND_MESON_CODEC_GLUE
12662306a36Sopenharmony_ci	imply SND_SOC_HDMI_CODEC
12762306a36Sopenharmony_ci	help
12862306a36Sopenharmony_ci	  Select Y or M to add support for HDMI audio on the g12a SoC
12962306a36Sopenharmony_ci	  family
13062306a36Sopenharmony_ci
13162306a36Sopenharmony_ciconfig SND_SOC_MESON_T9015
13262306a36Sopenharmony_ci	tristate "Amlogic T9015 DAC"
13362306a36Sopenharmony_ci	select REGMAP_MMIO
13462306a36Sopenharmony_ci	help
13562306a36Sopenharmony_ci	  Say Y or M if you want to add support for the internal DAC found
13662306a36Sopenharmony_ci	  on GXL, G12 and SM1 SoC family.
13762306a36Sopenharmony_ciendmenu
138