diff -Nru bluez-5.64/debian/changelog bluez-5.64/debian/changelog --- bluez-5.64/debian/changelog 2022-03-24 14:30:38.000000000 +0800 +++ bluez-5.64/debian/changelog 2023-01-16 18:07:10.000000000 +0800 @@ -1,3 +1,10 @@ +bluez (5.64-0ubuntu1.1) jammy; urgency=medium + + * Cherry pick fix from v5.65 for Bluetooth audio defaulting to low + quality (LP: #1988364). + + -- Daniel van Vugt Mon, 16 Jan 2023 18:07:10 +0800 + bluez (5.64-0ubuntu1) jammy; urgency=medium * New upstream release 5.64 (LP: #1965740): diff -Nru bluez-5.64/debian/patches/a2dp-Always-invalidate-the-cache-if-its-configuratio.patch bluez-5.64/debian/patches/a2dp-Always-invalidate-the-cache-if-its-configuratio.patch --- bluez-5.64/debian/patches/a2dp-Always-invalidate-the-cache-if-its-configuratio.patch 1970-01-01 08:00:00.000000000 +0800 +++ bluez-5.64/debian/patches/a2dp-Always-invalidate-the-cache-if-its-configuratio.patch 2023-01-16 18:05:59.000000000 +0800 @@ -0,0 +1,28 @@ +Description: a2dp: Always invalidate the cache if its configuration fails +Origin: Upstream commit 62e591578e3f948e187aacf44ede4286fad37ad7 (in v5.65) +Bug: https://github.com/bluez/bluez/issues/313 +Bug-Ubuntu: https://launchpad.net/bugs/1988364 +Last-Update: 2023-01-16 + +diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c +index d66c22b2b..c3ac432a7 100644 +--- a/profiles/audio/a2dp.c ++++ b/profiles/audio/a2dp.c +@@ -872,12 +872,10 @@ static void store_remote_seps(struct a2dp_channel *chan) + static void invalidate_remote_cache(struct a2dp_setup *setup, + struct avdtp_error *err) + { +- if (err->category == AVDTP_ERRNO || +- err->err.error_code != AVDTP_UNSUPPORTED_CONFIGURATION) ++ if (err->category == AVDTP_ERRNO) + return; + +- /* Attempt to unregister Remote SEP if configuration +- * fails with Unsupported Configuration and it was ++ /* Attempt to unregister Remote SEP if configuration fails and it was + * loaded from cache. + */ + if (setup->rsep && setup->rsep->from_cache) { +-- +2.38.1 + diff -Nru bluez-5.64/debian/patches/series bluez-5.64/debian/patches/series --- bluez-5.64/debian/patches/series 2022-03-24 14:30:38.000000000 +0800 +++ bluez-5.64/debian/patches/series 2023-01-16 17:58:06.000000000 +0800 @@ -4,6 +4,7 @@ obex-Use-GLib-helper-function-to-manipulate-paths.patch change_path_of_hogsuspend.patch lp1759836.patch +a2dp-Always-invalidate-the-cache-if-its-configuratio.patch # This currently stays specific for Ubuntu 0002-hostname-handle-chassis-type-handset.patch