]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ALSA: hda: cs35l41: Allow compilation test on non-ACPI configurations
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Jul 2022 15:35:17 +0000 (18:35 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 13 Jul 2022 06:28:13 +0000 (08:28 +0200)
ACPI is needed only for functioning of this codec on some platforms,
there is no compilation dependency, so make it optional

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220712153519.35692-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig

index 79ade4787d95b5171c50695c3b21915b933db2d1..e86cf80bdf96d3416401c5a446272ac06130c661 100644 (file)
@@ -97,7 +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 I2C
-       depends on ACPI
+       depends on ACPI || COMPILE_TEST
        depends on SND_SOC
        select SND_HDA_GENERIC
        select SND_SOC_CS35L41_LIB
@@ -113,7 +113,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 SPI_MASTER
-       depends on ACPI
+       depends on ACPI || COMPILE_TEST
        depends on SND_SOC
        select SND_HDA_GENERIC
        select SND_SOC_CS35L41_LIB