Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4373345ybp; Mon, 7 Oct 2019 07:34:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLCrBdgTlJFFoEDqU1PveOI/qvjIc2fQMGgPyPpyMHhJ0xG1CX++3mEzWaGrQ1P9LG+rc7 X-Received: by 2002:a17:906:c310:: with SMTP id s16mr24729814ejz.178.1570458851535; Mon, 07 Oct 2019 07:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570458851; cv=none; d=google.com; s=arc-20160816; b=K5IAVWtrCNmS+VK8YczI/LsSduGSyj+91aBNFXX8xqDQQyyxHINWUlmvWrewmmLzQ9 lgHdyl73Q/p8qfWEx0h89YVjdOGzb6hPHoT14Wqv70GsPJta7lCIXgHW+4TogZn3WQsz DDE4cvA7EoXthO34dOzwwL69i7XWCXNigWTE9S0ibLyOzzSr9i6mBAlkfMPmIFBWz6hq /FNdVK97XnhA3FiEgfFExa8dqecx/ydGhh6xExFDziaCER/dDvgim/S/q9fUkFdcuau/ DhqLRMfSDCKqXG1vKFH6zlTRIYWfS27R6GgE+ntIPnI1mYKgiNhWDpBsoFLXo+VnBNKA ToyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dDIm4ahBv2skerw2lSvf8A55RpMdMMYKPUXMFQ+9MtU=; b=vpgcZz6DuexRqwj9ve/8ZiRAoWKCasA3jw44gvFk895AV+mpKvCJhBWcagGMeLZSu6 9X1kPeCwMgXxwGBup2pYXNsEYy9vAIb4mxuXgvmbY4JNuWw81Nr9cspz22yY/sIK+I6P SUlajWyM/DPcG14jGmsmhyNwRy6yuxBDxLmKTurnAyR/vZHw41/yrrFCAxLpXtMD6p5T VVIt8yRt7S28ZInR5SBaE+01C/2khwlgCNgtTWmg0cCWIKBpxEiFBHPaS2rp+UgWdx/j 6Cry7jMYLL5kmGhg9HkaWfFTHADIebdy3maavqn1g11cBzOvggG65EyNn9KR/W0hLRRT oZAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cN0P5+R0; 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 j4si9766879edl.192.2019.10.07.07.33.39; Mon, 07 Oct 2019 07:34:11 -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=cN0P5+R0; 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 S1728132AbfJGOdL (ORCPT + 99 others); Mon, 7 Oct 2019 10:33:11 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39276 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbfJGOdK (ORCPT ); Mon, 7 Oct 2019 10:33:10 -0400 Received: by mail-wr1-f68.google.com with SMTP id r3so15616170wrj.6 for ; Mon, 07 Oct 2019 07:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=dDIm4ahBv2skerw2lSvf8A55RpMdMMYKPUXMFQ+9MtU=; b=cN0P5+R0URQRG1Yc8JOJq3pS2L16D2sOd09otLQSbWVZLHEZ85puzXzGPFk1vWqIHK 8pl+Z4DIfZwYArUwKPEsBtET8MdLaR6A75uymd0t/NPoK66e+ptd0NtR3O4Uf0774Iog 1FWKJWqz+hxtn4NXMwT/kw/RSHcyZYGtZaFRJ//qBm5AOLs7Dqs352UsZMdN8wzjy0Lu Q0ZUQYAvhmOGL02Do0ZE+FnHthknURqzPpHEjivBK0C4YIuff7QY12ZaS3CHfEdp6sQw C5ZxS2Fejn31Gfcy/WKOuxxvu8h1LLGKIobrGX0yXopdgGgA7Uy77AKietfSZkL69xAN sBAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=dDIm4ahBv2skerw2lSvf8A55RpMdMMYKPUXMFQ+9MtU=; b=YXsn84XjNPQViqIB7A9ihudu0pW1hzRHYkg+E05wd7MVIJn/ZpGXQyloGjQmtZLG1t ACTtqk4YI363IYhAki1eRpfGatCdLXokT+ZFa9+g2EaihYzQIUcyg9517Dse3EisvopJ uNj1W6ERrwBFSeg7eZqLIH1v7zg9WCPp2tqF7z7ngZYiN9OvQxfJZRcjDI3e0ne4Dam7 pm6D1XA9kNRyyGvPPvIw+hhIYl09ryAf7kY6IpRrFTYbsx5dAum4Q+lDMJO/20U7KVqL 9wx2/lH8Mf7N50tqiBj5/H77rvUV0XCLhMXBBA4iEEk/hmQMTtY9tUsAElAyTmYnDfF6 pB+g== X-Gm-Message-State: APjAAAUE0gk3ja4kRFalIE5mCtv7dkuxRBvTtIM+3yxatUw5TRw2DqpA 6ynXFRDUj23QxFQpbALUIic= X-Received: by 2002:adf:f00d:: with SMTP id j13mr11010030wro.140.1570458788698; Mon, 07 Oct 2019 07:33:08 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id u1sm11898698wmc.38.2019.10.07.07.33.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Oct 2019 07:33:07 -0700 (PDT) Date: Mon, 7 Oct 2019 16:33:07 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Luiz Augusto von Dentz Cc: Pasi =?utf-8?B?S8Okcmtrw6RpbmVu?= , "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ 1/4] doc/media-api: Add RegisterApplication method Message-ID: <20191007143307.ez6g466afu3trlxn@pali> References: <20190718100024.ii2igadxb2lmmitm@pali> <20190721155522.3vqt7vsprhpxflqf@pali> <20190829125734.GH2840@reaktio.net> <20190829200513.6xnta5jx3trbmgxp@pali> <20191003181855.GF28704@reaktio.net> <20191006100503.fsbttcschr6wgsdq@pali> <20191006120245.tkrooh45q7irtm6l@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191006120245.tkrooh45q7irtm6l@pali> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Sunday 06 October 2019 14:02:45 Pali Rohár 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ár wrote: > > > > > > On Thursday 03 October 2019 21:18:55 Pasi Kärkkäinen wrote: > > > > Hi, > > > > > > > > On Thu, Aug 29, 2019 at 10:05:13PM +0200, Pali Rohár wrote: > > > > > On Thursday 29 August 2019 15:57:34 Pasi Kärkkäinen 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 pulseaudio 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.bluez.org/release-of-bluez-5-51/) > > > > So now at least the new interfaces are in a released bluez version. > > > > > > 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 endpoints > > > 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 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 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? > > 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ár pali.rohar@gmail.com