From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sn1nam02on0133.outbound.protection.outlook.com ([104.47.36.133]:15072 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032465AbeCAPfr (ORCPT ); Thu, 1 Mar 2018 10:35:47 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Lassi Ylikojola , Takashi Iwai , Sasha Levin Subject: [added to the 4.1 stable tree] ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204 Date: Thu, 1 Mar 2018 15:26:33 +0000 Message-ID: <20180301152116.1486-376-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Lassi Ylikojola This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 5e35dc0338d85ccebacf3f77eca1e5dea73155e8 ] 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 Cc: Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/usb/pcm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index a51155197277..3351e2f9656d 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -343,6 +343,15 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_us= b_substream *subs, ep =3D 0x81; iface =3D usb_ifnum_to_if(dev, 2); =20 + if (!iface || iface->num_altsetting =3D=3D 0) + return -EINVAL; + + alts =3D &iface->altsetting[1]; + goto add_sync_ep; + case USB_ID(0x1397, 0x0002): + ep =3D 0x81; + iface =3D usb_ifnum_to_if(dev, 1); + if (!iface || iface->num_altsetting =3D=3D 0) return -EINVAL; =20 --=20 2.14.1