ALSA: usb-audio: scarlett2: Add speaker switching support
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 22 Jun 2021 17:03:58 +0000 (02:33 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jun 2021 19:42:24 +0000 (21:42 +0200)
commite914d8432cb4b99e8a3c42c12e912179a1cf3e73
tree6ef943da38c32fb84d52b2df60da8812ffd659f8
parent8df25eb0a2ecdcc25a869f6126c35f89af90efb2
ALSA: usb-audio: scarlett2: Add speaker switching support

The 18i8 and 18i20 Gen 3 support "speaker switching". Add a Speaker
Switch control which can be set to Off/Main/Alt.

When speaker switching is enabled or disabled, the interface may
change the state of the Analog Outputs 3 and 4 routing and the global
mute button, so use a flag private->speaker_switching_switched to note
that those should be checked when the next "monitor other"
notification is received.

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