From patchwork Tue Aug 22 06:33:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Tjernlund X-Patchwork-Id: 9916623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CD98B600C5 for ; Wed, 23 Aug 2017 06:02:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF5E9288E0 for ; Wed, 23 Aug 2017 06:02:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B400C28949; Wed, 23 Aug 2017 06:02:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA070288E0 for ; Wed, 23 Aug 2017 06:02:30 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 386DE2670B6; Wed, 23 Aug 2017 08:01:51 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id EC5D5267554; Tue, 22 Aug 2017 08:34:07 +0200 (CEST) Received: from smtp.transmode.se (smtp.transmode.se [31.15.61.139]) by alsa0.perex.cz (Postfix) with ESMTP id 72FE1266D86 for ; Tue, 22 Aug 2017 08:34:04 +0200 (CEST) Received: from gentoo-jocke.infinera.com (gentoo-jocke.infinera.com [10.210.73.47]) by smtp.transmode.se (Postfix) with ESMTP id E8BC91187029; Tue, 22 Aug 2017 08:34:03 +0200 (CEST) Received: from gentoo-jocke.infinera.com (gentoo-jocke.infinera.com [127.0.0.1]) by gentoo-jocke.infinera.com (8.14.9/8.14.9) with ESMTP id v7M6Y34b003719; Tue, 22 Aug 2017 08:34:03 +0200 Received: (from jocke@localhost) by gentoo-jocke.infinera.com (8.14.9/8.14.9/Submit) id v7M6Y3p1003718; Tue, 22 Aug 2017 08:34:03 +0200 From: Joakim Tjernlund To: Takashi Iwai , "alsa-devel @ alsa-project . org" Date: Tue, 22 Aug 2017 08:33:53 +0200 Message-Id: <20170822063353.3612-1-joakim.tjernlund@infinera.com> X-Mailer: git-send-email 2.13.5 X-Mailman-Approved-At: Wed, 23 Aug 2017 08:01:47 +0200 Cc: Joakim Tjernlund Subject: [alsa-devel] [PATCH] ASoC: Add delay quirk for H650e/Jabra 550a USB headsets X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP These headsets reports a lot of: cannot set freq 44100 to ep 0x81 and need a small delay between sample rate settings, just like Zoom R16/24. Add both headsets to the Zoom R16/24 quirk for a 1 ms delay between control msgs. Signed-off-by: Joakim Tjernlund --- sound/usb/quirks.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index eb4b9f7a571e..6f395150243f 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1308,10 +1308,13 @@ void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe, && (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS) mdelay(20); - /* Zoom R16/24 needs a tiny delay here, otherwise requests like - * get/set frequency return as failed despite actually succeeding. + /* Zoom R16/24, Logitech H650e, Jabra 550a needs a tiny delay here, + * otherwise requests like get/set frequency return as failed despite + * actually succeeding. */ - if (chip->usb_id == USB_ID(0x1686, 0x00dd) && + if ((chip->usb_id == USB_ID(0x1686, 0x00dd) || + chip->usb_id == USB_ID(0x046d, 0x0a46) || + chip->usb_id == USB_ID(0x0b0e, 0x0349)) && (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS) mdelay(1); }