[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] bluetooth: prioritize native backend HFP HF connection

PulseAudio Marge Bot gitlab at gitlab.freedesktop.org
Sat Apr 3 06:53:15 UTC 2021



PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
1f204a13 by Igor V. Kovalenko at 2021-04-03T08:48:06+03:00
bluetooth: prioritize native backend HFP HF connection

Bluez prepends newly registered profile to a list of supported profiles,
and new peer profile connections are attempted in reverse order of profile
registration.

Currently native backend would register HFP AG profile before HSP AG profile.
When peer supports both HFP HF and HSP HS profiles, this registration order
causes extra HSP HS connection attempt before native backend would reject it
to make sure peer is reconnected with HFP HF profile.

Reorder HSP AG profile registration before HFP AG to make sure peer supporting
both profiles connects with HFP HF profile first.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/534>

- - - - -


1 changed file:

- src/modules/bluetooth/backend-native.c


Changes:

=====================================
src/modules/bluetooth/backend-native.c
=====================================
@@ -914,11 +914,11 @@ pa_bluetooth_backend *pa_bluetooth_native_backend_new(pa_core *c, pa_bluetooth_d
     backend->enable_shared_profiles = enable_shared_profiles;
     backend->enable_hfp_hf = pa_bluetooth_discovery_get_enable_native_hfp_hf(y);
 
+    profile_init(backend, PA_BLUETOOTH_PROFILE_HSP_HS);
+
     if (backend->enable_shared_profiles)
         native_backend_apply_profile_registration_change(backend, true);
 
-    profile_init(backend, PA_BLUETOOTH_PROFILE_HSP_HS);
-
     return backend;
 }
 



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/1f204a1357f2d26a4cca12ea9e017db90dd2d961

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/1f204a1357f2d26a4cca12ea9e017db90dd2d961
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20210403/126f7afc/attachment.htm>


More information about the pulseaudio-commits mailing list