Skip to contentSkip to conversation

ALSA: core: Fix dependencies for SND_CORE_TEST

PATCH Superseded Ivan Orlov 2 participants 3 messages Feb 1, 2024 Sound

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ivan Orlov

author
#0 lore raw

PATCH 1/1 ALSA: core: Fix dependencies for SND_CORE_TEST

Add the CONFIG_SND_PCM dependency for CONFIG_SND_CORE_TEST config entry as the test uses symbols from 'pcm_misc.c'.

---
 sound/core/Kconfig | 1 +
 1 file changed, 1 insertion(+)
sound/core/Kconfig +1 -0
index 664c6ee2b5a1..9a44f259ccca 100644
@@ -42,6 +42,7 @@ config SND_UMP_LEGACY_RAWMIDI
 config SND_CORE_TEST
 	tristate "Sound core KUnit test"
 	depends on KUNIT
+	depends on SND_PCM
 	default KUNIT_ALL_TESTS
 	help
 	  This options enables the sound core functions KUnit test.
Signature · 1 line
2.34.1
#1 lore raw
Quoted 5 lines · Ivan Orlov

Add the CONFIG_SND_PCM dependency for CONFIG_SND_CORE_TEST config entry as the test uses symbols from 'pcm_misc.c'.

It should rather select instead of depends-on. User can't enable CONFIG_SND_PCM explicitly, but it's selected by the top-level drivers.

Also, please add Fixes tag. It's a clear regression fix.

thanks,

Takashi

author
#2 lore raw
Quoted 7 lines · Takashi Iwai

It should rather select instead of depends-on. User can't enable CONFIG_SND_PCM explicitly, but it's selected by the top-level drivers.

Also, please add Fixes tag. It's a clear regression fix.

Alright, I'll send the V2 with suggested changes.

Thank you for the review!

Signature · 2 lines
Kind regards,
Ivan Orlov