Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3518274pxf; Mon, 15 Mar 2021 11:19:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNuF4JFuewH/QZ781s4aqgGW5/PfjyLVBbcPF+Sh4DrAhxGqr5tGVkRCVqu/2QA3K+ft53 X-Received: by 2002:a50:fd15:: with SMTP id i21mr30974667eds.384.1615832377876; Mon, 15 Mar 2021 11:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832377; cv=none; d=google.com; s=arc-20160816; b=u4RjkKg3FuXUwl6Bkqdf3VDyKqvKP/3n88rriYkfNU8tVvxfKkxEY1zA617qWVojOu YyE0Z7GXNRS1J8hUWC0m0MeQ1eTSOuJHweK5yK8ifBSPDkR/cqmafpfFVOeF8sNpHP90 sRFuh0fjpnyCg/yV0wzN+NECq6D6RrqtFBj1vadm3MCk2FeW/UJDCuS+3ePOhPIB+RYz wWmLaz4OBElvSteoQjoBKHn5sEfTfiaTKAaBBEwSOAmoczk85r/51BaDZK+oHTAza39X N0k9BZ7msI0yAwYpChlqVrLKH3UlO3JLuqHFCJcsgeWw+IfCRU7X0ZlxnpsVuQ81ha+l XO4g== 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=dL/5kBnv8l2tk/8S5QUyfZ3fW9fqYXVpEp/gZbphPzw=; b=OM9hJbvrYBWLqxVRf2ePTrwnovkcsg+3pzlU73NcW7x9gjqWW23QaXOP2AavS2rK7z K999sKh6M6xXUKFc4Z7NG4UMy6Fve12fPNnD7kxfXmQVxX4594XcTeLJHaIMAxCW8NeP xEbi1mEuPtBS7mtYkv1NbTaFBGHDiCfnEzxNfjOOpvDhwPjym8HV4yIy0s4LCr2Isc9A MqOwGRUhdnpnMpWiQSYwccNFIZjQEAwDiFlil4MaKOBcHFsper9yY64Ltn60ajX5P6mr SMFCA8lsAC8KVKGkF2JV9THZbyp4DNuaHztRI+waGM97i8miwhiRM4RIC4sNH/6aowPK p1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GrAO4HXn; 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 ka21si11882811ejc.323.2021.03.15.11.19.15; Mon, 15 Mar 2021 11:19:37 -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=GrAO4HXn; 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 S237174AbhCOORZ (ORCPT + 99 others); Mon, 15 Mar 2021 10:17:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:36622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232731AbhCON7h (ORCPT ); Mon, 15 Mar 2021 09:59:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0B5964F31; Mon, 15 Mar 2021 13:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816757; bh=ll99MXgdV4WftplZUy3c+s/6/3++75ApUZzSaIB72cs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GrAO4HXnX743Hr5I1c5uOvACDA1Aq3khZHe14imr8uTSwNR6Wq4Qz8fEf/MwdCnQf Qk8Dhh3kbzPcVC9wSuMx0+u5V+KEZ6WrEIj4U3q2Fo1Rt1p2T+wkOkf2DOJ9JPVlI7 vUBZnqfx6yuwXXw8v8U5Q5B0DMjcmvmCUCi9/xjU= 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.4 088/168] ALSA: usb: Add Plantronics C320-M USB ctrl msg delay quirk Date: Mon, 15 Mar 2021 14:55:20 +0100 Message-Id: <20210315135553.271012993@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 @@ -1604,6 +1604,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