ALSA: scarlett2: Allow for controls with a "mute mode"
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 26 Dec 2023 18:06:38 +0000 (04:36 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:52:13 +0000 (15:52 +0100)
commit1b53c116232e082db06ab5310c1be1d4bf75dfe1
tree7d0d6e5f651c0641b7860d8c8e17b0e992e3bd34
parent4fa07ff7b625e5578dd974d5c43d701cb3624d84
ALSA: scarlett2: Allow for controls with a "mute mode"

Gen 2/3 interfaces would only use 0/1 values for input level and
phantom power switch controls. Gen 4 interfaces use the second bit to
indicate that the state should be changed (or is changing), and the
input is to be muted (or is muted) while that happens.

Add a "mute" flag to config items to enable this behaviour for the
level/phantom controls.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/f603cd16079c97fad910087e0302828a289d1c15.1703612638.git.g@b4.vu
sound/usb/mixer_scarlett2.c