summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-05-15 13:52:50 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-05-15 13:52:50 -0700
commit62cbb2a9f57dc2b4ebeb33e5f8fb9841c3f32f96 (patch)
treeed0595000407c6ad99fc6de16f7a4f278de81c9b
parent16da92601f4af95b24f60abf3c72bcc5136ddd52 (diff)
downloadbluez-62cbb2a9f57dc2b4ebeb33e5f8fb9841c3f32f96.tar.gz
mcp: Mark driver as experimental
This uses the btd_profile.experimental to mark the driver as experimental.
-rw-r--r--profiles/audio/mcp.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/profiles/audio/mcp.c b/profiles/audio/mcp.c
index f3ea330f9..b410b3d2a 100644
--- a/profiles/audio/mcp.c
+++ b/profiles/audio/mcp.c
@@ -403,27 +403,18 @@ static struct btd_profile mcp_profile = {
.adapter_probe = media_control_server_probe,
.adapter_remove = media_control_server_remove,
+
+ .experimental = true,
};
static int mcp_init(void)
{
- DBG("");
-
- if (!(g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)) {
- warn("D-Bus experimental not enabled");
- return -ENOTSUP;
- }
-
- btd_profile_register(&mcp_profile);
- return 0;
+ return btd_profile_register(&mcp_profile);
}
static void mcp_exit(void)
{
- DBG("");
-
- if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL)
- btd_profile_unregister(&mcp_profile);
+ btd_profile_unregister(&mcp_profile);
}
BLUETOOTH_PLUGIN_DEFINE(mcp, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT,