Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1919604pxk; Tue, 1 Sep 2020 10:51:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsc8x24nLdQh7UgDlgoaUPjOHukaUqv0T2D6Voi34XtIkENvBTofnlM785o3O5RWUFU8V4 X-Received: by 2002:a17:906:924d:: with SMTP id c13mr2529487ejx.518.1598982661590; Tue, 01 Sep 2020 10:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598982661; cv=none; d=google.com; s=arc-20160816; b=N/Isu3nVWTIWUKreia0lzaSgci269ge7Vr2rT/Z96PwBu0tHfepO32dinkq/fpSZn+ TDP9/Isi54EE1241OqJJi43BwdHykhKc6Id557wHYM8TecYYLkrVROZbxqhLtbuR7M/B UpB1d3khu+1w2NHc1eoeu2+Bc2vEqTKcImjRjsUP2jXcVuQniPrXFlS7ibWjJbMR7KxH aYhFsR339rSSN8nLNffhcp2W38G1r2EGk4/MLIhidNimtTlemtWSwPfG68Bk9Pp8RD2K XJhpHaK4Jdz/HTRfiK3FBhL74EVVyUUS0M8zCuxG2rmOT7SFMsY6ryt/YLumvR3V6kA4 3nrA== 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=OBa4zSsC7mmvdX3MM5YBiZhyDeDh3CNd56AtQwupmoA=; b=Z1LaUleqL92bRbZ8QMG/ykxyWwVtQq3jIXNWfACxFKzlv3e6dRopBdV1aoy85e6IHV MPIajQj2q6yQFFU5PTfmwFxWcWnKpwspj+D5wo9zQs/OwURFtefz94CLfiUblSXRvXIt hrh5HwBq/Un3D0Q7U7ojOfPD9BU3PhotZhrSY/R7eNCUP7JSaYg4Bj8gY7o6dc3ZvjPj L1qo9CM1OfYZg5M9edmVpNJygkFPV+LS+/Za15/vdN438UygMhXcrvz/TnUBhqmvfLg7 BuFNJiD1ey5jqcKQCV5pfWiZ3xIivzTvbAmoTJzQZiCJpS7XW9lpg2X6Yujk1I6j6jMU ArXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X0vyufV0; 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 dt2si1187888ejc.67.2020.09.01.10.49.55; Tue, 01 Sep 2020 10:51:01 -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=@gmail.com header.s=20161025 header.b=X0vyufV0; 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 S1729667AbgIARrc (ORCPT + 99 others); Tue, 1 Sep 2020 13:47:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726102AbgIARra (ORCPT ); Tue, 1 Sep 2020 13:47:30 -0400 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0637C061244 for ; Tue, 1 Sep 2020 10:47:29 -0700 (PDT) Received: by mail-oi1-x244.google.com with SMTP id j21so1893299oii.10 for ; Tue, 01 Sep 2020 10:47:29 -0700 (PDT) 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; bh=OBa4zSsC7mmvdX3MM5YBiZhyDeDh3CNd56AtQwupmoA=; b=X0vyufV04Cvvr6FFJ3aETHrb/NoC3lWzm1Eb9kMd8Kun4dZ93mAoxtOWxEoyUVq3Fz XdiLrRGbKoOrKxAJuJNkuKDOEreMNdUgJUf4WdfbwtAbSSOWx7/JKLalBTEnZOQULgoV y9M0siiBImjaRldkPAnjUXYt19u6e2gxkOZPmYDidWflMgvHeJmAqcjl13i8a8MzKB6d 86T/xoFEC33sekkFmTfvvBwEdp+vzx6oMPq7dhM6cK2dvSPrylWgPRW+/W/9pGOdMZk9 v88Tpv/GKKqYZQAHOdk2G2XkIvENbMTsaGlwS1R/XX/BmldfwC5DHK2+88oKk9VAOyz6 bFGA== 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=OBa4zSsC7mmvdX3MM5YBiZhyDeDh3CNd56AtQwupmoA=; b=mZK5nl/nhr9Jcvt8TlrQXn8UR0Fh/Y0lePu7EoOaNfcVYnEuoigcAkh5jxHrf3APpR z2Fda/OHgMpEJ+ssqe1MxHTJ0mt2pNYnBeq5dSDysS4ZAmCwI01MFnWxsvNwPN4ZGl28 0s/5/rFE0JCEOfVlrcwtfdT0kQJzObHqEM2NxMQlsbjhQTRaqV96VAUCjQlrf5s8sd6n ac8k+l9Bg/Z/aF3fDSnYK/J2OoW96hkI1j/rAHKU2XgKPd4/XNHFZiq/m/G6E8jS/sK0 Lp9Smwrba5FZpOSG3QueddHg8L+SilM9XtwvcjvW2zm1jVc8eScn7fiIdOvmFT8FlAfg Gf7Q== X-Gm-Message-State: AOAM531G9XkolFLzhHbbPGfF/ytG8nyK/RR/+aSbUDmTSsDBgnCbnA0q 3LpKhqtAe/cB4yf3dojRwAQMUC2nMvuvtKwFbao= X-Received: by 2002:a05:6808:913:: with SMTP id w19mr1759257oih.48.1598982449016; Tue, 01 Sep 2020 10:47:29 -0700 (PDT) MIME-Version: 1.0 References: <20200817212554.3844965-1-yudiliu@google.com> <20200817142545.RFC.v2.1.Ibaa1dfd49179a141c19a651f3c2132a28b71b344@changeid> In-Reply-To: From: Luiz Augusto von Dentz Date: Tue, 1 Sep 2020 10:47:19 -0700 Message-ID: Subject: Re: [RFC PATCH v2 1/1] adapter - D-Bus API for querying the adapter's capabilities To: Alain Michaud Cc: Yu Liu , "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Archie Pusaka , Sonny Sasaka , Marcel Holtmann 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 Hi Alain, On Tue, Sep 1, 2020 at 8:43 AM Alain Michaud wrote: > > Hi Marcel/Luiz, > > I'd be particularly interested in seeing your opinion on whether this could be better described as some form of SCO socket property... even if this is indeed an adapter property. Yep, but wasn't that supposed to be what BT_PKT_STATUS is for? I mean one can just attempt to read it with getsockopt and in case of returns an error it means the controller does not support it, that said it doesn't look like we do check the adapter features when using BT_PKT_STATUS, should that be checking if HCI_WIDEBAND_SPEECH_ENABLED is set? Also it doesn't seem we have updated userspace to support BT_PKT_STATUS, we should probably have something to test it via isotest and perhaps create a iso-tester.c to validate all the options. > Thanks, > Alain > > On Mon, Aug 31, 2020 at 5:44 PM Yu Liu wrote: >> >> +Alain Michaud >> >> Hi Marcel, >> >> Can you please comment on the cl as well as Luiz's suggestion? Thanks. >> >> On Thu, Aug 20, 2020 at 10:20 AM Yu Liu wrote: >> > >> > Friendly ping for comments from Marcel. Thanks. >> > >> > >> > On Mon, Aug 17, 2020 at 4:17 PM Luiz Augusto von Dentz >> > wrote: >> > > >> > > Hi Marcel, >> > > >> > > On Mon, Aug 17, 2020 at 4:07 PM Yu Liu wrote: >> > > > >> > > > From: Archie Pusaka >> > > > >> > > > Initially this is introduced to query whether WBS is supported by the adapter, >> > > > the API is generic enough to be extended to support querying others in >> > > > the future. >> > > > >> > > > Reviewed-by: sonnysasaka@chromium.org >> > > > >> > > > Signed-off-by: Yu Liu >> > > > --- >> > > > >> > > > Changes in v2: >> > > > - Return an array of strings instead of a dict >> > > > >> > > > Changes in v1: >> > > > - Initial change >> > > > >> > > > doc/adapter-api.txt | 12 ++++++++++++ >> > > > 1 file changed, 12 insertions(+) >> > > > >> > > > diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt >> > > > index 1a7255750..8fbcadb54 100644 >> > > > --- a/doc/adapter-api.txt >> > > > +++ b/doc/adapter-api.txt >> > > > @@ -204,6 +204,18 @@ Methods void StartDiscovery() >> > > > org.bluez.Error.NotReady >> > > > org.bluez.Error.Failed >> > > > >> > > > + array{string} GetCapabilities() >> > > > + >> > > > + This method returns a list of supported >> > > > + capabilities that is populated when the adapter >> > > > + initiated. >> > > > + >> > > > + Possible values: >> > > > + "wbs" - Wide band speech >> > > >> > > Btw, should we stick to use wbs terminology here, or we should >> > > actually use the HCI feature/command, because wbs has actually to be >> > > implemented by the HFP afaik this is only indicating that the >> > > controller is able to notify packets drops, etc, with use of erroneous >> > > command. Perhaps we should actually use the term PLC (Packet Loss >> > > Concealment) instead since that seems to be the real capability here, >> > > afaik WBS does not actually require PLC. >> > > >> > > > + >> > > > + Possible errors: org.bluez.Error.NotReady >> > > > + org.bluez.Error.Failed >> > > > + >> > > > Properties string Address [readonly] >> > > > >> > > > The Bluetooth device address. >> > > > -- >> > > > 2.28.0.220.ged08abb693-goog >> > > > >> > > >> > > >> > > -- >> > > Luiz Augusto von Dentz -- Luiz Augusto von Dentz