* [PATCH BlueZ] audio/media: Add hfp-hf supported feature flag
@ 2026-11-15 10:19 Frédéric Danis
0 siblings, 0 replies; only message in thread
From: Frédéric Danis @ 2026-11-15 10:19 UTC (permalink / raw)
To: linux-bluetooth
From: Frédéric Danis <frederic.danis.oss@gmail.com>
This flag is set when HFP HF internal plugin is started.
It allows external applications like PipeWire to know that HFP HF can
be managed by BlueZ and they have to register endpoints for the
supported codecs.
---
profiles/audio/media.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 34ff251c7..3433a7b6e 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -3765,11 +3765,23 @@ error:
return false;
}
+static bool probe_hfp_hf(struct media_adapter *adapter)
+{
+ struct btd_profile *profile;
+
+ profile = btd_profile_find_remote_uuid(HFP_AG_UUID);
+ if (!profile || profile->external)
+ return false;
+
+ return true;
+}
+
static const struct {
const char *name;
bool (*probe)(struct media_adapter *adapter);
} features[] = {
{ "tx-timestamping", probe_tx_timestamping },
+ { "hfp-hf", probe_hfp_hf },
};
static gboolean supported_features(const GDBusPropertyTable *property,
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-15 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-15 10:19 [PATCH BlueZ] audio/media: Add hfp-hf supported feature flag Frédéric Danis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox