Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3525534pxf; Mon, 15 Mar 2021 11:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA2iNXups1UQQH8uv850zHdlQCi/pnZwJ8vY4KNAXKP09vPpNRiQkqqICL4QMbnQFRfbXu X-Received: by 2002:a17:906:400b:: with SMTP id v11mr25069405ejj.194.1615833011823; Mon, 15 Mar 2021 11:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833011; cv=none; d=google.com; s=arc-20160816; b=N9oof0FSgaiBGg+S0cxvF0AKmca9za+yJuq63xuXDRLiE9NFhC7qOPyGao4FQQMQik r1UuMgVUmjy3du15s2YLkOuK9T1lSiCGStDVdfRXPtPOToGQYTCRJzosxv0FLzQaIH9Q GUCf9UaETTTp+/CrJl5JTS5fDDQBhlQSGjuETl40TIqiuLGvRd0U5g5MmOL+1ZotzVu0 +EfaQmjEHLTlap+MwhnZHvId2vF0b46rTc/A7x4hTsfmx4JtB3yLYtOu1dmH1C8cm5Sl Fsdk6lcOvEdHkTZ0Ma8xFX9orRXf8Tza91F2AcB6mzX5Zz02tmK449tEu3BGUg3TZHxU aXlA== 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=WIu3Fe738HF7EtFF1rr126Nl+m8hSdLReAUAVLAIUI4=; b=Kgfqc/sbZv/qeKq/UzDhCyVXiDX8y6EyWBj8kPohxCv8KO9UPHLbF0LlrvkL3sqggd WZJxMLq4W9FxD1zrG1yBgTdV+BDK6aKsx2NbtZee/X0eXXpSIjn/P3lMsKq6SOsork/S aQHLGb4udVhwzjdICyjq9Rg5FbEHrU4p5bR4JwGXn9KRtmTl4nN0BCtGKVCuntxOvr3s +hzIwNJZO5P4b0OVniB2KaJzZef3BLppqXPr6n0sRY8LqCnGJRiO+xsORgkVA7JcdpNQ Irv1do1GH9QcMD8QP+9rLoSBuYS4U0bL5uEIfinci/nV+AOJdgjF3GFYJTnXBkfziPwk tGWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="eXX/KYAt"; 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 d21si11515594ejw.331.2021.03.15.11.29.48; Mon, 15 Mar 2021 11:30:11 -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="eXX/KYAt"; 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 S236564AbhCOOfz (ORCPT + 99 others); Mon, 15 Mar 2021 10:35:55 -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 S232529AbhCOOBo (ORCPT ); Mon, 15 Mar 2021 10:01:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F25BE64DAD; Mon, 15 Mar 2021 14:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816903; bh=9wyKlr/EQljsHgyaIzwI0soeNwiz4UREscQBXHwO4z8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eXX/KYAt262IhdyXhgeazOk71vYSsXNzz3aCfnYl+dl9JgHAqUO8QBj8aiqnRIwX+ 0F/867HZX0udNxavwrDMcntzoI9vlp6JitLG+im934KTvqcULfOeUn80Gj4foGFcaL X1rIuZNYoEW567WDsLu1aU0HbmGfdOJBM58Hxtaw= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.10 179/290] ALSA: usb-audio: Apply the control quirk to Plantronics headsets Date: Mon, 15 Mar 2021 14:54:32 +0100 Message-Id: <20210315135547.958798922@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: Takashi Iwai commit 06abcb18b3a021ba1a3f2020cbefb3ed04e59e72 upstream. Other Plantronics headset models seem requiring the same workaround as C320-M to add the 20ms delay for the control messages, too. Apply the workaround generically for devices with the vendor ID 0x047f. Note that the problem didn't surface before 5.11 just with luck. Since 5.11 got a big code rewrite about the stream handling, the parameter setup procedure has changed, and this seemed triggering the problem more often. BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1182552 Cc: Link: https://lore.kernel.org/r/20210304085009.4770-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1674,10 +1674,10 @@ void snd_usb_ctl_msg_quirk(struct usb_de msleep(20); /* - * Plantronics C320-M needs a delay to avoid random - * microhpone failures. + * Plantronics headsets (C320, C320-M, etc) need a delay to avoid + * random microhpone failures. */ - if (chip->usb_id == USB_ID(0x047f, 0xc025) && + if (USB_ID_VENDOR(chip->usb_id) == 0x047f && (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS) msleep(20);