Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp916541ybp; Wed, 9 Oct 2019 06:16:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBDdkyDFgcjbOieNhoJbtldtf2n4RPZl94Ljczb9pNgfwMLSrsHDf4zZIAl0AnIP/6dFF9 X-Received: by 2002:a17:906:6d82:: with SMTP id h2mr2743652ejt.127.1570627004426; Wed, 09 Oct 2019 06:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570627004; cv=none; d=google.com; s=arc-20160816; b=l2kC6Uh8RanOnR79Qxd7An6OzcqVQCE/F1hIhAhUUfAFrNFKg582wzzeL4bduWgE7X XPHz9q5uWcqLRaAcN0aWB5866VCSAKUvhOZiRyc7ACTtziiv7I0r4V0Cl0gz95svI2J9 VFuMQe5Y/JaT2U1WqTCL3m2djNx4aVDWehfkfGHe9ej97zbsjkex645Z1Rd5l3GuMrNP 4SMALLVxGxMYt/gXHFiJoxIKuQlXzXJE7JgibN3LJV7u7UDXDH9fm2k3vvbFy1YGVg7/ h/zdq6lgO0moKLZt8wm4YMuNEu9VqZyXLdUy92dlPSiSv4LCJrRDC1kD7aUSVG+X5Wiv KOyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EYX9wm8aPFnWSQAkZoe6KwkkCZ0jD7bYY5NrvTeYvCs=; b=tde4J2m94j4yxvaxbNaiE7kEy7ycauzzxVzS/dn7mOD6h+sh0kgpN6/1lPCQEbKwAp gitfGLPCRX0lINaXzj43wgZk8ifgWBnNygcJIzE/ki3JEuK60YKll5PHtkwxlHxnHS5s vsxBeTFcFleECEj/qcnJjf2k1aOO9k5KXpYpC9c25OsxCschPHZF5wcxii+dKZVOpTts 3FVlSNZdeFaVgoGZM+Gk7zUTHJijxp6bcPS8gufDItkc/WBOFWKbDEhaxsyPfRD+n2w6 7Il3E+/HCTSRIiM0r735AdVuGzfF5ePmww6Vr4Jd6C1a48d5+FsVzn7+GajKRqBy1X6U xapw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FFHpVAdb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si1149625eja.146.2019.10.09.06.16.19; Wed, 09 Oct 2019 06:16:44 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FFHpVAdb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731005AbfJINQN (ORCPT + 99 others); Wed, 9 Oct 2019 09:16:13 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33325 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730490AbfJINQN (ORCPT ); Wed, 9 Oct 2019 09:16:13 -0400 Received: by mail-ot1-f66.google.com with SMTP id 60so1681866otu.0 for ; Wed, 09 Oct 2019 06:16:12 -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:content-transfer-encoding; bh=EYX9wm8aPFnWSQAkZoe6KwkkCZ0jD7bYY5NrvTeYvCs=; b=FFHpVAdbASg0BYZ62wxpB5j3ZZd6XHEpgoOsO0z+M3sf8adQD5/mnoQPQkOTcppzsM 8bFrxRw4JydCJTnpQp32KderTuvopDal7Os1mLYPqgfmsAO/96nJDa2vGO8/8bNmDu9M 0l/+fnen/OaFwb41cnT5rOpverLO1/33wYDrbtYhp+cOpn2k/6/bWaatacTmAKKz/BYf 7Zmt4IbwgO0ConQM1L5PtCL9uIbvmOBlCf4FFaFoLMqVnh74HQK12wtg/AeiGkMPzy6j MU4kKyVE3GyExvgcCmluBAHUCZlhAotXvoGWptY/9z3zaS+fmmcvHW1Y0TEEe875U75U 4KRQ== 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=EYX9wm8aPFnWSQAkZoe6KwkkCZ0jD7bYY5NrvTeYvCs=; b=XJ+3ig4PlLix72M2dbVitUSepDWd+E2PhqAhqA5h8w0ENKz1n/YmbiLpftpo1Gkb+T BByNoJiaOqBn/qdhsY18r8gTab/o+N8HL//PTGvOogWOvKuXxg3bGu4zKq+oB47tAhwn EiAt6kDjH0SJ6Vk7UOObVgPNej2hgbKynn9lGv/YGGNr+RcYZdyNpVdqp6lrO7+y/eHD 3rY2wOcdCHYBrtgBYltdjDNaoimNrS/2oS5/Zk42+7w98zolULC9/ApeaXeF+IjEpM7+ yYnqnUExqeIWuJhPTKTpbOlzrteG+8TmBtScIcwbnCd8DHoVDwEy7ebshRkhPX/oBopt lEiA== X-Gm-Message-State: APjAAAV0zrX5lS8Awm9QE9AOLMDNwXHlYeE0cZ56UwL+J4I0q6udN8Ju pPNtvKG4GLaOX2B0OoxBuD11CBFLG5cyGOk1CZk= X-Received: by 2002:a9d:197:: with SMTP id e23mr2948070ote.28.1570626971756; Wed, 09 Oct 2019 06:16:11 -0700 (PDT) MIME-Version: 1.0 References: <20190721155522.3vqt7vsprhpxflqf@pali> <20190829125734.GH2840@reaktio.net> <20190829200513.6xnta5jx3trbmgxp@pali> <20191003181855.GF28704@reaktio.net> <20191006100503.fsbttcschr6wgsdq@pali> <20191006120245.tkrooh45q7irtm6l@pali> <20191007143307.ez6g466afu3trlxn@pali> <20191008103333.rqn2btlkwtcrpouo@pali> In-Reply-To: <20191008103333.rqn2btlkwtcrpouo@pali> From: Luiz Augusto von Dentz Date: Wed, 9 Oct 2019 16:15:59 +0300 Message-ID: Subject: Re: [PATCH BlueZ 1/4] doc/media-api: Add RegisterApplication method To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: =?UTF-8?B?UGFzaSBLw6Rya2vDpGluZW4=?= , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pali, On Tue, Oct 8, 2019 at 1:33 PM Pali Roh=C3=A1r wrote= : > > On Tuesday 08 October 2019 13:28:53 Luiz Augusto von Dentz wrote: > > Hi Pali, > > > > On Mon, Oct 7, 2019 at 5:33 PM Pali Roh=C3=A1r w= rote: > > > > > > On Sunday 06 October 2019 14:02:45 Pali Roh=C3=A1r wrote: > > > > On Sunday 06 October 2019 13:53:37 Luiz Augusto von Dentz wrote: > > > > > Hi Pali, > > > > > > > > > > On Sun, Oct 6, 2019 at 1:05 PM Pali Roh=C3=A1r wrote: > > > > > > > > > > > > On Thursday 03 October 2019 21:18:55 Pasi K=C3=A4rkk=C3=A4inen = wrote: > > > > > > > Hi, > > > > > > > > > > > > > > On Thu, Aug 29, 2019 at 10:05:13PM +0200, Pali Roh=C3=A1r wro= te: > > > > > > > > On Thursday 29 August 2019 15:57:34 Pasi K=C3=A4rkk=C3=A4in= en wrote: > > > > > > > > > Pali: How does it look with porting the PA patches to use= the new interfaces? > > > > > > > > > > > > > > > > Hello, I have not had a time yet to play with these pulseau= dio patches > > > > > > > > and porting to the new interface. I guess that I could have= more free > > > > > > > > time in the last week of next month. > > > > > > > > > > > > > > > > > > > > > > It seems BlueZ 5.51 has been released meanwhile (http://www.b= luez.org/release-of-bluez-5-51/) > > > > > > > So now at least the new interfaces are in a released bluez ve= rsion. > > > > > > > > > > > > Ok! Today I have looked at this new Bluez API, but seems that t= here is > > > > > > not only missing some examples or usages with libdbus-1, but al= so > > > > > > documentation. I have tried to find something how to register e= ndpoints > > > > > > throw GetManagedObjects() via libdbus-1, but seems that there i= s no > > > > > > usage of it and also unusable documentation for it in libdbus-1= . So > > > > > > currently I'm stuck how to use this exotic API in pulseaudio... > > > > > > > > > > It is just another D-Bus method, the only difference is that it > > > > > carries the entire object tree, btw I did add an example of how t= o > > > > > register Endpoints in python: > > > > > > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/exam= ple-endpoint > > > > > > > > This example uses undocumented property "DelayReporting". What it i= s doing? > > > > > > Also this new Managed Objects API bring some inconsistency. Codec > > > switching API is available only when bluetoothd was started with > > > --experimental flag, but this new Object API is available also withou= t > > > it. So it just complicated implementation. > > > > > > How could application (e.g. pulseaudio) check if A2DP codec switching= is > > > available and based on this decide if via Managed Objects API export > > > more codecs or just only default SBC? > > > > The idea was that this API would be experimental as well but it seems > > it is not, > > No, it is not experimental. Managed Objects API is available also when > bluetoothd is started without --experimental argument. > > > they should go hand in hand with Endpoint objects to ensure > > they will be available as well so we might have to fix this in 5.52, > > too bad we didn't see this before 5.51 went out. > > So... what should applications expects and how they should implement > above decision? Actually the decision should be based on the presence of RegisterApplication method, if that exists then endpoint switching should be supported as well, so has nothing to do the GetManagedObjects API of the bluetoothd. That said RegisterApplication was not made experimental which kind makes 5.51 broken because it would appear that it endpoint objects would be exposed but when in fact there are not, anyway lets finally have the code to use this interface and then we can remove the experimental flag from MediaEndpoint. > > > > > You can also have a look at how our gdbus internal library (uses > > > > > libdbus) utilize it: > > > > > > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/gdbus/cli= ent.c#n1269 > > > > > > > > > > > > > > > -- > > > Pali Roh=C3=A1r > > > pali.rohar@gmail.com > > > > > > > > -- > Pali Roh=C3=A1r > pali.rohar@gmail.com --=20 Luiz Augusto von Dentz