[PATCH] selftests: alsa: add config for required kernel options

From: Ben Copeland

Date: Thu Mar 19 2026 - 04:45:08 EST


The alsa kselftests are missing a config file to declare their required
kernel configuration options. This causes the utimer-test (timer_f.utimer)
to fail on kernels without CONFIG_SND_UTIMER enabled, as the
SNDRV_TIMER_IOCTL_CREATE ioctl returns -1.

Add the config file with the necessary sound configs so that
'make kselftest-merge' can enable them automatically.

Link: https://lore.kernel.org/linux-kselftest/0e9c25d3-efbd-433b-9fb1-0923010101b9@stanley.mountain/
Signed-off-by: Ben Copeland <ben.copeland@xxxxxxxxxx>
---
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..810cc31f09b3
--- /dev/null
+++ b/tools/testing/selftests/alsa/config
@@ -0,0 +1,7 @@
+CONFIG_SND=y
+CONFIG_SND_TIMER=y
+CONFIG_SND_PCM=y
+CONFIG_SND_PCM_TIMER=y
+CONFIG_SND_PCMTEST=m
+CONFIG_SND_UTIMER=y
+CONFIG_DEBUG_FS=y
--
2.53.0