Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2599023rwd; Mon, 15 May 2023 14:07:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RTKLZoW5pVxts2PSFVdw0YpBsQDdyKq6xisdD3uQL1l1RZA9ELIg56bqa3W6qlo99/Uvx X-Received: by 2002:a05:6a20:3c8b:b0:103:e735:d157 with SMTP id b11-20020a056a203c8b00b00103e735d157mr21156558pzj.59.1684184844654; Mon, 15 May 2023 14:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684184844; cv=none; d=google.com; s=arc-20160816; b=Q6gZxIy3pVxVhNFNJ1dwuurQkA4W5we2tb75HN4fCkIBqws15IyuJn3kTQm9olbyz6 jc2gRE0S6GDAJ9qaAEAvirAhAd936LXgb7OR4JUKs9fpQJDUPzOvPNriwkstQGM/Ypxq laR/K/psGU+acIoqNYu654zR8E+Rplt+cu3JeOtbym8gssyMJhibv9YGFmPaZ0FBk1zs MZe5+dnnuwEQR7MeHjR9gomWU9avotLQdWegRu1bYdJuHJrp/FILCAt58JXisbhFYuhj ndMt0LPImtsPc+Ks0shtRKxUcptMNmodqP+52wPT7sNBr+Lj1myeHcaXVL3Qr2Q+JgyM 8yZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KjhUpj8uSuuQsuauzOhywl0XBpKd80yMyJQj1Ru8+Ns=; b=hqsZkdsCs+V9OHRA4evPM5n8IR1pqHoB+EyHGEk2GknercXodu1UzJUaxJF4u5skI6 w33KkGSeG/X4XZoeCevpTzoXbQHkA9cP/mYqKjXXy5Kx/1Sl+6ZJzZ1QNUoVOeJbcvVN 4fWODXsA3J/hfnQ0MK6E1A6FEOoW/TkT5KHU/gamLcLO4bjv2VSSqy+RZ4nYl1xU+0Sr aPYq4zZWqAQTnKTWCRKXXF7ngC46P7VWi0newYNLVG8KhZrkzsH94+ZetX7RaUz9Ei5K HOfg3CGK+Yl4fMm61SKD06m3fVEHddyPv/5HYhZJgH8m7keq25Mi8UkSLezoZra7a6W/ AK2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=MMfbESzl; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a63e750000000b0051fb6ca1e69si4119258pgk.180.2023.05.15.14.07.10; Mon, 15 May 2023 14:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=MMfbESzl; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245420AbjEOVF6 (ORCPT + 99 others); Mon, 15 May 2023 17:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245358AbjEOVF6 (ORCPT ); Mon, 15 May 2023 17:05:58 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F320A49F9 for ; Mon, 15 May 2023 14:05:56 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1aaec6f189cso90552305ad.3 for ; Mon, 15 May 2023 14:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184756; x=1686776756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=KjhUpj8uSuuQsuauzOhywl0XBpKd80yMyJQj1Ru8+Ns=; b=MMfbESzlWgG0kWeeSEWNWoWJ1hIW8etKdJYIbHiDhqCXcSTWv6P41AF7rbKvLZwJQn ES+dzELh9bZrZXmrsqe/iQ7SlxiuiscsPt7q/x2E4y/WeJmWGJ6QgmtLWcdMK7yCHDY6 93heTdkctg8L7bvsyLpspn4znAXfxfRTnopTxgSfLDNkHHORpsEv7rtMI07gpkxVRBnw /Ve1YhmQWf3PCUEtrviYB7sjoaH13nCK3LSgHAYXfjvqBpl+QMDlZXMxqFPUgWbY4qa4 kRS8J+iH+IeVRDrpZWtVwspMGrTg7fstrAbBU8pzIqP31LfWsYF8YjX44X7zwgrtV/oE e7WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184756; x=1686776756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KjhUpj8uSuuQsuauzOhywl0XBpKd80yMyJQj1Ru8+Ns=; b=O4KTTD+DA4Ru9e5TFSWYpQJK0QngfFamGb2SLb9hq4ZeCKkMXPJdIt8Y5t2ycZhjOI CBmU4gtSJNmxvkof2776jj4l4xg9UwPmu/g7THNJS17CyJyYIuTYcLW7BCK8XdaL6/L0 LmE6VLMVXpbFj7Cq4oNC5kzDSruttpefGjy5fU2YSBfPWwvdg2Dzm+RiRaD/aoN/DneF T66VanjOODb/0kOpiF+LeMfaLqXPDK3s4YCOWtUBPNSSaA05vMMVEM6laZbqj2HR4FmD 51XeMk3kqMiHzPF3uKBm3L4Fu9JszL9847rhsOJSwENn9mOYcAHK2kOpvktL13KI7mx3 yB/Q== X-Gm-Message-State: AC+VfDxSUIDed/lHoyv1m9sUJWZfxzVyrzv9ddUIri9o+ScPRfCXBvv9 2HaQA2TNosvbas++wAqbT0GWSCBdBC0= X-Received: by 2002:a17:902:dace:b0:1ac:7e95:74be with SMTP id q14-20020a170902dace00b001ac7e9574bemr34628506plx.28.1684184755684; Mon, 15 May 2023 14:05:55 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-59-129-171.hsd1.or.comcast.net. [71.59.129.171]) by smtp.gmail.com with ESMTPSA id jb4-20020a170903258400b001a04ff0e2eesm13990050plb.58.2023.05.15.14.05.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:54 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 6/7] vcp: Mark driver as experimental Date: Mon, 15 May 2023 14:05:44 -0700 Message-Id: <20230515210545.718701-6-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515210545.718701-1-luiz.dentz@gmail.com> References: <20230515210545.718701-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Luiz Augusto von Dentz 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