All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/3] audio/hfp-hf: Add Operator name support
@ 2025-12-17 16:48 Frédéric Danis
  2025-12-17 16:48 ` [PATCH BlueZ 2/3] audio/hfp-hf: Add simple call support Frédéric Danis
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Frédéric Danis @ 2025-12-17 16:48 UTC (permalink / raw)
  To: linux-bluetooth

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

diff --git a/profiles/audio/hfp-hf.c b/profiles/audio/hfp-hf.c
index d25cda389..384480c9e 100644
--- a/profiles/audio/hfp-hf.c
+++ b/profiles/audio/hfp-hf.c
@@ -108,6 +108,13 @@ static void hfp_hf_update_indicator(enum hfp_indicator indicator, uint32_t val,
 	}
 }
 
+static void hfp_hf_update_operator(const char *operator_name, void *user_data)
+{
+	struct hfp_device *dev = user_data;
+
+	telephony_set_operator_name(dev->telephony, operator_name);
+}
+
 static void hfp_hf_session_ready_cb(enum hfp_result res, enum hfp_error cme_err,
 							void *user_data)
 {
@@ -125,6 +132,7 @@ static void hfp_hf_session_ready_cb(enum hfp_result res, enum hfp_error cme_err,
 static struct hfp_hf_callbacks hf_session_callbacks = {
 	.session_ready = hfp_hf_session_ready_cb,
 	.update_indicator = hfp_hf_update_indicator,
+	.update_operator = hfp_hf_update_operator,
 };
 
 static void hfp_disconnect_watch(void *user_data)
-- 
2.43.0


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

end of thread, other threads:[~2025-12-18 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 16:48 [PATCH BlueZ 1/3] audio/hfp-hf: Add Operator name support Frédéric Danis
2025-12-17 16:48 ` [PATCH BlueZ 2/3] audio/hfp-hf: Add simple call support Frédéric Danis
2025-12-18 19:07   ` Luiz Augusto von Dentz
2025-12-17 16:48 ` [PATCH BlueZ 3/3] audio/hfp-hf: Add in-band ringtone flag support Frédéric Danis
2025-12-17 18:24 ` [BlueZ,1/3] audio/hfp-hf: Add Operator name support bluez.test.bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.