]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: cs35l41: Fix undefined reference to core functions
authorLucas Tanure <tanureal@opensource.cirrus.com>
Wed, 1 Dec 2021 18:00:04 +0000 (18:00 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:41:35 +0000 (14:41 +0200)
BugLink: https://bugs.launchpad.net/bugs/1965496
Auto select core driver if i2c or spi bus drivers are
selected

Fixes: a5e0091d62ab ("ASoC: cs35l41: Fix link problem")
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20211201180004.1402156-2-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 0695ad92fe1a0bb7697eb92c6a145a73c5ab0e24)
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>
sound/soc/codecs/Kconfig

index a3d9d4093948db7f18e4da69c9c48cb18b3117f2..3417c84770cbe421b711c16735c915bd81eb7c6d 100644 (file)
@@ -609,17 +609,19 @@ config SND_SOC_CS35L36
 
 config SND_SOC_CS35L41
        tristate
+       default y if SND_SOC_CS35L41_SPI=y
+       default y if SND_SOC_CS35L41_I2C=y
+       default m if SND_SOC_CS35L41_SPI=m
+       default m if SND_SOC_CS35L41_I2C=m
 
 config SND_SOC_CS35L41_SPI
        tristate "Cirrus Logic CS35L41 CODEC (SPI)"
        depends on SPI_MASTER
-       select SND_SOC_CS35L41
        select REGMAP_SPI
 
 config SND_SOC_CS35L41_I2C
        tristate "Cirrus Logic CS35L41 CODEC (I2C)"
        depends on I2C
-       select SND_SOC_CS35L41
        select REGMAP_I2C
 
 config SND_SOC_CS42L42