Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2598318rwd; Mon, 15 May 2023 14:06:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4S4MOqqVviux2Acz0dDbJJbzch6IVQ7dFNk5TXVbIm1uarCMwZ0MnpxNGsvOyZ82x8jrln X-Received: by 2002:a17:902:a604:b0:1ac:b363:83b3 with SMTP id u4-20020a170902a60400b001acb36383b3mr19410469plq.41.1684184806646; Mon, 15 May 2023 14:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684184806; cv=none; d=google.com; s=arc-20160816; b=qfy0PaInPPVeXImnkpsd4p5PxoNs+md14OvuGTXkPVZTWCTQdgDpbWKHFBVyH60g/q fhSYxDG9oHlnxpe/nmExOg58xtHgW6sWzQQ9kwvXB/bXqgtilrrTUPFnasxfqCrr+U5M /Jqr1Itl4UKxGABYVqT9wwYttIB3ZBUWrnCYC8ctMqlodx6v+H8bD45eK6VNfBv4W7UH YYjLpGgf1z6hViZr3mjpm7j6TG1VBROtTDl2ZI/h/wSlvyxPh+813V58wqw/AJ1uRQiN pMg/69MQjwyVBvQLmYw+Pr9j6CxRAU0CNW9S2rUGWJ27P9HF0soZrbSQO2avrB2YOdBi 1eoQ== 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=FaiRL7R9hAB8QTE8OFJBjT36cb1wdquZAEQfKkG1Kg8=; b=X3wkcEIlbGEa8OVPkiwmi7wK3OEOUrg4sx49K3lN39sHyo0vAIZeOjdkgNoP2Xh8Hh bBTWYaVTBrvmvHP7yCzcPhEepA8+1QG97F3wIh6jI7qHQ4RkQAQ74azOUvuthXy2C86W zmWOCWwHbnizmdjYdBDW6xC3nEvdRkL55Uy2j4nT0bgQnTdW7yozkrLDb9pl/i/swX7D jFzqJZi6ALwwMKGME/rTmbC9LCwrCq6YUk08F3gl/R+DRR+aDKhksdRzlgaYEqkEm7zN UkVfjcxEHkqwNwCi9q0Y+y7zm94ghD+ba3lWVMZSE/dNvXGKV1pkovJt7dYoXRpKVrrb lrLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=McBFc+R5; 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 e10-20020a17090301ca00b001acb38aa5a5si15764939plh.351.2023.05.15.14.06.04; Mon, 15 May 2023 14:06:46 -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=McBFc+R5; 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 S236784AbjEOVFz (ORCPT + 99 others); Mon, 15 May 2023 17:05:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245274AbjEOVFx (ORCPT ); Mon, 15 May 2023 17:05:53 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A3FE49F9 for ; Mon, 15 May 2023 14:05:52 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1aafa03f541so129093575ad.0 for ; Mon, 15 May 2023 14:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184751; x=1686776751; 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=FaiRL7R9hAB8QTE8OFJBjT36cb1wdquZAEQfKkG1Kg8=; b=McBFc+R5/zUD68wMabnB9Cv5xZ7+BGSE21U6aRXKd/QCSCR2BQ/Bz25SdXpx7ufeKO DDV15rxfCJfoCcnaVc98qQwC0jV9C0eQPZjHwRAv7krdH04qOkI2vv5O7IlavagUQb4M 9xV6WB/1JNt4V93z8RBnsvYIuxzh9jtb0CENTt49Gm04JemF9h5LblBHh+JaILoYW+Lr ah4TyFejiDtK64Pp5RWiv/A4mDEHhFFbw5L0m+vHAgEGFmaMdfxA0SpLX0jIYgiLwCZW r3oggYzmS65k6wnOEy6iISC8BF7asDdsD8nYP5VGUiogu+27okHBYvaEnDNEi1+btYpq 1Vew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184751; x=1686776751; 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=FaiRL7R9hAB8QTE8OFJBjT36cb1wdquZAEQfKkG1Kg8=; b=Kxfu8Qm+XGoSlSKXnau0WI0cGFGjURedGpGxy0COVyGPqORtphaOcslDuwoyMEwDK2 Mohx3N+UFAVZKv7A+PxxTW+CXHPuy5pAuUl7kp3mtQ/C0JpPqTTxLZ140bzdWsu80A8G tupHl2F3l4S8CKjLquX9vgUTbyMZ+XKfZ0BrIpWqa7ZX+L0/IUFULUPtcxJ/ysgYiFdX ShNAsrBK+Pbtcz7XnCta0jlwIuz9Xkne3ycWHLgrlJvy5Vi0SmkZ2rCfYTJ9FWxXMMNb AUYmYwDTjN5b323yPkXWxv1bfv6pZvh0oWB2pRJK8QZS50e2n0IIj6KZ6IuHdDxXLpM1 9Kfw== X-Gm-Message-State: AC+VfDwwOujrhIVQeC16lEzdD5iYW1y3FKK5iqngv5OsQHhodZpnkfS9 yrQAISmPSKom0SuU2G1YnlizWpQxqnI= X-Received: by 2002:a17:903:338e:b0:1a6:6fe3:df8d with SMTP id kb14-20020a170903338e00b001a66fe3df8dmr28898503plb.8.1684184750840; Mon, 15 May 2023 14:05:50 -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.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:49 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 3/7] bass: Mark driver as experimental Date: Mon, 15 May 2023 14:05:41 -0700 Message-Id: <20230515210545.718701-3-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/bass.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/profiles/audio/bass.c b/profiles/audio/bass.c index a7fcc9718d56..fae7fe00412a 100644 --- a/profiles/audio/bass.c +++ b/profiles/audio/bass.c @@ -276,18 +276,19 @@ static struct btd_profile bass_service = { .device_remove = bass_remove, .accept = bass_accept, .disconnect = bass_disconnect, + .experimental = true, }; static unsigned int bass_id; static int bass_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(&bass_service); + if (err) + return err; - btd_profile_register(&bass_service); bass_id = bt_bass_register(bass_attached, bass_detached, NULL); return 0; @@ -295,10 +296,8 @@ static int bass_init(void) static void bass_exit(void) { - if (g_dbus_get_flags() & G_DBUS_FLAG_ENABLE_EXPERIMENTAL) { - btd_profile_unregister(&bass_service); - bt_bass_unregister(bass_id); - } + btd_profile_unregister(&bass_service); + bt_bass_unregister(bass_id); } BLUETOOTH_PLUGIN_DEFINE(bass, VERSION, BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, -- 2.40.1