]> git.itanic.dy.fi Git - linux-stable/commit
kselftest/alsa: pcm-test: Report cards declared in config but missing
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Tue, 19 Sep 2023 15:26:21 +0000 (11:26 -0400)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Sep 2023 16:10:50 +0000 (18:10 +0200)
commit72f6a13022f3bf16df305b75c32f95ece263a5ce
treeb938140599985c482136d64cdfbd2fa5fbe1e611
parentf9262fb1da6cc5499fff7e169e3aca8f8b59adde
kselftest/alsa: pcm-test: Report cards declared in config but missing

When parsing the configs, keep track of card configurations that match
the current system but haven't matched any card, and report those as
test failures as they represent that a card which was expected to be
present on the system is missing. This allows the configuration files to
not only be used to detect missing PCM devices (which is currently
possible) but also that the soundcard hasn't been registered at all.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230919152702.100617-1-nfraprado@collabora.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/alsa-local.h
tools/testing/selftests/alsa/conf.c
tools/testing/selftests/alsa/pcm-test.c