Skip to content

policy: fix HSP/HFP reconnection

Yao Wei (魏銘廷) linux-bluetooth 1 version Applied

Status from this message: This patch was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1policy: fix HSP/HFP reconnectionplugins/policy.c+8 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH BlueZ 0/1] policy: fix HSP/HFP reconnection

This patch was regarding to https://github.com/bluez/bluez/issues/1069.

The previous patch did not fix the issue, as I was testing it with Apple AirPods Pro 2 and it automatically reconnects HSP/HFP after A2DP is connected for about 25 seconds, and I assume the patch worked for me. Some other devices I tested did not exhibit such behavior (Jabra Speak2 55 UC). This patch was tested against both these devices, and both cases with NVIDIA GPU enabled and disabled.

By removing the code checking whether A2DP service is initiator for directly starting HSP/HFP service, it will now only check whether HSP/HFP is connected, and start the service if not.

The previous patch also has an oversight of not falling back to get HSP service if HFP is not available. This patch fixed the issue.

Yao Wei (魏銘廷) (1):
policy: fix HSP/HFP reconnection

 plugins/policy.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
Signature · 1 line
2.49.0