Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5474883ybp; Tue, 8 Oct 2019 03:30:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDIZJr7+aYOZIxatahOPbnX1xh8elPQfO0Q/XG7id+3A6Qg5J56OwKqtoHmLIU5T0WkADt X-Received: by 2002:a17:906:ce46:: with SMTP id se6mr28131737ejb.198.1570530642583; Tue, 08 Oct 2019 03:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570530642; cv=none; d=google.com; s=arc-20160816; b=rphDntn68OLcoqpXoDutytXnxb/BSg3V9G1lSZu2oC7aogfXd2mWUCXUmlwBGTroHD 4nle0NBVhchgXraeI7dC+BzcrYKfBIc9NgCwWKcS+yjGSqQrceB61H9Pa6GYNnxmCo4T tCrATarwRi3TRrL4U22jEeCE7j9w0JF2rHF7U/z8l7EZPDObH9POzOTH7hrIUqYa1kVX eJqrZZLuXRTG8fXvsK4eL6/AP4E/WIyBAnHFGMOeLdvjHkmzNvJEHUsG/NSnVjProfhh U28ynDGHdmw0m1iOP8XQfZcqnFwfNXohsHFQ/mkJ1jzWDtcD7frXWsakaKyXV82DSiPp 7V0A== 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=Jc4n84+wNrI63u9NJlSKfx6xgW+/Lhr6YGu3ZtKDrlk=; b=YLKkMKqhhccNl1uRpLVn25fQIfXJZqg4KuXu8NKKRy3i14w3bsqMigNjQR2tb0GDTF nozmTIyKhqvdspEJJu25bT1BXQ//WM7LD3fkEpI3EJ5j7FZfjtQR6nrNUIBlj2porcC1 8opNfxk+dJOAyArHBxPzqSXJ2ZQsQlaQ2HEi2ixFFxxRoBRWp0fqN1RDiRFnyG33gZvT UbZR4f602gm0RZh+HJ4Oy/Yms/HO9X1WixRAqX8KRbzuirCTilamr5HtwctiZ7A08asG NtMvxwXHuodAsN48I+/GR1sN3QGlayrgJmLzCxN7YAAcJmVfsarLa6SAlGgb/SVaRbss Awuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l+a+qw73; 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 a3si10890457edc.75.2019.10.08.03.30.18; Tue, 08 Oct 2019 03:30:42 -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=l+a+qw73; 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 S1730434AbfJHK3G (ORCPT + 99 others); Tue, 8 Oct 2019 06:29:06 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:44746 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730425AbfJHK3G (ORCPT ); Tue, 8 Oct 2019 06:29:06 -0400 Received: by mail-oi1-f194.google.com with SMTP id w6so14291863oie.11 for ; Tue, 08 Oct 2019 03:29:06 -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=Jc4n84+wNrI63u9NJlSKfx6xgW+/Lhr6YGu3ZtKDrlk=; b=l+a+qw73vuwI9ly0iMC5woiUzdQDcF/j2s7/Ft5YC9TCulzzndKPHYIzEeBCQ13zIN l0gFCzqPhUpqo0LKT5Zyvj6AjNRuMgMwzj/y7fpA+d7gI2WPOvLb4kkDw4jc2AkSoPze HpkAAd19cNVgaRR5Nq5LvwBNkevZIyMEet2EbUA9691dJojoWcnGmUF9zruTGnxOltVl MpMZi3wnwqKyK6sHHwB/i1XMZpDV5C9NJ7Q+gDFC784OMHivnOz8oazV7iguWe/DNZsr 9kkIv2I2AWGtMJuCbXXkkIxcACi7cYBWhPhq+Dqbx/7ES//MYd7N7EkX8pJUHZYMqrtf fNUQ== 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=Jc4n84+wNrI63u9NJlSKfx6xgW+/Lhr6YGu3ZtKDrlk=; b=ja/0pLY6KH3t/oonOCQm54muK1r9P9EuiatJAdP/hsAR3r72jxi5Vb6tiaYC7zDRIs tM1q96UP1cXG0ASj18IIhjLN1ToAvDgA6vLr/KAD2OPHby1mphNY0XjeiFC8UO/DnS8o 1bsCJn9o3tV8kPiwe64xnOYltYKMZzhteLIqZcjs/JAmnkezt5HcG7UMHcb+Ox17w59B WoRwPfvBXbjoDt+1JT6pqVD6WfMt9H8JcckTQHdKvsUwr8QqBX0Lo/45AcjzZdQUPlDM ls+xys35nwaGIdpcYUTatVL/V4SA2iezdoustyTh8YxvbrqjzoLHajwIFULTwYZuaZ1L m+4A== X-Gm-Message-State: APjAAAWlAChlpX2IEn+8zJoSxGbDxWLUssYQ6sXT+9nUu8ZbKjnwLA8u FRajQZnTomC9z8sTti11XDvAJfKJN422Op2Y6gs= X-Received: by 2002:aca:1c03:: with SMTP id c3mr3092185oic.8.1570530545495; Tue, 08 Oct 2019 03:29:05 -0700 (PDT) MIME-Version: 1.0 References: <20190718100024.ii2igadxb2lmmitm@pali> <20190721155522.3vqt7vsprhpxflqf@pali> <20190829125734.GH2840@reaktio.net> <20190829200513.6xnta5jx3trbmgxp@pali> <20191003181855.GF28704@reaktio.net> <20191006100503.fsbttcschr6wgsdq@pali> <20191006120245.tkrooh45q7irtm6l@pali> <20191007143307.ez6g466afu3trlxn@pali> In-Reply-To: <20191007143307.ez6g466afu3trlxn@pali> From: Luiz Augusto von Dentz Date: Tue, 8 Oct 2019 13:28:53 +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 Mon, Oct 7, 2019 at 5:33 PM Pali Roh=C3=A1r wrote= : > > 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 wrot= e: > > > > > Hi, > > > > > > > > > > On Thu, Aug 29, 2019 at 10:05:13PM +0200, Pali Roh=C3=A1r wrote: > > > > > > On Thursday 29 August 2019 15:57:34 Pasi K=C3=A4rkk=C3=A4inen w= rote: > > > > > > > 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 pulseaudio = patches > > > > > > and porting to the new interface. I guess that I could have mor= e free > > > > > > time in the last week of next month. > > > > > > > > > > > > > > > > It seems BlueZ 5.51 has been released meanwhile (http://www.bluez= .org/release-of-bluez-5-51/) > > > > > So now at least the new interfaces are in a released bluez versio= n. > > > > > > > > Ok! Today I have looked at this new Bluez API, but seems that there= is > > > > not only missing some examples or usages with libdbus-1, but also > > > > documentation. I have tried to find something how to register endpo= ints > > > > throw GetManagedObjects() via libdbus-1, but seems that there is 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 to > > > register Endpoints in python: > > > > > > https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/example-= endpoint > > > > This example uses undocumented property "DelayReporting". What it is do= ing? > > 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 without > 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, 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. > > > 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/client.= c#n1269 > > > > > > > -- > Pali Roh=C3=A1r > pali.rohar@gmail.com --=20 Luiz Augusto von Dentz