summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorLassi Ylikojola <lassi.ylikojola@gmail.com>2018-02-09 17:51:36 +0300
committerTakashi Iwai <tiwai@suse.de>2018-02-12 10:21:28 +0300
commit5e35dc0338d85ccebacf3f77eca1e5dea73155e8 (patch)
tree4da30647d2d693e672d92493f2ee054f781ae6a7 /sound/usb
parent1f8ade92a83696986ad34438ce11e38975d1a43d (diff)
downloadlinux-5e35dc0338d85ccebacf3f77eca1e5dea73155e8.tar.xz
ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204
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 <lassi.ylikojola@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/pcm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index b9c9a19f9588..3cbfae6604f9 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -357,6 +357,15 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs,
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;
+
+ alts = &iface->altsetting[1];
+ goto add_sync_ep;
}
if (attr == USB_ENDPOINT_SYNC_ASYNC &&