Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3525981pxf; Mon, 15 Mar 2021 11:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu4DUKBp7niPKdvAgbSfrW4kMLgNXfFrR6zeQFyszbtNbx1TZpZyYdHeLjvx88tOwTaUvc X-Received: by 2002:aa7:c94b:: with SMTP id h11mr7942850edt.160.1615833044655; Mon, 15 Mar 2021 11:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833044; cv=none; d=google.com; s=arc-20160816; b=Fg8wI/aDF2lMwqqLaOfEkOn99Dh4M3rhIf/0TqnjUdlBm3mV/szOK5BJjLa5nKMa0o fc80DYcgduGddjabK/omfJua1pW1M9Zu8y2FmrZCCN7HQV6WyOCb/LcV9hkn9C67HbjV gtO7jELaVrCUY5JJ21xZe4EZ/B2xzFvuLziAfJWO6rAMfVyytKuzP4c7LmkMV80Ziv2P n1RpZRW5lP1C8R/oOY3YrK5ofh/Aj0mMsAHOEMP1VZjZeM9tqY8zENZk8SOJDDLexRUW fqNWU0/sBUxajSTb8oQtth6uhd+lfjO1F0GX6eqhTjiqPRB2+GKyqCQ8mRW4hd7lbvZD 5k6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CzzfX/eFlqWqFwWNCva4+L9N1mMWY8h2GdkDNyWnw+U=; b=VMQDNP69Jw+s/eXvwC+0n6gncLV4BM4kFUKblh5Msyd1wUy148Gs59z5FmSAR8rVjM FseKpinbT+O3CDb710zrsLr5kBa7fMx1CovtMAkazwdkH1aNOt5LeM5X3JNbv7Sj4UF2 z7dxaw2agRLITIE5lv4VkGJkaMgitryF79mHwPZg+8vPKni9dhwCGFx/IqO5rKNYyqc9 JVZbNdUNC5bUbRkmzgAhCgApj60uineNAtuM1lS6tlLoT1jM2lw+r1aVcSnm63Xmrfw8 EZ9xJfz+DD1txj2dyIZ7uNrn7LXjPMydI8tYiu+6OXiRFkBjG7lg697EQMAXMEQaNdc/ cRMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FllpOUe3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si11368488ejq.592.2021.03.15.11.30.14; Mon, 15 Mar 2021 11:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FllpOUe3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239851AbhCOOdM (ORCPT + 99 others); Mon, 15 Mar 2021 10:33:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:35904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233271AbhCOOBV (ORCPT ); Mon, 15 Mar 2021 10:01:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2EC5F64F58; Mon, 15 Mar 2021 14:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816856; bh=SePqJ/hqNOivsSLXvFM12BA4uui9fdaslfPVA41NM+I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FllpOUe3kfgQAC9iubQemtWv4cHYvBByEHxS64wqzMx5Jxp/ugwvwEwCxjdZ37KxE 46oLg17aye2F+K74w69inIHWB4YCfB5ZPcQzrtJkvNTkMgaTeCpMANowN+gQrFZNQP tEM04oVz9t6Lg41jZk3tAlgxSlzL5Vjlh7MsDQIA= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andreas Kempe , John Ernberg , Takashi Iwai Subject: [PATCH 5.11 164/306] ALSA: usb: Add Plantronics C320-M USB ctrl msg delay quirk Date: Mon, 15 Mar 2021 14:53:47 +0100 Message-Id: <20210315135513.180815091@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: John Ernberg commit fc7c5c208eb7bc2df3a9f4234f14eca250001cb6 upstream. The microphone in the Plantronics C320-M headset will randomly fail to initialize properly, at least when using Microsoft Teams. Introducing a 20ms delay on the control messages appears to resolve the issue. Link: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1065 Tested-by: Andreas Kempe Signed-off-by: John Ernberg Cc: Link: https://lore.kernel.org/r/20210303181405.39835-1-john.ernberg@actia.se Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1670,6 +1670,14 @@ void snd_usb_ctl_msg_quirk(struct usb_de && (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS) msleep(20); + /* + * Plantronics C320-M needs a delay to avoid random + * microhpone failures. + */ + if (chip->usb_id == USB_ID(0x047f, 0xc025) && + (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS) + msleep(20); + /* Zoom R16/24, many Logitech(at least H650e/H570e/BCC950), * Jabra 550a, Kingston HyperX needs a tiny delay here, * otherwise requests like get/set frequency return