Skip to contentSkip to conversation

sound: soc: sh: fix Kconfig dependency on DMADEVICES

PATCH New Julian Braha 1 participant 1 message Mar 21, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound: soc: sh: fix Kconfig dependency on DMADEVICES

When SND_SIU_MIGOR is enabled, and DMADEVICES is disabled, Kbuild gives the following warning:

WARNING: unmet direct dependencies detected for SND_SOC_SH4_SIU
Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (SUPERH [=y] || ARCH_RENESAS || COMPILE_TEST [=n]) && ARCH_SHMOBILE [=y] && HAVE_CLK [=y] && DMADEVICES [=n] Selected by [y]:
- SND_SIU_MIGOR [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && (SUPERH [=y] || ARCH_RENESAS || COMPILE_TEST [=n]) && SH_MIGOR [=y] && I2C [=y]

This is because SND_SIU_MIGOR selects SND_SOC_SH4_SIU without selecting or depending on DMADEVICES, despite SND_SOC_SH4_SIU depending on DMADEVICES.

---
 sound/soc/sh/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sh/Kconfig +1 -1
index 346c806ba390..503ee235e46d 100644
@@ -60,7 +60,7 @@ config SND_SH7760_AC97
 
 config SND_SIU_MIGOR
 	tristate "SIU sound support on Migo-R"
-	depends on SH_MIGOR && I2C
+	depends on SH_MIGOR && I2C && DMADEVICES
 	select SND_SOC_SH4_SIU
 	select SND_SOC_WM8978
 	help
Signature · 1 line
2.25.1