ALSA: scarlett2: Allow passing any output to line_out_remap()
authorGeoffrey D. Bennett <g@b4.vu>
Thu, 26 Oct 2023 18:06:16 +0000 (04:36 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Oct 2023 09:23:02 +0000 (11:23 +0200)
commit2190b9aea4eb92ccf3176e35c17c959e40f1a81b
tree1ca1846b8e2fc1d398cc454bf21c99d2b7682d49
parent701949cc01283675054636f741f505f2627454b7
ALSA: scarlett2: Allow passing any output to line_out_remap()

Line outputs 3 & 4 on the Gen 3 18i8 are internally the analogue 7 and
8 outputs, and this renumbering is hidden from the user by
line_out_remap(). By allowing higher values (representing non-analogue
outputs) to be passed to line_out_remap(), repeated code from
scarlett2_mux_src_enum_ctl_get() and scarlett2_mux_src_enum_ctl_put()
can be removed.

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