Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1721CC3DA6F for ; Fri, 25 Aug 2023 15:44:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243287AbjHYPoT convert rfc822-to-8bit (ORCPT ); Fri, 25 Aug 2023 11:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244063AbjHYPoN (ORCPT ); Fri, 25 Aug 2023 11:44:13 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65BB81FC7 for ; Fri, 25 Aug 2023 08:44:09 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C27EC240028 for ; Fri, 25 Aug 2023 17:44:06 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RXPPx5lygz9rxL; Fri, 25 Aug 2023 17:44:05 +0200 (CEST) Message-ID: Subject: Re: [BlueZ RFC] media-api: Make QoS a single property From: Pauli Virtanen To: Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org Cc: Claudia Draghicescu , iulia-tanasescu , Silviu Florian Barbulescu Date: Fri, 25 Aug 2023 15:44:05 +0000 In-Reply-To: References: <20230824212153.11050-1-luiz.dentz@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, to, 2023-08-24 kello 14:28 -0700, Luiz Augusto von Dentz kirjoitti: > Hi, > > On Thu, Aug 24, 2023 at 2:21 PM Luiz Augusto von Dentz > wrote: > > > > From: Luiz Augusto von Dentz > > > > This moves QoS related propertis to a single dictionary. > > --- > > doc/media-api.txt | 44 +++++++++++++++++++++----------------------- > > 1 file changed, 21 insertions(+), 23 deletions(-) > > > > diff --git a/doc/media-api.txt b/doc/media-api.txt > > index 3a0ec38e244d..9f2482e73ac1 100644 > > --- a/doc/media-api.txt > > +++ b/doc/media-api.txt > > @@ -816,42 +816,40 @@ Properties object Device [readonly] > > Linked transport objects which the transport is > > associated with. > > > > - byte CIG [ISO only, optional, experimental] > > + dict QoS [ISO only, optional, experimental] > > > > - Indicates configured QoS CIG. > > Only present when QoS is configured. > > > > - byte CIS [ISO only, optional, experimental] > > + Possible values for Unicast: > > > > - Indicates configured QoS CIS. > > - Only present when QoS is configured. > > + byte CIG > > > > - uint32 Interval [ISO only, optional, experimental] > > + Indicates configured QoS CIG. > > > > - Indicates configured QoS interval. > > - Only present when QoS is configured. > > + byte CIS > > > > - boolean Framing [ISO only, optional, experimental] > > + Only present when QoS is configured. > > > > - Indicates configured QoS framing. > > - Only present when QoS is configured. > > + uint32 Interval > > > > - byte PHY [ISO only, optional, experimental] > > + Indicates configured QoS interval. > > > > - Indicates configured QoS PHY. > > - Only present when QoS is configured. > > + boolean Framing While we are breaking things, it would be useful to unify this API with SelectProperties/SetConfiguration, where PHY is string "1M" or "2M" not byte. Can we make it byte everywhere? I think the enum ultimately comes from Core spec, so not sure the string names are that useful. > > > > - uint16 SDU [ISO only, optional, experimental] > > + Indicates configured QoS framing. > > > > - Indicates configured QoS SDU. > > - Only present when QoS is configured. > > + byte PHY > > > > - byte Retransmissions [ISO only, optional, experimental] > > + Indicates configured QoS PHY. > > > > - Indicates configured QoS retransmissions. > > - Only present when QoS is configured. > > + uint16 SDU > > > > - uint16 Latency [ISO only, optional, experimental] > > + Indicates configured QoS SDU. > > > > - Indicates configured QoS latency. > > - Only present when QoS is configured. > > + byte Retransmissions > > + > > + Indicates configured QoS retransmissions. > > + > > + uint16 Latency > > + > > + Indicates configured QoS latency. > > -- > > 2.41.0 > > Let me know if you have anything against doing these changes, this > will break backward compatibility but since they are still marked as > experimental we can still do these changes. I think it's fine if Pipewire targets BlueZ master branch as long as the feature is experimental. -- Pauli Virtanen