ALSA: usb-audio: scarlett2: Allow arbitrary ordering of mux entries
authorGeoffrey D. Bennett <g@b4.vu>
Mon, 21 Jun 2021 18:09:41 +0000 (03:39 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Jun 2021 19:36:06 +0000 (21:36 +0200)
commit6522c36419af1cc3e9613d4c5342cbdc740a359a
treeaf21f3bdf1a5bc0dfe519b889d5645f62c66877d
parent0c88f9db1910ff4fdfb9238970715be5e20cdcc0
ALSA: usb-audio: scarlett2: Allow arbitrary ordering of mux entries

Some Gen 3 devices do not put all of the mux entries for the same port
types together in order in the "set mux" message data. To prepare for
this, replace the struct scarlett2_ports num[] array and the
assignment_order[] array with mux_assignment[], a list of port types
and ranges that is defined in the struct scarlett2_device_info.

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