Skip to contentSkip to conversation

ALSA: usb-audio: add implicit fb quirk for Axe-Fx II

PATCH Applied Alberto Aguirre 2 participants 2 messages Dec 8, 2016 – Dec 9, 2016 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: usb-audio: add implicit fb quirk for Axe-Fx II

The Axe-Fx II implicit feedback end point and the data sync endpoint are in different interface descriptors. Add quirk to ensure a sync endpoint is properly configured.

---
 sound/usb/pcm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
sound/usb/pcm.c +10 -0
index 44d178e..0fe2d56 100644
@@ -348,6 +348,16 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs,
 
 		alts = &iface->altsetting[1];
 		goto add_sync_ep;
+	case USB_ID(0x2466, 0x8003):
+		ep = 0x86;
+		iface = usb_ifnum_to_if(dev, 2);
+
+		if (!iface || iface->num_altsetting == 0)
+			return -EINVAL;
+
+		alts = &iface->altsetting[1];
+		goto add_sync_ep;
+
 	}
 	if (attr == USB_ENDPOINT_SYNC_ASYNC &&
 	    altsd->bInterfaceClass == USB_CLASS_VENDOR_SPEC &&
Signature · 1 line
2.9.3
Applied
#1 lore raw
Quoted 6 lines · Alberto Aguirre

The Axe-Fx II implicit feedback end point and the data sync endpoint are in different interface descriptors. Add quirk to ensure a sync endpoint is properly configured.

Applied, thanks.

Takashi

Quoted 33 lines
---
 sound/usb/pcm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
sound/usb/pcm.c +10 -0
index 44d178e..0fe2d56 100644
@@ -348,6 +348,16 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs,
 
 		alts = &iface->altsetting[1];
 		goto add_sync_ep;
+	case USB_ID(0x2466, 0x8003):
+		ep = 0x86;
+		iface = usb_ifnum_to_if(dev, 2);
+
+		if (!iface || iface->num_altsetting == 0)
+			return -EINVAL;
+
+		alts = &iface->altsetting[1];
+		goto add_sync_ep;
+
 	}
 	if (attr == USB_ENDPOINT_SYNC_ASYNC &&
 	    altsd->bInterfaceClass == USB_CLASS_VENDOR_SPEC &&
Signature · 6 lines
2.9.3

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel