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