Received: by 10.223.185.116 with SMTP id b49csp1021164wrg; Wed, 21 Feb 2018 10:42:09 -0800 (PST) X-Google-Smtp-Source: AH8x226lVGEaKOOnBFFF+px/nluGe1epLFg5or06xHDFZ08hxH2Urf42+BoQ7mAahyaQrN9dYZ3A X-Received: by 2002:a17:902:6686:: with SMTP id e6-v6mr4084093plk.334.1519238529417; Wed, 21 Feb 2018 10:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519238529; cv=none; d=google.com; s=arc-20160816; b=elUD5qflLkCBPXL03OMVgNRDJJZyCs3UL2dGC3FrftKj0mOz/dwyya/77juFC2QCY0 SN+VFyLkCeANnymGB23wCmS3CodA3YCrTU1l0ctGUHs+t1xuRrR1seIMdBp9xQXDLB20 ipdAPtCizZaMAA4CkUFkFLCvMdfmn8DBi39QO2dlFow3QKfJckYRwV2hRaQimE3aw/JF C7Sr+1sW0+Zn7/je9UD5iAtkOQuw3CjfIyJd/RbkgPP9Etk46du9lFz+0NsHsyFy+vdy HS493d2ZlF7Q+EWxRgIbMJapq3CA2ML09J5faq/obLj+UZ4gepV+8K+ucGW2hb2Mc2E2 hcHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=D08C0hgVXTAtcmOlO9eeYwkaSkZA0NUennRkBxqkSkM=; b=CSDIzKPn8XuHklSMt1Iqvvkk+QhFBVBDqOd5F+/SrNnGyjijafNyAhahPTUHWr35QO ItmVv/ROC4+JzoGiuJ4nM6/CSJ1WHYNM96vhbsVw5FDMqm31vb/8g9+ueZhxhjakd0C9 Ne8bev6uB0Ih4NTMJgodp+7KNVIPUjn6yKp3rumStEAXzfgqtYtmC3OlKnuczlvtFMg4 dGRpSdgXyUl/dc0zWPO0xvJ+gGwtAbllzzFLm28xh4IK2Tyf0iY8irJLtFkNBz4UKiRR 4qZBfJRMmHRsHfTThUXbFcHGRgFOCsLuuSLzO/htT+wp+VMDAjQ7l31Lb8trvlzSUqAV BK4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si1867004pfb.355.2018.02.21.10.41.55; Wed, 21 Feb 2018 10:42:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936547AbeBUNUD (ORCPT + 99 others); Wed, 21 Feb 2018 08:20:03 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:45618 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936466AbeBUNMU (ORCPT ); Wed, 21 Feb 2018 08:12:20 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DBF58E7F; Wed, 21 Feb 2018 13:12:19 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lassi Ylikojola , Takashi Iwai Subject: [PATCH 4.15 148/163] ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204 Date: Wed, 21 Feb 2018 13:49:37 +0100 Message-Id: <20180221124538.234880031@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lassi Ylikojola commit 5e35dc0338d85ccebacf3f77eca1e5dea73155e8 upstream. 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: Greg Kroah-Hartman --- sound/usb/pcm.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -357,6 +357,15 @@ static int set_sync_ep_implicit_fb_quirk 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 &&