]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5649d6e3088e9cfb21062bd4be3fb19e91fb4069
treedfdd62440111ebad26f563fe62c8c4431844c09e
parent54fb8ff5f8cfd71b2642ff706f96f7dd22819e1f
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