* [PATCH BlueZ] transport: always show A2DP Delay property as sink if DelayReporting
@ 2025-10-04 10:02 Pauli Virtanen
2025-10-04 11:31 ` [BlueZ] " bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Pauli Virtanen @ 2025-10-04 10:02 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
The Delay property is currently not shown to sound server unless remote
side has acked delay reporting. However, when we are A2DP Sink, we
reply to delay report requests with the current value, so the value
logically exists and is active. This behavior was apparently changed in
commits 05f8bd489fd1 and 5d4efe960fd.
Show Delay value for local A2DP Sink endpoint if it has DelayReporting.
Fixes: https://github.com/bluez/bluez/issues/1541
---
profiles/audio/media.c | 5 +++++
profiles/audio/media.h | 1 +
profiles/audio/transport.c | 5 +++++
3 files changed, 11 insertions(+)
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index deb321e6c..a7a8575f9 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -3488,6 +3488,11 @@ const char *media_endpoint_get_uuid(struct media_endpoint *endpoint)
return endpoint->uuid;
}
+bool media_endpoint_get_delay_reporting(struct media_endpoint *endpoint)
+{
+ return endpoint->delay_reporting;
+}
+
uint8_t media_endpoint_get_codec(struct media_endpoint *endpoint)
{
return endpoint->codec;
diff --git a/profiles/audio/media.h b/profiles/audio/media.h
index d3954abd6..380951f28 100644
--- a/profiles/audio/media.h
+++ b/profiles/audio/media.h
@@ -19,6 +19,7 @@ void media_unregister(struct btd_adapter *btd_adapter);
struct a2dp_sep *media_endpoint_get_sep(struct media_endpoint *endpoint);
const char *media_endpoint_get_uuid(struct media_endpoint *endpoint);
+bool media_endpoint_get_delay_reporting(struct media_endpoint *endpoint);
uint8_t media_endpoint_get_codec(struct media_endpoint *endpoint);
struct btd_adapter *media_endpoint_get_btd_adapter(
struct media_endpoint *endpoint);
diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index bc550b743..8c33d00f0 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -1010,8 +1010,13 @@ static gboolean delay_reporting_exists(const GDBusPropertyTable *property,
void *data)
{
struct media_transport *transport = data;
+ struct media_endpoint *endpoint = transport->endpoint;
struct avdtp_stream *stream;
+ /* Local A2DP sink decides itself if it has delay reporting */
+ if (!strcmp(media_endpoint_get_uuid(endpoint), A2DP_SINK_UUID))
+ return media_endpoint_get_delay_reporting(endpoint);
+
stream = media_transport_get_stream(transport);
if (stream == NULL)
return FALSE;
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [BlueZ] transport: always show A2DP Delay property as sink if DelayReporting
2025-10-04 10:02 [PATCH BlueZ] transport: always show A2DP Delay property as sink if DelayReporting Pauli Virtanen
@ 2025-10-04 11:31 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2025-10-04 11:31 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 1262 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=1008427
---Test result---
Test Summary:
CheckPatch PENDING 0.28 seconds
GitLint PENDING 0.34 seconds
BuildEll PASS 19.90 seconds
BluezMake PASS 2556.94 seconds
MakeCheck PASS 20.37 seconds
MakeDistcheck PASS 184.16 seconds
CheckValgrind PASS 234.53 seconds
CheckSmatch PASS 306.07 seconds
bluezmakeextell PASS 127.76 seconds
IncrementalBuild PENDING 0.27 seconds
ScanBuild PASS 907.62 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-04 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-04 10:02 [PATCH BlueZ] transport: always show A2DP Delay property as sink if DelayReporting Pauli Virtanen
2025-10-04 11:31 ` [BlueZ] " bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox