[PATCH v2 1/2] selftests/alsa: Add a config file for the test-only options
From: HyeongJun An
Date: Sat Nov 28 2026 - 01:52:56 EST
Some of the ALSA selftests need kernel options that a normal config does
not enable. test-pcmtest-driver needs the pcmtest driver, seq-ump-test
needs CONFIG_SND_SEQ_UMP, utimer-test needs CONFIG_SND_UTIMER, and
aloop-test needs snd-aloop. Without them these tests skip.
CI systems build their kselftest kernels with make kselftest-merge, which
merges the config file of each selftest directory, and alsa has none. On
the KernelCI arm64 kselftest kernel CONFIG_SND_PCMTEST, CONFIG_SND_SEQ_UMP
and CONFIG_SND_UTIMER are off, and every test-pcmtest-driver case skips.
Add a config file with only these options. pcmtest and aloop are under
CONFIG_SND_DRIVERS, so enable that too in case the base config turns it
off. mixer-test and pcm-test check whatever sound drivers a system has,
so no drivers are listed.
Signed-off-by: HyeongJun An <sammiee5311@xxxxxxxxx>
---
tools/testing/selftests/alsa/config | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 tools/testing/selftests/alsa/config
diff --git a/tools/testing/selftests/alsa/config b/tools/testing/selftests/alsa/config
new file mode 100644
index 000000000000..23ea0ccfdfa6
--- /dev/null
+++ b/tools/testing/selftests/alsa/config
@@ -0,0 +1,7 @@
+CONFIG_DEBUG_FS=y
+CONFIG_SND_ALOOP=m
+CONFIG_SND_DRIVERS=y
+CONFIG_SND_PCMTEST=m
+CONFIG_SND_SEQUENCER=m
+CONFIG_SND_SEQ_UMP=y
+CONFIG_SND_UTIMER=y
--
2.43.0