From patchwork Mon Mar 18 16:38:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 781207 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5141B53394 for ; Mon, 18 Mar 2024 16:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779944; cv=fail; b=RRM2/0BTfBV3Zb/QU7iiWuDMpgEulr/VWwAqk80DUh68IedR58KOgSSgYrW3CthHxH+FLnp3P3eWBFuYV4oyqFJ7ovtLbkLDO0biZzgCmLBJ8FW7pn1QSk1J8zjFbB5l31puAvSIb0n2DiLD1INNF53c1oD4Ox9/SkPUEa1lDjg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779944; c=relaxed/simple; bh=lLYao8EhHygo93Y+pfjgKI2W4lsWFp+LH1W+vvJMptw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=MRgYT96O5IO+mFmTfniQazeWg9q6LFhrTy6JadZf0f8PMPgmgCDgBxwaHl0MqRN9vydPXuwlBDiWBRBC6GfktgoO5pNt8+gsN5z/oMPyygs+s+J5/6ftDfvntGSzUJJKtD4C9jUIw7IwkQyURLHyPxbKcrmmcNcIqxVyoie8XTo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=LL+MYI91; arc=fail smtp.client-ip=40.107.21.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="LL+MYI91" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R0/AHmb7UfHMfct249ymb+2sgYCFka9/8t/s38vGgZoIFSdipixuQpHRZfSigNmnT2UxyS2iwen+tzFYJ5CXHD6htyqswrYf0B+EZSI4o2Sfrv9BPpKGyDofvy6A1ADL77BQqXP0Ea6djLdFYgP1qtrsnphxqwaaTrIHoAH4XUkmdvgHudqWmOS1V4Z39X7EX6YJSbeqBoYvcl3gkCss6hZpo/pCpTv4pDEK8rRvTxrDDoYYJ/8bTFhNZymSv2G1JpgEma/UofD8ELBd+a2Mbm1TmQ7n+MdQF8jw0MA/qydOZb40LKGNtIvXKZK5xYuaAzccW7cyMHkIoQI8WBPhEQ== 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=rM5keipGQnbBG3oK5I64dIHOyzMagPPf5y3nGqaSExM=; b=fJIH3fncYetOhXNCnyYb7cDoVK0AJw/hk6Q1K7mm3TeLxHyVF+4qO8YrfCYFL65WtqWHAa/7VuuHq8RqxFMbiNrqzElbcwU10RFz58+JaAwVZqvw1+ZdIDSCs3rf3IR/hmkXjF2gOdIc7oPauTgJtsdk9rqcDfPyH7dopX219YVv5Wwx6XQ0TOkeebj5qQNPUAFLAaZIRST6lb/E55Hk8mMRYMMMMNs9jLLgDHaWbeHtP1yKA2GxqNdgl/tGsumT95STKvSwpO0QFMTuHSGlw2sLwI7pwamqK0dULBBj17DHzeZj8CIz5XHJFlNK1s+W8x50sp710Y6sw+YzW387GQ== 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=rM5keipGQnbBG3oK5I64dIHOyzMagPPf5y3nGqaSExM=; b=LL+MYI913c5nzh6Ve9lHkZaVGSQaM/TQ0v1l1GaTVPx4sDN3Dcg+Ck6tF+Kuah1Ef7g1R35aTYkWSBWwFwyf19yHQLOUiCT0wI1LR8cEMowISJYG9/a8qSe457nDOXn2+sNVdjROIDqqvBJj2q4wb05jy61oNHFOVEXjukhAApM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) by DU2PR04MB9132.eurprd04.prod.outlook.com (2603:10a6:10:2f7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27; Mon, 18 Mar 2024 16:38:59 +0000 Received: from VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf]) by VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf%5]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 16:38:59 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: 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 BlueZ v4 1/5] player: Add reconfiguration prompt for broadcast source Date: Mon, 18 Mar 2024 18:38:49 +0200 Message-Id: <20240318163853.68598-2-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240318163853.68598-1-silviu.barbulescu@nxp.com> References: <20240318163853.68598-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM8P189CA0020.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:218::25) To VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB10073:EE_|DU2PR04MB9132:EE_ X-MS-Office365-Filtering-Correlation-Id: 117361d7-7f00-41e0-5ddd-08dc4769e937 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o8fNZAkkh3nqKrFnth5+WIHcQu8/AzS1xX4xZ3i/v87ILwlP9EeH272pvwuMZfxXCijsuoIdeAPHVr8/Lyd3CZXcmnzOOsJpdXtTzgCXuvMSGnLl3v4zk4Ekw5gpHiUcsliwybzY+uD5CVpt74nkCqdu7JBy3ycUNdEM/Q86O33tlXC0fx37K5ddoQr0ElYyLeaCcsshv0zSFe0xHrPzTI5/kz8hLbABlxK4q7uZ2CWcTc7p//1YZLNA5ntJucSy35G/twmykfBW5Sl131Id4vGc9qd5HZg/lmkFvQCuTTij09aBKwPoOeNYYX1VY/rXP8/0xF/yZEW9oyIiaRC6gKxGuNKe+lJvvRFCBLKnNg05ZYHC8SFAIg5YQXvFH3DrlbYCtY0rr9beU1BkiXzbf/X30ZAfrVEbYtOehF9SqdO289C56rwSxIDdqNqa4o5UlNTbAHjn8yTK/5tL5sMz35qVTj3FeKj/xE7umiAkD+cpTZgQS5vHzqH+xedp8hE6akfGiv6ZRazRw8WlubKqzTtwTaiS3hgC+4R95ZuAR6DXUStySfEVvrQS0qvBuaYkErlLSzRz+jdkG4R/OGsHpPGFqnE28vxMzi+WFP3nLdVhnoZRvLuVwUAxINJa9oSEDupI02BEIlcxhRr9N3TBpa4+Y7IrYxt5/IfAH4kKuG8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB10073.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dtCwqiBg4t89nePCZYLR6NKQGB7i7TkhVjONpt1ZWIASFS0d7Ss7sQEien5WfYagSqKNmE1sUqTkEE+Zz0x5mM7d/s9tXtLRk9NnspeHZxZw27CNEuDMVbt2FDrmlMYtIJE5Pk5icKg4rFeR9HiVzJTFZ+RYrtDyYnG9oKu1yIzEodS4871aUjh4CTXkEQ0Qagxi/S45V6S7qQGCdx/n14sYCP8bQ1De5yUo0vstwjVRDTHWU5F7Sr8wDreFmV+1FWAahy3jVXi+gbv3xTqOrfygG1EMaMQ9H+oRGVcUeZfNZZCJp1q+E81Y7qDfGDtISGwa1BVxV2R58GAtgAVYx53r/7rF+VBWihIBwLoz64a3rW8WHHEeVkr3aOSqg9NK4oahIN7YmPgHCtnBjB2zFauXlqgZbrumT871eNlnF5jTf+7seXlr/tEbQgjkHx4MaBOeBx+OW0yxdadMM6sstH20+WH9ITwX3kyFR34ajG1uPNYo95fNryRLvIAgwAk4F9eSlboNei2dyXS3Ir63R5H2pgP0LO7xWPEIboASWlmFPPlrimOLM7oi1Wr4FKUKnqbISCf4be+udTzRq/0fws7RP4I/IjylA0S+WVlTALeLPZ9lroz/TkAIBR4c6nGMSdx9P26eaLoYgAi/VsQk2p/k18AT07fhM/DTbAOaEsZWjljWOe0cI2GlMaEbdyloqN9uSai7jQMQcKcrXh+QbRixUmiyb2pPAh8WdnGIUiHrIcRoQ4xkK+JRcSlJeZEPHZceeLyjzZwiR5gZFlVg0ckrt/0lVTbMeMaSDc3xGbA5NqfKOun2e4+5Idsb4N4Eyo6vPNFFlc/UW5kPWili6Etleulp4rRASUuOTpx3T13ajwprSpghcmK1rOTgej+7trvQq/uAexzwxmz1jwfoXmLASvisJXl1VBO39SfpEP6QKPtMn94NHwL+UtL3Nox8OrYdZ225k2y6H1a21cHo2t2iJJcAwTpUsrov/waCYqRAQMfKDYHJh0lyx3OAogq8KbxFkfJ0yNkD86QqXz0yn2VEvUG1LSbK3Jo7ChpIXfF5thLhiJ/gqkUsn8Je35/uMEQwnN5OkLw4bD6WY6WmSlkvuOoTYZcnWwFCWS6oBotv07Rvn7W+SFjmDK4qisSekaITcEYqrybVSDBauioBBj8R22Llohtwb+GlUNsINU0jpZaJ3eqnSOaKOdEuhHIjnsgMSB8YFgcrqDaXIk6OgVksW2Knk5BRBhYuh3H1Ys5+jTl6/RXCTZilsK48b2BKwSD/tSY3JGwkzyZfTVpkZyez5FccDfUy8L1ip/kFxMclq0EbVjN2MYdbCWv+FJtqVbuj2j319gTC9xhtEd67T7//EJuSiYdHyS+IFkdQXX18Pp2IBn6OVyY1RfwGZrXJWW3Vt95BYG9hmqflgW767bljDMW4MpODcjpvqvPINxtsiNTzrAS+D4cwc5cSAcMA28rYn4JDzjpnYG7H712j2+YsH2ASPyG2TLe1Z+jSL5ho4mi+qXvuWjPW8oW2Bo8X+CZsrOvKY/+WRsG6vFAckTxtb0JwrwT7OSY37osno4KVu5WGOBn2rcCDroisbo/qH27p/HybWcdnVYA3hT/hwg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 117361d7-7f00-41e0-5ddd-08dc4769e937 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 16:38:59.0805 (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: e+RZHpZey6Qh0NJhtdMQ1K2mt3WPDT5AtmaO1QX7TqhHPy9XYgbKg8SZEroZNlU3wHK3OfHKg0v033t+TCLqrYsfngpGh9C8fToQJ4wcEWI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9132 endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1 [/local/endpoint/ep0] BIS Index for reconfiguration? (value(1-31)/no): n [/local/endpoint/ep0] BIG (auto/value): 0 [/local/endpoint/ep0] Enter channel location (value/no): 1 [/local/endpoint/ep0] Enter Metadata (value/no): n --- client/player.c | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/client/player.c b/client/player.c index 8081ddc13..c9c6779f3 100644 --- a/client/player.c +++ b/client/player.c @@ -3659,6 +3659,33 @@ static void config_endpoint_iso_group(const char *input, void *user_data) } } +static void endpoint_is_reconfigure_cfg(const char *input, void *user_data) +{ + struct endpoint_config *cfg = user_data; + int value; + char *endptr = NULL; + + if (!strcasecmp(input, "n") || !strcasecmp(input, "no")) { + cfg->ep->iso_stream = BT_ISO_QOS_STREAM_UNSET; + } else { + value = strtol(input, &endptr, 0); + + if (!endptr || *endptr != '\0' || value > UINT8_MAX) { + bt_shell_printf("Invalid argument: %s\n", input); + return bt_shell_noninteractive_quit(EXIT_FAILURE); + } + + if (value == 0x0) + cfg->ep->iso_stream = BT_ISO_QOS_STREAM_UNSET; + else + cfg->ep->iso_stream = value; + } + + bt_shell_prompt_input(cfg->ep->path, + "BIG (auto/value):", + config_endpoint_iso_group, cfg); +} + static void endpoint_set_config_bcast(struct endpoint_config *cfg) { cfg->ep->bcode = g_new0(struct iovec, 1); @@ -3674,8 +3701,8 @@ static void endpoint_set_config_bcast(struct endpoint_config *cfg) } bt_shell_prompt_input(cfg->ep->path, - "BIG (auto/value):", - config_endpoint_iso_group, cfg); + "BIS Index for reconfiguration? (value(1-31)/no):", + endpoint_is_reconfigure_cfg, cfg); } static void cmd_config_endpoint(int argc, char *argv[]) From patchwork Mon Mar 18 16:38:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 780964 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D235548F6 for ; Mon, 18 Mar 2024 16:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779946; cv=fail; b=WkvZQe0wXosOfnZv2Mt1iQ4O0uq65qNa95w2Xwp6DgZ5kJPvPbV/wyX5JHwk9ba/PqIjhVtZqmL1RhLOi5F/pSAW37SQ7vEe194SJDYvry3GLJ/nV8ewnPNTHecT7QN1WkXirp3rVMlV7gsCZqdiBOgqc6s0P0JxOkKWPL1aqvk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779946; c=relaxed/simple; bh=0dRFxR0jNHmTqolxKejhwi7qMMg123Zb7P9CbwTAVrY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=ZtdaFn5bRd4sebMEPrTrQU2YuUA2kfZNwQgNcnQiUvOzo7L6WyRhqE5hdSpDDvBUV9QVQwcGiAFMKmlMZtaP2lNhisf+taOK++nGIx55H4t8cSjsfTT+e4bznHWOsufZn3ixyoWFOXoNQEEsxjYdPKTcamR4thhM9czCyeY0LvI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=fq+Lp/mG; arc=fail smtp.client-ip=40.107.21.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="fq+Lp/mG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L9x1SuF0wMY3P9ZEwEicprDCYG3mxAiFTjqT3uwfP5vu+fluRHHySV3F/fWwvHr/Gy+Yxd8BdOteJuA7aTdISLB3R6/riol0AsKNBNrDdWNagbzoJsS9eJlCIjMOKg7Lf5kKhEtKJOGnTBzrU39R5tI3UNInbNYEMnNPcyRG+Lgl81uOIBUV7U46IoCouaEc6ayt9WwKNl+KwFE6+Squ6wEecLntdh1PWLp5HYr8I631Y83ul+80wEo/pDddXDcmlObk1zQsEGQMMtXbzwbrZ+D6MvIDLGxHQd+I3HvWv4l+xpXpMlEGGyf0IJaB4sxcqBBaXHpFPhiEkvB0vk6yOg== 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=6UYUph4A2tuOEUiY5ABfQI102bIvYPhwc10RJ5GtO5Q=; b=cTgzePIM4bYn/teV48bgrFNiKqBPrakjKSBXfEPQMSi1kFjJDD3HYF7NNZIIz8Mj3J9YlL75p+Hj1leZtmDwNGsKDIqUkx5spCTaBqUzNdS29WhM9iikZlTDK2S96+5b3x77Ae0Tk4yfXugGiN0NkKATiamCxi1puo6WBGqPFI9HjC3R8KQbHP3p9jzNqlJWpS+wsLPYxoRM6uaFdEQ8I/u4qI0FSCUSvCNaryOk4eQc7nj3VXtfaHiGh7jQr65hwlHSJsACt2YyQku6c4OkO0692SjdlCekODpseblSejHY0kyxnxAet1X1I8IIh1yFVSnapTgs/FU8lGo4A310mA== 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=6UYUph4A2tuOEUiY5ABfQI102bIvYPhwc10RJ5GtO5Q=; b=fq+Lp/mGb0OB/YUVK2YyNKljsWrumYblcmQ39Rp3bUZJCioo0I0SWUoJGNda9w5Xk5Aym9JJ9isF6XKpYVe0Udri7puVN+XErrDnjsbbGtrUNZVIvOKi7ekae3DX52vyzeLmsQIJlSDF86eZRdFt4gyFuD4gPbuo6bX11A1oJ84= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) by DU2PR04MB9132.eurprd04.prod.outlook.com (2603:10a6:10:2f7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27; Mon, 18 Mar 2024 16:39:01 +0000 Received: from VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf]) by VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf%5]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 16:39:01 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: 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 BlueZ v4 2/5] transport: Add support to update the transport config Date: Mon, 18 Mar 2024 18:38:50 +0200 Message-Id: <20240318163853.68598-3-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240318163853.68598-1-silviu.barbulescu@nxp.com> References: <20240318163853.68598-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AS4P189CA0034.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::12) To VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB10073:EE_|DU2PR04MB9132:EE_ X-MS-Office365-Filtering-Correlation-Id: f17918ce-7a4f-4df6-9163-08dc4769ea8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0L96pppBge0i77BqLXcxgrrwfsKEAwK8+eINftWMs4b0BA9PHGeO8H9TG0M39/8CJY2jEHhenqXP9wb/FZLkhf6bqZ4Y34ryCB+stli/ltA6T8kvptKK0mTPnhopJf8Bp3L5GgJRUJJTgR9AwVy26AfAu4t+jwSFjR2afXjtszzXUW5EOvqoMoWhYtmIg1PhBSVgeju1kiiuY+h/wmxWNvGggfOTtoVeadBLmL+N3wR7syYggVfSNcUJSbJ9MF6lZRpO7gV3NlMC8eOsrMcMff7sNVR8cA86vPqdjniXnRZW7AVkiTdONTEYGNBVaVrHV12Na31f7rt7aoZ7EtDnGThckBs+fBZQ1t8gj+j27Fi7ej4aiHxtfu062C+jbojJfY+yT0TECNslPxdmJBRdLsVj0uFGEsNdHaEkHEC7mF3gtKkx/BtHWJzFu1qLMZdyukbp/LontqKRkkBItMP4ZP1+Bbi5jtdwWgRU3Zmwl/Ue3+j12Su1RjUi2pT8Eb8cU0gfv8+o3UL9HCRpslUODiJ16oHKR2cokNwfedh/cFgNl3Nf/cdT7+mxbMVMXE2HeN9nSrJQv08xTclhHPPATsLDJiDKLA/DfhC6mDDbm42g43mAChTkAW/FQAEUW/lIvm7ZnEtZUAdzBKI8l8hgpyZXAA9JYW+hVjTaF/eAU5I= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB10073.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wxiEHMwX3h50Jw7LUaIquv7wmKbzTHTyF77ET+H4RNdYUHJoLnj1AYBSUTlujSMSaq3voH/NYzGqxZgVq2gswQhTDJeCEbsCrg4IliU2tq7ZHVEaLqi8UxOdGoVjUOMI8KfCIagmGESHJVmy1TFGdrkPL8nHhXLAKscUip2z+RNZQCSoqD5+vqbtY3Xxd5pHFVNEd/kkJ6WGHVgQby/nmfzk/+n+pL71tifoZjEKKwHKipdRMII4u0okvvcbBjECP6hH6F8U87FPPHLIOapE6MviBjWYa1dbrXHyPaGMg3YdbJ0/txF8zxW49FNlnl4qBfPTICVxa821ljBymGIxBhvIMuFpuorRPTWWXoFfhO5rGDg88ly6bST5jvCfU8BodAXo9V2CTMYVVbbguUJDXeUpckZslF2PyStkjtt2bmhhk6qIqfXFCQWeQzbF4X3vN92l4HfjWT/Jj7ZAJm9qTTRCCp3wdtyYlh8PK4GeMTtbocJuQ/3RfSw7UI4a+rlVrolkfzGPJKG65elTh73oY3SO68eFPQoG+gehe0b7iDXCIJ9N08DWV2L3pXgm2F0/IK8loJ6SxQ8IUwb8GjhDpPgryXmvkAvj17+lCArrica0S5ir3V2+88o/219R2MDdZJbUKnXUmhOgXa2oU1rhTSsrnOL+rnQRMFGClha8F2se5e6wQnot3KkNNeuN2/9vkQJS9vBvjKlP9zp6UVrLcqfcpWrq0cWckPwLwOD8CMUK6sPbi+koqipKPvsRSbWYOTAoTztv9RYlMHOqkOYVpUSPe46scZQ32fQqSmLzzI6By6NoaEMCXINAf8eU/f9M38ZB5r0f8scDH7Bbn6xW3EPKlYFCwBIxfby8C+rr3RRNxvQW7ChSM7s/k6BikVi7hIVLpd7XtBUpGeFFVctbChd88ykba9qhAJHu2S4nxcY7TspiGneqiDIAidh68H5PUnBuSHqQS2ZEXjrSa6FzUSYB+bxM01I88SwTxDZsuldlxeN7BHUVk1tNOV2JpszIOEhf4CugS0UFh3HxogoLxrzCaUXU9ZYQNZDqN5dEhjpEMhCWQs2QAW7k6TNJDtn0L3qCWMNoeLAC0i9q0c7+TgztI5jPRLm/VfKyTzECN07VKUeJwhsT+Sl0xImqIkXkdJ0Lqw47o4zUM0dL+McbG6+9e82Lo1gwMKNNDHs6WZ6avulxUetUZb0+1YWYL39kOymmAxSbtfwCo+VRgWTKJz9Ox253KPaGYqS0ezsHbhjG1dn8dcmvQR5gMgftx95zPdreUIRqJ08gET/SJhG1eTiePGMqNsc0EPuSQiTCB5oC7CQZIAIbblSkQFYCtF6fwJ9JQx8msL7jP0/mz+iL5NKPTUSmCHBwqwOquVsXZ8hSQwBrzS29y1TVuWJNIJ98Fd2AceEEoeluuCR+J3wzCB6YHtqWFp0+RA8lj6YHeT//vrMxwyuJRpwezOqICWEIpCFRJYJgIvyWfjxwaCRiD/8gnwnO6d6sTo6uhkGb/vnurRT4cj9hRPxlfRejNXf0uzyBOEnCZdzKNVW/Vv6ZZzwgsaeBndqvmjWiM++pvmLmoOYWzFfHwYoGqKFwe+6r++C0q0H4AeKCzKCLCRuIYA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f17918ce-7a4f-4df6-9163-08dc4769ea8d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 16:39:01.3334 (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: WbN7mpkSUE9N/1EDZmQra9eSjsdSthnCvOFwQV4y0xzMnKqsR4D+xsClDnm2hcW8aKrVm9V0P27dBHkgS0Tbw5/hEt3W2TNHLYNit/4eVIM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9132 Add support to update the transport configuration --- profiles/audio/transport.c | 21 +++++++++++++++++++++ profiles/audio/transport.h | 1 + 2 files changed, 22 insertions(+) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index 159fbd575..122c3339e 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -1483,6 +1483,27 @@ static void bap_update_bcast_qos(const struct media_transport *transport) "Configuration"); } +void bap_update_bcast_config(struct media_transport *transport) +{ + struct bap_transport *bap = transport->data; + struct iovec *cc; + + cc = bt_bap_stream_get_config(bap->stream); + + if (((int)cc->iov_len != transport->size) || + (memcmp(cc->iov_base, transport->configuration, + transport->size) != 0)) { + free(transport->configuration); + transport->configuration = util_memdup(cc->iov_base, + cc->iov_len); + transport->size = cc->iov_len; + + g_dbus_emit_property_changed(btd_get_dbus_connection(), + transport->path, MEDIA_TRANSPORT_INTERFACE, + "Configuration"); + } +} + static guint transport_bap_resume(struct media_transport *transport, struct media_owner *owner) { diff --git a/profiles/audio/transport.h b/profiles/audio/transport.h index b46bc8025..6df419a67 100644 --- a/profiles/audio/transport.h +++ b/profiles/audio/transport.h @@ -16,6 +16,7 @@ struct media_transport *media_transport_create(struct btd_device *device, uint8_t *configuration, size_t size, void *data, void *stream); +void bap_update_bcast_config(struct media_transport *transport); void media_transport_destroy(struct media_transport *transport); const char *media_transport_get_path(struct media_transport *transport); From patchwork Mon Mar 18 16:38:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 781206 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCEBF54BCB for ; Mon, 18 Mar 2024 16:39:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779948; cv=fail; b=Z3Qn50eSYPh1QG5IxwSfBxYPCdL2zAldsJC2KsrQV5GJpjkfDU2ZuSI+8cUT8TFtxTuM6qLWqHQPLK5pYzGiKHRCT/r02ZAZvQarGBH+XxtiVQPNzYKK3sDeDddZ8E7a7iEpr7TFpc0hLYfKxgN3AWXXytCajsPZqZOZ4syC0Uw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779948; c=relaxed/simple; bh=eAgKjABbhwqNWH+UaGnCnRqpEndnR5qT1kGZAalTP1Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=DO43a/DHcRQsneriXHEkxLMe+OoG5gxRoJj7RleGbDrgV1WpMdjpWKMug49nJeVFieoH5vDN1L4GqKXWWDDmPcRtrPUmgN2ajI0XegNqe1Iy/+oySTWJ61Ip1xckvL4pMyNr/+DhSkeguhM/C9ydWoRXq+/LqgbCGJ5r+xyBacA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=j5s/Vesx; arc=fail smtp.client-ip=40.107.21.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="j5s/Vesx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jzSULKbqXpIUhvDNET73zqDYK4x9H8VKICyT9Joq9SlcY3C4M8dmfsIgLIfeJ5PrXrxlDa7ihG6U4Ie4Q5xYbZKWx/wFWelgc9W4/fXYUP0ndGYtb16xA8NdkRDEfv/4NwfII0fN77Cjo7owketCznZIAjogZEBidHuiWRUhaizO73YyKDCSuwiNTPtReWQl4tKHGQRq5ID2RaXNa9QzsFPkjhAmj1r6zxuH+Wm2zex8h8OMqo12/XvodSbAzMMzXfJsye2ryhiPOIjNEc0pbMquLRDFcBv1wEOHRvhkTOhQcxhVEmpc4H1NRzEaV1QH5v/gh9YOuktmJTKc6B2wgA== 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=QUri8zYSJLUizV/zO1hj8hGHu0uOBbun70T/K9Phfkw=; b=kAYHoieASNxICBiaHd1bDm4K2m1H/ofpk3K8k1ACfKfYY+wH2gAe5WIftQx2UHKsQz5lVq3AmflySqkDhSq7RCsq9EuZiTE4dKY77pLmsUOJPsal8VzQogDyeumujF0xt9PZ5LWYMAz2jthxKm2oicTafB/HL9AtObPEhTMJN6+2ewUf35BmpuopWiP/zAN1u+msG/sH1HHs5qma/wcQaQxM6iUOmZNJb6FdUzzFj/P+I4JauZuyd3q3urjxaofVm7jfeqVKEuNgQGLTKeH084gQIx2xf7cjBsOIB+iDVpJqGXPQ7m8SZ1IIbyzO9WJ8Qslp4MEbeHipsC2xZeVlTw== 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=QUri8zYSJLUizV/zO1hj8hGHu0uOBbun70T/K9Phfkw=; b=j5s/Vesxi3b/MPI7smNFLd4cmQtoQNYdpXqqJjp1RWGj6NrTObPBEjEhT6gz4/oBQfbjwK6ZLryCo2B3EJV3kH84x3WXg+IhwlV+riL85zYj+mV2A7QD1Cv7jaGJbcFvHcd1KO4sycPhhF0PFMQejF4Ajx63w57wEara942muvM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) by DU2PR04MB9132.eurprd04.prod.outlook.com (2603:10a6:10:2f7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27; Mon, 18 Mar 2024 16:39:03 +0000 Received: from VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf]) by VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf%5]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 16:39:03 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: 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 BlueZ v4 3/5] bap: Broadcast source reconfiguration support added Date: Mon, 18 Mar 2024 18:38:51 +0200 Message-Id: <20240318163853.68598-4-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240318163853.68598-1-silviu.barbulescu@nxp.com> References: <20240318163853.68598-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM8P189CA0028.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:218::33) To VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB10073:EE_|DU2PR04MB9132:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c8deb3f-6e42-4c1d-105c-08dc4769ebfa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nlW+rzpSKzEfRJ3o3nuVK/dlTXUgdiYNfapHzZY5czCG2dxvTR5x+77pqaRDqdz6KKSFOMUxXkS//GDWio4//UAsoB59rRO8RCPnpAxaB4p3vPXucOI/1o5vb30KCeH/riMzcNLOfJabVwdKmV2r0QON2uNeSFNzaA6XxIW6bx7ZLVBvXQd6i7KHe3hfKVFNg/rPMDvmWtROHNw8Al5YmVSRWmLFZDiq1vWizKaRvzXig6Q1jtJfxtvtcEU4xap2ucmtSbwFyHOviX/DcAOy87yothx4PLmqFUvBeAOODi13auftIH8MXI6KohkOKhhFksGlRwz2aTFyJPt3keuWdL6XEci/u7kPg6Fgznns+FD3y9+qBYPE8wyQcNpvpee0uyYmZMNy/6z43FF7Fsz0v+HfkPNP/n++zsgONqaBbwa7QxzTV4jtNgrfXJeYhBp09ZUmHF8DqOXZ6YLMBUNLv26e2S8uzj0HTTVnAkpWtcPEGSzU/sutchh2bT7hvnxjMSSG5HFcv05ZAnWBttTfWE5XsyyUHzkcYoWv6+eGEb2yO89CUG2VuSAXMsE4b1bKxE+0EaLje/qyklMC2EnwXHA2axtguJAuI6KUzFRiB14TyY0RaL+ebgrvVOcFq3SH6ql1FBJjGVtFzUisJjPeoQPujBWvYp52XOSUKXUqYQA= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB10073.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: f/B3MnHk/H8FeTFX1DgAQyQGR5QxV3x1UeWE/qBCzWv6X6gBnWxI8d6PbY6mFMYYCFbWF9S1q03V0a3mjJn1uJbFUzFPQACtmo3eomhpSGmapoz8GdKK44/5nMpzgMlXNDPW3NJWDnNbUMygk/C5a5iB2xsPTTTCNFdh5NnLxlnmSM3fB1F5n+rSi54Lfa1yM1ZYYAlFBm+UXJl1ZonFm5uz4jAcxkiLwrhtyzFsiAs0yw7XgEL5dw2ysOxFJLTe2EGVOISeVNM7YWoo1pYE39iLUNSc2CbfgIExhmtHB7oPTdtiPKJ8aA3WNJ2clFukd1Yh72P9r65C/hY7/pSnUUUxH62M7itFge6ief2xKwq8wf/nRbsUXgs89gMU3nQ0QH5vTweW+UqIzqp7mTPSQ2KtTHGbaR79gJ/ffYp1CWbv9bbglkIvyoiCIRBdrUf16WPFTB4x2u+LGrKYt+QhnguVS0gdvueb9DInwZbTY120Z/F1yCR3QA02LhTLeaL467Ju7v1mdJfMDtM8H3mpOgileDfETPdSU/dH1gwafaK/GEkS+JUXgvUHGmuoi/GOexhgXarFIGt100Js9xYjkkSmigFgSVBs/RHUUfw3WruSQkSkgmle3f+3TSCUh0ApbIA/+CA0tjNN7JzOxuP8n4IULRQshHQ1i0fjYYOqUS3E1BBDuVLHB+qwGGn6w1ac537rmx6FwYtsu0gMBw2pK/2iojJhVF2kZoi4DSVG9UiQNlcr77KqlXaxPM/V+zFf84baMU3p7+Cak2+y8c3nr8zF1exsCTI6qp2ppL/rfIMf4KCmdWQXwiAEUD4ak/SEY/e6ooZaczo/sbdo1F6OyEDJWqHCGN4W9EMIL2usHjcAjfDGxsREQxNOJk7xB7qWMLt6Az+pUqing+cDca4tN2VoHAO7DmIsXtlfzNU+g2dYGkhhAzFinZ8Cb9MzckjuGDdG2mhy7NOBBgVDc+S0kfHf6vlg4mIe7FbJ8WeAp+hiZ3NgsHPfG2sSo5Sg+ykxR6xDq7RdGCjndzdqLIhPTjxrmomPoHdbtpBFcIpSzoOFQB1xRT2SXdgf/LL+f2Bzt6XbKAZvUxIQ5ke6iWUfABRLUnBqbu7lpwyAGVeGhL/ff+WnIOEXflU4sYUqH1HVqcnsz2htYfh7ww82DLogemhAlVAsMb+6wy3k0i6FGeVXjLC9nyXhKllv5Mv6mX5CkYGGTsnJa2pdPf+VLSf0pHHv4EL6cdRM1cW3nT7tP1zQ0DmqiV/apkWSJR3CfElmC3rznlEVsDdA/WZ8gweiXfXJjxJr33hcpyR5ceHydXfwXej05JD8Ga6XtAvwN3frrMuJBTrUU++zJjxAQmajYdHV2x8T4ES/Yy5XTGzgsvn7cdk9oq+wU7MDdJAx6fRcbGChWk7Ree4MX1mYL0nmN4F2EIaN/qGAUb+HimO7O7h1qQdXUBts05YoJ2V8MQPYZk3AvSql+Xv5d/57rU1OJBCKPSkcf9VX4mwapz/b+kSoB9HoM+2R9SD+eWjJAZQFxkKceF33685VtmRnVgMk3b3BX07bbmNlvQ067iZvVBeS/GuI66fFvGnQFELS0/QRijxH6zZv9wMrQV0CD+jPBQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c8deb3f-6e42-4c1d-105c-08dc4769ebfa X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 16:39:03.7166 (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: nRShQKgwIu6O973Fhg+88ZfBZXXmGhsB+qlM0l5EBUVfYhDrIwOvlbNZ2OjrY7JnFrTVIB+cD9ZDVaY3RoQd0mn3rYBj2czoHdHBkwcsfgo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9132 If a BIS is reconfigured, the metadata and codec capabilities are updated. Also, the BASE is updated to reflect the update. --- profiles/audio/bap.c | 76 ++++++++++++++++++++++++++++++++++++++ profiles/audio/transport.c | 6 ++- src/shared/bap.c | 11 +++++- 3 files changed, 91 insertions(+), 2 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 964ba9c21..e508e03ba 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -580,6 +580,11 @@ static int setup_parse_bcast_qos(struct bap_setup *setup, const char *key, return -EINVAL; dbus_message_iter_get_basic(iter, &qos->bcast.big); + } else if (!strcasecmp(key, "BIS")) { + if (var != DBUS_TYPE_BYTE) + return -EINVAL; + + dbus_message_iter_get_basic(iter, &qos->bcast.bis); } else if (!strcasecmp(key, "Options")) { if (var != DBUS_TYPE_BYTE) return -EINVAL; @@ -884,6 +889,53 @@ static void setup_free(void *data) free(setup); } +static void iterate_setups(struct bap_setup *setup) +{ + const struct queue_entry *entry; + struct bap_setup *ent_setup; + uint8_t bis_cnt = 1; + + for (entry = queue_get_entries(setup->ep->setups); + entry; entry = entry->next) { + ent_setup = entry->data; + + if (setup->qos.bcast.big != ent_setup->qos.bcast.big) + continue; + + util_iov_free(ent_setup->base, 1); + ent_setup->base = NULL; + + if (setup->qos.bcast.bis == bis_cnt) { + bt_bap_stream_config(ent_setup->stream, &setup->qos, + setup->caps, NULL, NULL); + bt_bap_stream_metadata(ent_setup->stream, + setup->metadata, NULL, NULL); + } + + bis_cnt++; + } +} + +static bool verify_state(struct bap_setup *setup) +{ + const struct queue_entry *entry; + struct bap_setup *ent_setup; + + for (entry = queue_get_entries(setup->ep->setups); + entry; entry = entry->next) { + ent_setup = entry->data; + + if (setup->qos.bcast.big != ent_setup->qos.bcast.big) + continue; + + if (bt_bap_stream_get_state(ent_setup->stream) == + BT_BAP_STREAM_STATE_STREAMING) + return false; + } + + return true; +} + static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg, void *data) { @@ -925,6 +977,30 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg, util_iov_free(setup->metadata, 1); setup->metadata = util_iov_dup( bt_bap_pac_get_metadata(ep->rpac), 1); + } else if (bt_bap_pac_get_type(ep->lpac) == BT_BAP_BCAST_SOURCE) { + if (setup->qos.bcast.bis != BT_ISO_QOS_BIS_UNSET) { + if ((setup->qos.bcast.bis > queue_length(ep->setups)) || + (setup->qos.bcast.bis == 0)) { + setup_free(setup); + return btd_error_invalid_args(msg); + } + + /* Verify that no BIS in the BIG is in streaming state + */ + if (!verify_state(setup)) { + setup_free(setup); + return btd_error_not_permitted(msg, + "Broadcast Audio Stream state is invalid"); + } + + /* Find and update the BIS specified in + * set_configuration command + */ + iterate_setups(setup); + + setup_free(setup); + return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); + } } setup->stream = bt_bap_stream_new(ep->data->bap, ep->lpac, ep->rpac, diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index 122c3339e..a060f8c61 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -1643,8 +1643,12 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state, bap_update_links(transport); if (!media_endpoint_is_broadcast(transport->endpoint)) bap_update_qos(transport); - else if (bt_bap_stream_io_dir(stream) != BT_BAP_BCAST_SOURCE) + else if (bt_bap_stream_io_dir(stream) != BT_BAP_BCAST_SOURCE) { bap_update_bcast_qos(transport); + if (old_state == BT_BAP_STREAM_STATE_QOS) + bap_update_bcast_config(transport); + } + transport_update_playing(transport, FALSE); return; case BT_BAP_STREAM_STATE_DISABLING: diff --git a/src/shared/bap.c b/src/shared/bap.c index fd99cbbca..603d6d646 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -1701,7 +1701,16 @@ static unsigned int bap_bcast_config(struct bt_bap_stream *stream, struct bt_bap_qos *qos, struct iovec *data, bt_bap_stream_func_t func, void *user_data) { - stream->qos = *qos; + if (qos) { + stream->qos = *qos; + stream->qos.bcast.bcode = util_iov_dup(qos->bcast.bcode, 1); + } + + if (data) { + util_iov_free(stream->cc, 1); + stream->cc = util_iov_dup(data, 1); + } + stream->lpac->ops->config(stream, stream->cc, &stream->qos, ep_config_cb, stream->lpac->user_data); From patchwork Mon Mar 18 16:38:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 780963 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2066.outbound.protection.outlook.com [40.107.21.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03D5254BF1 for ; Mon, 18 Mar 2024 16:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779950; cv=fail; b=TAPumhRnCsqPu/Jk0gJ+0xI8jck+Rs0fZJucSwPbSY8gQL3DFkMVXIFDYSnmlgnQPJx6S55ohH5G4zStlS1FZkZ5qVkmhLWvPg5GcwrY7pQKrYbXIFLEOm8U15o64NwVl1V1QanMeyT75PVR7ZzJOzCUZ3NaIoVfJAfklfu/1b4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779950; c=relaxed/simple; bh=5C4d1ggYCok8vN2Ws2PfiDnTCwVpycgguvYtvyIDAVI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=AkFymWync2Ly6HgW1Y0sZFDOmEXaqK/3/n7QFTli9do8XoHJqPP3nd4ecGVzjWb7r2NaktwHawLGAKniisTls0Ao/7BvElAxWmQBYV0RQzrn5qZZao9oHcOkMlwFeIQ7K2CyjR1bKSGKUUU7TVq9WyUpftnu4fFccISJo0asXbw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=e0/N0dgA; arc=fail smtp.client-ip=40.107.21.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="e0/N0dgA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lJ2wDucW3Ceg/7Wcnd012CPlWHXkBY12u7bZZi6IY3m/M1tyW/wLrHESHmG4+jxNpBpRw2rzgQxsZbdK4iem2vp+x/4IstDfQbwvzQT+Anb8y2AtIVEMXl3MYDeK5NvLupurWSZy4+jc+ir1MY7ADkti9rRcdCiGwpU9A9HfgFsvY3NzMwftEK82kMZsM6pQ49ayT9DOgUUmntQXNNFDeYAf4pdwxFpRN2JzsvIpE8jXfXTFpS/OXN+7M2KSteiEXGchuP06AN/slrQHYI2+xYD5y3f4idd+8DaoVQlOn6qacYrWC3OS6Nuaj+a+UPk5J/Avy6S18DDPwiAFBwx5Uw== 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=ruGmvlIaqGHUZAYhnd2/YjYXrSPgrSSGMwmc/J6DbDQ=; b=AI5SbmZ6/WMvn8FX1tZTqa4awy95u18ZPzx51nxzZGLgQrdsN3UEQ2PIY8g/jGG/yu2DKfh/v3Bqjf3D1+nOqXRIKHgdeIoyEo7+wu9pKqbU1seebBbMhNl1DW/DkWiwGGf3yUwVaG62k6LqiyIpLCSnu+O393dox26zq/voiCuThq0Wn6KC9KUOBuck2FLlLQS7bEYEidavN7ttDDFgB1+Jp3V3x+nFj6HzSwkU6WpNZNuha9IIgsDpyB7/i3Gxjmmms8l/jtHMnySUS1QTYQ6CrM3TdJfdQNGe9Nv0jsi4rwlftyKb6RAa/oX1kn+dmwZaMFtXfORSmzKQkfoXow== 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=ruGmvlIaqGHUZAYhnd2/YjYXrSPgrSSGMwmc/J6DbDQ=; b=e0/N0dgAXP1evtJxOjQui2tjs9RtFMP2lZ+DBCpcDP1AXV9N1/kYuFPyIYPfBZrYp62XXI9VO2pzK9MlP6J8MKxLoEZ/D/ixIul+/PznSPE/FeQ5AFwedS+W9VL6xWeIRoAc5abdT9slzhHNYjcVY7gJVeXEH9jettqkM+J7qZs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) by DU2PR04MB9132.eurprd04.prod.outlook.com (2603:10a6:10:2f7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27; Mon, 18 Mar 2024 16:39:06 +0000 Received: from VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf]) by VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf%5]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 16:39:06 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: 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 BlueZ v4 4/5] player.c: Remove bt_shell_noninteractive_quit on commands Date: Mon, 18 Mar 2024 18:38:52 +0200 Message-Id: <20240318163853.68598-5-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240318163853.68598-1-silviu.barbulescu@nxp.com> References: <20240318163853.68598-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: FR2P281CA0036.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::23) To VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB10073:EE_|DU2PR04MB9132:EE_ X-MS-Office365-Filtering-Correlation-Id: 87af3c6c-85c6-4fd9-75fd-08dc4769ed99 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gAi9Vd42bJLz/CYi9Vl4QOYASQLrWMvlWI0fpdeAETjfS87OiVt2VSLq8H6UH6srwGGyt7r473BEfKjispEfethB7kL5jhSqmeYFHPCrv8+tmKzaJfPD7hnpyA0Gnl18b5BdLNWD2/XYJb5IJYf2a1FnVecx6J46azzIE3VHm/eHtOq0+JsxEtkeWSnd5RbH4ezuszaX4XKS9lo1TZXna8qv9lyOHNx0f91XigWlu+glwGTgX5/qi62Ivx1Gn7qrSZe/7llXb+iVDjaImHWRrDeW/JhJMVF7moJ0wvVVKDqkHRdOk/55tIY4xOHJZoQHqjVHYLjbN9HSAyoIeyJ5bUi8j39fVGFCj1AJD17hzeFJXsI3Z9xaMoJ2mYX9U4OtMn3xpQo0Yq1nL6OvPqrxgmIf4dy84fY0BHT9B9i+8DvFgdsscoqGP/QDeNyFibGYojERJQhfbh7EaQkMkXHaRoTCkXVaY6pr186hz1ULtzv+4Q/KXvoTzq3eXaGWEvpUOrgC/IQz5IiL0hGTwMHwvZWv1km0kwFeBQVRb3+y5pMBr1CFe0LT1J5NkJydS9wljRFodZdJpmzzVFWu7NdNLnItU/0u19v4dskU/aAEA0iH7o7KuyofEE/voAJULftuAal97Q+YsKl7Hfr4sqxw5PL/4IrfeeWHEbuyDVPeM4M= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB10073.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vXMqIVTBJHZwkobLtUxeY4IslA1IBYn85iu9sNL0KZDlaWkl8Cw8cAEeshFCmKhFRKOGxBZ+lZJic11OeTwx3SLUHoYf7Y/tJz2QfPIw0O0PAAEncvDXrteSgFxUnt92schk1C9jQpvmyzYReYxPe11ylA8sk7GiMTsFDSELzuSApdiGjzN6ecEK52Xlu1b1g8HET9lduNs48lpJsKanGDFHlDwTemvsNvU7mK4k+kT6DH8HagDbIWpWjVMJIfO/f4M8FnJZk7e3f0GbE4cFrrP64BuO2NvVNwCqmX17Hx32vuMuQJmGoJGLxDtH2v6gXwXVygGggRl6bgS+yNAM7+FZ2I6S2f1YZb/DScWLJjweZeLGvATZJuOpM1jCDT2Mo8wkFkSFL8SeA+68p6LJ9IHEhnlbEg+lmBncnd8AZ174J+92TaVKPjlN+yRckYXskCJEPF6rqHsMQFePW4PiCeljW+3cElVsogRMXX5ziCyoIQzy7vmfgdZANCRJqjVgM/S/ipoqeTdr2IPJFggzHxRKnoC/fOJLu843njxgmuwFVvHHSbYxMdAj9wNbnlHVNAbkAPBELKk+30eUIXngmdMcCleO0Jb71U0PLebQKG1dXVm2+ImUnCCHSOM7AJZzgKkbSQdZXWHpGEUIadisXb5juukglcVN38oBRqQw39Lp8NtBr3WqhvoxmlSsm4vcOikWOvv+VV9UziyfFnXdZKwxUoohILe58JMIsX0+U3lBHKpD0qi5A3gtH9mI6Du0bp5oWR+bWxTcSvUpTCd1yhKlKAyNXkhGNEaHzRew+dFPVlX7FybdnF6D5ILiunSB92p6FRObV3V71h43sMpvPtjV4pK6uGL8r27vj2g6XXepAti4lB6H663gCUdIXw+5PpLOBiUtl0uQ32tJw/hfDXxyN8YDHBAzskXUm+mVshvjv4GHRFHfOuEkSLTbcmDvFm0zmOFPeJ0w4eE++fKHIOOGtq/7SMI2Dd7vZ5n6O7IDjV3qzdSaWqzRQOnBYlzoXCHxN0bcBktmVWCucCs2ColDDXFmlcL87w4FhqXx6OmGtQEdShH3IEIc6/C601+zWq309mDEWjV9j6LpTbpn6Tv2DhQLUNXQTXP7e4xEwxq/MqFCUdZnNAvt7G543tQz6Gcrv7kpXsbKeDIfW86LURS9yVQUeJng6SixiYaXMNUlPhLArCSJRDTCQbaWTLWsngfiUqGYHhNlzgmeuNfK0h29/iFWe26Ks6ae5q6so5+LxbaGYXu5UC+mAydRwooTTZOxmKyIWZOQ6bTSMyAIEqSKJ6egFXZDTr5YSGs/PSypZ/9S3gj/+TxeIKHQ+Zy9R1pJl2SI3PXD9TEHhwIaV7uWk8ZalPOfDdqLXn4CXs4oXzvDLOPVLF448VjJKkCWypghc6V6ykqct7emx9Iwhtsy65z1XLnViHS4BDkneLoaTqNbIeLUtVzITdNBp8Qb1/s3XVmPZemHTNg4uXpGDrBVA6p4044v5w26U8UXxWmsirOik2+xiXWWHbQnvsKzbKGBJ0ZPODQ7+RjVMoo7dU/ynlRj7OcAGrPX0T8S45laqt297nZXbZhaeazksZwD6fNaP22ECjce4W/esfn8dQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87af3c6c-85c6-4fd9-75fd-08dc4769ed99 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 16:39:06.4580 (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: 9FIM7+Eqp/8qbn1r5oBAnWX6dlCp2TDssdnd/RSrrlaEqF/JqiXFOlO/IPqPQ40WHtBCNSll4UPWoNz0xo5KZEEX9a1YY0uzgQSJaYqEQR0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9132 cmd_acquire_transport and cmd_release_transport should not call bt_shell_noninteractive_quit, this will be called on acquire_reply respectively release_reply. Only on replay the acquire\release process is finished --- client/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/player.c b/client/player.c index c9c6779f3..49bb52f98 100644 --- a/client/player.c +++ b/client/player.c @@ -4893,7 +4893,7 @@ static void cmd_acquire_transport(int argc, char *argv[]) transport_acquire(proxy, false); } - return bt_shell_noninteractive_quit(EXIT_SUCCESS); + return; } static void release_reply(DBusMessage *message, void *user_data) @@ -4945,7 +4945,7 @@ static void cmd_release_transport(int argc, char *argv[]) } } - return bt_shell_noninteractive_quit(EXIT_SUCCESS); + return; } static int open_file(const char *filename, int flags) From patchwork Mon Mar 18 16:38:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Silviu Florian Barbulescu X-Patchwork-Id: 781205 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2046.outbound.protection.outlook.com [40.107.21.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC8FE54BC1 for ; Mon, 18 Mar 2024 16:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.46 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779954; cv=fail; b=pjbLrEtHUWD10Bj+t16RIlNPVI7ans1zpLPqKE64ssixKnya+QpMZCjsTezrrqMyvo0FC+su2nI0Mea74UBMwbMVCjlSvBAbUqT2a4zVpvhuO2L+wbSUqa6xCzvfOq/HsuutIvWiIl2DggwRGDut3hCCTsLj6S1ooBe+qVb1uGY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710779954; c=relaxed/simple; bh=diZcbe/4DVTmrhAcDKRHpJ85BKSl7dS5TNNAlUnXjQg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=lS/P6/L3yvWRWmi3Hj6JtORPGwA4C4pnXDA5x284iaXwJubyvJrw0Si9RnYoi62xxgdkwBo3gSp05M3BelKbjAZdPSRMkFIfdsz13igKTYEkskNFg5Jh+HYwVsisZN+37eNu9Fnlr3nNN/Q8iPUixGln0dJrc1j00za4ikGetvY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=rpCVQP8C; arc=fail smtp.client-ip=40.107.21.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="rpCVQP8C" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i1c23JTB2aCSMfPTDFzY+Dbqn2vflfeoH2QVUyaPHHeHAxy/jw+hAxgFCLAA7ltcMiKZpkDsfyhDE69L876+66vdSkOCbrHB9BJrcH51hAdnkgYivM1r/+MpawP+tRNLD0H0bYo6CP2qQykn/9yVCqewBFQcZJmT2BIEGBwRWkXeZChKWoew5kKlTVinVu03vx9bHF8GFwv2yv6ZXhQqUjizDvbWWBQsTjkbeeVLvEx1IqG9nrl3vdj4piwiuJ1t/LVawunFDdAhCyI5yiZKrMY0KBKc4qi9k2xbatYz27nKdZC39f/2/1Mh9na65X1zU4uFv8fuuqImNg4lu7ntJw== 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=NdPRj07V4Nvi0AXGlCGhhGqk0UM3AgixBMBG/fYMU44=; b=BFjJ1v4AnOHkjAo7qKxdpovgqGfPhokwyloYMbsduAVL2OI56rmMprpxh7T7sXTvWz8tPBzauyfULXRk/vlQVcoC+jpvl2w8kX74ZxH6Abl+il4snWOLDOyr3DJSGeDzmCC5PETw65cRkOkhJxVUbNGn3dPFjrDO+G+bQZUZWAJUeO3ZL9/WwJTj161a3S0R47XTtikBubijsAM1GeQUANJDiTTADIlsu2MNaepWZt6owswF8GJ8rjX4DwTxzyDSt838rwV1Fsh2P0nCCCZFQxaRi1J+Yj0Yfr9vk1daosQcHvixged1PZY4/dV6XjegINlSVA/FYjoFncU6vvJ24A== 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=NdPRj07V4Nvi0AXGlCGhhGqk0UM3AgixBMBG/fYMU44=; b=rpCVQP8CTFW6ngQ+RD/kquwQNQCGvAt21qvhxf/OED1jQ9irUZMZbJCakutVg6R2u5NfI2ydsYRc1LFlHRUIavbZIVfTIJ5hjWYVn+2JjzzImQKt7uggTolT7nM/Qrd10UsO48j1KT5ZqubE+9QKtShqlyHg7HBddOtJAQ1K/v0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) by DU2PR04MB9132.eurprd04.prod.outlook.com (2603:10a6:10:2f7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27; Mon, 18 Mar 2024 16:39:10 +0000 Received: from VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf]) by VI1PR04MB10073.eurprd04.prod.outlook.com ([fe80::7bc8:c6eb:cb72:91cf%5]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 16:39:10 +0000 From: Silviu Florian Barbulescu To: linux-bluetooth@vger.kernel.org Cc: 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 BlueZ v4 5/5] client: update bcast source script to support BIS reconfig Date: Mon, 18 Mar 2024 18:38:53 +0200 Message-Id: <20240318163853.68598-6-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240318163853.68598-1-silviu.barbulescu@nxp.com> References: <20240318163853.68598-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: FR2P281CA0031.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::18) To VI1PR04MB10073.eurprd04.prod.outlook.com (2603:10a6:800:1dd::8) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB10073:EE_|DU2PR04MB9132:EE_ X-MS-Office365-Filtering-Correlation-Id: 676a414c-f9a9-4dca-e31f-08dc4769eff4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8HiAh54MKMohmfJCpsMxu23hbipZYqyRxPqLffksqpLM67vAUD8A2vxGrK/zQo4sODlceHew8U4abvlsjx85ezhoYPndLjaPCKJkeqsXWgLrcw+HXANtNeA47EPckHx5wa/mJq03Iaa/77k41fEKGvuCOHRlTUSFwjFEayEpcWEW+uonn60lYteA9VC91cQYUw6UTrdfasN/AZtmCojdHtypp7bb/FDp39HFAlIt+QKXN0Xwi09HOf2YmiTwJ+7deSPCA0ZAquCdG37NViRl/nxL5Vzg3UVEY+F7/diSQavnmqzNkUmg0Q62wyTas3hjKS5Q2mH1DmuGoJk3I+BmkBASr/25BZmxhuMjkvfbfhFOvos4X6tnyG7UObC3JnQjS1aYWqCAEKXCymZ8B2x9s5nBe9L5SDTbiCq/Y/gfVkGoVEqZw06yo+3VlrY2VH67OBdS8NE2VxYvmKoAk9hr3U6TxMrhH6B6o/mryA+p4igfRxm6LPK58oGgeSMpK2drxSMWU51BNb8RYgccuGWqX67y3LEsHgdBJDwHy9f53rxVCQMaxkDzHDo2QNS0SYD3USdEUAiqvCHzgFmNDXzd3z7uk4BYtXNofgKykeTVg0raOH2S6mq4MYsl3s7T1SoUzp5cek8T/VBTVE0SG9V4IqM6zYZH3I4goATVbQO+ACM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB10073.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 15hrRseMgFEYYF+8dmB6KYzfEgURE3uQ8OCpCp+W66gVOgRX5mk1qPFq/R9NzTyHxnhBlpV1WBC3jRSlehq/tz1gh+CI/zI+MvZPf2bUP8bpEkiWQ9BWtB9yOWI9+Kt783UmnDFSkjL4uz+6MThmwYFlz/nx7zrIVc3GuvMqEQ+0vLBqKVKPotQKgAgQbyC+696mK4H/z+LAGyOFz3thReJadCBZYmqemAo2Eg3VAMqy7UwSvRQOomnKPm9mPoOcIM37MZd29Ikt6BOqfpHuu5RUK3OObG3Ts/uggYKJ2tMPsh/Y1TTtL5nG+nE20QZOkSp8ug+VQiaGttfsoHJecgK+49SIjcV4K0bTxOkREJp6BLJQxapL1PVKJEF0Kzd0ISgl90KuMCYQv6ftHSGSStm2Hlx1yIlWd9+A2wxuR8AtD+ZOhgRgfFrcUHs3+Usf/4Pa5WufcIdfWq5rtq2PgmepG1DcJ1UsyDMCUZF3eUi18JPPPmy02O+WSIrEr7P48w93phjVcL2qXCJtjHg+5FEOWzX5Qi4OUATjIGLswNayTu4/TBoF4zVF6USE+PoE9JJBnAPLK8zZT2N5xx0tQDoWx5OOkri+aLu4LwtI1ujc50P85KctmeX+LbiphrtV6uD5deNL/ll8URAN17FppBKF6tQfHn6mVxfBXGDymecSmrA6suid8aSEPlbasP8pVwsIhkTqOVtX35osYMKyyxo3U1R1h5bmwWv9vX/RMDcs8/IhPXcG7X+DiYpRHUM/OzDnrfTcRjotvC6TF+umaUiUpJNPnkxZ+EaWh6dUdEamMARWs5yXPb0dKboklJyM3VvwF3JtzDpw3jmRIvJ6v00b1hzy7SJdqLJNjaEHkiVoZJuN8aQ2wmO9TDvg+UHhlp6H0gamCToUrBnRDD36QAQmlnguNKbk09UaofsUJEyo3ehIC21btur6GRFiT+krGeWQGOujPKyKMjlJLb/snis1N7LRrgV91o3ue7TZ+zBDm0Hri2nBc5INCTZRBCsSNLnPhlloZEqb9hrb3YgrNXHYFfUwo5iB41OfPbALZYUpJMM2QC07pHZBH3/W2ACgOhnOWbj604e17RAb+xvv9LSY0Qx1N98OpyYpoFMC4KMmLskiSMwt65Wjy4zNIaxAUwcu2RO5YwRIJePaw11vfdboreYc7X/6Lh20pdlju1pd0gwQL+upUd86f3yKPSCJ2Fyl0tqfeQESJ4mqWjQuESbiSuLqHD57QX6by+XxVAuQV7lKM139DciTw/xKw+XpTupb+ZKKXnhv8oIVAsQEO4jlQdhZvP464RMnX7spRvItH2cDsQjPqlW4NkmFL/sCZ0V9Z82kVBSuakAT4QYSrf4UsuSCHxf6Cb5j3f4GgqU3PzEZR7+HcG7guNuI/RTVC4Qk0Tfr7EIBinUrARp4Xxkuuho65NukzwoqTPDWJZijcoBimUAYGSPQsSDNZLFDIgXwVbBt6DS068yaTDJZWq8G9ikL97PudFoYowK1/kPz5xuJwOFpWJI1OYF/LJJfdVcymoy6FrK1g67xmVDTHCAi39Ei3Yh414JtuQeROq3YMkQSk8107Mt2AHCVjb2CjKOBVVsmOMPRRO69CkEPlA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 676a414c-f9a9-4dca-e31f-08dc4769eff4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 16:39:10.3913 (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: RsLTaWYP5BBAUjFCB3USHupsjagYdmDpE+Z4Fdj6nRgwFW6snl3RotajGozqZ8ahxx17PoM39vw3GiduRgHccfLzDOT7rEITa5O126vKadc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9132 update broadcast source script to support the BIS reconfiguration --- client/scripts/broadcast-source.bt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/scripts/broadcast-source.bt b/client/scripts/broadcast-source.bt index 6da9e23e2..4fb0c3920 100644 --- a/client/scripts/broadcast-source.bt +++ b/client/scripts/broadcast-source.bt @@ -5,7 +5,15 @@ a 3 4 endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 16_2_1 +0 +1 1 -3 0x03 0x02 0x04 0x00 -transport.acquire /org/bluez/hci0/pac_bcast0/fd0 \ No newline at end of file +transport.acquire /org/bluez/hci0/pac_bcast0/fd0 +transport.release /org/bluez/hci0/pac_bcast0/fd0 +endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 16_2_1 +1 +1 +2 +0x03 0x02 0x04 0x01 +transport.acquire /org/bluez/hci0/pac_bcast0/fd0