From 627515f64113aaf48abdbdc852f76c7f7535a989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Thu, 7 Nov 2024 15:15:46 +0100 Subject: [PATCH] bluez5: backend-native: Check current calls on SLC completion This allows to create the calls existing before the HFP connection. --- spa/plugins/bluez5/backend-native.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 57d048a07..d98eaeb7c 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -2146,6 +2146,14 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token) } telephony_ag_register(rfcomm->telephony_ag); + if (rfcomm->hfp_hf_clcc) { + rfcomm_send_cmd(rfcomm, "AT+CLCC"); + rfcomm->hf_state = hfp_hf_slc2; + break; + } else { + // TODO: Create calls if CIND reports one during SLC setup + } + /* Report volume on SLC establishment */ SPA_FALLTHROUGH; case hfp_hf_slc2: