]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5682: fix I2C/Soundwire dependencies
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Apr 2020 21:46:14 +0000 (23:46 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Apr 2020 16:21:34 +0000 (17:21 +0100)
commit97cc55a627575046ece82735d84d0b2d7e0f7f44
treee5cef9e3b005e5d582601153352b217e5254794b
parentd8d74d0202916d32c442b1a1aa0d7587401bca83
ASoC: rt5682: fix I2C/Soundwire dependencies

If one of the two is a loadable module, the combined driver must
not be built-in:

aarch64-linux-ld: sound/soc/codecs/rt5682.o: in function `rt5682_sdw_hw_free':
rt5682.c:(.text+0xb34): undefined reference to `sdw_stream_remove_slave'
aarch64-linux-ld: sound/soc/codecs/rt5682.o: in function `rt5682_sdw_hw_params':
rt5682.c:(.text+0xe78): undefined reference to `sdw_stream_add_slave'

In particular, the soundwire driver must not be built-in if
CONFIG_I2C=m.

Fixes: 01b025e54558 ("ASoC: rt5682: fix unmet dependencies")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200428214642.3925004-1-arnd@arndb.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig