xref: /linux/sound/soc/sunxi/Kconfig (revision 177bf8620cf4ed290ee170a6c5966adc0924b336)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2*c0262c18SKuninori Morimotomenu "Allwinner"
3702650bdSPeter Robinson	depends on ARCH_SUNXI || COMPILE_TEST
445fb6b6fSEmilio López
545fb6b6fSEmilio Lópezconfig SND_SUN4I_CODEC
645fb6b6fSEmilio López	tristate "Allwinner A10 Codec Support"
745fb6b6fSEmilio López	select SND_SOC_GENERIC_DMAENGINE_PCM
845fb6b6fSEmilio López	select REGMAP_MMIO
945fb6b6fSEmilio López	help
1045fb6b6fSEmilio López	  Select Y or M to add support for the Codec embedded in the Allwinner
1145fb6b6fSEmilio López	  A10 and affiliated SoCs.
1245fb6b6fSEmilio López
1336c68493SMylène Josserandconfig SND_SUN8I_CODEC
1436c68493SMylène Josserand	tristate "Allwinner SUN8I audio codec"
1536c68493SMylène Josserand	depends on OF
167e95aac9SVasily Khoruzhick	depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
1761349f0fSKrzysztof Kozlowski	depends on COMMON_CLK
1836c68493SMylène Josserand	select REGMAP_MMIO
1936c68493SMylène Josserand	help
2036c68493SMylène Josserand	  This option enables the digital part of the internal audio codec for
2136c68493SMylène Josserand	  Allwinner sun8i SoC (and particularly A33).
2236c68493SMylène Josserand
2336c68493SMylène Josserand	  Say Y or M if you want to add sun8i digital audio codec support.
2436c68493SMylène Josserand
25ba2ff302SChen-Yu Tsaiconfig SND_SUN8I_CODEC_ANALOG
26ba2ff302SChen-Yu Tsai	tristate "Allwinner sun8i Codec Analog Controls Support"
27e5028a25SIcenowy Zheng	depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
2855b407f6SVasily Khoruzhick	select SND_SUN8I_ADDA_PR_REGMAP
29ba2ff302SChen-Yu Tsai	help
30ba2ff302SChen-Yu Tsai	  Say Y or M if you want to add support for the analog controls for
31ba2ff302SChen-Yu Tsai	  the codec embedded in newer Allwinner SoCs.
32ba2ff302SChen-Yu Tsai
3342371f32SVasily Khoruzhickconfig SND_SUN50I_CODEC_ANALOG
3442371f32SVasily Khoruzhick	tristate "Allwinner sun50i Codec Analog Controls Support"
3542371f32SVasily Khoruzhick	depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST
362f5d9412SVasily Khoruzhick	select SND_SUN8I_ADDA_PR_REGMAP
3742371f32SVasily Khoruzhick	help
3842371f32SVasily Khoruzhick	  Say Y or M if you want to add support for the analog controls for
3942371f32SVasily Khoruzhick	  the codec embedded in Allwinner A64 SoC.
4042371f32SVasily Khoruzhick
41fa7c0d13SMaxime Ripardconfig SND_SUN4I_I2S
42fa7c0d13SMaxime Ripard	tristate "Allwinner A10 I2S Support"
43fa7c0d13SMaxime Ripard	select SND_SOC_GENERIC_DMAENGINE_PCM
44fa7c0d13SMaxime Ripard	select REGMAP_MMIO
45fa7c0d13SMaxime Ripard	help
46fa7c0d13SMaxime Ripard	  Say Y or M if you want to add support for codecs attached to
47fa7c0d13SMaxime Ripard	  the Allwinner A10 I2S. You will also need to select the
48fa7c0d13SMaxime Ripard	  individual machine drivers to support below.
49fa7c0d13SMaxime Ripard
50f8260afaSMarcus Cooperconfig SND_SUN4I_SPDIF
51f8260afaSMarcus Cooper	tristate "Allwinner A10 SPDIF Support"
52f8260afaSMarcus Cooper	depends on OF
53f8260afaSMarcus Cooper	select SND_SOC_GENERIC_DMAENGINE_PCM
54f8260afaSMarcus Cooper	select REGMAP_MMIO
55f8260afaSMarcus Cooper	help
56f8260afaSMarcus Cooper	  Say Y or M to add support for the S/PDIF audio block in the Allwinner
57f8260afaSMarcus Cooper	  A10 and affiliated SoCs.
5855b407f6SVasily Khoruzhick
599fc2c8edSBan Taoconfig SND_SUN50I_DMIC
609fc2c8edSBan Tao	tristate "Allwinner H6 DMIC Support"
619fc2c8edSBan Tao	select SND_SOC_GENERIC_DMAENGINE_PCM
629fc2c8edSBan Tao	help
639fc2c8edSBan Tao	  Say Y or M to add support for the DMIC audio block in the Allwinner
649fc2c8edSBan Tao	  H6 and affiliated SoCs.
659fc2c8edSBan Tao
6655b407f6SVasily Khoruzhickconfig SND_SUN8I_ADDA_PR_REGMAP
6755b407f6SVasily Khoruzhick	tristate
6855b407f6SVasily Khoruzhick	select REGMAP
6955b407f6SVasily Khoruzhick
7045fb6b6fSEmilio Lópezendmenu
71