From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 6/9] media-api: Add SelectProperties
Date: Wed, 17 Aug 2022 16:41:43 -0700 [thread overview]
Message-ID: <20220817234146.224081-7-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20220817234146.224081-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This adds SelectProperties which is a more extensible version of
SelectCapability since it takes a dictionary rather than a byte array
and define new Properties for LE Audio.
---
doc/media-api.txt | 88 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 87 insertions(+), 1 deletion(-)
diff --git a/doc/media-api.txt b/doc/media-api.txt
index e98573157c60..9cd211355860 100644
--- a/doc/media-api.txt
+++ b/doc/media-api.txt
@@ -24,6 +24,9 @@ Methods void RegisterEndpoint(object endpoint, dict properties)
UUID of the profile which the endpoint
is for.
+ UUID must be in the list of
+ SupportedUUIDS.
+
byte Codec:
Assigned number of codec that the
@@ -87,6 +90,12 @@ Methods void RegisterEndpoint(object endpoint, dict properties)
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.DoesNotExist
+
+Properties array{string} SupportedUUIDs [readonly]:
+
+ List of 128-bit UUIDs that represents the supported
+ Endpoint registration.
+
Media Control hierarchy
=======================
@@ -564,7 +573,18 @@ Methods void SetConfiguration(object transport, dict properties)
endpoint oject which will be configured and the
properties must contain the following properties:
- array{byte} Capabilities
+ array{byte} Capabilities [Mandatory]
+ array{byte} Metadata [ISO only]
+ byte CIG [ISO only]
+ byte CIS [ISO only]
+ uint32 Interval [ISO only]
+ bool Framing [ISO only]
+ string PHY [ISO only]
+ uint16 SDU [ISO only]
+ byte Retransmissions [ISO only]
+ uint16 Latency [ISO only]
+ uint32 Delay [ISO only]
+ uint8 TargetLatency [ISO Latency]
array{byte} SelectConfiguration(array{byte} capabilities)
@@ -578,6 +598,19 @@ Methods void SetConfiguration(object transport, dict properties)
configuration since on success the configuration is
send back as parameter of SetConfiguration.
+ dict SelectProperties(dict properties)
+
+ Select preferable properties from the supported
+ properties. Refer to SetConfiguration for the list of
+ possible properties.
+
+ Returns propeties which can be used to setup
+ a transport.
+
+ Note: There is no need to cache the selected
+ properties since on success the configuration is
+ send back as parameter of SetConfiguration.
+
void ClearConfiguration(object transport)
Clear transport configuration.
@@ -613,6 +646,46 @@ Properties string UUID [readonly, optional]:
Indicates if endpoint supports Delay Reporting.
+ byte Framing [ISO only]
+
+ Indicates endpoint support framing.
+
+ byte PHY [ISO only]
+
+ Indicates endpoint supported PHY.
+
+ uint16_t MaximumLatency [ISO only]
+
+ Indicates endpoint maximum latency.
+
+ uint32_t MinimumDelay [ISO only]
+
+ Indicates endpoint minimum presentation delay.
+
+ uint32_t MaximumDelay [ISO only]
+
+ Indicates endpoint maximum presentation delay.
+
+ uint32_t PreferredMinimumDelay [ISO only]
+
+ Indicates endpoint preferred minimum presentation delay.
+
+ uint32_t PreferredMinimumDelay [ISO only]
+
+ Indicates endpoint preferred minimum presentation delay.
+
+ uint32 Location [ISO only]
+
+ Indicates endpoint supported locations.
+
+ uint16 SupportedContext [ISO only]
+
+ Indicates endpoint supported audio context.
+
+ uint16 Context [ISO only]
+
+ Indicates endpoint available audio context.
+
MediaTransport1 hierarchy
=========================
@@ -689,3 +762,16 @@ Properties object Device [readonly]
Endpoint object which the transport is associated
with.
+
+ uint32 Location [readonly, ISO only, experimental]
+
+ Indicates transport Audio Location.
+
+ array{byte} Metadata [ISO Only, experimental]
+
+ Indicates transport Metadata.
+
+ array{object} Links [readonly, optional, ISO only, experimental]
+
+ Linked transport objects which the transport is
+ associated with.
--
2.37.2
next prev parent reply other threads:[~2022-08-17 23:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 23:41 [PATCH BlueZ 0/9] Initial BAP support Luiz Augusto von Dentz
2022-08-17 23:41 ` [PATCH BlueZ 1/9] adapter: Add btd_adapter_find_device_by_fd Luiz Augusto von Dentz
2022-08-18 3:50 ` Initial BAP support bluez.test.bot
2022-08-17 23:41 ` [PATCH BlueZ 2/9] lib/uuid: Add PACS/ASCS UUIDs Luiz Augusto von Dentz
2022-08-17 23:41 ` [PATCH BlueZ 3/9] shared/bap: Add initial code for handling BAP Luiz Augusto von Dentz
2022-08-17 23:41 ` [PATCH BlueZ 4/9] profiles: Add initial code for bap plugin Luiz Augusto von Dentz
2022-08-17 23:41 ` [PATCH BlueZ 5/9] shared: Add definition for LC3 codec Luiz Augusto von Dentz
2022-08-17 23:41 ` Luiz Augusto von Dentz [this message]
2022-08-17 23:41 ` [PATCH BlueZ 7/9] test/simple-endpoint: Add support for LC3 endpoints Luiz Augusto von Dentz
2022-08-17 23:41 ` [PATCH BlueZ 8/9] client/player: Add support for PACS endpoints Luiz Augusto von Dentz
2022-08-17 23:41 ` [PATCH BlueZ 9/9] client/player: Use QoS interval on transport.send Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220817234146.224081-7-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox