Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp541707pxv; Thu, 22 Jul 2021 06:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyODfVMI2zdFdbVWc/wQwrB0kRQaLlJPfqMEclfBSdOFFf3ojxKW6JAYqGkct9LGrMzFamI X-Received: by 2002:a05:6402:3584:: with SMTP id y4mr51777501edc.218.1626960755240; Thu, 22 Jul 2021 06:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626960755; cv=none; d=google.com; s=arc-20160816; b=m5x0k6JC75p/hbX+nKwbdJhH6rEKHFFzW83nNawpMSjTGz1DUqB4z2uGJ/Xz0VSFF8 Oyjke5wLJGDese+GFlWiLyUMhrTrwyIMaYaTg1iyBrthevj5l8jg83hbSLpHkHpUx5zL 8OkCL+TEh/NggjxiqVkLfxeKEp0oIkvekQY+lmipOHsee3hKAcSKHMo+/Mez7XSv33hG x5ccHILEoBehMCCv0+DfT09ITOqxN1fGm8C+rKcj+2PHuzg2EaIrjd3lI/YMvwFUBtRE b+K/Mdp08OBGx3aSEODrFAr5ShzNiU6ikHoz/wML2o8CvWIaSq30DyttFw1FUhZrV3+g cCJA== 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=K50UM44t9GAaQZgPnCYhVE7fSQ5Q/CV9jvKhzEHueaI=; b=pjnHLrT0TlA7RG70hfD+WL8OA/IQjapECQQn6Ism8zagcb4YEiU8iefc0S54GcGnny K1hQAlgebL2/dWITQuEeNR1YhCQaMXvt9ttxYuA0I7T0vFxmOP9nb1SwEs1sk+UHiosJ +Fzp9zsYpYDKjjDk1Hhsi4u1HNuHh5L455cOzp2Srttwr0fLrnfDlW8Os3/Jh613Nfqw KLx3MSmzwrl4ILcyY6+1/0qCddZhTeG/PYT/W+eVMcOeiN5n50ijFJCo4L/uH022KtOP IYMo6j4bMsNo9s7vP5VI/j9gmV/1kq2+VYtkVGiUMHFxvibgjdLmnhfhQD0SDBMLhN67 hUow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kempniu.pl header.s=google header.b=t1ToD0bX; 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 u18si29288300ejk.196.2021.07.22.06.31.45; Thu, 22 Jul 2021 06:32:35 -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=t1ToD0bX; 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 S231992AbhGVMt1 (ORCPT + 99 others); Thu, 22 Jul 2021 08:49:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbhGVMt1 (ORCPT ); Thu, 22 Jul 2021 08:49:27 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1944C061575 for ; Thu, 22 Jul 2021 06:30:01 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id b29so7308249ljf.11 for ; Thu, 22 Jul 2021 06:30:01 -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=K50UM44t9GAaQZgPnCYhVE7fSQ5Q/CV9jvKhzEHueaI=; b=t1ToD0bXy8cKUXOxyF97QxKVQREthQFd6bTC3wZ3lq3S+zXVvUFaaC0eqEr1Z3DIRd 2IVO3hkyAk54pDRziuYS4sdm1hXFicpLQQFC4gfSPOXFV4+lLw0+jxP3mPGDe51S1/tE f2TRPqAwcqhvsW3VpAj+lnWaIwIDEkXpZ7QiM= 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=K50UM44t9GAaQZgPnCYhVE7fSQ5Q/CV9jvKhzEHueaI=; b=USBBS5AFmsURI91jzWgN7BHjMV8/9In4w2vg2Nv2/wc3fEDQ76w5fYaG9fj0H+Kmmw 58cBGOB99iHDPpKIkuLRywSqA6rgLMHkM7DJwiBGbjLvj0dml2vRqB33o/Px7QEAX8Py sfO85z6z2G9/oH2myy0ZyzlK5AJCZ6F2wcCjO8zakMc0VAJS4U5au/h9OSm0QuXouNDC FR22/QuX+yaud/ukqeqi5unDmU0RU+k/PcJWtSIKUAEZN/KICRIRSbqHGHnql75ugzPt 332Fv3X/B1uZptGMaIM0xOVAlGd1XKdynKJfzwPc44hdUIaXbaR9UYy0nD59j7VNY2kx clnw== X-Gm-Message-State: AOAM5313foWIqWQQOE4NK4V1wGhD+t4dVJcBvg/VWzfEmVAHlq3gRCQL zmwjQUS9VArBQbtiFO/fGlpglg== X-Received: by 2002:a2e:b0cb:: with SMTP id g11mr24692555ljl.227.1626960600279; Thu, 22 Jul 2021 06:30:00 -0700 (PDT) Received: from larwa.hq.kempniu.pl ([2001:470:64df:111::e02]) by smtp.gmail.com with ESMTPSA id n4sm1926092lfu.113.2021.07.22.06.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 06:29:59 -0700 (PDT) Date: Thu, 22 Jul 2021 15:29:57 +0200 From: =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= To: Pauli Virtanen Cc: linux-bluetooth , Hilda Wu Subject: Re: [PATCH] Bluetooth: btusb: check SCO MTU before enabling USB ALT 3 for WBS Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pauli, Thank you for your work on this patch! > 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. Check that the MTU > condition is satisfied, and fall back to ALT 1 if not. > > Tested with USB adapters (mtu<72, produce sound only with ALT1) > BCM20702A1 0b05:17cb, CSR8510A10 0a12:0001, and (mtu>=72, ALT3) > RTL8761BU 0bda:8771, Intel AX200 8087:0029 (after disabling ALT6). Commit e848dbd364aca44c9d23c04bef964fab79e2b34f causes garbled mSBC audio on my Bluetooth adapter (8087:0a2b), so I gave your patch a try. Unfortunately, the patch in its current shape does not seem to be enough to fix things for this adapter, which reports an SCO MTU of 96 bytes and produces garbled mSBC audio with ALT 3. For the record, reverting e848dbd364aca44c9d23c04bef964fab79e2b34f on top of v5.14-rc2 makes mSBC work again with my adapter. I am no Bluetooth expert, but I will be happy to perform any additional debugging and/or testing. -- Best regards, Michał Kępień