Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6908021pxv; Fri, 30 Jul 2021 05:36:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKtScy9AIsO1gHrpNR68S3Tem4pJhYJZkWSZ+Tx0yabfuqQjtUsdBOulP07MBUsnZAjIVE X-Received: by 2002:a05:6638:2111:: with SMTP id n17mr2000696jaj.76.1627648603757; Fri, 30 Jul 2021 05:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627648603; cv=none; d=google.com; s=arc-20160816; b=FmpVUenjP4NJKr1u/L2rmrykUSC6OU0KmnWLkTsm/chfDoduxxhXx1tUlzQjvLkhBs 7VnZMtr3uBAgDhP7wQ+2rDGvC5dP5GwfFqx52uHRoK4o9LW/3YShW8Jv8jb51ni7GJel 7ve7+vxqXvFKITY52h9/i6UMb0bHuFM/m23LgSAV9r/xFsu34bM7xnYlBBJ8lfcJjBWE H4Id7iuajbmMoXlWMOtm+hkI4RnKwPiHQ/l76DSj1PD4VB4YD84PCNykhiAI/mJ36VJO vkYPGUfVEy5cSancvlTHDGtM2q5AZjUQ0oQa706sr29/U3t/vMntHtnYGgOZbIc5neZd apmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DOF2G3wjGOP9c8fVhNvwlbMrIp+G1nFDTmU/zdYNC4E=; b=MMJzur8eQMtCjrpZpesm4CRCopOCJj7+BImEOXYw+EYkOJ3vNYjSjIq/tD+TF1qSCz k00B2j+oyeThtZI736qnR4qpmThW4ezTfHJRhHaOJk0cfAUCDDOABtq3jaDipnN8502z InuT4HrlQa+SPblXDRaqhJXaqDg/S1tN2UdtjycY9eS5SpcqbEhvBf4AZNVFZn20Rlqk JwcUhToW87kiMoKnQmzpCj5rtnx3dm+s1Dkdzu4Pbkq6H4wTwOvHZJ1lwoBythtfk/Ep 39LCjaOUEtLoPpC73UMNc73W8gMs+pEBqHHStWlUfvjEi5Qa61duvXVLQe9JFN6CHLGr qozA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si1799199ilq.32.2021.07.30.05.36.07; Fri, 30 Jul 2021 05:36:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbhG3MfJ (ORCPT + 99 others); Fri, 30 Jul 2021 08:35:09 -0400 Received: from fgw21-4.mail.saunalahti.fi ([62.142.5.108]:37635 "EHLO fgw21-4.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbhG3MfI (ORCPT ); Fri, 30 Jul 2021 08:35:08 -0400 Received: from ydin.reaktio.net (reaktio.net [85.76.255.15]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id 8ee2df34-f132-11eb-ae1c-005056bdd08f; Fri, 30 Jul 2021 15:35:02 +0300 (EEST) Received: by ydin.reaktio.net (Postfix, from userid 1001) id 38F2520089; Fri, 30 Jul 2021 15:35:01 +0300 (EEST) Date: Fri, 30 Jul 2021 15:35:01 +0300 From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= To: Pauli Virtanen Cc: marcel@holtmann.org, johan.hedberg@gmail.com, kernel@kempniu.pl, linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com, hildawu@realtek.com, josephsih@google.com Subject: Re: [PATCH v3] Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS Message-ID: <20210730123501.GA16261@reaktio.net> References: <20210726180206.49703-1-pav@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210726180206.49703-1-pav@iki.fi> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On Mon, Jul 26, 2021 at 09:02:06PM +0300, Pauli Virtanen wrote: > Some USB BT adapters don't satisfy the MTU requirement mentioned in > commit e848dbd364ac ("Bluetooth: btusb: Add support USB ALT 3 for WBS") > and have ALT 3 setting that produces no/garbled audio. Some adapters > with larger MTU were also reported to have problems with ALT 3. > > Add a flag and check it and MTU before selecting ALT 3, falling back to > ALT 1. Enable the flag for Realtek, restoring the previous behavior for > non-Realtek devices. > > Tested with USB adapters (mtu<72, no/garbled sound with ALT3, ALT1 > works) BCM20702A1 0b05:17cb, CSR8510A10 0a12:0001, and (mtu>=72, ALT3 > works) RTL8761BU 0bda:8771, Intel AX200 8087:0029 (after disabling > ALT6). Also got reports for (mtu>=72, ALT 3 reported to produce bad > audio) Intel 8087:0a2b. > > Signed-off-by: Pauli Virtanen > Fixes: e848dbd364ac ("Bluetooth: btusb: Add support USB ALT 3 for WBS") > Tested-by: Michał Kępień > --- > This probably also should have CC stable@kernel.org, as users have started reporting this bug as distros have started shipping kernels with the faulty patch in it.. so it'd be nice to have the fix backported to stable kernel trees. Thanks, -- Pasi > > Changes in v3: > - Rename flag to BTUSB_USE_ALT3_FOR_WBS. > - No spaces in indent. > - Added Tested-by: Michał Kępień > > Changes in v2: > - Explain magic number 72 in a comment; didn't add the table for them, > because it's not used elsewhere and we need just one number from it. > - Add flag for ALT3 support, restoring the behavior > for non-Realtek devices the same as before e848dbd364ac, due to > the problems reported on an Intel adapter. Don't have the device > myself. >