ALSA: scarlett2: Add check for config_item presence
authorGeoffrey D. Bennett <g@b4.vu>
Sun, 24 Dec 2023 19:25:10 +0000 (05:55 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:41:22 +0000 (15:41 +0100)
commit43222a612374facb3408300ea1a789cc1b33fb9b
tree5d7591e26ffa8e96a46cb3f387ec50cb4ea90eb2
parentcbd6f148aa555c1383bef27dd003e1a2f1670e82
ALSA: scarlett2: Add check for config_item presence

Update scarlett2_usb_get_config() and scarlett2_usb_set_config() to
make sure that the config_item_num is valid for the device.

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