Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3519710pxf; Mon, 15 Mar 2021 11:21:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQzbeUZGD6+lSXzenfykI/zar/mSi43BqtUtoanHeHZmMbrMhaLw+q3USBU5ioMWUOmidz X-Received: by 2002:a17:906:144d:: with SMTP id q13mr24214257ejc.458.1615832511152; Mon, 15 Mar 2021 11:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832511; cv=none; d=google.com; s=arc-20160816; b=LGD6/ZeTqQ0N2sD9l13kw1U2Pf1ycD6tHEbUKBq0W73/EiuRDnzez9YaAqdsDZTxGB fDjhQWgANLwTaTdpUEnxzpmtHDFZ3yKdzCxLW7QED9SfWDyD1UB1zSezNXX4rYxDDC7f DoDsjcaca04bGlaYMhjmlOJFdFkhzvyd0+sApAgnjx/GVjv3IOwCV0tZhhIDuu0aWTgM r2vO98yYbFZMvIUi7i79SdznwKUQ4W/ycEHEO8Abg9mnHyvoEuIdRJgu43KhjPlzxTmk xdAC+NEuhin9v2cxofzsdeUXOrGnBIiQJdyUfJ1PJvEy9/frR+7EC7JaWwoJofiWU5BE wGew== 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=9924lLQtgFbvk4jamFyKBpt0AZClXwhuU7wvkmnFAa8=; b=bVXPvbGAofc2s9p5AD+dg1SlG4G/nOWdLpaZCAR6ji64WAsVceM5BfTTpk/UZEcCvm pyR4qDwNMH9Z+qU3KIOkV4eFKQ8ZJYYuaeCKyYEhigc+4piKl2VN29d6w1+2362ETIKr 5kBWrIHDVoj76RTgGADv9iKbinSRWV4dAsuJ/G3OpT4RsjjpP8H1MD9sEFCAEx6JcWOA TPM4iGF1LX+7WWSWw+YFCrdR4SipRLSu72QH9r9/sKHP+6Uw7WQVXtZvXt3JiUMoTt5n bWHJ4p9gS/Ta+fX9W52kuuLGWF3POUsT+/6vAQ+zgl+/tJx0d7lX1V853KNE3wg69/pi dxMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1lkc5a5V; 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 rh28si11521074ejb.494.2021.03.15.11.21.28; Mon, 15 Mar 2021 11:21: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=1lkc5a5V; 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 S232227AbhCOOUl (ORCPT + 99 others); Mon, 15 Mar 2021 10:20:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:37632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbhCON7z (ORCPT ); Mon, 15 Mar 2021 09:59:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 87C9B64EF1; Mon, 15 Mar 2021 13:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816775; bh=CAEfcweGMx59W+0rdp5/Jd1Z3q+7ctFyjY/NgBb2YbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1lkc5a5VC45njv1HYZnIsrxHgLn1kSDBA1DbLO3NZVCZ0IWIycbSlapefGzfpKOiM wx4XAK/nE+U3qGGBBIE7D5KbY9SnWkAzp0qXezh+kSb2Ah7ya518FdERy3rmaS1g4q mqcqCINqsRJpatlMJ9+OsAYXbrfDxBp5ERzL7zlY= 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 4.19 059/120] ALSA: usb: Add Plantronics C320-M USB ctrl msg delay quirk Date: Mon, 15 Mar 2021 14:56:50 +0100 Message-Id: <20210315135721.918121877@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135720.002213995@linuxfoundation.org> References: <20210315135720.002213995@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 @@ -1338,6 +1338,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