Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1244242rwd; Tue, 16 May 2023 14:09:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GoL964Hd6JBgIZr/ciX3Jtf6eQYl6+rlz8CoNdcACsJpy7DJrV/Mm5cstzmuUSThIqlIu X-Received: by 2002:a05:6a20:1455:b0:104:3c82:38c0 with SMTP id a21-20020a056a20145500b001043c8238c0mr24441193pzi.41.1684271384393; Tue, 16 May 2023 14:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684271384; cv=none; d=google.com; s=arc-20160816; b=MPRJRuFj45FAsrZi5OrcKlq4yDLEtcmilGxBVFs16r2OGRB2WRVEgR7DYR0WedCufA UUTelNqDWBG+AM05fP0GwjL7z+b9TYc+6cUDumZIVpLFXRpuAqFwU51OzjoM9XwizG/o LT3xwKZ3rRMH+PmSXRjBKc9ilCQdLJIgUbwsFxTcrc4CTOn/IaxankMlU8MnANXbGwgZ eJBmY66Bu/yRQjUI+5ud+IuFtXmnWPLPgd/r+RXqwYqhmKoBPmp8LaYLpxBd6M+TSQhw ZHMceBM5rC9Jkm6NYmG6YBIm+EJlawYVSqTtC3ksynxpHm2ZQp9dup0H/yDSjJ/R4ofX dWDQ== 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=wBo++OSugDX16NBEk0VGJUq2Te47F5j23MhSdO7vJs0=; b=o9hcWf1GLgGytIMUqCD7xIqa7e74riiOthxzcBkNubBGmJGe3wwpN20gt7RwH85Zs4 2IOHqbAGl+mkR7U1LDjoVe3fKbghA+aUnLRsYjIT7u1wQ1k/NVIrAmTHNAKr1LryeIn1 V7aRHse8xyBKlPdd9fij0Nkf6xgF6PdXKDmgMHtH7DgQ/0KIhmTXlG1D3hoQrer3ucCb DtLeADE0ayzKwQQ9OUhSZ7CC6OfzaQ9/Ts6ijqwvOojcGjOXnwKRCCxYR3GiBEUu7Q0r UuhDs6of58zMH/S1fQdO+476gQQRTHING2ABg9YHkZaRxXsVeiDLjABrRz7wqLVl1Rvc l1zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Eb3u0b2S; 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 t28-20020a63955c000000b0050bebc3e35bsi19289383pgn.766.2023.05.16.14.09.21; Tue, 16 May 2023 14:09:44 -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=Eb3u0b2S; 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 S230057AbjEPU7e (ORCPT + 99 others); Tue, 16 May 2023 16:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbjEPU7b (ORCPT ); Tue, 16 May 2023 16:59:31 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9291E6A69 for ; Tue, 16 May 2023 13:59:30 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1ae3ed1b08eso1485295ad.0 for ; Tue, 16 May 2023 13:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684270769; x=1686862769; 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=wBo++OSugDX16NBEk0VGJUq2Te47F5j23MhSdO7vJs0=; b=Eb3u0b2SBjyrd3lRolQJjbpHvVgSNNCxoKudqIPVxpC6EiCQ4n+RzDfEmf+YVNNmej o1uFgNJmSWfREQrAyeVsLV84i5ejW3hjJZYvQkgsNzYrkAV2DXPy2+ligQZI5CWOF/YR pUW6r23f7yEPAR61/TFwbGrDT3XSUxkVtusuoJtqEp/ig0yCfVfcZHN2ockgqiUo4GHx nTEfpnnF6iaTY4d1I9ByHDCG6GNfClFhbgwb1DBhwWmC80QpUsjV1x/pM5o3Sc2Yk75Q WHQEoqpYrP/gJKErojcaXYhToU2G8PseFH72ykgvswyRl8LaY6UpxGk4rdEhhVqoX2lE PEYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684270769; x=1686862769; 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=wBo++OSugDX16NBEk0VGJUq2Te47F5j23MhSdO7vJs0=; b=DiQb3suay6PFkbPLzhKwgOP1q8mmv1QskyBnwzjAs0qS/Wgq+khDc9ZybuHi8ojv3I n7Zxc2sdobiV5KrZ31bTR8AM6G7cCyLsHx2NXkk03BZWcD+IgU6jE9Wy8LGGoXEI1RrY hvyvsc5ZjDlp8lUyRFbM6cS3D0x5k9fi+ygFlof+rhyb5DrtN9qWPJ8DpHrcidUb9lTv uUR5Cz6BbOPAw8TqN01k0PvXw3la6XEBlmBfsTp7//a/ryBbLfHLFRXUs6IAFbpUUcl1 uz7wvaJ6jIJ5Vir6W4WDEzJ25WzwdnPq3rlQgQjxTh4jhxhwxkVJQKedeSi86U8ZZVPj jytg== X-Gm-Message-State: AC+VfDytvdF8/bTWkipF39/zZrpICs7ge8+x5hiKGH2qeKJRuUyUzN83 JHyekg9/klD6LP/M3/XzB6ysYs86VQ0= X-Received: by 2002:a17:902:da91:b0:1ae:f37:c1ab with SMTP id j17-20020a170902da9100b001ae0f37c1abmr13145941plx.25.1684270769152; Tue, 16 May 2023 13:59:29 -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 t16-20020a1709028c9000b001acad024c8asm14272237plo.40.2023.05.16.13.59.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 13:59:28 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 02/10] bap: Mark driver as experimental Date: Tue, 16 May 2023 13:59:16 -0700 Message-Id: <20230516205924.1040506-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230516205924.1040506-1-luiz.dentz@gmail.com> References: <20230516205924.1040506-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/bap.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 8f12fc410f67..1a543a9ce99b 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -1354,18 +1354,19 @@ static struct btd_profile bap_profile = { .accept = bap_accept, .disconnect = bap_disconnect, .auto_connect = true, + .experimental = true, }; static unsigned int bap_id = 0; static int bap_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(&bap_profile); + if (err) + return err; - btd_profile_register(&bap_profile); bap_id = bt_bap_register(bap_attached, bap_detached, NULL); return 0; @@ -1373,10 +1374,8 @@ static int bap_init(void) static void bap_exit(void) { - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) { - btd_profile_unregister(&bap_profile); - bt_bap_unregister(bap_id); - } + btd_profile_unregister(&bap_profile); + bt_bap_unregister(bap_id); } BLUETOOTH_PLUGIN_DEFINE(bap, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, -- 2.40.1