ASoC: cs35l41: Convert tables to shared source code
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 17 Dec 2021 11:56:59 +0000 (11:56 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 31 Dec 2021 13:21:00 +0000 (13:21 +0000)
commita87d42227cf5614fe0040ddd1fe642c54298b42c
treedfdd62440111ebad26f563fe62c8c4431844c09e
parentcc5c9788106fb1b9e03c8c57d8d7166073a54416
ASoC: cs35l41: Convert tables to shared source code

To support CS35L41 in HDA systems the HDA driver
for CS35L41 would have to duplicate some functions
that already exist on ASoC driver
So instead of duplicate the code, use the new lib
source as a shared resource for both ASoC and HDA

Also, change the way CONFIG_SND_SOC_CS35L41 is
selected, as reported by Intel Kernel test robot,
it is possible to build SND_SOC_CS35L41_SPI/I2C
without the main driver, which would lead to build
failures.

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20211217115708.882525-2-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l41.h
sound/soc/codecs/Kconfig
sound/soc/codecs/Makefile
sound/soc/codecs/cs35l41-i2c.c
sound/soc/codecs/cs35l41-lib.c [new file with mode: 0644]
sound/soc/codecs/cs35l41-spi.c
sound/soc/codecs/cs35l41-tables.c [deleted file]
sound/soc/codecs/cs35l41.h