kselftest: alsa: Validate values read from enumerations
authorMark Brown <broonie@kernel.org>
Fri, 17 Dec 2021 13:02:13 +0000 (13:02 +0000)
committerTakashi Iwai <tiwai@suse.de>
Sat, 25 Dec 2021 08:13:28 +0000 (09:13 +0100)
commit10f2f194663af178f32aeb4086fc3f6687d25056
tree2e433517e5bc68344a3f29c81a0850481fa5acf8
parent3f48b137d88e710b67b2bcc01aa3d77b4db610c4
kselftest: alsa: Validate values read from enumerations

Enumerations should return a value between 0 and items-1, check that this
is the case.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20211217130213.3893415-3-broonie@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/mixer-test.c