]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: rt5575: fix SPI dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 2 Feb 2026 09:54:12 +0000 (10:54 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2026 12:09:34 +0000 (12:09 +0000)
commit1db63f6af17945aed7497ce34a5648add0c1b6d9
tree04b9f3d6ddc7885c9a69ee587d4a8cedd36f01c0
parenta1d14d8364eac2611fe1391c73ff0e5b26064f0e
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 <arnd@arndb.de>
Link: https://patch.msgid.link/20260202095432.1234133-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig