ALSA: scarlett2: Check presence of mixer using mux_assignment
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:22:24 +0000 (05:52 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:22 +0000 (15:41 +0100)
commitc13d43a8582aa9b003b40fc6eecb66bd4ee8b5d6
tree8d2643c3c40543525585a81764f63f749215be40
parent2edc76dddee8a2e785f6566d2baddb49ad62fb5b
ALSA: scarlett2: Check presence of mixer using mux_assignment

Currently the presence of a mixer is determined by checking if the
device uses the GEN_3A config set. Add scarlett2_has_mixer() function
which checks for the presence of mux_assignment entries instead.

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