diff options
| author | HyeongJun An <sammiee5311@gmail.com> | 2026-09-03 21:38:32 +0900 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-03 18:07:41 +0200 |
| commit | 8efd5f623c63584c2e284a837a7795d95a0491cb (patch) | |
| tree | 63537f901b2d2e79b1aa80d17ba86c4dbe0f1c3b /scripts/Makefile.thinlto | |
| parent | 8ba27b90095a4c7fcc878dd013969cd6b100cea7 (diff) | |
| download | linux-8efd5f623c63584c2e284a837a7795d95a0491cb.tar.gz linux-8efd5f623c63584c2e284a837a7795d95a0491cb.zip | |
selftests/alsa: Fix the step check for INTEGER controls
The modulo sits inside the subtraction, so the check evaluates
int_val - (min % step) rather than (int_val - min) % step. The
INTEGER64 branch below it is parenthesised correctly.
The written form passes only when the value equals min % step, and such
a value is always on a step boundary, so it never misses a real
violation. It only reports valid values as invalid.
snd-aloop declares step 1 on four controls, so every non-zero value on
them is reported. Before:
# PCM Rate Shift 100000.0 value 100000 invalid for step 1 minimum 80000
# Totals: pass:660 fail:101 xfail:0 xpass:0 skip:296 error:0
After, same card, nothing else changed:
# Totals: pass:740 fail:21 xfail:0 xpass:0 skip:296 error:0
Eighteen files under sound/ declare a non-zero step.
Fixes: 5aaf9efffc57 ("kselftest: alsa: Add simplistic test for ALSA mixer controls kselftest")
Signed-off-by: HyeongJun An <sammiee5311@gmail.com>
Assisted-by: Claude:claude-opus-5
Link: https://patch.msgid.link/20260903123832.97377-1-sammiee5311@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
