You've already forked torvalds-GuitarPedal
mirror of
https://github.com/torvalds/GuitarPedal.git
synced 2026-09-05 08:15:29 +00:00
--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>