Skip to content

Commit

Permalink
ALSA: usb-audio: add implicit fb quirk for Axe-Fx II
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Alberto Aguirre <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
albaguirre authored and tiwai committed Dec 9, 2016
1 parent 048ea6d commit 17f08b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 17f08b0

Please sign in to comment.