* [PATCH BlueZ v1 1/2] bap: Add missing Metadata property
@ 2024-01-23 19:04 Luiz Augusto von Dentz
2024-01-23 19:04 ` [PATCH BlueZ v1 2/2] bap: Fix not handling out of order responses Luiz Augusto von Dentz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2024-01-23 19:04 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This adds missing Metadata property to MediaEndpoint objects.
---
profiles/audio/bap.c | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 63bdbb52a53c..6184c9d178a8 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -255,6 +255,39 @@ static gboolean get_capabilities(const GDBusPropertyTable *property,
return TRUE;
}
+static gboolean has_metadata(const GDBusPropertyTable *property, void *data)
+{
+ struct bap_ep *ep = data;
+ struct iovec *d = NULL;
+
+ bt_bap_pac_get_codec(ep->rpac, NULL, NULL, &d);
+
+ if (d)
+ return TRUE;
+
+ return FALSE;
+}
+
+static gboolean get_metadata(const GDBusPropertyTable *property,
+ DBusMessageIter *iter, void *data)
+{
+ struct bap_ep *ep = data;
+ DBusMessageIter array;
+ struct iovec *d;
+
+ bt_bap_pac_get_codec(ep->rpac, NULL, NULL, &d);
+
+ dbus_message_iter_open_container(iter, DBUS_TYPE_ARRAY,
+ DBUS_TYPE_BYTE_AS_STRING, &array);
+
+ dbus_message_iter_append_fixed_array(&array, DBUS_TYPE_BYTE,
+ &d->iov_base, d->iov_len);
+
+ dbus_message_iter_close_container(iter, &array);
+
+ return TRUE;
+}
+
static gboolean get_device(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *data)
{
@@ -360,6 +393,8 @@ static const GDBusPropertyTable ep_properties[] = {
G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
{ "Capabilities", "ay", get_capabilities, NULL, has_capabilities,
G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
+ { "Metadata", "ay", get_metadata, NULL, has_metadata,
+ G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
{ "Device", "o", get_device, NULL, NULL,
G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
{ "Locations", "u", get_locations, NULL, NULL,
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH BlueZ v1 2/2] bap: Fix not handling out of order responses
2024-01-23 19:04 [PATCH BlueZ v1 1/2] bap: Add missing Metadata property Luiz Augusto von Dentz
@ 2024-01-23 19:04 ` Luiz Augusto von Dentz
2024-01-23 21:55 ` [BlueZ,v1,1/2] bap: Add missing Metadata property bluez.test.bot
2024-01-23 22:20 ` [PATCH BlueZ v1 1/2] " patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2024-01-23 19:04 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
When EATT is enabled it is possible that response are generated out of
order, since they may come from different sockets/fds, so this attempts
to detect when that happens by checking if the state has already been
changed.
---
profiles/audio/bap.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 6184c9d178a8..a4036bbbdfa8 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -801,8 +801,20 @@ static void config_cb(struct bt_bap_stream *stream,
setup->id = 0;
- if (!code)
+ if (!code) {
+ /* Check state is already set to config then proceed to qos */
+ if (bt_bap_stream_get_state(stream) ==
+ BT_BAP_STREAM_STATE_CONFIG) {
+ setup->id = bt_bap_stream_qos(stream, &setup->qos,
+ qos_cb, setup);
+ if (!setup->id) {
+ error("Failed to Configure QoS");
+ bt_bap_stream_release(stream, NULL, NULL);
+ }
+ }
+
return;
+ }
if (!setup->msg)
return;
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [BlueZ,v1,1/2] bap: Add missing Metadata property
2024-01-23 19:04 [PATCH BlueZ v1 1/2] bap: Add missing Metadata property Luiz Augusto von Dentz
2024-01-23 19:04 ` [PATCH BlueZ v1 2/2] bap: Fix not handling out of order responses Luiz Augusto von Dentz
@ 2024-01-23 21:55 ` bluez.test.bot
2024-01-23 22:20 ` [PATCH BlueZ v1 1/2] " patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2024-01-23 21:55 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=819223
---Test result---
Test Summary:
CheckPatch PENDING 118.10 seconds
GitLint PENDING 101.29 seconds
BuildEll PASS 24.56 seconds
BluezMake PASS 790.22 seconds
MakeCheck PASS 12.07 seconds
MakeDistcheck PASS 164.60 seconds
CheckValgrind PASS 226.47 seconds
CheckSmatch PASS 342.65 seconds
bluezmakeextell PASS 110.72 seconds
IncrementalBuild PASS 1459.06 seconds
ScanBuild PASS 977.76 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH BlueZ v1 1/2] bap: Add missing Metadata property
2024-01-23 19:04 [PATCH BlueZ v1 1/2] bap: Add missing Metadata property Luiz Augusto von Dentz
2024-01-23 19:04 ` [PATCH BlueZ v1 2/2] bap: Fix not handling out of order responses Luiz Augusto von Dentz
2024-01-23 21:55 ` [BlueZ,v1,1/2] bap: Add missing Metadata property bluez.test.bot
@ 2024-01-23 22:20 ` patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2024-01-23 22:20 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 23 Jan 2024 14:04:26 -0500 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> This adds missing Metadata property to MediaEndpoint objects.
> ---
> profiles/audio/bap.c | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
Here is the summary with links:
- [BlueZ,v1,1/2] bap: Add missing Metadata property
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=08bf0b2a85f3
- [BlueZ,v1,2/2] bap: Fix not handling out of order responses
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=d994c9d45dad
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-23 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23 19:04 [PATCH BlueZ v1 1/2] bap: Add missing Metadata property Luiz Augusto von Dentz
2024-01-23 19:04 ` [PATCH BlueZ v1 2/2] bap: Fix not handling out of order responses Luiz Augusto von Dentz
2024-01-23 21:55 ` [BlueZ,v1,1/2] bap: Add missing Metadata property bluez.test.bot
2024-01-23 22:20 ` [PATCH BlueZ v1 1/2] " patchwork-bot+bluetooth
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.