Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4531570rwb; Tue, 8 Aug 2023 09:46:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBOzv/cFBUMqrtKrd41KPU2oHFfbOkaQCKpBCdJL8jQiJexPI6kYTcOSMXGBZJv4y2+p06 X-Received: by 2002:a17:903:1cd:b0:1b8:41d4:89f with SMTP id e13-20020a17090301cd00b001b841d4089fmr243648plh.4.1691513184697; Tue, 08 Aug 2023 09:46:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691513184; cv=pass; d=google.com; s=arc-20160816; b=ziyx95TcCBlBdCQi95rIyLESkPx9Q5Kw5O1guPoEoQO2BwdI1qj997Kod64zDDnS9z nsicRMJLLZYZjzkgqWgmQ16ca2jZyGBjZ5CG5MmNasmBeip0fqsMAR7VuZiToDak4Qet lpZj7kaDFOOPaHa0fiK3u/blr9zMgDVvyP/Az9dHlKpzQm4UbLougrmmaJLJftC4y8qh hOmlOKtfL8J/Vi4gMkXSw/JemhorYCMGA2ZNOpWrJL2GnZJnXzKhUbOQHvn02CnbMDbZ LfOLeJw3+Mjcn7E+mIHIRRHX0QtwE3IKf5WEXuRyTto95cpTDLul5V446rjPHQ9vUj8w CEGQ== 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=nO8RjUqXfgSblWdvRTjBYBSksZCvEFjrW153W6/l4YY=; fh=6n2+dSqBrcfREO2Qjp5+4w4CUGyDx1Hl0PjQfvVwqCw=; b=jkZS9UnozaAm3RIqAxfzU3zc1LCDLiYHzpPwLwLXphi6xEysuQ0wKKSMR0JELoGdOL Ks4FWZ6ODbk4DpD6cQrA3s0q/NzhWwcOa03sMIrVzKUmlZGTDyBPUF0cdnDFkJtbbsm0 VDM20S4lfx0oY8alRLjmufS+hlDrCfnHW+mrx5qJx7MfzNZYZc9PursQop0pZTL9gwBz t/cJ5PygeRdCPg/Ah1DhzdfRvRBZj2OOExCUOrWR5fYfbvt/lobFfSZ5dRRGZ+f26l98 ViD+XIMqdJk5CH+qIbrtwAUkyRYyMnve9zq+jVspjfchQXTi+ob7ck01mkLKwNkIxNhP LKew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=dwjqBs24; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c18-20020a170903235200b001b8c6890612si7175406plh.594.2023.08.08.09.46.10; Tue, 08 Aug 2023 09:46:24 -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=@nxp.com header.s=selector2 header.b=dwjqBs24; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232560AbjHHQ1X (ORCPT + 99 others); Tue, 8 Aug 2023 12:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbjHHQZw (ORCPT ); Tue, 8 Aug 2023 12:25:52 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2072.outbound.protection.outlook.com [40.107.8.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2BA84693 for ; Tue, 8 Aug 2023 08:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iuTqzCek56moi1yQxAi39ABzOol203XBZZfuq9rePoKO7VpNo5NGi9EYKwhvLhepNw+k9D9dtahwpspx+YppbA0BK5RqZvh/dP//Msc/Y0dD+gANFU4jO055LmZa4A4UMubd4lKthsr6gqDSkuJJxyo+ma+OiU/BY9pmGDPul/F+ozdp7LoUgoHyEGQX/0AYDr+BonbnM7OkYyODgTRVkljnUZ9sowlgNSvZKSjf5zlksqkQY231ie7xFjbIjGYnkqP2nvZsp5gnt5u4DSgcD0H95WInmnh5yTo3092jRrniJuzWw0W6sOnJ/XX+WF7hjOd5cKUqVw5sIj7vDpvvwQ== 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=nO8RjUqXfgSblWdvRTjBYBSksZCvEFjrW153W6/l4YY=; b=c1iCnDU6KmO+kniB8jihZ1JP3RCCGB9vug9I3EsXpNL7D91OkchzJ+TlOegGTXp2hL4mp16u+sOJNn+0i8eqYqCbApRIInWJ8pplfjVGd9iuYqW3pq88fVBs7snkIK763Z0xYKyaNUdMhNih/KnV8zl32N1hDX67Dj/NgAE8sCfLfJnfdvuI3OA25CtUHk++fSlOMNGSkxv5LgH1Cx/AYzLLhWi1TMZu1VeVCnTURLYTDJe9w8IY2XkUFdwNtlcSfVE5j+6OGoDz/gQEoCGs2rLiPU9Nr7u2J2kNkGnFl7iZGgu9dnoTVDjA2Az+t+7fhFdtWJVSMS1sfNAPcpxNBQ== 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=nO8RjUqXfgSblWdvRTjBYBSksZCvEFjrW153W6/l4YY=; b=dwjqBs24EEUJVF5HKnkag8neN8qOZanxvy0OieXmfzTvnY+qwNcZagQjI7NqP2UUvdJ7bUdeYml8kmLzK2B2TOs4YU3ZlFYi0Cz38WXuA7wfLg3gkHgaK+HCuYvA1dmB/6qyZ1pL+1YRwLveqZvPmpYgRmSgQasv3Mu1zJRgmwU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from GV1PR04MB9151.eurprd04.prod.outlook.com (2603:10a6:150:26::9) by DUZPR04MB10062.eurprd04.prod.outlook.com (2603:10a6:10:4e2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.25; Tue, 8 Aug 2023 11:52:47 +0000 Received: from GV1PR04MB9151.eurprd04.prod.outlook.com ([fe80::c2fe:9eef:61ea:36d9]) by GV1PR04MB9151.eurprd04.prod.outlook.com ([fe80::c2fe:9eef:61ea:36d9%7]) with mapi id 15.20.6652.021; Tue, 8 Aug 2023 11:52:47 +0000 From: Claudia Draghicescu To: linux-bluetooth@vger.kernel.org Cc: iulia.tanasescu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, Claudia Draghicescu Subject: [PATCH BlueZ v5 0/7] Add support for BAP broadcast sink Date: Tue, 8 Aug 2023 14:50:33 +0300 Message-Id: <20230808115040.4403-1-claudia.rosu@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AM9P192CA0001.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:21d::6) To GV1PR04MB9151.eurprd04.prod.outlook.com (2603:10a6:150:26::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1PR04MB9151:EE_|DUZPR04MB10062:EE_ X-MS-Office365-Filtering-Correlation-Id: f60e82fb-a11e-41ba-5ea3-08db9805fc37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vQMnbTyONcWnORASlg03b4F1itTbKW8ot67TNJ05WUMmeF+57LeO68tzyteDmImpMfgD79nnQ7G7O6HbvhGeml/mqVsMzJf+yRVEkyjDz/i/54M1V9tB2bBrd63ul/71RKOZAEz3faFEmJhAkUddyjo482og3VzWp2vFxHFIv17q6Cu2tbexJwwN7xPTD7crncnPFtqs1mhN61kUHxSWB4lRKHMVVdx/R5mqzPb0F7e7z1rhX61TyJY74f4uilnOcgWtKEUOfWxyyjUl4WnqWrV5XOnkiz1e4HggKNiu9NLLzrM8NU83VaUiWuFRialm8ETsfYPyX+bJRV0q1Pb8LG8iRSL/REmpJylKl7zUOEKcWdjFj1/btFdMH3QVeOi9QhxKd6oLButeyg/5JGJb6Dwb9xqLTClTHeY3VlNPx+is4qcmqbXxa4mOjejjyiv6qP//dc48DG1zeffPBy/1Y5ysO6beWk65kmVMUvpbMgz1sxSJBPo3ldKA9vYBmtof0pMUeE7QZUfRUbBJQonhaUPQc4MONVJ4+rWDOtf2p9XJaxjlfmvM4v5WeR02Ga3+noHRdszw5W2xqP1sBTJLLUTzkHVKFbOVBX65r6YTDhkjIkc8pQmDL30UFH8KPTUv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:GV1PR04MB9151.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(376002)(346002)(396003)(136003)(39860400002)(1800799003)(186006)(451199021)(83380400001)(2616005)(52116002)(6916009)(38100700002)(38350700002)(41300700001)(2906002)(4326008)(5660300002)(316002)(8676002)(8936002)(66476007)(66946007)(66556008)(6512007)(86362001)(478600001)(6666004)(6486002)(6506007)(36756003)(26005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?g2+k4oOxybt9U/4S12MavdIZ4+FKsM9uuRCQkaA+8yyoKgpS2NbCuQjk2P1s?= =?us-ascii?Q?3MAl3V4svy55VnSgi7w19kOBYmHn8ld0HmDcLFXw7HZReJDetCKJv4TLnvvr?= =?us-ascii?Q?VS6JDcej9vuoqZH0oLzhBqUie7d99Fxr3g+Pqm4jZ13OInU5/fbnwUeWHfCA?= =?us-ascii?Q?SgZLVkb5uS1o6/jf+8WdKAXdd3vIqSf2VEzdSYpcW1uGwz1OtMZJj7GyT4KD?= =?us-ascii?Q?i166pViGEd7TEnq15zPFT8cMcVs4Bl6W9snT/rv32JHr6jPlVmWYttbUr1FB?= =?us-ascii?Q?YWYVG3WVtK0WtINHmXqe+xwdgQjdjPh5YcnLl3AGwtfzJSGyyKe7dnPA4u01?= =?us-ascii?Q?VcPViR3DjwbWciENJY9OY3c+5m3CtOA6E49QmBjF1Tqlm7s8KzZQvCdrfcdC?= =?us-ascii?Q?F6+RYENzBxxER80GizIlLd7pER/GtFdmmVWolDoDuHxwlCvezrlajnRmzwUl?= =?us-ascii?Q?2zThtUjtj892B/M+bVOgrgHSPTroTqdZssV4dHPymWD3dN7/0rmXjB+ZWKsE?= =?us-ascii?Q?T11KKYlFh++QZ1nPMwJ9p+Ca/PVUcKiRS+imHJ8u2dWUsBrDazs3aXBdMx6j?= =?us-ascii?Q?LJD8AE1LvRq7hMoATPzieANmGXwZ6vHP0h5sSv5fX06QqQo9VlDOt2H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E3RsCMeWeBq1ppheROb57RC5SJ/me9lAUR+0Rp3nWhm?= =?us-ascii?Q?H6xlrSdzDhYx9I5iLkSsKqs7QnCsqdpCNs/BeE2o?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f60e82fb-a11e-41ba-5ea3-08db9805fc37 X-MS-Exchange-CrossTenant-AuthSource: GV1PR04MB9151.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2023 11:52:47.8457 (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: pkVWy2nmWbNeKkj6jV5FQyMmtx3s+FNuWakXK9HspU2z13+i9iSJKWv0ftkGfmp7TnXNSYe6EJMbwlgVG/nquw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DUZPR04MB10062 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 This series of patches adds support for BAP broadcast sink. It consists in registering a broadcastsink endpoint using the Basic Audio Announcement Service UUID, discovering of broadcast advertisers that announce the Broadcast Audio Announcement Service, synchronizes to the Periodic advertisements of the source and synchronizes to the BIG advertised in the PA train. To retrieve the BASE info advertised in the PA train, the patch Bluetooth: ISO: Add support for periodic adv reports processing was used. This feature was tested using bluetoothctl with the following commands: [bluetooth]# endpoint.register 00001851-0000-1000-8000-00805f9b34fb 0x06 [bluetooth]# scan on [NEW] Endpoint /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/pac_bcast0 [bluetooth]# endpoint.config /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/pac_bcast0 /local/endpoint/ep0 16_2_1 Claudia Draghicescu (7): client/player: Add broadcast sink endpoint btio: Add support for getsockopt(BT_ISO_BASE) adapter: Do not filter out broadcast advertiser profile: Add probe_on_discover flag bap: Add support for BAP broadcast sink media: Add broadcast sink media endpoint transport: Update transport properties for a broadcast stream btio/btio.c | 13 +- client/player.c | 61 ++++++- profiles/audio/bap.c | 334 +++++++++++++++++++++++++++++++++---- profiles/audio/media.c | 82 +++++++-- profiles/audio/media.h | 3 +- profiles/audio/transport.c | 245 ++++++++++++++++++++++++++- src/adapter.c | 10 ++ src/device.c | 22 ++- src/profile.h | 5 + src/shared/bap.c | 139 ++++++++++++--- src/shared/bap.h | 6 +- 11 files changed, 831 insertions(+), 89 deletions(-) base-commit: 59569c1f947d648f1e0b9234dad3707f6c34739b -- 2.34.1