Skip to content

Commit 96014d9

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: cs-amp-lib-test: Don't select SND_SOC_CS_AMP_LIB
Depend on SND_SOC_CS_AMP_LIB instead of selecting it. KUNIT_ALL_TESTS should only build tests for components that are already being built, it should not cause other stuff to be added to the build. Fixes: 1778623 ("ASoC: cs-amp-lib: Add KUnit test for calibration helpers") Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20250411123608.1676462-3-rf@opensource.cirrus.com Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1aa495a commit 96014d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sound/soc/codecs/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,10 +776,9 @@ config SND_SOC_CS_AMP_LIB
776776
tristate
777777

778778
config SND_SOC_CS_AMP_LIB_TEST
779-
tristate "KUnit test for Cirrus Logic cs-amp-lib"
780-
depends on KUNIT
779+
tristate "KUnit test for Cirrus Logic cs-amp-lib" if !KUNIT_ALL_TESTS
780+
depends on SND_SOC_CS_AMP_LIB && KUNIT
781781
default KUNIT_ALL_TESTS
782-
select SND_SOC_CS_AMP_LIB
783782
help
784783
This builds KUnit tests for the Cirrus Logic common
785784
amplifier library.

0 commit comments

Comments
 (0)