android_kernel_xiaomi_sm8350/sound/soc/meson/Kconfig
Jerome Brunet fe2d1dda1d ASoC: meson: g12a: extract codec-to-codec utils
[ Upstream commit 9c29fd9bdf92900dc0cc5c2d8f58951a7bdc0f41 ]

The hdmi routing mechanism used on g12a hdmi is also used:
* other Amlogic SoC types
* for the internal DAC path

Each of these codec glues are slightly different but the idea
behind it remains the same. This change extract some helper functions
from the g12a-tohdmitx driver to make them available for other Amlogic
codecs.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20200213155159.3235792-3-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 1e001206804b ("ASoC: meson: g12a-tohdmitx: Validate written enum values")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-15 18:25:26 +01:00

100 lines
2.7 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
menu "ASoC support for Amlogic platforms"
depends on ARCH_MESON || (COMPILE_TEST && COMMON_CLK)
config SND_MESON_AXG_FIFO
tristate
select REGMAP_MMIO
imply COMMON_CLK_AXG_AUDIO
imply RESET_MESON_AUDIO_ARB
config SND_MESON_AXG_FRDDR
tristate "Amlogic AXG Playback FIFO support"
select SND_MESON_AXG_FIFO
help
Select Y or M to add support for the frontend playback interfaces
embedded in the Amlogic AXG SoC family
config SND_MESON_AXG_TODDR
tristate "Amlogic AXG Capture FIFO support"
select SND_MESON_AXG_FIFO
help
Select Y or M to add support for the frontend capture interfaces
embedded in the Amlogic AXG SoC family
config SND_MESON_AXG_TDM_FORMATTER
tristate
select REGMAP_MMIO
imply COMMON_CLK_AXG_AUDIO
config SND_MESON_AXG_TDM_INTERFACE
tristate
select SND_MESON_AXG_TDM_FORMATTER
config SND_MESON_AXG_TDMIN
tristate "Amlogic AXG TDM Input Support"
select SND_MESON_AXG_TDM_FORMATTER
select SND_MESON_AXG_TDM_INTERFACE
help
Select Y or M to add support for TDM input formatter embedded
in the Amlogic AXG SoC family
config SND_MESON_AXG_TDMOUT
tristate "Amlogic AXG TDM Output Support"
select SND_MESON_AXG_TDM_FORMATTER
select SND_MESON_AXG_TDM_INTERFACE
help
Select Y or M to add support for TDM output formatter embedded
in the Amlogic AXG SoC family
config SND_MESON_AXG_SOUND_CARD
tristate "Amlogic AXG Sound Card Support"
select SND_MESON_AXG_TDM_INTERFACE
imply SND_MESON_AXG_FRDDR
imply SND_MESON_AXG_TODDR
imply SND_MESON_AXG_TDMIN
imply SND_MESON_AXG_TDMOUT
imply SND_MESON_AXG_SPDIFOUT
imply SND_MESON_AXG_SPDIFIN
imply SND_MESON_AXG_PDM
imply SND_MESON_G12A_TOHDMITX if DRM_MESON_DW_HDMI
help
Select Y or M to add support for the AXG SoC sound card
config SND_MESON_AXG_SPDIFOUT
tristate "Amlogic AXG SPDIF Output Support"
select SND_PCM_IEC958
imply SND_SOC_SPDIF
imply COMMON_CLK_AXG_AUDIO
help
Select Y or M to add support for SPDIF output serializer embedded
in the Amlogic AXG SoC family
config SND_MESON_AXG_SPDIFIN
tristate "Amlogic AXG SPDIF Input Support"
imply SND_SOC_SPDIF
help
Select Y or M to add support for SPDIF input embedded
in the Amlogic AXG SoC family
config SND_MESON_AXG_PDM
tristate "Amlogic AXG PDM Input Support"
imply SND_SOC_DMIC
imply COMMON_CLK_AXG_AUDIO
help
Select Y or M to add support for PDM input embedded
in the Amlogic AXG SoC family
config SND_MESON_CODEC_GLUE
tristate
config SND_MESON_G12A_TOHDMITX
tristate "Amlogic G12A To HDMI TX Control Support"
select REGMAP_MMIO
select SND_MESON_CODEC_GLUE
imply SND_SOC_HDMI_CODEC
help
Select Y or M to add support for HDMI audio on the g12a SoC
family
endmenu