Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1333272rdb; Fri, 20 Oct 2023 16:08:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/TGYgfbpIanxu/7ORyr3yEkW/gKBbPdFbSeKV+BAA4NBDOtSf5fqoaBatVSLkgnBq4OYD X-Received: by 2002:a17:902:f98b:b0:1bf:6ad7:2286 with SMTP id ky11-20020a170902f98b00b001bf6ad72286mr2970571plb.43.1697843308450; Fri, 20 Oct 2023 16:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697843308; cv=none; d=google.com; s=arc-20160816; b=CvayQhUtHGlxyESKkZLmEMhlMiJeKZ+TRNvaYQEKI6qSr/1dDDhPXoUF4b+rSNkJ4P Plm2WkjW0dhE0/Hx7/FxXDUSzkH9BTzIIeiZgFZjU8iXC/4RWGASwlvKn73HTdp5GtQf Y/XppLKpGu1IQSUf8RaV5kfxS216jfgmzsnVmgKCUNAI16yNhDIFe8PzmoQLFQNQXrUh 2qAYbl5X9XxF0ngw/HF8Eb2IWwog2cV5mgEDWw1Om/JYc5LaECekDsDTStLd6XUdDW2k kD/OOPOTM+hmypcnb9uJx3aqHMeX/QpD9020g3qZw8RQE6FKZd9tzHb6lYU6YdzjcJC1 w4Yw== 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 :message-id:date:subject:to:from:dkim-signature; bh=XWqBNAeX6A/2t7F/B2+AP6gAdJuZDGSc/q1r/hSrihM=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=C81h9neflEWi78wdUY1GvowRcdoWBCWDHdwTWlyKy7xGmn0HzScZ5qK3YT7+CsY0UY Iu1ftBENwcudKN7FvYC2KcEodhhWeHaO9QIrxz77VDRTb99grv0zZdpVKp+pALeOXpVP rEdtovo5OxGiikIaaJual9EQgSbxireed223IrzPEe8yGnTZjhqjkLObjLmDo3XHo5LY Wkyr+m9RAvFWZ1TYggf4NBf4JcC3+V77spoSnueExAz5v89I8+FiKXVwWt8aA4Zw0ivi X05rsDQQOJktZ0m2g6sy/3hGvw6DHZiPhjdsLpDF11fbZCZqAxtCZVz7gziYrTfsHPt+ 1LOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hZESDWyI; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ba6-20020a170902720600b001c9fe071f2csi2465231plb.105.2023.10.20.16.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 16:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hZESDWyI; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1CC7081ECCD3; Fri, 20 Oct 2023 16:08:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjJTXHy (ORCPT + 99 others); Fri, 20 Oct 2023 19:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjJTXHx (ORCPT ); Fri, 20 Oct 2023 19:07:53 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C52641A8 for ; Fri, 20 Oct 2023 16:07:50 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7a66aa8ebb7so48894739f.3 for ; Fri, 20 Oct 2023 16:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697843269; x=1698448069; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=XWqBNAeX6A/2t7F/B2+AP6gAdJuZDGSc/q1r/hSrihM=; b=hZESDWyI7S8P7DylkwWad+8+ovJONlcLQTp5SiLasGFZldsy5UwFF/36B/vNSnTyQ3 /7PKNuZTMjZ00LLQXVM80I2JzWb84bNirikFk2YTu0CXgCxFiR+fX2+DOLIaqHKoFfOz QPthlJkccLILjikUmDHDLdn4CPWuXo2bKSGcFsL1jodUg/Su620DzW+eMxzGKDA6am06 0x0hDo14YoiCD/uEuFDUg2H7Tinq9ABB5yd5/JqmrliQNS2a5YSeZTCaqekIWBNNIxp5 PFNtHXqGi91suLybFFPqrbtfQkQcL4jw4DJnfRn857hiw53HV0FCoOuNWzVuvT+0X2ye bYeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697843269; x=1698448069; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XWqBNAeX6A/2t7F/B2+AP6gAdJuZDGSc/q1r/hSrihM=; b=tlmumsvaPy42bQLwZcoU/D40xH5HvvQYaG0q9HrjaqVwIQCmINE6JQfI9+MHj3JRRI A0c7GoofsENWYCNo+ID4aeU1FI7kl5g7vu8tyVu8xd2FxNaN2fqulMaYiB5O7vnR+JSv Iu4TYZOYo5PbRKKpYsaAOAJ9xXJZUX38jJaNMCBOV/c73SIFctjZYE5oRgo9kt2etDcN jOGegUspPj6AdZBM8jrepjXU90+EKq6DeV1kReo0Atw4dPtjc5n39hugfslh2vrtqrNj SWjKGHjzGCknp1As53+WO9sPDZvg8dvQ019v+6eUTe7kTCA1rhCSUh6TIFaPJrSBf8+K O0GA== X-Gm-Message-State: AOJu0YwwmNhW8BpHp79zlRd9t6lC86koid39tLgC/ts00+b6kZKrBv0L krY1GvZr8XGrTuqh5pJ7fKdbGNv6Z24rOoBNDqk= X-Received: by 2002:a05:6602:2c52:b0:791:2194:10a3 with SMTP id x18-20020a0566022c5200b00791219410a3mr3767615iov.14.1697843269093; Fri, 20 Oct 2023 16:07:49 -0700 (PDT) Received: from lvondent-mobl4.. (c-98-232-221-87.hsd1.or.comcast.net. [98.232.221.87]) by smtp.gmail.com with ESMTPSA id a2-20020a5e8e02000000b0079216d6f219sm855785ion.14.2023.10.20.16.07.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 16:07:47 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ v1 1/2] shared/bap: Remove Locations, Support Context and Context defines Date: Fri, 20 Oct 2023 16:07:45 -0700 Message-ID: <20231020230746.3084772-1-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 16:08:26 -0700 (PDT) From: Luiz Augusto von Dentz These values shall come from the upper stack. --- src/shared/bap.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index 14a62d9241eb..13bbcf7935bd 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -48,14 +48,6 @@ #define BAP_PROCESS_TIMEOUT 10 -#define PACS_SRC_LOCATION 0x00000001 -#define PACS_SNK_LOCATION 0x00000003 - -#define PACS_SRC_CTXT 0x000f -#define PACS_SUPPORTED_SRC_CTXT PACS_SRC_CTXT -#define PACS_SNK_CTXT 0x0fff -#define PACS_SUPPORTED_SNK_CTXT PACS_SNK_CTXT - struct bt_bap_pac_changed { unsigned int id; bt_bap_pac_func_t added; @@ -475,13 +467,6 @@ static struct bt_pacs *pacs_new(struct gatt_db *db) pacs = new0(struct bt_pacs, 1); - pacs->sink_loc_value = 0; - pacs->source_loc_value = 0; - pacs->sink_context_value = PACS_SNK_CTXT; - pacs->source_context_value = PACS_SRC_CTXT; - pacs->supported_sink_context_value = PACS_SUPPORTED_SNK_CTXT; - pacs->supported_source_context_value = PACS_SUPPORTED_SRC_CTXT; - /* Populate DB with PACS attributes */ bt_uuid16_create(&uuid, PACS_UUID); pacs->service = gatt_db_add_service(db, &uuid, true, 19); -- 2.41.0