Skip to content

Commit 1db63f6

Browse files
arndbbroonie
authored andcommitted
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: 4207391 ("ASoC: rt5575: Add the codec driver for the ALC5575") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20260202095432.1234133-1-arnd@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a1d14d8 commit 1db63f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sound/soc/codecs/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,9 +1801,10 @@ config SND_SOC_RT5575
18011801
depends on I2C
18021802

18031803
config SND_SOC_RT5575_SPI
1804-
tristate "Realtek ALC5575 Codec - SPI"
1804+
bool "Realtek ALC5575 Codec - SPI"
18051805
depends on SPI_MASTER && I2C
18061806
depends on SND_SOC_RT5575
1807+
depends on SPI_MASTER=y || SND_SOC_RT5575=m
18071808

18081809
config SND_SOC_RT5616
18091810
tristate "Realtek RT5616 CODEC"

0 commit comments

Comments
 (0)