ALSA: scarlett2: Store mix_ctls for Gen 4 Direct Monitor
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 26 Dec 2023 18:08:13 +0000 (04:38 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:52:13 +0000 (15:52 +0100)
commitac19be067aac38479b1c4d1477d4012a24d5730d
tree292ceef9c49c0919b47ef3c6f2834f927c7043c5
parentd7cfa2fdfc8a0ba9bf7d5ebd5cf25e6d24501632
ALSA: scarlett2: Store mix_ctls for Gen 4 Direct Monitor

The Scarlett 4th Gen small interfaces have a software-controllable
mixer like the large 2nd and 3rd Gen interfaces do. Pressing the
"Direct" button on the interface updates the mixer controls, which
this driver hasn't needed to deal with previously.

This commit stores the ALSA mixer controls, and adds a mix_updated
flag so that the controls can be updated when a notification is
received.

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