ALSA: scarlett2: Infer has_msd_mode from config items
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:20:52 +0000 (05:50 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:22 +0000 (15:41 +0100)
commit3a4e1afe7d984a3de8cc3ef8447ab085800f6b54
tree9be2bf4b9113eedf291ee46c738bfcdade6ce3b0
parenta2bb6c7d80575a67edb7d8a37dae95b76a86be3f
ALSA: scarlett2: Infer has_msd_mode from config items

Rather than storing has_msd_mode in the per-device structure, infer
this from the presence of the SCARLETT2_CONFIG_MSD_SWITCH entry in the
device's configuration set.

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