]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
bluez5: fix Bluetooth LE audio regression
authorGuðni Már Gilbert <gudni.m.g@gmail.com>
Mon, 29 Sep 2025 04:33:52 +0000 (04:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Oct 2025 10:27:31 +0000 (11:27 +0100)
Backport a fix for a regression introduced in 5.84 which breaks Bluetooth LE audio

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-connectivity/bluez5/bluez5.inc
meta/recipes-connectivity/bluez5/bluez5/0001-media-fix-pac_config_cb-error-code-return.patch [new file with mode: 0644]

index 24a41f92df764e734ef1ed9de8d31dd906782db0..aac38a54a9d2d67f945633da1e4822392602ea68 100644 (file)
@@ -64,6 +64,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
            file://init \
            file://run-ptest \
            file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \
+           file://0001-media-fix-pac_config_cb-error-code-return.patch \
            "
 S = "${UNPACKDIR}/bluez-${PV}"
 
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 (file)
index 0000000..a67fd07
--- /dev/null
@@ -0,0 +1,29 @@
+From d7966dbb7bcf39f9615c906c47ef7ad895796756 Mon Sep 17 00:00:00 2001
+From: Pauli Virtanen <pav@iki.fi>
+Date: Thu, 18 Sep 2025 20:19:35 +0300
+Subject: [PATCH] media: fix pac_config_cb() error code return
+
+Fixes: a887b1a1b91f ("audio: Add support for specific error codes for A2DP configuration")
+
+Upstream-Status: Backport [https://github.com/bluez/bluez/commit/6b0a08776ae44a9102d7c6875a77e83dc6a11a37]
+Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
+---
+ profiles/audio/media.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/profiles/audio/media.c b/profiles/audio/media.c
+index 332f643bb..deb321e6c 100644
+--- a/profiles/audio/media.c
++++ b/profiles/audio/media.c
+@@ -1110,7 +1110,7 @@ static void pac_config_cb(struct media_endpoint *endpoint, void *ret, int size,
+       if (!transport)
+               return;
+-      data->cb(data->stream, error_code == 0 ? 0 : -EINVAL);
++      data->cb(data->stream, (error_code && *error_code == 0) ? 0 : -EINVAL);
+ }
+ static struct media_transport *pac_ucast_config(struct bt_bap_stream *stream,
+-- 
+2.43.0
+