Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp870325ybj; Tue, 5 May 2020 08:50:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJH4wFLS3sAZExVoq0IBVGrbuBIHvIxvTl+WqlRwojcSG8Dr6fqN+2vwP27QCLyqIvJWMAG X-Received: by 2002:a05:6402:1757:: with SMTP id v23mr3349499edx.335.1588693846596; Tue, 05 May 2020 08:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588693846; cv=none; d=google.com; s=arc-20160816; b=mFYz3HRGtOzFre2S3+JLBho6V/dpxaUE5SodW89Tu1nR19n1DTu2l3dyK48+mBgb76 C+vKmCFTERqpTWAyQtSsNewUeTTZog/Riww+0CZ1+Jb7IuhisL7+ysCFmOdjAIbt7vlk 9rcQSzeasQPcB4iL4crBpbPMbL77XV2pDkzKOuZ1jaV6Uf+ZJo1RwV5IBqkl9PLwNpek L2Hl8E+mdpNuyBDCYZH8RFnCnNqsJHQbwSxbVQgNSjlSZtk7JxnmZyi8pKhW4IH8Sovd 3xsUNd8k7OWE7zljXwjcB34H3dW04OeCtrsbEZxQJuv07ci0EdJn/NO5v6dhD0yuNBOC YGUA== 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:dkim-signature; bh=W6BBYfL8zoA8ml3/x5UFN+BHSo95iUTCgyVxjBeHF38=; b=fczYVoN5EzUq/QPAkyPdaxogaUQeS7omKJxDCFHZ+HQYrXrz8pwTqMwZM9KpVDjzCF Chsj4UDQ7cazR5pVF7D9F7AwZsi0JgpX/Y61mn9zrJPdA2XOeur3D0bqRw4rOsRtWTXL 1fmT4k1ekLiI1XVHt2dAmGmMVmVhNK4MX1NWgsnmn79HFlvJ6piyjhtSpW7jOTsSh5Vr 5VCdOYrNMr+f87PvdbCOc907Q5a+neCObJ/wSNM/mr7ED0HaxAyaSbWDQQTyo0wnyATj MleGrv3VFrCGz+SZ/S46BX6KQRpGsr+BoIjdv3rlAPe9y5oRM+YOb1eSJVrQ8h9jAY8H 4Kew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mjJjGAO1; 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=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id aq1si1321935ejc.344.2020.05.05.08.50.05; Tue, 05 May 2020 08:50:46 -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=@google.com header.s=20161025 header.b=mjJjGAO1; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729377AbgEEPrj (ORCPT + 99 others); Tue, 5 May 2020 11:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729150AbgEEPri (ORCPT ); Tue, 5 May 2020 11:47:38 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5774EC061A0F for ; Tue, 5 May 2020 08:47:38 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id d25so1739811lfi.11 for ; Tue, 05 May 2020 08:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W6BBYfL8zoA8ml3/x5UFN+BHSo95iUTCgyVxjBeHF38=; b=mjJjGAO1oX8g60NI3sa4MiTjMZFHQKH+g5uNT+Q6ZqlfiC0QNg/euOLI4mefjUB9tn qUuA3XRpVQzBgnhuSennyNzLT3iUEPDgFF+TDGO2tSCxIBI6jgTBOEzAOxNhOb+eLNbO BKxpm4Ct9Mm3PLhLitub92lFacF2cN9XRtYYMr0flzlEayudI3UECEbw4o0FXbH31Hs1 tbhxZ1nXnmJV49l5stttUagFbec8xyLnvI9zyNNrNRk8A2rOuxrUkFUo2j4dAlrm1urf 57710rpb5a/QiJxUsozqKB/J5RNybY4gIH0ENjvMv2MbEIZAStMHFWGKwTXmVALNsyxD B3mQ== 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=W6BBYfL8zoA8ml3/x5UFN+BHSo95iUTCgyVxjBeHF38=; b=WcX+zWx0gGLe5xgH3f27lLlB33ykvdLkz/v+fyQlWKKcgCSPe8vOE3CzmAkMb79jIL TTksxI3f+cdc2Pte6x4uFpiN4b4uDZengWc+ZddrkRXs54x5JMM+o7bVcKNMiYymR+oZ 3O8+ebJ1xOhn3c9uPWldZXaj/Ef68cg1p7i2IfB+jW/wrRADxx+vxwE++kACGn1NMx4u xiEExd7TO7Ud3S87Z5dIxdBScSb6eRJazzfH2H2iJyWWWDrdo1zpBhv5y3VUBCeHOupL rVI9INrBxLxN+/C/GkMOxd8yX/OKlpqIwpA2DH0cWMYmRcurUkhjjYO/i9NCbLg37k/X qNEQ== X-Gm-Message-State: AGi0PuZIohM/ddbUg5pbG/c6KBoLWP7ywjzhIsqfk8Db68rjdPpzOdi5 nmzMu2Myrl20a4MYy5rN7O3mw2UWgPld1WnQKYKVlw== X-Received: by 2002:a05:6512:695:: with SMTP id t21mr2108473lfe.158.1588693656531; Tue, 05 May 2020 08:47:36 -0700 (PDT) MIME-Version: 1.0 References: <20200403153331.101846-1-alainm@chromium.org> In-Reply-To: From: Alain Michaud Date: Tue, 5 May 2020 11:47:25 -0400 Message-ID: Subject: Re: [Bluez PATCH v1 1/2] doc:adding a WidebandSpeechEnabled Api To: Luiz Augusto von Dentz Cc: Alain Michaud , BlueZ 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 Friendly ping on this series. On Tue, May 5, 2020 at 11:46 AM Alain Michaud wrote: > > Friendly ping on this series. > > On Fri, Apr 17, 2020 at 5:03 PM Alain Michaud wrote: >> >> On Fri, Apr 17, 2020 at 4:58 PM Luiz Augusto von Dentz >> wrote: >> > >> > Hi Alain, >> > >> > On Fri, Apr 17, 2020 at 11:22 AM Alain Michaud wrote: >> > > >> > > On Fri, Apr 17, 2020 at 2:16 PM Luiz Augusto von Dentz >> > > wrote: >> > > > >> > > > Hi Alain, >> > > > >> > > > On Thu, Apr 16, 2020 at 5:34 PM Alain Michaud wrote: >> > > > > >> > > > > HI Luiz, >> > > > > >> > > > > On Thu, Apr 16, 2020 at 8:29 PM Luiz Augusto von Dentz wrote: >> > > > >> >> > > > >> Hi Alain, >> > > > >> >> > > > >> On Thu, Apr 16, 2020 at 1:32 PM Alain Michaud wrote: >> > > > >> > >> > > > >> > Friendly ping on this series. >> > > > >> > >> > > > >> > >> > > > >> > On Fri, Apr 3, 2020 at 11:33 AM Alain Michaud wrote: >> > > > >> > > >> > > > >> > > This change adds an adapter Api to report the controller's >> > > > >> > > widebandspeech enabled state. >> > > > >> >> > > > >> I wonder if this shouldn't be queried over SCO socket, or simple fail >> > > > >> with BT_VOICE when using BT_VOICE_TRANSPARENT which is how what is >> > > > >> normally used when using mSBC. >> > > > > >> > > > > I think there is value in both. >> > > > >> > > > Can you expand on that? I think this might generate confusion if the >> > > > property indicates support for it but HFP implementation don't support >> > > > it, since the later is usually implemented as a external profile so we >> > > > don't have the features it may support, or perhaps the intention here >> > > > is to actually indicate when it is in use? >> > > >> > > This is a signal that the adapter supports it and has everything >> > > enabled to support it. Driver indicated it supports it and erroneous >> > > data reporting was enabled. The profile has it's own state which may >> > > indicate if msbc will be used, but this will be on a per connection >> > > basis and is independent from this adapter property. >> > > >> > > The value in this property is to support diagnostic UX about >> > > controller capabilities/state and also allow profiles that are >> > > implemented outside of bluetoothd to see which codec it can attempt to >> > > negotiate with the device. >> > >> > For diagnosic I think we would be better off with some dedicated >> > interface to query this, as for the later the information we are >> > giving does not actually tell anything about the codec support, which >> > was part of my original argument that for the likes of HFP and other >> > profiles using it it might not be enough and they still need to use >> > BT_VOICE in order to enable the use of custom codecs, if you take >> > ofono for example it does implement support for wideband speech >> > already and it would completely disregard this property which can give >> > the false impression that wideband speech cannot be activated when in >> > fact it can, it just don't have erroneous data reporting enable, so >> > perhaps we should indicate the actual adapter feature (e.g. >> > ErrnoneousDataReporting) not the profile feature here, so the profile >> > implementation can check weather this would disable use of wideband >> > speech or not, futhermore we should probably report the errors back to >> > the SCO socket or is that just for diagnostic and cannot be used to >> > adjust the streaming? >> >> My original patch actually had this MGMT feature called erroneous data >> reporting and Marcel argued against it. If you both agree, then I'm >> happy to rename all of this to erroneous data reporting. We'd still >> need some way for the driver support to be messaged some other way >> though. see: >> >> if (id->driver_info & BTUSB_WIDEBAND_SPEECH) >> set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks); >> >> >> > > > >> > > > >> > > > >> >> > > > >> >> > > > >> > > --- >> > > > >> > > >> > > > >> > > doc/adapter-api.txt | 8 ++++++++ >> > > > >> > > 1 file changed, 8 insertions(+) >> > > > >> > > >> > > > >> > > diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt >> > > > >> > > index acae032d9..d8865e795 100644 >> > > > >> > > --- a/doc/adapter-api.txt >> > > > >> > > +++ b/doc/adapter-api.txt >> > > > >> > > @@ -326,3 +326,11 @@ Properties string Address [readonly] >> > > > >> > > >> > > > >> > > Local Device ID information in modalias format >> > > > >> > > used by the kernel and udev. >> > > > >> > > + >> > > > >> > > + boolean WidebandSpeechEnabled [readonly] >> > > > >> > > + >> > > > >> > > + Returns true if the adapter's wideband speech feature is >> > > > >> > > + supported and enabled. >> > > > >> >> > > > >> There seems to be some extra empty lines here. >> > > > > >> > > > > ACK, will fix. >> > > > >> >> > > > >> >> > > > >> > > + >> > > > >> > > + >> > > > >> > > + >> > > > >> > > -- >> > > > >> > > 2.26.0.292.g33ef6b2f38-goog >> > > > >> > > >> > > > >> >> > > > >> >> > > > >> >> > > > >> -- >> > > > >> Luiz Augusto von Dentz >> > > > >> > > > >> > > > >> > > > -- >> > > > Luiz Augusto von Dentz >> > >> > >> > >> > -- >> > Luiz Augusto von Dentz