Skip to content

Commit 0695ad9

Browse files
Lucas Tanurebroonie
authored andcommitted
ASoC: cs35l41: Fix undefined reference to core functions
Auto select core driver if i2c or spi bus drivers are selected Fixes: a5e0091 ("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>
1 parent 19a628d commit 0695ad9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sound/soc/codecs/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,17 +614,19 @@ config SND_SOC_CS35L36
614614

615615
config SND_SOC_CS35L41
616616
tristate
617+
default y if SND_SOC_CS35L41_SPI=y
618+
default y if SND_SOC_CS35L41_I2C=y
619+
default m if SND_SOC_CS35L41_SPI=m
620+
default m if SND_SOC_CS35L41_I2C=m
617621

618622
config SND_SOC_CS35L41_SPI
619623
tristate "Cirrus Logic CS35L41 CODEC (SPI)"
620624
depends on SPI_MASTER
621-
select SND_SOC_CS35L41
622625
select REGMAP_SPI
623626

624627
config SND_SOC_CS35L41_I2C
625628
tristate "Cirrus Logic CS35L41 CODEC (I2C)"
626629
depends on I2C
627-
select SND_SOC_CS35L41
628630
select REGMAP_I2C
629631

630632
config SND_SOC_CS42L42

0 commit comments

Comments
 (0)