caun, poridil jsem zvukovku focusrite scarlett 18i20 3rd gen, bohuzel mi pri prehravani v linuxu lupe a praska. ve vidlich to nedela. docetl jsem se, ze mam aplikovat patch na kernel (pripojen nize). nemate s tim nekdo zkusenosti? patchovani kernelu je pro me spanelska vesnice hruzy, do ktere jsem radsi nikdy nevkrocil
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index bd258f1ec2dd..4f6709dc8b9f 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -365,6 +365,10 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs,
ep = 0x81;
ifnum = 2;
goto add_sync_ep_from_ifnum;
+ case USB_ID(0x1235, 0x8215): /* Focusrite Scarlett 18i20 3rd Gen */
+ ep = 0x81;
+ ifnum = 2;
+ goto add_sync_ep_from_ifnum;
case USB_ID(0x0582, 0x01d8): /* BOSS Katana */
/* BOSS Katana amplifiers do not need quirks */
return 0;
@@ -387,10 +391,11 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs,
add_sync_ep_from_ifnum:
iface = usb_ifnum_to_if(dev, ifnum);
- if (!iface || iface->num_altsetting < 2)
+ if (!iface || subs->altset_idx == 0 ||
+ subs->altset_idx >= iface->num_altsetting)
return -EINVAL;
- alts = &iface->altsetting[1];
+ alts = &iface->altsetting[subs->altset_idx];
add_sync_ep:
subs->sync_endpoint = snd_usb_add_endpoint(subs->stream->chip,