Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3525296pxf; Mon, 15 Mar 2021 11:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCwTvWPs5KMhOcWEIk0sdbGuJPQl73Cpq90bE1hSJr7DKTB4pzoX2itkK2SX4CwSLbUUDr X-Received: by 2002:a17:906:d157:: with SMTP id br23mr25927218ejb.192.1615832991765; Mon, 15 Mar 2021 11:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832991; cv=none; d=google.com; s=arc-20160816; b=Hj8CmhamL2mGFsApBzJgu8unGAGPUdZ8BJOhObBZtBjmwF8M0/3W/XO5F1DCRj2djc yfivE2TR3N0bxNTsptvW88vXQ6T0Vy9tbz36y8Fni+f3XxFkODXgig/Bacr9xadzNoBc 0SNGeucaX7wwHU8YYwherV7cPHyopGilDRi+LcYVEs7BhuWku0ySYmivQ1JpT+l/3wmU Dw1oy3LL3eJFef/bh8VinoRsj7XSC9ZQq8HjQN7Mwo8lph4gnXcIWwYDcYBNx3KTWDzS ILKBHkSx/qxcyZmGTSgAkUdZRFzJeJ+jDOcQFVmDi4c+aeTh6XKQWbJftRMz/6mLKBQ0 2L/Q== 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=bKqEi4V1nT00DOP9JtfAyxCM0lIk+jt1jc47Hbahr6w=; b=deY+xAvD4arFKMd7DYIhfm+JI4OvnLA277Nnnft7STfKaWSJ2lxiTWlusPItFA+mHR 561SdBdZjYCDWwEQfUHJKQtwrPgMunhvQcSq9CMA3MvFrCaytB7YQpZabsLZYpc3i4CD 2SfTBC9zJI75mC4ERlR98DV1Hm+GGhwu+fXK3JWn0EjiWuCdalwegUatBcZTV8WKhbI9 wBfFNTw9mW3u6kX2JzcEqd843OV/17WWY/vXgZAKPVl3ewMZeh0FrN6bXc0Ca9AmfpjF fBQ5a73H90wD57IcDqFe2zYO7uV0DCZDwo6LzQx73GtD8Jvl4Vyeh+c0/5VzbiNAlRkx BtYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f4uaeXKx; 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 e18si12410263edj.485.2021.03.15.11.29.26; Mon, 15 Mar 2021 11:29:51 -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=f4uaeXKx; 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 S236028AbhCOOet (ORCPT + 99 others); Mon, 15 Mar 2021 10:34:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:36764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233449AbhCOOBl (ORCPT ); Mon, 15 Mar 2021 10:01:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C524A64F26; Mon, 15 Mar 2021 14:01:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816891; bh=bnMyIbrShjA4blcSkPzg+jREYFUvXb6DtJpVnVbFUFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f4uaeXKxxc5Bqs1h7Qn185+sm4Ua6YtmVmXb6js1lFKELW2ZYvPgc31J3J8xR6edG nr/1W/DesvBhOezCF8+Bdjt377j8Vftywl4jKsGcwg1ZoJfhFCfQtc8EB9hEeRenxD 1ceIwVFnXKs+NW2LRvbSOCg4Z30Ac69XFd4zc7hM= 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.10 171/290] ALSA: usb: Add Plantronics C320-M USB ctrl msg delay quirk Date: Mon, 15 Mar 2021 14:54:24 +0100 Message-Id: <20210315135547.677876725@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@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 @@ -1672,6 +1672,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