From: Arnd Bergmann Date: Mon, 2 Feb 2026 09:54:12 +0000 (+0100) Subject: ASoC: rt5575: fix SPI dependency X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db63f6af17945aed7497ce34a5648add0c1b6d9;p=thirdparty%2Fkernel%2Flinux.git ASoC: rt5575: fix SPI dependency The rt5575 driver fails to link when SPI support is in a loadable module but the codec is built-in: x86_64-linux-ld: vmlinux.o: in function `rt5575_i2c_probe': rt5575.c:(.text+0x9792ce): undefined reference to `rt5575_spi_get_device' rt5575.c:(.text+0x979332): undefined reference to `rt5575_spi_fw_load' Change the symbol in to a 'bool' and add a dependency that rules out the broken configuration. Fixes: 420739112e95 ("ASoC: rt5575: Add the codec driver for the ALC5575") Signed-off-by: Arnd Bergmann Link: https://patch.msgid.link/20260202095432.1234133-1-arnd@kernel.org Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index f34d7b510c91..e78ac302da15 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -1801,9 +1801,10 @@ config SND_SOC_RT5575 depends on I2C config SND_SOC_RT5575_SPI - tristate "Realtek ALC5575 Codec - SPI" + bool "Realtek ALC5575 Codec - SPI" depends on SPI_MASTER && I2C depends on SND_SOC_RT5575 + depends on SPI_MASTER=y || SND_SOC_RT5575=m config SND_SOC_RT5616 tristate "Realtek RT5616 CODEC"