Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4611802pxu; Mon, 21 Dec 2020 17:58:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEwUaMBbxopW0LI5SOqViw6D66B77LHFiyIkAI81fBJW1ZVRUD4ntnLUswVhl84s2IgRUT X-Received: by 2002:a50:fd10:: with SMTP id i16mr18577680eds.331.1608602283455; Mon, 21 Dec 2020 17:58:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608602283; cv=none; d=google.com; s=arc-20160816; b=tEK8nay3ew+iAEltUsOZTfEq2RpkyTXP/FQL3sknX5jOEi7VJ7ejkS9Qwvhr8hCOyu S8hruTQsv/nHDPkk4GkOlkIPH1i0Uw/xS2LI/6iB40z1kLKbx8HxaPWLBG8wHWeHEbNw Y2WlAxI2G8vspU0lJeIjv0JETpKDLFP+LtLYHMJdE6suRo/oS+8AiRo6wRhuClZg4m1m Osank6NawYhlOUIrVleACZojXe0flM0Fi5O/VxRDEURBOcoAAOb9LVNuoHJVGFDu9lGK o4QOmKHwwds6BjnG3BRMEi0TKV7spq/R7MnvC4vldygWGE/KPXWjXCkOcD3AjC39krqp ZDbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EEJ9XDEDxh32XxCT/9b3NAcSNe+PSiQul44bfGmlkRU=; b=aN519TsW4zWXzyiag0q9rXBrAZ3Ls+ABhBItC+JHk+8u4CsjlKlkSmttE3PU4ye7CE yPkJ4o9eSKw7bBJDD81OrihokbZT2/aMnZYBg23Y/+lvlxyecwVrI9Xd6HNLV6Du1QeY AbNPC2VRiyaWBE0ZgaDB07WT+jmweH16+IZTIak5ra5B4ka7jiG9bYNyFRH8T8pMx0Fu /3uj4cAPsQk4HESafmaTpEtYHXymolHS2Njq1X0u8jiQcpdhBz8Rnc7i77v3w2Up2IPy fY509PjeQMEj0eIcvWbn8BFt869pmL/A03igTC1eiRy7GEd5xj/mku3nABgR8Jb2z03a m+Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AR2cg79z; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si11413856edx.272.2020.12.21.17.57.25; Mon, 21 Dec 2020 17:58:03 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=AR2cg79z; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725785AbgLVBzs (ORCPT + 99 others); Mon, 21 Dec 2020 20:55:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgLVBzs (ORCPT ); Mon, 21 Dec 2020 20:55:48 -0500 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFFD4C0613D3 for ; Mon, 21 Dec 2020 17:55:07 -0800 (PST) Received: by mail-oi1-x236.google.com with SMTP id q25so13262983oij.10 for ; Mon, 21 Dec 2020 17:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EEJ9XDEDxh32XxCT/9b3NAcSNe+PSiQul44bfGmlkRU=; b=AR2cg79zchew2H3/ClYxVtztROrvesbovCjLjZiBWGrvDU1/9Z4is08ZdRxgisBb4T ohEGb/GZz1Xl5wBdsxGaOjKqZCYgvNpMRWFLn+N23aQhq30ejsYupXjH2yfTaVMOAZ95 wP1R8icYVS3+jTPFckhlSGcrZzQiqIlLmJE6leWV4KImVlmAWiaD9K85bKzePxxHQ4e/ Vlreb+l7bR+nZuqnXiNIaVTTPhMh76ExSErRlAO8rHO5p+T3g9k437HIqbS6Z5N0LVvN /lOslhsvdSx1NsgWH8SSUDlKXs/ZQsrgAQwkbxfcPSoNpHdwG92iy1KbdZkQvn14KL1s ATpg== 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:content-transfer-encoding; bh=EEJ9XDEDxh32XxCT/9b3NAcSNe+PSiQul44bfGmlkRU=; b=NPa67205GBok54kH9mohrzFsa0OAqwiitBu3d6d/4Gb/9FLjJwoERAj5VaJpDJsXjG pPX40qideqNvNseuKl/GXL4FmKps1unjK0iM7oZqEjJwo3qUXta5O2P7k2Jml1sR6mrx GwCzcCQEt4Ip6Yrd3OrX/NeRhaASzy2gFIYPgZwe7kut2WoMVzaNP2QouPmkAJMLuMEl 4a6AkMiiiDLCRuum7uPNdpZG8z6tv7iXFkfki8OUqcVi0fL73e1+c9CttawUkMPDEGRx mVgJGdorUqzYue8hlVxDqG15Mmm7K45cLd/FnyrXD3obS50RrhCmkX5rozj3w9zogFfV frxw== X-Gm-Message-State: AOAM531pJGtWa14JPKXga5TG5BfBa9UJUbS3JD1PwbPbg+ednK6iLAd3 rY5jJqPB7hzMQr9ZXsJK8ojjfAmewMqxX4IEaNQ= X-Received: by 2002:aca:f456:: with SMTP id s83mr12845702oih.58.1608602107332; Mon, 21 Dec 2020 17:55:07 -0800 (PST) MIME-Version: 1.0 References: <20201221211437.4s27cl6t4v27sugh@pali> In-Reply-To: <20201221211437.4s27cl6t4v27sugh@pali> From: Luiz Augusto von Dentz Date: Mon, 21 Dec 2020 17:54:56 -0800 Message-ID: Subject: Re: Default to HW mSBC on capable controllers ? To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Joakim Tjernlund , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pali, On Mon, Dec 21, 2020 at 1:14 PM Pali Roh=C3=A1r wrote: > > On Friday 18 December 2020 11:43:32 Luiz Augusto von Dentz wrote: > > Hi Joakim, > > > > On Fri, Dec 18, 2020 at 10:48 AM Joakim Tjernlund > > wrote: > > > > > > There seems to be quite a few USB controllers gaining the BTUSB_WIDEB= AND_SPEECH which I guess means HW mSBC but currently there is no way to sel= ect this mode. > > > Any idea if one could patch the kernel to default to HW mSBC and user= apps like bluealsa/pulseaudio would just use it automatically? > > > > It is in our plan to support HW offloading, but that doesn't mean all > > platforms will be supported since that depends on the PCM lines being > > connected to BT controller in the first place. > > Dedicated PCM lines are used in embedded world and maybe also still in > some mobile segment. I remember that e.g. Nokia N900 had this setup. And > it was quite crazy how it was finally configured... but it worked! > > But this is nothing for classic x86 laptops with USB bluetooth > controllers on classic intel bluetooth+wifi mPCIe cards where SCO > traffic is routed via HCI (over USB). And not via dedicated PCM pins. > Moreover I think there are not any mainstream laptop which have PCM pins > on mPCIe slots usable for such bluetooth mPCIe cards. > > For classic desktop / laptop it is needed to deal with fact that SCO > audio is routed via HCI (like A2DP) and therefore support for Enhanced > Setup Synchronous Connection HCI command. > > AFAIK even for routing SCO over PCM when mSBC hw encoder is used, > Enhanced Setup Synchronous Connection HCI command is required. So you are saying that we should do PCM over HCI and that would actually work (meaning we have enough bandwidth)? From power point of view this makes very little sense imo, since all the cycle we save on no encoding we probably lose with more data to transmit, so are we looking into use HW encoder just to fix the quality of codec? --=20 Luiz Augusto von Dentz