[PATCH v2 1/4] ASoC: renesas: enable COMPILE_TEST for Migo-R / SIU

Kuninori Morimoto <[email protected]> Mon, 3 Aug 2026 01:55:22 +0000
Newsgroups org.kernel.vger.linux-sound
Message-ID <[email protected]>
Migo-R / SIU are not compiled with COMPILE_TEST, and there is no defconfig
which selects them. So it is easy to be overlooked for compile test and/or
ASoC updating.

One of the reason is its complex depends / select.

SND_SOC_SH4_SIU doesn't have tristate title, which means it needs to be
selected from other CONFIG, and SND_SIU_MIGOR is it. And then, MIGOR /
SIU has many duplicated and complex dependencies.

Let's cleanup them and enable COMPILE_TEST when it was for
SuperH / SH-Mobile.

And remove #include <cpu/sh7722.h> which is not used, but be hinder for
compile test.

Signed-off-by: Kuninori Morimoto <[email protected]>
---
 sound/soc/renesas/Kconfig | 8 +++-----
 sound/soc/renesas/migor.c | 2 --
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/sound/soc/renesas/Kconfig b/sound/soc/renesas/Kconfig
index 6520217e7407e..b7a91e44c2754 100644
--- a/sound/soc/renesas/Kconfig
+++ b/sound/soc/renesas/Kconfig
@@ -30,10 +30,6 @@ config SND_SOC_SH4_FSI
 
 config SND_SOC_SH4_SIU
 	tristate
-	depends on ARCH_SHMOBILE && HAVE_CLK
-	depends on DMADEVICES
-	select DMA_ENGINE
-	select SH_DMAE
 	select FW_LOADER
 
 config SND_SOC_RCAR
@@ -75,7 +71,9 @@ config SND_SH7760_AC97
 
 config SND_SIU_MIGOR
 	tristate "SIU sound support on Migo-R"
-	depends on SH_MIGOR && I2C && DMADEVICES
+	depends on SUPERH || ARCH_SHMOBILE
+	depends on I2C
+	depends on (SH_MIGOR && SH_DMAE) || COMPILE_TEST
 	select SND_SOC_SH4_SIU
 	select SND_SOC_WM8978
 	help
diff --git a/sound/soc/renesas/migor.c b/sound/soc/renesas/migor.c
index 45fc594d331b0..ccb48e653eaa5 100644
--- a/sound/soc/renesas/migor.c
+++ b/sound/soc/renesas/migor.c
@@ -11,8 +11,6 @@
 
 #include <asm/clock.h>
 
-#include <cpu/sh7722.h>
-
 #include <sound/core.h>
 #include <sound/pcm.h>
 #include <sound/soc.h>
-- 
2.53.0