0001 # SPDX-License-Identifier: GPL-2.0-only
0002 menu "Allwinner SoC Audio support"
0003 depends on ARCH_SUNXI || COMPILE_TEST
0004
0005 config SND_SUN4I_CODEC
0006 tristate "Allwinner A10 Codec Support"
0007 select SND_SOC_GENERIC_DMAENGINE_PCM
0008 select REGMAP_MMIO
0009 help
0010 Select Y or M to add support for the Codec embedded in the Allwinner
0011 A10 and affiliated SoCs.
0012
0013 config SND_SUN8I_CODEC
0014 tristate "Allwinner SUN8I audio codec"
0015 depends on OF
0016 depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
0017 depends on COMMON_CLK
0018 select REGMAP_MMIO
0019 help
0020 This option enables the digital part of the internal audio codec for
0021 Allwinner sun8i SoC (and particularly A33).
0022
0023 Say Y or M if you want to add sun8i digital audio codec support.
0024
0025 config SND_SUN8I_CODEC_ANALOG
0026 tristate "Allwinner sun8i Codec Analog Controls Support"
0027 depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
0028 select SND_SUN8I_ADDA_PR_REGMAP
0029 help
0030 Say Y or M if you want to add support for the analog controls for
0031 the codec embedded in newer Allwinner SoCs.
0032
0033 config SND_SUN50I_CODEC_ANALOG
0034 tristate "Allwinner sun50i Codec Analog Controls Support"
0035 depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST
0036 select SND_SUN8I_ADDA_PR_REGMAP
0037 help
0038 Say Y or M if you want to add support for the analog controls for
0039 the codec embedded in Allwinner A64 SoC.
0040
0041 config SND_SUN4I_I2S
0042 tristate "Allwinner A10 I2S Support"
0043 select SND_SOC_GENERIC_DMAENGINE_PCM
0044 select REGMAP_MMIO
0045 help
0046 Say Y or M if you want to add support for codecs attached to
0047 the Allwinner A10 I2S. You will also need to select the
0048 individual machine drivers to support below.
0049
0050 config SND_SUN4I_SPDIF
0051 tristate "Allwinner A10 SPDIF Support"
0052 depends on OF
0053 select SND_SOC_GENERIC_DMAENGINE_PCM
0054 select REGMAP_MMIO
0055 help
0056 Say Y or M to add support for the S/PDIF audio block in the Allwinner
0057 A10 and affiliated SoCs.
0058
0059 config SND_SUN8I_ADDA_PR_REGMAP
0060 tristate
0061 select REGMAP
0062
0063 endmenu