ALSA: hda/cirrus_scodec_test: Don't select dependencies
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 9 Apr 2025 11:45:20 +0000 (12:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 9 Apr 2025 12:54:49 +0000 (14:54 +0200)
Depend on SND_HDA_CIRRUS_SCODEC and GPIOLIB instead of selecting them.

KUNIT_ALL_TESTS should only build tests that have satisfied dependencies
and test components that are already being built. It must not cause
other stuff to be added to the build.

Fixes: 2144833e7b41 ("ALSA: hda: cirrus_scodec: Add KUnit test")
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250409114520.914079-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig

index fb955a205d50ceee64a9d66b1b737791a1453975..9c427270ff4f493eed97a73814cdde46ba675f14 100644 (file)
@@ -96,9 +96,7 @@ config SND_HDA_CIRRUS_SCODEC
 
 config SND_HDA_CIRRUS_SCODEC_KUNIT_TEST
        tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
-       select SND_HDA_CIRRUS_SCODEC
-       select GPIOLIB
-       depends on KUNIT
+       depends on SND_HDA_CIRRUS_SCODEC && GPIOLIB && KUNIT
        default KUNIT_ALL_TESTS
        help
          This builds KUnit tests for the cirrus side-codec library.