Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2584273pxv; Sat, 24 Jul 2021 22:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf5A/Ihm13oV9xmNOTqp5ITGkS9LS9FAKmVtRPPRxClRLWCXIWA0/Aca//w9bqWVSquITn X-Received: by 2002:a05:6602:164f:: with SMTP id y15mr9954556iow.200.1627192185284; Sat, 24 Jul 2021 22:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627192185; cv=none; d=google.com; s=arc-20160816; b=h+94WBJxDMQmx1FeFoqX1P/cC3vEk5YZPRqCsGsdMZOeXJOsgzOl0aubA4pUYRucRC YlqiofpofckVpyBjHSchdCx+yIbg+oMfzHB8jQc06g6B4+fuREOuA5Xg9Srp3u/szmo9 pILdEc+c3CtJDmTUabI4KHLKzO+7xo0/gJKrA6kS4Z/x9LK229005aE6pOHDlsad5m8S /H7jE7wsQd/39184dnlOZE0TOPYzs41u6Rq1NMltOKV4dxCsSjFGzblLHPj6ALGEZmgG j1K6zwuYxBHKhWKIyPsCS0yK112rBLA0q/NaeezbFPpgZNk0dNzzHgZsZBV1jdYRMzn1 tTZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8e7Gp5HxeOpcehiQLPyIgAHyPsg2I7uQHfjxb7bdJOg=; b=YzPUkq3hRo/l8yq+GTrG0ox6X4CS1CKLOQ+aAvm26IinWTPstq+AYdj8KdMTkmG5U9 3R8Lrxk/kIjJ2l1QXuFUWDJDcnZ6kYXXnPv5wTH3w4RgiH/eVOQpcxj8Fz+5MZDjXy+z YL6zwCp0MJzsrS7r7h1XbXMm2o7uARb9IPvs5Rr36Qg995mPfEcUsXKsgkSq14rmjsis pBln9C0UhW5VGvxWo52o2XUsRKC80CEwIBBw8P7J6Si05keCS4YzSSq03ibHiKlzFpqc yr4Nd9ik/k1AuHMCOG/afan4goAxvO6VQFyRx89ScIyLnjwAQ9S/Rhrb+HLn2UFkOygY KNkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kempniu.pl header.s=google header.b=AHGJNfQB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kempniu.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si44453822iol.44.2021.07.24.22.49.10; Sat, 24 Jul 2021 22:49:45 -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; dkim=pass header.i=@kempniu.pl header.s=google header.b=AHGJNfQB; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kempniu.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbhGYFGu (ORCPT + 99 others); Sun, 25 Jul 2021 01:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbhGYFGu (ORCPT ); Sun, 25 Jul 2021 01:06:50 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4E27C061757 for ; Sat, 24 Jul 2021 22:47:19 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id u20so6753087ljo.0 for ; Sat, 24 Jul 2021 22:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kempniu.pl; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=8e7Gp5HxeOpcehiQLPyIgAHyPsg2I7uQHfjxb7bdJOg=; b=AHGJNfQBvuldmUYqRtpbbmca45b91Yzv0LyI8Ih0CieTiamu00hq5JZ70xw22rgtob dvHr5aCOKDpkVL+2OYFZ9D8prONdzJKmSUYfd2bn6rxauCP1/t3oWx5otmdhpU32XLhI 8q7OfSDivdw0iAZyC8JPRle3OvjZL/6BZoP9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=8e7Gp5HxeOpcehiQLPyIgAHyPsg2I7uQHfjxb7bdJOg=; b=JsBmk9s4bLglV3t973ZhG89AL3KG9xDmSCEN1enrtZ9vnmzB/GuAZARtjZN2+Jk7pv JXy4qqlD77f52z0WUmBR0WZHq3oz/japJN7+kBWXlbyqOi7uOqP+09BNZj/IOQCVQlbN m3E0k2t1KA1yp68jm2Ry0KFZ6NnuqHWaVTSoFM0KJ95IxpW+IuKtUFZ5i9tUCIKKbk1l qgxgF4zFieGcMh7W6f/O1KXbdxmXAD2Vjk6LCGdhCBPrvWEXPNBR/zjheGb/kQMGdrWW XJVwlzijDwmH07jJyDNcnD3vqPU/Ptdo9WhMk2v+VK27gHzoC7yOJvAE1asn2TIyvb+n D+7g== X-Gm-Message-State: AOAM533czRiVTMinCwg/YdkQ2H8dibikxS/eEWBecIS9Cth6bssnD1sp m7ib2xMm8D2cQVgbj2t/BnWn4g== X-Received: by 2002:a2e:9e44:: with SMTP id g4mr8379000ljk.289.1627192037988; Sat, 24 Jul 2021 22:47:17 -0700 (PDT) Received: from larwa.hq.kempniu.pl ([2001:470:64df:111::e02]) by smtp.gmail.com with ESMTPSA id c30sm2660393lfv.19.2021.07.24.22.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jul 2021 22:47:17 -0700 (PDT) Date: Sun, 25 Jul 2021 07:47:14 +0200 From: =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= To: Marcel Holtmann Cc: Pauli Virtanen , linux-bluetooth , Joseph Hwang , Hilda Wu , Johan Hedberg , Luiz Augusto von Dentz Subject: Re: [PATCH v2] Bluetooth: btusb: check conditions before enabling USB ALT 3 for WBS Message-ID: References: <872F0B33-594E-4BD7-8B75-EA96DE8DBA8F@holtmann.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <872F0B33-594E-4BD7-8B75-EA96DE8DBA8F@holtmann.org> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org > > 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") > > before I will apply this, I need Tested-by or Ack-by people that confirm that this fixes their issues now. For 8087:0a2b (with broken mSBC audio since e848dbd364ac): Tested-by: Michał Kępień It would be nice to get this into the stable tree as e848dbd364ac got there in v5.13.3 (as 15407b14e27b) and v5.10.51 (as 05298f1733c6). Thanks! -- Best regards, Michał Kępień