Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3806225ybb; Mon, 23 Mar 2020 08:03:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv9Ap1vm3d5fAKHZFnhvSN7wGEuiYi/5e41Idi8ai4fisI5wszBvtZI4SU5hQ7WbSouKL32 X-Received: by 2002:a4a:370f:: with SMTP id r15mr509962oor.100.1584975808970; Mon, 23 Mar 2020 08:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584975808; cv=none; d=google.com; s=arc-20160816; b=CDAk1kanRY/5XW0Xgjsz9iuBf0o/lWvu1Valq6P+1tjn09zwX9vNBZCAFPElA+x/Zi iYyFatBNtte+6kcww3uuNQvavdSz+Z3GQL2cNCcu4m+e23VxGocXL8tTEQoPlI5/RNk4 KbgZzc1W/B0NU24YKnv769FP+TJEWMJ3NTtxJJ2CqRAldDz5xwi7FHH1UauK5O87gbn+ MtAJNN+PxpuLKnZo9PVp7bmrOXw3pHkgoR+UCFZddaJGvgiHQHOCFCZ0duhhX3BWsx3a jcPGVXzNymH7o7yXPCTcYzhxfwuAuj0CkDTqtcA4i+IHkI78tun3xMY8poN5MwxqXUlR XEdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=TOVNgV2XL7No0fBNblL3Wi4RvNnDh+Ky/HUEgDMyr78=; b=sQSG83J8j4uypwtS/J3rjfDmmT3mX93Xo0IfqYl/xAthreDVKFLBTbCN+OhOCpC2dl B9NIM+FpwPCsTcHx75ZSWVEiV7mBZeNI2bwuQKbA6bsv4JUlDXrnEJ0ZdWtYR3akav72 MA7ikXvQ30lAlzKRAXaWJtnEvqcDSJxUXoQ2jihRM0rXMg19X0FyipsjfMaE7KnlkLur 8MthdjHTYOUrWPuhaRN+bJ/ZgKjeP0eJni0gjRn0h6z84BafwClMsL1SS4Mw/dQ9AIJ3 QmArdINnpy0qyALLOvp5hBqANMadqDyA/Chye0zDSIiFIik4nz7EK0mFU2gyuIsq1/O5 Ba0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j206si7979581oia.158.2020.03.23.08.02.25; Mon, 23 Mar 2020 08:03:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727324AbgCWPCT (ORCPT + 99 others); Mon, 23 Mar 2020 11:02:19 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37168 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbgCWPCS (ORCPT ); Mon, 23 Mar 2020 11:02:18 -0400 Received: by mail-lj1-f193.google.com with SMTP id r24so14986125ljd.4 for ; Mon, 23 Mar 2020 08:02:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TOVNgV2XL7No0fBNblL3Wi4RvNnDh+Ky/HUEgDMyr78=; b=pA4YV1C2TlM8uYsz8IRjE7MQ15f+U8glTeSaz55H9vNlk6QVEz29Elf3AJdV3oDIMh nCk1AolUbqo/G073O66F9cPojWzZ52Kqepdt5M0rfblv8mwBgecMB8iv24KUoqZugNw0 z6CtpeqGC89V1HHzvcJrTlbGxTd3VDlkY/0fI9Odv3SopAT125bGXGgDhQvhnl/kJ5zY 7dPAC+xglh3yNugj3vUcv6oS5FPQqoqZy7J5iXPK0R1i+FD55ZJlLo3Cg2zLvFE1Vojs yCQjF/v8Esu67yyKZ84QDw1FVegKhYrRmrc3ScMWxIGf7oe67a0To23Ir9ffr6JrMPtt fD1w== X-Gm-Message-State: ANhLgQ0eZQF5Hpnow7Bfm4re614SnmXVn8xWTKZaGjrZE6iYWMTpZ0Qz 96rPiRrGOcWdHpOPQFFqeOoA2UMHipCgoQ9oROg= X-Received: by 2002:a2e:7e0a:: with SMTP id z10mr13887116ljc.42.1584975735908; Mon, 23 Mar 2020 08:02:15 -0700 (PDT) MIME-Version: 1.0 References: <20200321165551.11928-1-smarter@ubuntu.com> In-Reply-To: <20200321165551.11928-1-smarter@ubuntu.com> From: Guillaume Martres Date: Mon, 23 Mar 2020 16:01:39 +0100 Message-ID: Subject: Re: [PATCH v6 2/2] bluetooth:btusb: handle msbc audio over USB Endpoints To: sathish.narasimman@intel.com, marcel@holtmann.org Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Sat, 21 Mar 2020 at 17:55, Guillaume Martres wrote: > Since then, I was made aware of the existence of this patchset, after applying > this patch (and [3] which apparently only exists as v5 and not v6), my > headphones stopped sending zero-filled packets, but: > - the recorded audio quality is again extremely bad and robotic. > - when audio is being played, the headphones do not emit any sound. I figured out what the problem was: pulseaudio assumes an MTU of 48 but with this patch it now ends up being 60, I've left a comment on the pulseaudio MR [1]. After fixing this, audio input and output seem to be working correctly, however from time to time pulseaudio fails to decode an mSBC packet, but I don't know whose fault that is. [1]: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/254#note_444249 On Sat, 21 Mar 2020 at 17:55, Guillaume Martres wrote: > > From: Guillaume Martres > > Hi Sathish, Marcel, > > > I would really prefer to have some Tested-by lines from people that can verify that this patch works. > > Here's my experience: a recent pulseaudio MR [1] added support for mSBC. When I > tried it using my laptop (Intel AX200) and headphones (Bose Headphone 700), the > voice quality was extremely bad. I eventually realized that this could be fixed > by ignoring all zero-filled packets sent by the headphones when decoding > mSBC [2], after that everything worked fine. > > Since then, I was made aware of the existence of this patchset, after applying > this patch (and [3] which apparently only exists as v5 and not v6), my > headphones stopped sending zero-filled packets, but: > - the recorded audio quality is again extremely bad and robotic. > - when audio is being played, the headphones do not emit any sound. > > Note that I applied this patchset on top of the current Ubuntu 20.04 kernel [4], > let me know if it's worth retesting on top of the mainline kernel, or if there > is something else I could try. > > Hope this helps, > Guillaume > > > [1]: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/254 > [2]: https://gitlab.freedesktop.org/smarter/pulseaudio/-/commit/bb716b03002841e1092b4200935566d5c1a951fe > [3]: https://www.spinics.net/lists/linux-bluetooth/msg82149.html > [4]: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/focal/commit/?h=Ubuntu-5.4.0-18.22&id=93dfa5b8e12fed29933f3451db44d88c0e4b5aed