From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH v2 06/10] vcp: Mark driver as experimental
Date: Tue, 16 May 2023 13:59:20 -0700 [thread overview]
Message-ID: <20230516205924.1040506-6-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20230516205924.1040506-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This uses the btd_profile.experimental to mark the driver as
experimental.
---
profiles/audio/vcp.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/profiles/audio/vcp.c b/profiles/audio/vcp.c
index b42b0a4f79dd..175275f2e977 100644
--- a/profiles/audio/vcp.c
+++ b/profiles/audio/vcp.c
@@ -289,18 +289,20 @@ static struct btd_profile vcp_profile = {
.adapter_probe = vcp_server_probe,
.adapter_remove = vcp_server_remove,
+
+ .experimental = true,
};
static unsigned int vcp_id = 0;
static int vcp_init(void)
{
- if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) {
- warn("D-Bus experimental not enabled");
- return -ENOTSUP;
- }
+ int err;
+
+ err = btd_profile_register(&vcp_profile);
+ if (err)
+ return err;
- btd_profile_register(&vcp_profile);
vcp_id = bt_vcp_register(vcp_attached, vcp_detached, NULL);
return 0;
@@ -308,10 +310,8 @@ static int vcp_init(void)
static void vcp_exit(void)
{
- if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) {
- btd_profile_unregister(&vcp_profile);
- bt_vcp_unregister(vcp_id);
- }
+ btd_profile_unregister(&vcp_profile);
+ bt_vcp_unregister(vcp_id);
}
BLUETOOTH_PLUGIN_DEFINE(vcp, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT,
--
2.40.1
next prev parent reply other threads:[~2023-05-16 20:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-16 20:59 [PATCH v2 01/10] profile: Add support for experimental flag Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 02/10] bap: Mark driver as experimental Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 03/10] bass: " Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 04/10] csip: " Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 05/10] mcp: " Luiz Augusto von Dentz
2023-05-16 20:59 ` Luiz Augusto von Dentz [this message]
2023-05-16 20:59 ` [PATCH v2 07/10] plugin: Treat -ENOTSUP as -ENOSYS Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 08/10] adapter: Add support for experimental flag Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 09/10] admin: Mark driver as experimental Luiz Augusto von Dentz
2023-05-16 20:59 ` [PATCH v2 10/10] main: Rework config option parsing Luiz Augusto von Dentz
2023-05-17 1:33 ` [v2,01/10] profile: Add support for experimental flag bluez.test.bot
2023-05-17 19:50 ` [PATCH v2 01/10] " patchwork-bot+bluetooth
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=20230516205924.1040506-6-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.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;
as well as URLs for NNTP newsgroup(s).