Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2598320rwd; Mon, 15 May 2023 14:06:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68V84dVZu5vP8MrBw4MdaND4Cbci0LUx6gmhvSq8axzjZ4CygDOv67HCDrfKwdRKfZKIPr X-Received: by 2002:a17:902:d2c6:b0:1ab:16e0:ef49 with SMTP id n6-20020a170902d2c600b001ab16e0ef49mr46132144plc.24.1684184806747; 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=0WCbIT6xOEhhBP6XJwtaFwqDOuWcQ2Eck1RAzOzO3xASmH5gZl7Ko89i9/qaUu1sdQ 4qjcH098idZbRTVUaq7FdhygifACUGcAGqiHp46obuCJ20aG00X3bxTk6bNko+2dz+lm 0HVGEnUw5YoGTVeuh9Q5i6FyZGxWaRNhzgLI20fPoj60argF9qqo2AwgdquRI6IbGeke Qv3tJV6pnk41zaJDnSzK56JyaPuALxiZgUqp6HqKMGaegH+bCy94BUYBLsJwUR6kqnb/ WxhXoQRCERwiiaYKbTIUrU6L53+T7qQdsopp2ckC5JjUKHODDVI4NZlp3kQXXjvza7hP lJFA== 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=KFX5SGfAIbzQjVapcFvfMM14j5OnLMDA19cV2wJBCyhDXPB0fizE8RfWrQqTPBo9xq 1/WftsThZGEOzBXKBKfp7VhPDMSlIOVSZiHGDjOH2vnOoeGgBDKZfqLKIc3se8EDbA1D 1vQDoFi4FgGEt1c3p+7u7cHh57uWC/CkpUja7fXPGsqTDYZw12tKET8PcH+etS4QwumX 5pg1TrdoYDbokgc1d3inTHCIR2NNDA4yEy9Q6UGgUdEi8nqqincSqL5ZwkP/YxIWH0f+ aZFtEtpHSnhpyQ1YHN8sS/9S1VjX2pnOgbQ8SFbHgVhO7wmqbvsA5jLOysGQs61unXaq 1ipQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LOBiyrbo; 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 h6-20020a170902b94600b001a531f29044si15808947pls.521.2023.05.15.14.06.03; 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=LOBiyrbo; 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 S245256AbjEOVFx (ORCPT + 99 others); Mon, 15 May 2023 17:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236784AbjEOVFw (ORCPT ); Mon, 15 May 2023 17:05:52 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69D221991 for ; Mon, 15 May 2023 14:05:50 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5307502146aso3952586a12.1 for ; Mon, 15 May 2023 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684184749; x=1686776749; 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=LOBiyrbojjsL70op0RarW2KQoClfbNbqpVBm7q0Hgnd5hhS4li+/Ed3y/1ZYHE06jC J5q2OGKD5uWrW8J8jGfTuwIvIqn1NgPODbeOsTdulCjLTQN7X5K3LQoMyEaaexdpJssU 273bfhOLmzhbmmnluvvJvG/AzkZ/LSSyCYLS1gppzMXMlJiRN2ddFpgHEq9SJK4U1W1D DWtNMAOD+l7mZHpQia7eF3xjZmPDMPQ5EpfZcWb3awFKx7nfVvkKUQwygjdjs+6o8dyX ivZtaevoYamVIMsW2ieGftoM5Qi/f2AOS1BgKm+vd66eGfHVV8UVNVSqwU6ayRpV4zcd Yjng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684184749; x=1686776749; 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=gJFd+jV4P7KZWhbfpah50zyniQ0mTWzMA4jYCtXy7r2YaYqnO/t78NDKoyxTxMWd+X /KWkFeVv8ZCF56pmFUpxu0IA1ulrjsSqemWdRRZ0GKWLatFBmiQ5W9AlboODEuAX4w/n 8vUDFlgC7VXHsUu9OqK7bl0AvWFd005C27A6OF1G+PBZCajrSDxz8Z6YGZydCSBL6Cxg y9nA0BQeaEkUf4ab7KJu0SqsIF+5086BuZnvDceZ2GKlnsc1l25hhu+RIkORX//g9wBd zwe5R3eDmnGx2YvH3sNxlWBqB1E3ylPf2fuFtMIzl5bfWr4Q3fZd5cQtHgH/q6/CGR7F 12lg== X-Gm-Message-State: AC+VfDyiTn8EFe1x9wQ1p40bUU6jrzDYfDaCZx7ve8R0E2bbt/4/Z9BT m/utlQCWD866FWrrnSPHyN7iacablIo= X-Received: by 2002:a17:902:f551:b0:1ae:ccf:6b40 with SMTP id h17-20020a170902f55100b001ae0ccf6b40mr8720617plf.13.1684184749216; Mon, 15 May 2023 14:05:49 -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.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 14:05:47 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 2/7] bap: Mark driver as experimental Date: Mon, 15 May 2023 14:05:40 -0700 Message-Id: <20230515210545.718701-2-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/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