ALSA: usb-audio: scarlett2: Add mute support
authorGeoffrey D. Bennett <g@b4.vu>
Mon, 21 Jun 2021 18:09:39 +0000 (03:39 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jun 2021 19:36:05 +0000 (21:36 +0200)
commit0c88f9db1910ff4fdfb9238970715be5e20cdcc0
tree9d87de150ca8a133acfcba2377da69be1a3c6a95
parent06250c89d47cefb51d13fa27e1d6f3032831c8c8
ALSA: usb-audio: scarlett2: Add mute support

For each analogue output, in addition to the output volume (gain)
control, the hardware also has a mute control. Add ALSA mute controls
for each analogue output.

If the device has the line_out_hw_vol feature, then the mute control
is disabled along with the output volume control when the switch is
set to HW.

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