kselftest/alsa: Report failures to set the requested channels as skips
authorMark Brown <broonie@kernel.org>
Thu, 1 Dec 2022 17:07:42 +0000 (17:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Dec 2022 19:02:12 +0000 (20:02 +0100)
commit8370d9b00c929398cc79572a9b584878024ceb59
tree1eb122a60b655a3fa5d2939358b473ba5a756932
parentf944f8b539ea76bd70348bfc35dfa0780e510c0f
kselftest/alsa: Report failures to set the requested channels as skips

If constraint selection gives us a number of channels other than the one
that we asked for that isn't a failure, that is the device implementing
constraints and advertising that it can't support whatever we asked
for. Report such cases as a test skip rather than failure so we don't have
false positives.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221201170745.1111236-4-broonie@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/pcm-test.c