From: "Frédéric Danis" <frederic.danis@collabora.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] audio/media: Add hfp-hf supported feature flag
Date: Sun, 15 Nov 2026 11:19:46 +0100 [thread overview]
Message-ID: <20261115101946.69033-1-frederic.danis@collabora.com> (raw)
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
reply other threads:[~2026-11-15 10:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261115101946.69033-1-frederic.danis@collabora.com \
--to=frederic.danis@collabora.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox