diff options
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-media-fix-pac_config_cb-error-code-return.patch | 29 |
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 | " |
| 68 | S = "${UNPACKDIR}/bluez-${PV}" | 69 | S = "${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 @@ | |||
| 1 | From d7966dbb7bcf39f9615c906c47ef7ad895796756 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Pauli Virtanen <pav@iki.fi> | ||
| 3 | Date: Thu, 18 Sep 2025 20:19:35 +0300 | ||
| 4 | Subject: [PATCH] media: fix pac_config_cb() error code return | ||
| 5 | |||
| 6 | Fixes: a887b1a1b91f ("audio: Add support for specific error codes for A2DP configuration") | ||
| 7 | |||
| 8 | Upstream-Status: Backport [https://github.com/bluez/bluez/commit/6b0a08776ae44a9102d7c6875a77e83dc6a11a37] | ||
| 9 | Signed-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 | |||
| 14 | diff --git a/profiles/audio/media.c b/profiles/audio/media.c | ||
| 15 | index 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 | -- | ||
| 28 | 2.43.0 | ||
| 29 | |||
