]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/alsa: Fix validation of writes to volatile controls
authorMark Brown <broonie@kernel.org>
Sun, 16 Jun 2024 07:34:45 +0000 (09:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2024 10:00:18 +0000 (12:00 +0200)
commit1b1285e4759e4d9df4f8e46d92802ff87ce8709b
treeb53c80f3826c243dd3b207f72543220bc29aa08b
parent50ed081284fe2bfd1f25e8b92f4f6a4990e73c0a
kselftest/alsa: Fix validation of writes to volatile controls

When validating writes to controls we check that whatever value we wrote
actually appears in the control.  For volatile controls we cannot assume
that this will be the case, the value may be changed at any time
including between our write and read.  Handle this by moving the check
for volatile controls that we currently do for events to a separate
block and just verifying that whatever value we read is valid for the
control.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240614-alsa-selftest-volatile-v1-1-3874f02964b1@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/20240616073454.16512-5-tiwai@suse.de
tools/testing/selftests/alsa/mixer-test.c