]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sigmadsp: Split regmap and I2C support into separate modules
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 6 Jun 2014 12:09:17 +0000 (14:09 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 6 Jun 2014 13:09:45 +0000 (14:09 +0100)
commita91968f9ecdf7c3a4776523f8691b8fac98449f1
treedd5c7294e60a377f43f60b771143282281845801
parent44aa202d5eead14334c758551686a23b560684e2
ASoC: sigmadsp: Split regmap and I2C support into separate modules

When the SigmaDSP module is built-in, but the I2C core is build as a module
we'll get a undefined reference:

sound/built-in.o: In function `sigma_action_write_i2c':
:(.text+0x5d8d4): undefined reference to `i2c_master_send'

This can happen if a audio driver that is using the regmap SigmaDSP interface is
built into the kernel, but core I2C support is build as a module. To fix this
split the SigmaDSP module into three modules, one module providing the core
infrastructure and two small modules implementing the regmap and I2C interfaces.
This allows e.g. the core infrastructure and regmap support to be built into the
kernel while I2C support can still be build as a module.

Fixes: fb2dfc726 ("ASoC: Add ADAU1361/ADAU1761 audio CODEC support")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/sigmadsp-i2c.c [new file with mode: 0644]
sound/soc/codecs/sigmadsp-regmap.c [new file with mode: 0644]
sound/soc/codecs/sigmadsp.c
sound/soc/codecs/sigmadsp.h