summaryrefslogtreecommitdiff
path: root/scripts/as-version.sh
diff options
context:
space:
mode:
authorGeoffrey D. Bennett <g@b4.vu>2021-06-21 21:09:31 +0300
committerTakashi Iwai <tiwai@suse.de>2021-06-22 22:36:03 +0300
commitd92b91576e3787659917f32d514de8c4d75631b4 (patch)
tree0355135711ab226d72bb0b458daf8031c8651ac6 /scripts/as-version.sh
parent76cb680603d5af2ccb40541b41d690113cf2df1f (diff)
downloadlinux-d92b91576e3787659917f32d514de8c4d75631b4.tar.xz
ALSA: usb-audio: scarlett2: Improve device info lookup
Add the USB device ID to the scarlett2_device_info struct so that the switch statement which finds the appropriate struct can be replaced with a loop that looks through an array of pointers to those structs. Suggested-by: Vladimir Sadovnikov <sadko4u@gmail.com> Signed-off-by: Geoffrey D. Bennett <g@b4.vu> Link: https://lore.kernel.org/r/474c408c29fb280a611e47e49e59ca2fb9810d27.1624294591.git.g@b4.vu Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/as-version.sh')
0 files changed, 0 insertions, 0 deletions