From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omzsmtpe01.verizonbusiness.com ([199.249.25.210]:63682 "EHLO omzsmtpe01.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754479AbdDDTdD (ORCPT ); Tue, 4 Apr 2017 15:33:03 -0400 From: alexander.levin@verizon.com To: "gregkh@linuxfoundation.org" CC: "stable@vger.kernel.org" Subject: [PATCH for 4.9 31/98] ALSA: usb-audio: add implicit fb quirk for Axe-Fx II Date: Tue, 4 Apr 2017 19:32:13 +0000 Message-ID: <20170404193158.19041-32-alexander.levin@verizon.com> References: <20170404193158.19041-1-alexander.levin@verizon.com> In-Reply-To: <20170404193158.19041-1-alexander.levin@verizon.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: Alberto Aguirre [ Upstream commit 17f08b0d9aafccdb10038ab6dbd9ddb6433c13e2 ] 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 Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/usb/pcm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 48afae0..cf8459a 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -348,6 +348,16 @@ static int set_sync_ep_implicit_fb_quirk(struct snd_us= b_substream *subs, =20 alts =3D &iface->altsetting[1]; goto add_sync_ep; + case USB_ID(0x2466, 0x8003): + ep =3D 0x86; + iface =3D usb_ifnum_to_if(dev, 2); + + if (!iface || iface->num_altsetting =3D=3D 0) + return -EINVAL; + + alts =3D &iface->altsetting[1]; + goto add_sync_ep; + } if (attr =3D=3D USB_ENDPOINT_SYNC_ASYNC && altsd->bInterfaceClass =3D=3D USB_CLASS_VENDOR_SPEC && --=20 2.9.3