ALSA: scarlett2: Infer standalone switch from config items
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:21:40 +0000 (05:51 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:22 +0000 (15:41 +0100)
commit3978fefdf416d4c14ba43365ef912dcc4e2ee5b6
treedf0ea2b152d1e353575da680b723817aae28a02e
parent3a4e1afe7d984a3de8cc3ef8447ab085800f6b54
ALSA: scarlett2: Infer standalone switch from config items

Rather than assuming the standalone switch is present for all devices
with a mixer, instead check for the presence of the
SCARLETT2_CONFIG_STANDALONE_SWITCH config item.

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