Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3526310pxf; Mon, 15 Mar 2021 11:31:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwExyaO7Qf3m8vP6RVBsYoViUr5dH62gSfwQwGgOASb6XuXWHFmc4/rkTXyey1vPMZeZ1EH X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr24918440ejb.445.1615833068534; Mon, 15 Mar 2021 11:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833068; cv=none; d=google.com; s=arc-20160816; b=yknxMj4VUokuugbySauG1ItSKsXde///k9gO+swusb2DaFl7HkWm64vEz57peAa5IF 9oK9vekT7tgcGmv2Xb+AWiMQk1zm8YocOWzJl3p7t2zgNpEIijU+9wgsS2Uw7507Gs6w 82GwX0bCE/dp31w8Tp3wHJ2UsGuCjjvI+qjqwsaZH6KtPiQMADjkaa/q/FSkk8SH9D4S W1he+iwXRmcyEg63ox1ZXGt6ccRQq9Y2yVmhCm0t5ZpedzOAVinkLOWrFor9idEqQz0t UdcOz6FpaxdHSU8KU9+EwT+SPRhG0QETkF/29eJCOPLL4OglyErYIPlBI+xn31rLKCQN +erg== 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=H6cB/Z0KSfEiYPQ+CScyuYx3apuxBcuW9Vsc+MLikIw=; b=L5RGrQehfJxwTwaJfPFv4tVIB91tkH5dQNPv2aHdN1zl7sYZn0x3BhDxh8LSI4LSzS 7FWbER/hL362hle9CWTL3BQG9EIvtcoRJ+KDljBnTQeIC69GVT8t3Wq7I53yXDEpRCR8 KXMZeZ3+77mXIVpi20bDZnKbn+zo4elUp98VdvDQhdyi4SReZxXwvE/GOPOg2F7+Kkcx Jpe0uqO3thLml+Dfqz2FhD++0+VHge2dcsAPFQjIyyTjCoEdVP/IrG9xm8CTRqveR2z2 mRb4lrkGWLuaoojCL0nphZd9NeuX2PjT1xAqQJn4Fu+fHfMmOaov1sHOD/RBqTHHBge+ b5Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AE8Huaiw; 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 g17si11767276eds.403.2021.03.15.11.30.45; Mon, 15 Mar 2021 11:31:08 -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=AE8Huaiw; 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 S233256AbhCOOd5 (ORCPT + 99 others); Mon, 15 Mar 2021 10:33:57 -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 S233376AbhCOOBh (ORCPT ); Mon, 15 Mar 2021 10:01:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 11C0864FAB; Mon, 15 Mar 2021 14:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816866; bh=6l8rwjeuK1Wifa+KWPbGb6ZQnQvOs+p5WE2NX50jh9s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AE8HuaiwHQ0QfewNye6q3V6ErzwrVUF3yKga7kQMCLWzbIrXAT6YDtzFQ8ORTjgwI 3z7pvH64EldBj7sO1v/khT5u3LIswe9KcgcBhvmZADSw1uh8FBrHFawRpT4NCEm7f4 l5J/Jd7rqvdZZn/PoHgIC5EB8gkkCErur5htg1CI= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Iwai Subject: [PATCH 5.11 172/306] ALSA: usb-audio: Apply the control quirk to Plantronics headsets Date: Mon, 15 Mar 2021 14:53:55 +0100 Message-Id: <20210315135513.430916118@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: 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 @@ -1672,10 +1672,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);