18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_cimenu "ASoC support for Amlogic platforms"
38c2ecf20Sopenharmony_ci	depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciconfig SND_MESON_AIU
68c2ecf20Sopenharmony_ci	tristate "Amlogic AIU"
78c2ecf20Sopenharmony_ci	select SND_MESON_CODEC_GLUE
88c2ecf20Sopenharmony_ci	select SND_PCM_IEC958
98c2ecf20Sopenharmony_ci	imply SND_SOC_MESON_T9015
108c2ecf20Sopenharmony_ci	imply SND_SOC_HDMI_CODEC if DRM_MESON_DW_HDMI
118c2ecf20Sopenharmony_ci	help
128c2ecf20Sopenharmony_ci	  Select Y or M to add support for the Audio output subsystem found
138c2ecf20Sopenharmony_ci	  in the Amlogic Meson8, Meson8b and GX SoC families
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_FIFO
168c2ecf20Sopenharmony_ci	tristate
178c2ecf20Sopenharmony_ci	select REGMAP_MMIO
188c2ecf20Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
198c2ecf20Sopenharmony_ci	imply RESET_MESON_AUDIO_ARB
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_FRDDR
228c2ecf20Sopenharmony_ci	tristate "Amlogic AXG Playback FIFO support"
238c2ecf20Sopenharmony_ci	select SND_MESON_AXG_FIFO
248c2ecf20Sopenharmony_ci	help
258c2ecf20Sopenharmony_ci	  Select Y or M to add support for the frontend playback interfaces
268c2ecf20Sopenharmony_ci	  embedded in the Amlogic AXG SoC family
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_TODDR
298c2ecf20Sopenharmony_ci	tristate "Amlogic AXG Capture FIFO support"
308c2ecf20Sopenharmony_ci	select SND_MESON_AXG_FIFO
318c2ecf20Sopenharmony_ci	help
328c2ecf20Sopenharmony_ci	  Select Y or M to add support for the frontend capture interfaces
338c2ecf20Sopenharmony_ci	  embedded in the Amlogic AXG SoC family
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_TDM_FORMATTER
368c2ecf20Sopenharmony_ci	tristate
378c2ecf20Sopenharmony_ci	select REGMAP_MMIO
388c2ecf20Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_TDM_INTERFACE
418c2ecf20Sopenharmony_ci	tristate
428c2ecf20Sopenharmony_ci	select SND_MESON_AXG_TDM_FORMATTER
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_TDMIN
458c2ecf20Sopenharmony_ci	tristate "Amlogic AXG TDM Input Support"
468c2ecf20Sopenharmony_ci	select SND_MESON_AXG_TDM_FORMATTER
478c2ecf20Sopenharmony_ci	select SND_MESON_AXG_TDM_INTERFACE
488c2ecf20Sopenharmony_ci	help
498c2ecf20Sopenharmony_ci	  Select Y or M to add support for TDM input formatter embedded
508c2ecf20Sopenharmony_ci	  in the Amlogic AXG SoC family
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_TDMOUT
538c2ecf20Sopenharmony_ci	tristate "Amlogic AXG TDM Output Support"
548c2ecf20Sopenharmony_ci	select SND_MESON_AXG_TDM_FORMATTER
558c2ecf20Sopenharmony_ci	select SND_MESON_AXG_TDM_INTERFACE
568c2ecf20Sopenharmony_ci	help
578c2ecf20Sopenharmony_ci	  Select Y or M to add support for TDM output formatter embedded
588c2ecf20Sopenharmony_ci	  in the Amlogic AXG SoC family
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_SOUND_CARD
618c2ecf20Sopenharmony_ci	tristate "Amlogic AXG Sound Card Support"
628c2ecf20Sopenharmony_ci	select SND_MESON_AXG_TDM_INTERFACE
638c2ecf20Sopenharmony_ci	select SND_MESON_CARD_UTILS
648c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_FRDDR
658c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_TODDR
668c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_TDMIN
678c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_TDMOUT
688c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_SPDIFOUT
698c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_SPDIFIN
708c2ecf20Sopenharmony_ci	imply SND_MESON_AXG_PDM
718c2ecf20Sopenharmony_ci	imply SND_MESON_G12A_TOACODEC
728c2ecf20Sopenharmony_ci	imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
738c2ecf20Sopenharmony_ci	help
748c2ecf20Sopenharmony_ci	  Select Y or M to add support for the AXG SoC sound card
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_SPDIFOUT
778c2ecf20Sopenharmony_ci	tristate "Amlogic AXG SPDIF Output Support"
788c2ecf20Sopenharmony_ci	select SND_PCM_IEC958
798c2ecf20Sopenharmony_ci	imply SND_SOC_SPDIF
808c2ecf20Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
818c2ecf20Sopenharmony_ci	help
828c2ecf20Sopenharmony_ci	  Select Y or M to add support for SPDIF output serializer embedded
838c2ecf20Sopenharmony_ci	  in the Amlogic AXG SoC family
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_SPDIFIN
868c2ecf20Sopenharmony_ci	tristate "Amlogic AXG SPDIF Input Support"
878c2ecf20Sopenharmony_ci	imply SND_SOC_SPDIF
888c2ecf20Sopenharmony_ci	help
898c2ecf20Sopenharmony_ci	  Select Y or M to add support for SPDIF input embedded
908c2ecf20Sopenharmony_ci	  in the Amlogic AXG SoC family
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ciconfig SND_MESON_AXG_PDM
938c2ecf20Sopenharmony_ci	tristate "Amlogic AXG PDM Input Support"
948c2ecf20Sopenharmony_ci	imply SND_SOC_DMIC
958c2ecf20Sopenharmony_ci	imply COMMON_CLK_AXG_AUDIO
968c2ecf20Sopenharmony_ci	help
978c2ecf20Sopenharmony_ci	  Select Y or M to add support for PDM input embedded
988c2ecf20Sopenharmony_ci	  in the Amlogic AXG SoC family
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ciconfig SND_MESON_CARD_UTILS
1018c2ecf20Sopenharmony_ci       tristate
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ciconfig SND_MESON_CODEC_GLUE
1048c2ecf20Sopenharmony_ci	tristate
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ciconfig SND_MESON_GX_SOUND_CARD
1078c2ecf20Sopenharmony_ci	tristate "Amlogic GX Sound Card Support"
1088c2ecf20Sopenharmony_ci	select SND_MESON_CARD_UTILS
1098c2ecf20Sopenharmony_ci	imply SND_MESON_AIU
1108c2ecf20Sopenharmony_ci	help
1118c2ecf20Sopenharmony_ci	  Select Y or M to add support for the GXBB/GXL SoC sound card
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ciconfig SND_MESON_G12A_TOACODEC
1148c2ecf20Sopenharmony_ci	tristate "Amlogic G12A To Internal DAC Control Support"
1158c2ecf20Sopenharmony_ci	select SND_MESON_CODEC_GLUE
1168c2ecf20Sopenharmony_ci	select REGMAP_MMIO
1178c2ecf20Sopenharmony_ci	imply SND_SOC_MESON_T9015
1188c2ecf20Sopenharmony_ci	help
1198c2ecf20Sopenharmony_ci	  Select Y or M to add support for the internal audio DAC on the
1208c2ecf20Sopenharmony_ci	  g12a SoC family
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ciconfig SND_MESON_G12A_TOHDMITX
1238c2ecf20Sopenharmony_ci	tristate "Amlogic G12A To HDMI TX Control Support"
1248c2ecf20Sopenharmony_ci	select REGMAP_MMIO
1258c2ecf20Sopenharmony_ci	select SND_MESON_CODEC_GLUE
1268c2ecf20Sopenharmony_ci	imply SND_SOC_HDMI_CODEC
1278c2ecf20Sopenharmony_ci	help
1288c2ecf20Sopenharmony_ci	  Select Y or M to add support for HDMI audio on the g12a SoC
1298c2ecf20Sopenharmony_ci	  family
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ciconfig SND_SOC_MESON_T9015
1328c2ecf20Sopenharmony_ci	tristate "Amlogic T9015 DAC"
1338c2ecf20Sopenharmony_ci	select REGMAP_MMIO
1348c2ecf20Sopenharmony_ci	help
1358c2ecf20Sopenharmony_ci	  Say Y or M if you want to add support for the internal DAC found
1368c2ecf20Sopenharmony_ci	  on GXL, G12 and SM1 SoC family.
1378c2ecf20Sopenharmony_ciendmenu
138