0
mirror of https://github.com/torvalds/GuitarPedal.git synced 2026-09-05 08:15:29 +00:00
Files
Linus Torvalds 36bdb83eb2 Validation: bound a mix by what a mix accepts
--mix went through pot_value() with an index of zero, so it checked the
value against whatever the *first* pot of that effect accepted and named
that pot if it refused.  Every effect had a plain 0..120 pot in the slot,
so it read correctly and did the right thing.

An effect whose first pot is an enumeration breaks it: a mix of 120 is
refused as out of range for a switch it has nothing to do with, and the
error names that switch rather than the mix.  A mix is 0..120 whatever
the effect is, and it is not a pot.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-09-03 12:22:44 -07:00
..