Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4466823pxu; Mon, 21 Dec 2020 13:16:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8Y0rQCkMt8G1Aj5DDDTOwPKnEqlzHIcc+wJuru7jpqNiTjHTj0oUQpKLMb54P7gJLoeKC X-Received: by 2002:a17:906:924a:: with SMTP id c10mr16756547ejx.113.1608585407780; Mon, 21 Dec 2020 13:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608585407; cv=none; d=google.com; s=arc-20160816; b=woGcPKUPpKGw8HMi7XQt/ry8w2X6d/xTXxrBYs37xkmKtKm+Q4qVezq5Nu/yGfL2qS ST7UgyHoWuLe7/8BlRkpH7VwPFzh8BMxuw1b6XslqlaljEr4SD0vhYsiu6/exkZo4/Nv mK6+4R5h/9AhwOeNDVKcWw3AAbh92vAVSBrMC3xd4UzmKLLIlk2rXPK2YpH34JK0svY8 Dm3Yw4JT7uH2z6SzLL9vQmvbHI4ijR/XqazatbAENXBZdn2/23dFzFOAfYAz8BkQGE9x eLGakyROQX3rkDYbJwGHfOxxXzYi6ZZpAHcTZQgXQ5zVBYi4KhiVD9kD7A0Qmb/SY1RX hryg== 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-disposition :mime-version:references:message-id:subject:cc:to:from :dkim-signature:date; bh=S27KNtKNixbKw+u/Oc14YSfe9+O2Jt8ls5hr9aYF1Sw=; b=LxZ5BX0ZWVGt4EWk3GvgyLcrAvH8DCjOommWYeGx9wD7zsO16AkEmUFC5SUE/+R0pP 4YAgGM3Onb9KupCethwe3S5EjeJERsgSdL3SDGwvBMASGcVwDSqn7MjSuT1aN9WMSvq7 Z7g4geoJEGCnRKyrEMhqLYbwo+t4OEqHM/dz+LD7fUvBSmiocZkeWRMSWHNTSxJ+Q8hh WAoGsrce9mKUqsnQxsLP3OIoYqMI1zN7OFvbFo9bS+1XQDZCSakMEHwVZeUssPxcHlMR A4NZ3/BLe2ZDts1DYusYwkD1tWYzSUZ8ZR2xYoolqvo4nLezJSQiTpqY4gd8b1ktbQuX wTNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aTaSbra1; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm25si10592768edb.109.2020.12.21.13.16.24; Mon, 21 Dec 2020 13:16:47 -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=@kernel.org header.s=k20201202 header.b=aTaSbra1; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725969AbgLUVPV (ORCPT + 99 others); Mon, 21 Dec 2020 16:15:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:50188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbgLUVPU (ORCPT ); Mon, 21 Dec 2020 16:15:20 -0500 Date: Mon, 21 Dec 2020 22:14:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608585280; bh=QvsLIK4E2mZN9+cnf/RZLiFpnBateZUlf39BFBK6W1Y=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=aTaSbra1FcZX69yXy8te04hjer8pL8EFyOKA+ojlv+iB7JAcNdStQrvnzIeSMLJiX z3GKnSIpDOp5APKpLWX3NSDmEfNE7b9wD8WIk4knXRWPAoWxgxrc/JsHGMO36ltRYU QWRnrHHiLYL8z4dvRSmnTBgXo9lzNE0eNPKf6nhgDKouAzG9I0/AdM+dmqrvVi13S3 a7Xrgfcm2ytozZeqBcGfX3uT+BAKmM0poFhgfLtkv4nCUJ2KcsPnlUu5FKP04zjsfg jYM+MYiRYxCub7Crh+jhNfhww9LX2HBIzNxL4tu7UoJW260Ev5vHzS1/0rmo32XEi8 JA5l0G/IR41fg== From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: Joakim Tjernlund , "linux-bluetooth@vger.kernel.org" Subject: Re: Default to HW mSBC on capable controllers ? Message-ID: <20201221211437.4s27cl6t4v27sugh@pali> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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_WIDEBAND_SPEECH which I guess means HW mSBC but currently there is no way to select 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.