summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc1
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-media-fix-pac_config_cb-error-code-return.patch29
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index 24a41f92df..aac38a54a9 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -64,6 +64,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
64 file://init \ 64 file://init \
65 file://run-ptest \ 65 file://run-ptest \
66 file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ 66 file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \
67 file://0001-media-fix-pac_config_cb-error-code-return.patch \
67 " 68 "
68S = "${UNPACKDIR}/bluez-${PV}" 69S = "${UNPACKDIR}/bluez-${PV}"
69 70
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-media-fix-pac_config_cb-error-code-return.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-media-fix-pac_config_cb-error-code-return.patch
new file mode 100644
index 0000000000..a67fd07137
--- /dev/null
+++ b/meta/recipes-connectivity/bluez5/bluez5/0001-media-fix-pac_config_cb-error-code-return.patch
@@ -0,0 +1,29 @@
1From d7966dbb7bcf39f9615c906c47ef7ad895796756 Mon Sep 17 00:00:00 2001
2From: Pauli Virtanen <pav@iki.fi>
3Date: Thu, 18 Sep 2025 20:19:35 +0300
4Subject: [PATCH] media: fix pac_config_cb() error code return
5
6Fixes: a887b1a1b91f ("audio: Add support for specific error codes for A2DP configuration")
7
8Upstream-Status: Backport [https://github.com/bluez/bluez/commit/6b0a08776ae44a9102d7c6875a77e83dc6a11a37]
9Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
10---
11 profiles/audio/media.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/profiles/audio/media.c b/profiles/audio/media.c
15index 332f643bb..deb321e6c 100644
16--- a/profiles/audio/media.c
17+++ b/profiles/audio/media.c
18@@ -1110,7 +1110,7 @@ static void pac_config_cb(struct media_endpoint *endpoint, void *ret, int size,
19 if (!transport)
20 return;
21
22- data->cb(data->stream, error_code == 0 ? 0 : -EINVAL);
23+ data->cb(data->stream, (error_code && *error_code == 0) ? 0 : -EINVAL);
24 }
25
26 static struct media_transport *pac_ucast_config(struct bt_bap_stream *stream,
27--
282.43.0
29