Received: by 10.223.185.116 with SMTP id b49csp768119wrg; Wed, 21 Feb 2018 06:39:00 -0800 (PST) X-Google-Smtp-Source: AH8x226De+squtr6ZvbMrMVDPssYevzree/QznX/VZjJ7IN4SKomHlWExZv++r29eJwdp7PDdu2J X-Received: by 10.98.206.134 with SMTP id y128mr3574841pfg.34.1519223940325; Wed, 21 Feb 2018 06:39:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519223940; cv=none; d=google.com; s=arc-20160816; b=FvhtLgTnYa4b2aMFsOorWYdIrAqOzqatUdcuKVOwWO8JE/aSZ9X+4le8E8+qqv5biy /A2nc3/P1F1uJN39sypo+OVljuo/58Rs+0VS/0+77lAb52rxJJcWP9ex6CWhLy1V6PbI JvQekKPPOSDtFcTn5b3DnLqiWz3b+AoIeJ38559AKoQ/kiVX0mgJrP0vsJyZckw9hVI6 kQQi7UjAzCcD29lxHqsZ8uYJ7b8BZvHqoUbPbQegverQTts47CTy+gcTdk4ZkFmbtsho TNTyjpEKI104gfexMQtJixU2V+4f/adfy9bRy6TQHQ1b6efJkXctOVaIcounjoVy5mId JNoA== 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=oNNqQ3uZaA/Eol8MJ2EWvOR44w2sO9KTRCeLgQdAN4g=; b=pRkhSe84UUasRmQphlagUAMyvyfMxadwjCHoQbQjg1t4/T5TqZhxzQDe5oKz79VDVj B9/Ax411+B80R5wU3fWqJMZlQyKKMpneVwRDF8uwWPT5ujenghX/+tVZkDygk/PC5m5Z C7bkP90vMfbVGNqX9z7avcutDklqsjBhPikeKMYXO+9wXzmeoHPzQ4iWuqOeu1E+odV1 87OxpPa1flEUtBe/e5Z6oah4cxrNrLBvPt2tbUCHg9jXQ7N995wzabUXLP8HyzOWI5yq kXzMRMmR7AO/OQP/YVexcvp5wmGeCQvBfn2PH4+BeYM4n7yFjE2ReGQLPAC/jtD5phPT K8Cg== 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 z3si2017660pgs.71.2018.02.21.06.38.45; Wed, 21 Feb 2018 06:39:00 -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 S934243AbeBUMzT (ORCPT + 99 others); Wed, 21 Feb 2018 07:55:19 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34368 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932671AbeBUMzP (ORCPT ); Wed, 21 Feb 2018 07:55:15 -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 211951130; Wed, 21 Feb 2018 12:55:14 +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.9 29/77] ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204 Date: Wed, 21 Feb 2018 13:48:38 +0100 Message-Id: <20180221124433.423126151@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124432.172390020@linuxfoundation.org> References: <20180221124432.172390020@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.9-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 &&