[PATCH v2 3/4] ASoC: renesas: enable COMPILE_TEST for AC97 SH7760
Kuninori Morimoto <[email protected]> Mon, 3 Aug 2026 01:55:34 +0000
| Newsgroups | org.kernel.vger.linux-sound |
|---|---|
| Message-ID | <[email protected]> |
AC97 SH7760 is not compiled with COMPILE_TEST, and there is no defconfig which selects it. So it is easy to be overlooked for compile test and/or ASoC updating. Let's enable COMPILE_TEST when it was for SuperH / SH-Mobile Then, remove #error which hinder for compile test. Signed-off-by: Kuninori Morimoto <[email protected]> --- sound/soc/renesas/Kconfig | 3 ++- sound/soc/renesas/hac.c | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/renesas/Kconfig b/sound/soc/renesas/Kconfig index bb73e5402e4e0..7b00c6a73687f 100644 --- a/sound/soc/renesas/Kconfig +++ b/sound/soc/renesas/Kconfig @@ -63,7 +63,8 @@ config SND_SOC_RZ config SND_SH7760_AC97 tristate "SH7760 AC97 sound support" - depends on CPU_SUBTYPE_SH7760 && SND_SOC_PCM_SH7760 + depends on SUPERH || ARCH_SHMOBILE + depends on (CPU_SUBTYPE_SH7760 && SND_SOC_PCM_SH7760) || COMPILE_TEST select SND_SOC_SH4_HAC select SND_SOC_AC97_CODEC help diff --git a/sound/soc/renesas/hac.c b/sound/soc/renesas/hac.c index db618c09d1e04..9963c9f1ca452 100644 --- a/sound/soc/renesas/hac.c +++ b/sound/soc/renesas/hac.c @@ -86,8 +86,6 @@ struct hac_priv { { .mmio = 0xFFE40000, }, -#else -#error "Unsupported SuperH SoC" #endif }; -- 2.53.0