forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/sunxi/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menu "Allwinner SoC Audio support"
23 depends on ARCH_SUNXI || COMPILE_TEST
34
....@@ -12,7 +13,7 @@
1213 config SND_SUN8I_CODEC
1314 tristate "Allwinner SUN8I audio codec"
1415 depends on OF
15
- depends on MACH_SUN8I || COMPILE_TEST
16
+ depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
1617 select REGMAP_MMIO
1718 help
1819 This option enables the digital part of the internal audio codec for
....@@ -23,10 +24,18 @@
2324 config SND_SUN8I_CODEC_ANALOG
2425 tristate "Allwinner sun8i Codec Analog Controls Support"
2526 depends on MACH_SUN8I || (ARM64 && ARCH_SUNXI) || COMPILE_TEST
26
- select REGMAP
27
+ select SND_SUN8I_ADDA_PR_REGMAP
2728 help
2829 Say Y or M if you want to add support for the analog controls for
2930 the codec embedded in newer Allwinner SoCs.
31
+
32
+config SND_SUN50I_CODEC_ANALOG
33
+ tristate "Allwinner sun50i Codec Analog Controls Support"
34
+ depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST
35
+ select SND_SUN8I_ADDA_PR_REGMAP
36
+ help
37
+ Say Y or M if you want to add support for the analog controls for
38
+ the codec embedded in Allwinner A64 SoC.
3039
3140 config SND_SUN4I_I2S
3241 tristate "Allwinner A10 I2S Support"
....@@ -45,4 +54,9 @@
4554 help
4655 Say Y or M to add support for the S/PDIF audio block in the Allwinner
4756 A10 and affiliated SoCs.
57
+
58
+config SND_SUN8I_ADDA_PR_REGMAP
59
+ tristate
60
+ select REGMAP
61
+
4862 endmenu