]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ALSA: hda: Fix dependency on ASoC cs35l41 codec
authorTakashi Iwai <tiwai@suse.de>
Fri, 7 Jan 2022 09:26:47 +0000 (10:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 8 Jan 2022 07:46:34 +0000 (08:46 +0100)
The recently added support for CS35L41 codec unconditionally selects
CONFIG_SND_SOC_CS35L41_LIB, but this can't work unless the top-level
CONFIG_SND_SOC is enabled.  This patch adds the proper dependency.

Fixes: 6c4ddfa8b93f ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
Link: https://lore.kernel.org/r/20220107092647.20258-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig

index 84cefc006f29ccfef6baef99a3fdb405366cc705..68effb74866cbde80a4a685de33054147c1e0b94 100644 (file)
@@ -97,6 +97,7 @@ config SND_HDA_SCODEC_CS35L41
 config SND_HDA_SCODEC_CS35L41_I2C
        tristate "Build CS35L41 HD-audio side codec support for I2C Bus"
        depends on ACPI
+       depends on SND_SOC
        select SND_HDA_GENERIC
        select SND_SOC_CS35L41_LIB
        select SND_HDA_SCODEC_CS35L41
@@ -110,6 +111,7 @@ comment "Set to Y if you want auto-loading the side codec driver"
 config SND_HDA_SCODEC_CS35L41_SPI
        tristate "Build CS35L41 HD-audio codec support for SPI Bus"
        depends on ACPI
+       depends on SND_SOC
        select SND_HDA_GENERIC
        select SND_SOC_CS35L41_LIB
        select SND_HDA_SCODEC_CS35L41