From 84bc0490a551b6fa688f4ad7ca51ff0d7b01d9a4 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 3 Oct 2021 17:58:50 +0300 Subject: [PATCH] bluez5: tweak msbc adapter probe for Intel adapters The msbc capability connection probe seems to cause problems on Intel Bluetooth 8087:0a2b (Intel 8265), resulting to subsequent connections apparently ending up with wrong altsetting. According to testing, the problem is connecting to self, so connect to device instead. Fixes #1671 --- spa/plugins/bluez5/backend-native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 19e2a61be..6ed5e9254 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -589,8 +589,8 @@ static bool device_supports_required_mSBC_transport_modes( bdaddr_t dst; int res; - /* Connect to self */ - str2ba(device->adapter->address, &dst); + /* Connect to device */ + str2ba(device->address, &dst); len = sizeof(addr); memset(&addr, 0, len); addr.sco_family = AF_BLUETOOTH;