linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] shared/hfp: Add function to get multiparty call status
@ 2025-12-24 14:45 Frédéric Danis
  2025-12-24 14:45 ` [PATCH BlueZ 2/2] audio/hfp-hf: Update multiparty status on call creation Frédéric Danis
  2025-12-24 15:36 ` [BlueZ,1/2] shared/hfp: Add function to get multiparty call status bluez.test.bot
  0 siblings, 2 replies; 3+ messages in thread
From: Frédéric Danis @ 2025-12-24 14:45 UTC (permalink / raw)
  To: linux-bluetooth

---
 src/shared/hfp.c | 20 ++++++++++++++++++++
 src/shared/hfp.h |  1 +
 2 files changed, 21 insertions(+)

diff --git a/src/shared/hfp.c b/src/shared/hfp.c
index e4f5161b6..59e09f80e 100644
--- a/src/shared/hfp.c
+++ b/src/shared/hfp.c
@@ -2874,6 +2874,26 @@ const char *hfp_hf_call_get_number(struct hfp_hf *hfp, uint id)
 	return call->line_id;
 }
 
+bool hfp_hf_call_get_multiparty(struct hfp_hf *hfp, uint id, bool *mpty)
+{
+	struct hf_call *call;
+
+	if (!hfp)
+		return false;
+
+	DBG(hfp, "");
+
+	call = queue_find(hfp->calls, call_id_match, UINT_TO_PTR(id));
+	if (!call) {
+		DBG(hfp, "hf: no call with id: %u", id);
+		return false;
+	}
+
+	*mpty = call->mpty;
+
+	return true;
+}
+
 bool hfp_hf_dial(struct hfp_hf *hfp, const char *number,
 				hfp_response_func_t resp_cb,
 				void *user_data)
diff --git a/src/shared/hfp.h b/src/shared/hfp.h
index 045e1f7ab..201777605 100644
--- a/src/shared/hfp.h
+++ b/src/shared/hfp.h
@@ -247,6 +247,7 @@ bool hfp_hf_session_register(struct hfp_hf *hfp,
 bool hfp_hf_session(struct hfp_hf *hfp);
 
 const char *hfp_hf_call_get_number(struct hfp_hf *hfp, uint id);
+bool hfp_hf_call_get_multiparty(struct hfp_hf *hfp, uint id, bool *mpty);
 
 bool hfp_hf_dial(struct hfp_hf *hfp, const char *number,
 				hfp_response_func_t resp_cb,
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH BlueZ 2/2] audio/hfp-hf: Update multiparty status on call creation
  2025-12-24 14:45 [PATCH BlueZ 1/2] shared/hfp: Add function to get multiparty call status Frédéric Danis
@ 2025-12-24 14:45 ` Frédéric Danis
  2025-12-24 15:36 ` [BlueZ,1/2] shared/hfp: Add function to get multiparty call status bluez.test.bot
  1 sibling, 0 replies; 3+ messages in thread
From: Frédéric Danis @ 2025-12-24 14:45 UTC (permalink / raw)
  To: linux-bluetooth

---
 profiles/audio/hfp-hf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/profiles/audio/hfp-hf.c b/profiles/audio/hfp-hf.c
index ca40c46d0..c91b16426 100644
--- a/profiles/audio/hfp-hf.c
+++ b/profiles/audio/hfp-hf.c
@@ -158,12 +158,15 @@ static void hfp_hf_call_added(uint id, enum hfp_call_status status,
 	struct hfp_device *dev = user_data;
 	struct call *call;
 	const char *number;
+	bool mpty;
 
 	call = telephony_new_call(dev->telephony, id,
 					hfp_call_status_to_call_state(status),
 					NULL);
 	if ((number = hfp_hf_call_get_number(dev->hf, id)) != NULL)
 		call->line_id = g_strdup(number);
+	if (hfp_hf_call_get_multiparty(dev->hf, id, &mpty))
+		call->multiparty = mpty;
 	if (telephony_call_register_interface(call)) {
 		telephony_free_call(call);
 		return;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ,1/2] shared/hfp: Add function to get multiparty call status
  2025-12-24 14:45 [PATCH BlueZ 1/2] shared/hfp: Add function to get multiparty call status Frédéric Danis
  2025-12-24 14:45 ` [PATCH BlueZ 2/2] audio/hfp-hf: Update multiparty status on call creation Frédéric Danis
@ 2025-12-24 15:36 ` bluez.test.bot
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-12-24 15:36 UTC (permalink / raw)
  To: linux-bluetooth, frederic.danis

[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1036434

---Test result---

Test Summary:
CheckPatch                    PENDING   0.29 seconds
GitLint                       PENDING   0.44 seconds
BuildEll                      PASS      20.70 seconds
BluezMake                     PASS      661.62 seconds
MakeCheck                     PASS      22.17 seconds
MakeDistcheck                 PASS      246.01 seconds
CheckValgrind                 PASS      301.10 seconds
CheckSmatch                   PASS      354.87 seconds
bluezmakeextell               PASS      186.35 seconds
IncrementalBuild              PENDING   0.32 seconds
ScanBuild                     PASS      1077.16 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-24 15:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-24 14:45 [PATCH BlueZ 1/2] shared/hfp: Add function to get multiparty call status Frédéric Danis
2025-12-24 14:45 ` [PATCH BlueZ 2/2] audio/hfp-hf: Update multiparty status on call creation Frédéric Danis
2025-12-24 15:36 ` [BlueZ,1/2] shared/hfp: Add function to get multiparty call status bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).