Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp495002rdh; Thu, 26 Oct 2023 07:51:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHVZK7r3gxSTwAYbXJ6/Hvl9TwNVMIhn/q8VYfiee60gPT8omWWlJ+fiZW7EQx1yN1Q2gH X-Received: by 2002:a25:58c:0:b0:d9a:3d72:bfab with SMTP id 134-20020a25058c000000b00d9a3d72bfabmr16998193ybf.40.1698331893622; Thu, 26 Oct 2023 07:51:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698331893; cv=pass; d=google.com; s=arc-20160816; b=QtQDPv08dZC5LAhdaH5xWi5Pq7MRFHNdYfb1Ups4yv/lkbr3trxdpa6xfhGCySElDs +jx8li+yy4x7Me0qNdpZ77CFXN+eo44A/1wzPOVWpc93IDhT02Eoo//fxQZDcY2rWAF/ NHJ28NBOQIQslMTnuLsAj9at8o+1LQI9w4MU4HdyIwtscyXXjXksPKkpg9jidBPl9d5Z uvXV9s7dd6K5PEXHkIXPDki3u7v+xJ1nwgoA2hWwz9DKcqnCiC2vdZbwK0O1EMFytGh6 OeF+rTCw8pXS1JVdEnEIX3NF2gIQ3HQNTFZYJizazgWem7qlVqxvAeewWEE3ZuvxYsXR O5Qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=RoFOvh+wxPq+/llL/B5gQ83id9CfCk2PdOERCKOUTTU=; fh=PEolQq7/BQ5cEH6GHglxlAOUwxrReNs2rPPtOVeaxBo=; b=0AK+vT+cq4en/wYNR5lKmkW8kAOEL+/dN0KT38HA0ufYo5kUIPkJyNbq0PtjZfpDOY e9dE1oKLOTs+8dZAvsmeLjH2P0YxrwCf7KVQ+vgT5J7Su9IVakcx+Y5VbiYop+pKTS7s 5IYNVy3MVmoXtV/1PnCyxnY10CbNZRdG5y9WIIGNTZZ2nroLd690xWDx2z6QwNZpyn+D DCyPzXIcnby5RruO10ILdlcojK852Z/83C/yptnvhD0dhU/aAVRzAeFjZL8BQXDmtlZr yyB33Lg17r38O1R98h5xdEIBpM3PK5XXjE1+e0VjN/A2BXYIYtDjFQ2LSpfy6sh+6PdX XYWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="LHWF7mC/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h186-20020a2521c3000000b00da0c4e5808dsi772076ybh.20.2023.10.26.07.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="LHWF7mC/"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 55CC4801E5F7; Thu, 26 Oct 2023 07:51:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235100AbjJZOvG (ORCPT + 99 others); Thu, 26 Oct 2023 10:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbjJZOvF (ORCPT ); Thu, 26 Oct 2023 10:51:05 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2054.outbound.protection.outlook.com [40.107.7.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C5C1AA for ; Thu, 26 Oct 2023 07:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lCCrRerLcs9s7mLf27XcUxQ/1r+FZ+6jMxzrRv8ob9KyatwhYK5OsGuJhNc1fdOX+zHve2OXylKVHpmth65Ishodwk0FKv8gwvdxG/IsZPkcPTHjt/x8czV7Y2v8Im+rLr/4b3I1wpCuNlUVBiGVrL7Qf96Uj1RuKsT83dWdNQxPuIAWHR7b34UbGGFK1RiEKSKw/Hko3rIlNm32S256oBytmMJQcyHjS4bPnGPnBZ2gxvqKuSHQBPw/pM5KroWq2CYO4w0T+NEBgPbBVGrjQpUXZoe7pPRYZFuZ4ybyGAhBv/orP0SuY0f8toO4EpCodYxG9LJog4AINSr8XNibHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RoFOvh+wxPq+/llL/B5gQ83id9CfCk2PdOERCKOUTTU=; b=gMt07UcS7mpAGlEunlKnoGfOaxzZIJObuZMCzwAC1sMFODaQM9h8Yp2cUursbrvMNurGCL3Dmtb43dYtHQtSiDijRXMG+T1VjX5dRHNBnubOj6oXu8y7YokS6J2hlctEmioC5qptzykRuYoQXkXjFRvViCXhTUrK4lIob6U50/XaAFz4/awzK7pZMLiB2LgDX0J+LLYrPnk8e+2O9prqiLkB2zQJws/KjjyLG3vGuHNluoRr0GyfakLqcA9X92a0SuVrDiLUFz936ZJFAiG8nBsgV9yQX6rfMK7ngHuLmsqry4IPFwMDbxjuYN8i14n9Jd38NeNhV1IHla2cMye4kA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RoFOvh+wxPq+/llL/B5gQ83id9CfCk2PdOERCKOUTTU=; b=LHWF7mC/6+ca+og/UmDszQ1UBzSeZaIjD+qioQuL4q6bKjW6VoMli5OU72GCg5hXJ4QoEpBWbikQ1+x/zpxvmTOWpWenUqf4XhRkhf8QQqmWvqahj4lhhQKkP1N7sN3wTdblgr3Gtz9VCWvvfDD+XMInTE9WOAI3N1Se+lbfG7s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DBBPR04MB6331.eurprd04.prod.outlook.com (2603:10a6:10:ca::21) by DB9PR04MB9939.eurprd04.prod.outlook.com (2603:10a6:10:4c4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.10; Thu, 26 Oct 2023 14:50:58 +0000 Received: from DBBPR04MB6331.eurprd04.prod.outlook.com ([fe80::7c8a:c8da:e6a5:8a4a]) by DBBPR04MB6331.eurprd04.prod.outlook.com ([fe80::7c8a:c8da:e6a5:8a4a%7]) with mapi id 15.20.6933.009; Thu, 26 Oct 2023 14:50:58 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, iulia.tanasescu@nxp.com Subject: [PATCH 0/6] Add support for multiple BISes Date: Thu, 26 Oct 2023 17:50:41 +0300 Message-Id: <20231026145047.4637-1-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1P190CA0007.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::20) To DBBPR04MB6331.eurprd04.prod.outlook.com (2603:10a6:10:ca::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR04MB6331:EE_|DB9PR04MB9939:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b7502f3-d1bc-4f36-4b21-08dbd632f6b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q26PgL9ZpQg8AZLak0u1/jXwPb/PMCNXeeg0BlUzC9U0zmhP/eBWm7TTEJUZcnXQDYVMvXScoCJcK9JNWrG+3MCucQDrDeQyrFLBlVqOozoJVlgY7AW7KnD2mEGPCvQ0pzcunVzarqvjEYIqbnesE7/MdX402vMNMfK/EzqgkkHJ93+nuYiuJLHv42XKQvyARcUHnGUIK+xuU+UEdFEauXQa0sI29JD97L/AxOjBiiBzvR7prN64ESPNHhL95advrLm6kukdmIqGkauVW/DpUgO0vl+74OwWkYrXFb6uoUiDCZpMDeClIH/50o6pFV37A6Pf5xDq1p+OnAfiLo+VgL8ZAA5d1x1gxjZyn2ecRreTNKMYoJoLrj7cyToSTlQA/BXmu3IiRaS8sWkpj0qLA333DllSkpuhp76mqgOp7WZ/EfTcn5oPHRBamqrg/3dWh221NF0wkpn8FyYagaB8CeUZXInpN8qvcfzx26GevvsmFFiKGC1HP3/APSKycPvK+CaBkAI57JM8R/C11pB8GUZ7HBqNCCtApJEO0DN78e09yTJJVUUKGIXBLG6kOB+Z X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR04MB6331.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(136003)(39860400002)(376002)(346002)(230922051799003)(186009)(451199024)(1800799009)(64100799003)(66556008)(66946007)(316002)(41300700001)(66476007)(478600001)(6916009)(4326008)(6506007)(6512007)(6666004)(8676002)(8936002)(6486002)(1076003)(26005)(5660300002)(2616005)(83380400001)(2906002)(38100700002)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lg3F4VSDy18eCOjBuNUYXjBGJtNeXtTy+f2g0u6HKUtzKit2/Yv1UJ7FL5I7?= =?us-ascii?Q?P2sZE2lDu59lUlsnr/xxFBwGdGEKOE8ucUiMD98v/ofbrvAgve+ofgP0yOfs?= =?us-ascii?Q?KlxrqgkgCG3AOblwhvAQq2kWR0RL2jexN/hRcgFqR7U1impbhz+bgCYkwDAH?= =?us-ascii?Q?yDcG2gfBpuJ+/0MQuHj6z3b49rBEcIneetX29y0CSHnMuhLwh/Ip+6a58wtE?= =?us-ascii?Q?g0QFGghymmao+8IfghubxIs7JYNT6PJiDKpSn/YaKzCmWzNnNobzavJUDWLk?= =?us-ascii?Q?HeGCWWfpWdWeYitQU4BeReBhACIbe+t7oINe2feOIgdU/p/CcfWwwKyeCiMb?= =?us-ascii?Q?MsNp0HhopaWFXeZjOrbck/oEThtAZ+Hh5q8eLu5ifewwCg74nKWGbTQjjsx4?= =?us-ascii?Q?D+72dNQV/milWYVR8UoNd78bQQPnrLtlb8Ne+Tye0LqfFyNcGUUbqy+JNk01?= =?us-ascii?Q?UwnGkmx5etAEOdnogFaIM9oXWnjqpLJFqWomEdJpG5k7TVBYt+10mpUY79v1?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/NY7kKOJcCRCm0gpYKyuH9kz2Rd?= =?us-ascii?Q?mK8bPRpbNAxSXHg/IN8LYIumZncbg4fxq7qjTucKNXpuSQmDQqBwDqt3ep/D?= =?us-ascii?Q?gYfuqq6L/3R/1QXwBPtO1idTRM0AWEkoW0aS/efhZi8H89piy/inEuCxK/cF?= =?us-ascii?Q?eqz13aFO4CrF+rjII0tBBrci9BPbVCShfFJNct527kM9azcx4iUPh9XgQ6f+?= =?us-ascii?Q?Ow=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b7502f3-d1bc-4f36-4b21-08dbd632f6b2 X-MS-Exchange-CrossTenant-AuthSource: DBBPR04MB6331.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2023 14:50:57.9693 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q2SmAFfFJU9YPMlYKpqhaxlpfndQ6vNbKBgSxJs663FP6nkVaRmbaaix2/ykt7W0XhB+uCYBEivgQlHLAhiKhvWkjosM8E1KM37WYBU0g00= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9939 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 26 Oct 2023 07:51:10 -0700 (PDT) Add support for multiple BIS-es How to configure multiple BIS-es: In main.conf set the number of required BISes in NumberOfBISes field of the newly added Bcast section. In the base_lc3_48_4_1 struct set the configuration for the base Continue with the registering endpoint for the broadcast source endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x06 Use the endpoint.config command to set the BIS codec configuration by specifying the BIS when prompted by the command endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1 [/local/endpoint/ep0] BIG (value): 0 [/local/endpoint/ep0] BIS (value): 1 Use this endpoint config command to configure all the BISes After all BISes are configured, use the transports to send data Claudia Draghicescu (2): bap: Fix source+sink endpoint registration bap: Fix source+sink endpoint registration Silviu Florian Barbulescu (4): src: Add support for defining the number of BISes in the main.conf Add support for multiple BISes profiles/audio/transport.c: Add support for multiple BISes client/player.c: Add support for multiple BISes btio/btio.c | 4 +- client/player.c | 57 ++++- profiles/audio/bap.c | 483 +++++++++++++++++++++++++------------ profiles/audio/media.c | 3 +- profiles/audio/transport.c | 49 ++-- src/btd.h | 6 + src/main.c | 10 + src/main.conf | 8 + src/shared/bap.c | 254 ++++++++++++++----- src/shared/bap.h | 39 ++- unit/test-bap.c | 12 +- 11 files changed, 678 insertions(+), 247 deletions(-) base-commit: 00fdb61d56161f523e975b4c044030f4b40abb6d -- 2.39.2