]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 10:00:02 +0000 (12:00 +0200)
commit6d45885be4ff66627b8770fb5a1ca0a369cf4fc7
tree2f8ca3b375e4601cb8358000082e772f0f9b7bea
parent2f0f93859867c79c44579c1f4b495f4e254464fa
ASoC: cs35l41: Convert tables to shared source code

BugLink: https://bugs.launchpad.net/bugs/1965496
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>
(cherry picked from commit a87d42227cf5614fe0040ddd1fe642c54298b42c)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Andrea Righi <andrea.righi@canonical.com>
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
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