diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-01-29 00:31:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-29 14:52:21 +0300 |
commit | 4c121129c9dcb43b33d1cd568c8f2636e72597b0 (patch) | |
tree | 862bb1ac06bc307cf88a93306dbe4267b472b80e /sound/drivers | |
parent | 9913b9f549330e9b72945ec94cb9c7fe57d78cce (diff) | |
download | linux-4c121129c9dcb43b33d1cd568c8f2636e72597b0.tar.xz |
ASoC: rt5677: fix SPI dependency
The rt5677 codec has gained code that requires SPI to work correctly,
but there is no provision in Kconfig to prevent the driver from
being used when SPI is disabled or a loadable module, resulting
in this build error:
sound/built-in.o: In function `rt5677_spi_write':
:(.text+0xa7ba0): undefined reference to `spi_sync'
sound/built-in.o: In function `rt5677_spi_driver_init':
:(.init.text+0x253c): undefined reference to `spi_register_driver'
ERROR: "spi_sync" [sound/soc/codecs/snd-soc-rt5677-spi.ko] undefined!
ERROR: "spi_register_driver" [sound/soc/codecs/snd-soc-rt5677-spi.ko] undefined!
This makes the SPI portion of the driver depend on the SPI subsystem,
and disables the function that uses SPI for firmware download if SPI
is disabled. The latter may not be the correct solution, but I could
not come up with a better one.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: af48f1d08a54741 ("ASoC: rt5677: Support DSP function for VAD application")
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/drivers')
0 files changed, 0 insertions, 0 deletions