]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: scarlett2: Allow selecting config_set by firmware version
authorGeoffrey D. Bennett <g@b4.vu>
Sat, 25 Apr 2026 21:16:30 +0000 (06:46 +0930)
committerTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2026 12:20:27 +0000 (14:20 +0200)
commit732a6397a526c025cd29c3c9309b0db6a2c08837
tree0693674a8b4b7d4d5752e72c79738aa1b7ffed46
parent43cdec04ec14dda936f33f135c2fa4eebf94b738
ALSA: scarlett2: Allow selecting config_set by firmware version

The Scarlett 2i2 Gen 4 firmware 2417 moved the direct monitor gain
parameters, so we now need to allow each device to list multiple
scarlett2_config_set entries, one per applicable firmware version
range, and pick the matching one at probe time.

No functional change yet: each device gets a single config_sets
entry whose from_firmware_version matches the existing
min_firmware_version (0 where none was set). This both prepares for
selection and lets a follow-up commit remove the now-redundant
min_firmware_version field.

scarlett2_count_io() depends on the resolved config_set so it moves
out of scarlett2_init_private() into snd_scarlett2_controls_create()
after the firmware version has been read.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/ae1695b4c4825f365b4c86b22174035f742807e3.1777151532.git.g@b4.vu
sound/usb/mixer_scarlett2.c