Skip to contentSkip to conversation

ASoC: mediatek: make SND_SOC_MT8195 depends on COMMON_CLK

PATCH New Jackie Liu 1 participant 1 message Sep 22, 2021

Subsystems (2)
lore
Share & tools
lore

Jackie Liu

author
#0 lore raw

PATCH v2 1/1 ASoC: mediatek: make SND_SOC_MT8195 depends on COMMON_CLK

From: Jackie Liu <[email protected]>

After compiling with COMPILE_TEST, we are most likely to compile on a different architecture, such as x86. At this time, it is possible that the HAVE_CLK macro is not selected, resulting in compilation failure.

Avoid fail like:

Kernel: arch/x86/boot/bzImage is ready (#17)
ERROR: modpost: "clkdev_add" [sound/soc/mediatek/mt8195/snd-soc-mt8195-afe.ko] undefined!
ERROR: modpost: "clkdev_drop" [sound/soc/mediatek/mt8195/snd-soc-mt8195-afe.ko] undefined!
ERROR: modpost: "clk_unregister_gate" [sound/soc/mediatek/mt8195/snd-soc-mt8195-afe.ko] undefined!
ERROR: modpost: "clk_register_gate" [sound/soc/mediatek/mt8195/snd-soc-mt8195-afe.ko] undefined! make[1]: *** [scripts/Makefile.modpost:134: modules-only.symvers] Error 1
make[1]: *** Deleting file 'modules-only.symvers'
make: *** [Makefile:1783: modules] Error 2

Let's add the missing real dependencies!

HAVE_CLK (clkdev_add, clkdev_drop) COMMON_CLK (clk_unregister_gate, clk_register_gate)

Fixes 6746cc858259 ("ASoC: mediatek: mt8195: add platform driver")
---
 sound/soc/mediatek/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/soc/mediatek/Kconfig +1 -0
index 5a2f4667d50b..90356c8e1a3c 100644
@@ -188,6 +188,7 @@ config SND_SOC_MT8192_MT6359_RT1015_RT5682
 config SND_SOC_MT8195
 	tristate "ASoC support for Mediatek MT8195 chip"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
+	depends on COMMON_CLK
 	select SND_SOC_MEDIATEK
 	help
 	  This adds ASoC platform driver support for Mediatek MT8195 chip
Signature · 1 line
2.25.1