Skip to content

Commit

Permalink
ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204
Browse files Browse the repository at this point in the history
Add quirk to ensure a sync endpoint is properly configured.
This patch is a fix for same symptoms on Behringer UFX1204 as patch
from Albertto Aquirre on Dec 8 2016 for Axe-Fx II.

Signed-off-by: Lassi Ylikojola <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
layk authored and tiwai committed Feb 12, 2018
1 parent 1f8ade9 commit 5e35dc0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,15 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs,
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;
case USB_ID(0x1397, 0x0002):
ep = 0x81;
iface = usb_ifnum_to_if(dev, 1);

if (!iface || iface->num_altsetting == 0)
return -EINVAL;

Expand Down

0 comments on commit 5e35dc0

Please sign in to comment.