From patchwork Fri Mar 15 15:01:54 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: 780581 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2074.outbound.protection.outlook.com [40.107.22.74]) (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 B6DC53C464 for ; Fri, 15 Mar 2024 15:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514933; cv=fail; b=eoBWJxxThS7OWsl2ucqxZ+IHKmeI2rilnoo5+QtykjQmzd3caJnh4AuFFhoBtZ89PGoD/0WUDLn4xQ+MWd8cdjeJyXCGgGCxFlBo/8JjMYrOBQKI64dl6NrzD2RmsaR+JnNqJIUWQ2WRElQJDu6PJK8oS5fb5dq0xDOmGRSBp7s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514933; c=relaxed/simple; bh=9gi5K1xQgcmOvmwAXK7Ymm6q2jMIsICcl91pyjLuuwE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=nvaWLR/NrMk2HicLB5INlvC+GIB8dTNDfxQvuyjsGVZhbmzlYRDku8aCKWdJjVr75XNUwSfSOz/KwkpmGTurdQtBmfbNlrVwvZz3wfryH3Q1trS/aC0morXAm2fp5gX2zBZb/hfqMOhCefnrCL+A1MXTGrImF+6oIcfDBarXPPk= 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=Iw3Rwf9o; arc=fail smtp.client-ip=40.107.22.74 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="Iw3Rwf9o" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DLCpygrRaykhTFQnhu1CCaVsWirm/X0EW4wgceNTDupqdDljwb7nF+m6e0nE7/TEr4/razAKAbd5r5TBiJ6RzNpmaRXSB2Wf3iz3yQsjxgUZKfssWWrjsTXOE5z6QwXdauuensdKuEpN+ZBYQUqqhIYOsp/NNMTG/eIasMiezfMy0J2PniXtfO9d8P4Tnk06BPlrrq8JIJRn2qA3erEeMERKMbIee3z1XBcO6yBk5lifWRvneI8HOTFDsW8bZSOV75pVX10mNgoaMR6XtUfb02l/Tkp2U7MLyZIJLk0HhVKQBOs646vbJ3q+Fx0K6XcGStruw74nplJn7uv8m/mxng== 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=l6ud/X5bnIW/fTMwgvE+Ojp9GmqfeJMIOE+iYE1iHsA=; b=BOlVZwvUqpXsv4B9z+LGxethSd+cH5zfm0NGWCY9mvh/1FU9FxMN+eOtbqfHSzic/3HXsiQO5T/fDZJYsI31KX/foUtTDM0hpN9XE5EcdDxwvlLzzn8tIAWUgCaXAXTOLqt8UshnZCrEN65dNhG04hxKGoZdic8WuTahb7scK1WzUOXsjnT0erW3Wc14k4nC4wh8Wf/fm7MEh1ZLcEEPPO0C++8L4UHFSKdN8PYXGFzkuRPa4MjCKezyAyZIsQ/02zpMnXjaa+rHoBmt42W6iMxkSmQoYmCv3TbdYF+RxMGw0gAkt1M1IbkLM1iyjK056+I6YReLSAoCpyFWhxfWhA== 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=l6ud/X5bnIW/fTMwgvE+Ojp9GmqfeJMIOE+iYE1iHsA=; b=Iw3Rwf9opCLLZBHRL/XHuE8xkE5KtKoNKh2nAXaTsyyEJtifW71XW6zoTNFily6WU8I73ng4S9XtRIabtuDaKu4iJzfguTOy3Ialz1zeV7kHOC0M85Xn0ylFpMOKyrpsZKGR4oCtqWMKPhn5UJUDzpUbPRIQ1qrCHHbenJ9s8IQ= 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 AM8PR04MB7937.eurprd04.prod.outlook.com (2603:10a6:20b:248::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 15:02:09 +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.7362.035; Fri, 15 Mar 2024 15:02:08 +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 v3 1/5] player: Add reconfiguration prompt for broadcast source Date: Fri, 15 Mar 2024 17:01:54 +0200 Message-Id: <20240315150158.79715-2-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240315150158.79715-1-silviu.barbulescu@nxp.com> References: <20240315150158.79715-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM0PR03CA0054.eurprd03.prod.outlook.com (2603:10a6:208::31) 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_|AM8PR04MB7937:EE_ X-MS-Office365-Filtering-Correlation-Id: 9cb88492-4a8c-449b-b82d-08dc4500e2d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KGi+reKFRZbsIaQCqobk/2XWIIMuDhFbstJ9rmvyJd/uOMowsazrRF4fpGCszenoZqB0HwLCuqGo0K2NhrtyOpZ7t+RyLE6WvHrY5X9oTN+nF7Gc6+DUlfcjXtjrbtOn30UGb2Vs8mesDS60L1Ok8Hu63Jmwi64b+JUDv/SdL+MklhNBn5oXdCdfeKmsTEoJpM3sQbbZZcZjpFsJGutsW2D/Ur0f84Z/8B9xmgFSAKNycy1B5M3+KvkMJ3fI5rrbsNvzwy+/hQKebauzQd7iYDzBPcaRfdOEIAxikICGYl8+7rrKscS9ZYt5gwXVaXGKnqZmFnnrO+UN9pJtWtuhu6M/tgsVTSFMgRqx5HfETUYsTnUeYQRdi8T6CZNMKVx817T+xyq3BSVA8hEb6EthhQ1EjAmh7wxJYSCFcjaT7affqiJgS8hkxPQxKB2k9fEXEyiD7AK9h0Sth680BCW23gPUomwdD2vSd64us6knHuDHV4385lIAX25T5M+bhQmlNL4CqNduB0+W1R2mm4WuQmN1Kunbxddf0Qqdfx1JQzYomCret/WtGmGicsp4SphrLbc4JoKRxvvqBebQoYSvv5A37cANkizwO5RaLbfAAO/fucTffX1TiY87vR/jTHi/elSHqRt8NScbpmqct/0zCfy41rrPUUkAok7CG85QCrI= 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)(1800799015)(376005)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jZ9OWkKkQ8aHC3tB+3VjuORD6ozT1nTtmEBc4B13Cdp5d+/IqVPe9f0FPvmZh4MT6F/jZSUABLtSUjvYIhYbiUr6614Zv2YbJbMY+diLID3Rqk20h4gs1LRMibauANSMx2qb+cdWlmyRRORDfaMBXcwNvQ98JMdDcBWH7hfdxi5IcVQ7EM9b4XH8yUwsa9G8zNW2pG4ALQVgj2MOfKAyG2ZanVEuYfq4nLPxrh68XDV9eLh3l3eBcDUbexkdCua6+wpEYWCvJykWUp1hfPZtduXmnxfwG2A3sjJgXXaAz9uZqYuc5me+odhM7BwRN7exsHVEt0hHzyKTjVJIFDUPJOIinxDik2c9NWX7tlsJIbqLHt3HJPaF7zMBNxuWs+g2AemE3qZwTo8ymhv05hQ7xfhH4c80IraHPikluWsv3HPvBWSwDP7ipwxlvKDDrO8rML22QM6xO290j6JaLObl/8fmQ6NNzCYOX7AMFmwccXQmdj0yytFfIMogQplXYWKDUHNO2B/MLMbWp5pWiRxoc+3eCVB8paANf1CUMZw4tTb4kh2KjNju1iNKZl6pen5qEUftQUlsHNTDlP2WQ7hX2t4R0WYCh27Rnka+nXlvLGN9Onn5tJv8A93MLcvpMABx51wNXgAqD+UQkByGix8Tl/3p42+e8kr+1t24/e4lKvQj+Muk/J4LIpqE6ujLAqe3F77haIgW+cPBEJ10tMGgHT2wA62awkhRo37ji0gf3CBFQsTf/mOPNu6Nw8q2kMPJIBLBOrp7aV/bS9rExM4y6OzTUTFWvVuXMbJ2tGlUAveHMZMgFpSm3+juX5O551UhdvMXBjiPg2wmkjJAQ6lwaadgmtqz32MEkKI0eNELn5n8QnrCHn2i4VLdTN5icOTy1KHpCnrfMI97LnzIhulpg3ZKbRJ0hmxH32knSQnXP7Xhx6p4udR24GTo0dpwSzGRzh/Cyxyc6xn9LUkltaSOlFdQMxtWBV1JowsD3JilH+TE7KRPkefBe7xBsog6esavULhbt/f6ok/Y5bwphD568hkiVV8jiQ+b2B2K3q4eacd21Jrucyzs3QUZtz8800jKJOKXFlYQmrOF8B3FLczYngC8yZMIB7eRIDZtfomd+bjCIkHcyufamdOMCsx7FDqgt5JvItSxj14fEg7te+ARc1qNC8Wu2f8zyL/Po0pa6HuqwAcr4LLSXy4XGRE0ATYeFVqixoMuQwk8IoBjk+CM+WaAr8sdHBZ0J3kZDBcB4lnipjlc1ktjvy2x2OQlavSKxMBK25z7XSmICSq/UILQQCYR9FW+w7PTn5T9WPafeww8xnhX2eneNjwUyQ2bGV/1y63TxfO4kle9j8Ic2fig5SN3y/vjKNWKar7ciZj5owSiWZjMCg1QvpZ9jEolOFftTm/I2ePv8aCEz7f/kLgJ7F5I8cE2pgMexGbnVWsLtDmdJJ4R8M3xNzKmPT6kRWhtoWBrmpfxb5VEsi1zjmixtHnbodBJou+NaFzU9juOfcx+ygVtw2lguwNWf1PRnfjkKHjo8irz1jBKpjmCFWmndTAxwXj7SkqUf1RS8X2vZ2AjTivxNbkQ7/lEKCWH+ed96puOia/j0V0NrioiPucdPg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cb88492-4a8c-449b-b82d-08dc4500e2d4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 15:02:08.8854 (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: fHM4qkQo/fg46JWfAaxl9oVfjJqwm7PGWFVqF1McGWeo+84RbkaUm3QVXfoRpF6IgiURgIAkThCm9OpS6C6JzScEv5qNXrpIIoKZrstc1Ho= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7937 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 | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/client/player.c b/client/player.c index 8081ddc13..c754af33d 100644 --- a/client/player.c +++ b/client/player.c @@ -3659,6 +3659,35 @@ 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; + goto done; + } 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; + } + +done: + 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 +3703,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 Fri Mar 15 15:01:55 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: 780778 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2074.outbound.protection.outlook.com [40.107.22.74]) (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 1A83A3A1B5 for ; Fri, 15 Mar 2024 15:02:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514936; cv=fail; b=PrkvW1T3ZVNqzfhlQMJ/pEHYAhgZYLdMCKyIccf4DipJujXhUn8UlbWxInL+xd6BslsAsOw2QiS03ck3sMtFlV/piICAJDQMSNZDWrRwp9ESRTF0b9xpFXiWjGr724eRbj2Tq9JJ9NxEC3MMpiitBHLAW2W6bfsqP57C7fDt8ts= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514936; c=relaxed/simple; bh=0dRFxR0jNHmTqolxKejhwi7qMMg123Zb7P9CbwTAVrY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=koYL3BVqmN78pZ7XCesvJIUArjLFJZ4rMLrQW9x6ost7GRakAj5mDplQB3TEBRmChGCn3vod/rh00oaNDX31/BXIyieSmH7M4k9RecKbC5QJHWSLzAtzZFYg8rbrT5+VnuA6MPzntGqeMctHMbUgs214VUPygP+kmXBLdt3DsWI= 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=hrAIU3tj; arc=fail smtp.client-ip=40.107.22.74 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="hrAIU3tj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KvlvvpWI6ULRA5IAVv1C23vDl1oZdnJuRau55NttL6tMxMN0RrlQaz8LpkZztSfx9fimtxcXmEWyEB130A4JqWK1I2ht+unLu3GrrJ+hpI+X9jztpKS1NWAqKaJx6UrkTaRXQ6mpA6DrJUDMLVU5vuNwuqJJz3K5VDj1/uvmyvLfACk5jfFPRUefQ1WSvJ4P6yZdSeWUGULq7gO0MPJsDT/Dz50yKG9MGe+q7s9sArnazKCLvM2hXMJfXJGAjoEISHpbgIZqvknyTljvyGBHfPRBDzK5+Z0c0+Alp+IFU6hAAhtn1IEnCOnj70ITtHeKkiQJ5rm2B5x6/JsBVqcN8g== 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=YIWUwuhkqpOfYmcJk7baRPq/EGZFau/KiuMQMKpqZVuZnPpa41FWTsyAVmALunwDX/ZNzh5ItGX5kLp64+sICABWRSx4mo/RbcazXnaZDLli4T3njiVulMxi0ELlVI5gkYHrWo3JihMBNsUVeG5fw381V8dCyBQPqQ+H3Wy1RrPcsTIzUIQn5msVnpPhiQybZyI5pm5sIPzLHPiWAweS/u55EoM2xkr3aGU9XkT3tSdHN1bf7P87kRQXyukomP+uxTNHa1rKuL191Z+Vwtf6774bylQDeW7sxQkL7TFoAYgVf1vRjWUbFp9wiu3Qi+Hvacx5X+xsZjtuZyJp9R2G0g== 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=hrAIU3tj4C56Q79S52vCbEhvDGKnPwFm0fxHgbNWwN0CxuwjcUqbN4MpTw3Ey/6dAWtlg46ZIuSxrxRvvG4YdNnjMOZ025esyZtDhVngRXHFWBX1VujlU7vMikpIcBpQlKhHL0FYj4GLQdC07S+hkdikxh/+t8BH3Ydsj/hXvF4= 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 AM8PR04MB7937.eurprd04.prod.outlook.com (2603:10a6:20b:248::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 15:02:11 +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.7362.035; Fri, 15 Mar 2024 15:02:11 +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 v3 2/5] transport: Add support to update the transport config Date: Fri, 15 Mar 2024 17:01:55 +0200 Message-Id: <20240315150158.79715-3-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240315150158.79715-1-silviu.barbulescu@nxp.com> References: <20240315150158.79715-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AS4P190CA0016.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d0::10) 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_|AM8PR04MB7937:EE_ X-MS-Office365-Filtering-Correlation-Id: 15a67734-bd78-4459-c526-08dc4500e42c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pWDC0iDBgy4dCQ/ReziEIL/jFf3WT638yIe85tL5He8U6wnEiakN7YRGA/7hpvX/MYfyl+uOEl7czPY2qdThhSjfq73vaNe7M0/RGYdp8kG7+irfDrsRCcjDNUK1+n1Mb9yNEzDnoSR3hzrSt3XJFjQmqRseU+z2uRS2Cbvm+bq6uHDcxXNDRKhFFIderHFA7x6u+t+lCyJ2K3p4HvvbPsh8DBEiSwN0F/fIs/aUrDA1pPrlurIiszwQKEQRdSKouWMbpOpnSJBuCuSLDwnsa7JP9Bv6sTWVJcde2uXYhzQTLd4HYhzTLjfpUWZCgUWx1AEXLC7xSvCf+BSA34O1LdpySQp0xjnXnkxRhl0n7uHNggpjiDp/5qIvx6aJHmpW+QM6NXnpC4a0j0b0/la83gsMURd/8ksAmwq4MMh3trrTwLCtt9t3jXyTzx9Db+cyC94vU1GZPmfc6Jff8CjtSPoLU6kxa4YwphQxRaCxUGefiYaqSR1l5+VUiz/zqua7FqDCj5NJq4OHeTFELLOwceO9RuYF9+7gcdKXAjXW9kvt8gRtz8DiXJRj+uV4KjEFAM6vMP6hfeF5MJY+oCCCNyx91sZt08FC03/EdyKnXO76Y4NbjuHn6iqhZJoDV3vS5I9pI5FUJZir/MQb4oYnTi2L7Swb0iplqhM0JkctIhY= 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)(1800799015)(376005)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YrXYSil2K3zHZbt5GxW6i1UbQEPaH4Rn6CVqPvZvD/uzVqajoD4/tId6qQYxhhpJNgpaaIc44LxJp/BCB5AcLjHnR9+UEHAoVAvT2AIAEXDLiqIAeMx9P1QWv21BD37l/xxXZGNCDRIT9hZaLRlssVaQDdnJj4pzgEhhFiHFbZhw17t6OVMpBXZAWlNGbH2GLD5N1eJJI8T9mO38Ytg/kaAsKJucPAgUW7M8ltf2JGF3Ey7MZmVcAdpt63uh36RLchj/8y7CuwKrVs1KfcPLkoAdGz0/SqTjbKbyiuhvHGvYQhIsGyZY2ybOrhrmE5Tr0z+UMfilcP1oa0G5AMc48Ft2LvdRjdWeZIpm0cbeZc5VBCy74TAtpLni24mIXmVcaCvQq2KmLsN4a0qsY7qq3mtMCE9F6zU5K9E1jyCfcKFlyVS4RtG9cnSwx/xc7LZRKBWibcl1QpNJH7v+tBsgmr1zxxDXx5M7jRUi3/hxOzMvMD8NBrO1EtGdqqzGr6HSIGCFeFp+0dDungCe5INYwvDJcXQRzFBfOgj3FRUR4tQJ6qws4QzXpgYNI8sewLctUyV2W06JV+HCI1IFZHvHHPmf9bLKeriTCV8MzqOOdY4BJGNoi5doh7U79KAJclCRcWk1l498QUtnydzPbdba7amU27BJ5q1IVwUZ2svZ9kwkDeF0f+ArriVEO4E418dXdXmCnA76B6UfvNOxoO/rfpUuijxf9PrWMX/qqkiDr0H28tRPMYf3GmkkGkZA6iNug/OoKum5foZUkMM4Ht2Wm+mgKtho5lntQE6kaigXfsj0v1xZbvr1EWdzO+cBr7b+nkvmHL3nW6T7d5Jgy9lI7ce9ybHi9KymMOY4a3ePdww6i5j69SN3GQSuDzrqPtGYSClBaZZt6sJE3NYKC7fN0ucHg98F1d5JJKkzeVy8ajqqVassfwXYJ/L6on6K9kCgo6biEQaG/evRDei5CZfMjVL1YL9eIKFvcuHKP+HKLv+ds1LRSK7y/p5Hd9hEJWNf6t5lVajn56AcMKpsYFMCOb1QXDd/o+Vsg/C41ABIC7TJPXv6aMcqwOO+BEyM99KfUBKE4Q2rEW7DAMfJARnh9LbjOfyx+NDM0x8AkZt+IA1FuptettPMMA64Rtd4P4eeePZpM1GRY4790FSJDKHLtdpPx5O4rYOxE0Q+5cF6pNeLqlIuIO168/Ce7USKm5Aw/j2iQkgIEftMK6U9KjxOkl0C5NbekYUIZAE5J4EpQ8UQX2FqUnrGM2yYL6uRn1nqe+83ss77T1AVJTZEgYk9v4+7jzWluXN4n/1ni5xpWUFrv4k3Ou7c56pA2+BSiR61JTan8OGdC20KH+qUYPlb9GfUcLVnqUvReIgHHgB2ERmUJeDFYhV9BvBeXEhThbG4bL0MRgAJUgPzuufGv3Naj30yHqU32R5FO799PhlG6Y1aW0ecKFoaqjRgiTeIPzMnVOS9s+SAsWkQQxyL++jKHgpstgicQ6qkKsfePhdnFmjC8IgE8FxxSIwbjI7WQ09YI8vrH2tOkGVbUmSvFKRTTyE3JyOp37oE5hiGm9lHAr0t00K6dI+Z0ndj773nUjloAJQRQ++ZtLMZ4gBwtkXbNQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15a67734-bd78-4459-c526-08dc4500e42c X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 15:02:11.1300 (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: Z6vxaPzBmJV7OzH4oWOQd0++Zo5uh2IkZyhGZxIs5PynJY7yQkvSL5M9Clwn6YQj8wDmwp08oJSjqC+VdIlL2OUSfvQGpcnpv5P6AxU0NaM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7937 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 Fri Mar 15 15:01:56 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: 780580 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2053.outbound.protection.outlook.com [40.107.14.53]) (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 5B07C3613B for ; Fri, 15 Mar 2024 15:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514940; cv=fail; b=CdaS/fFTrEiOhje17096Fb4ry+DF+hVYLHelCJDSynXGamhOYhg3uPHDOT4vIj/F0nkrOGcX6ups6dZlB71nhQOAdZLFSlIyI0EsGkXS/cFYajDU+G8UuCeA3gt7s1hSXxnD84nTaY+FYggln9heUc0rGqCQ1d7NVHCMK744AoA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514940; c=relaxed/simple; bh=eAgKjABbhwqNWH+UaGnCnRqpEndnR5qT1kGZAalTP1Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Yq2J381e9D852TwHAJk1eaPPp6a8f9aXSCvhxn3j0+Xyunui7Fqv+fNLBiXVhMmC+A0kw/Fu1OoC1v2r8zIoelsqIFH18puyoIlRKooFAtevZDpKkAehP6+nfXb6E4mHSP12PfSa5OcpBiyaiZAOXyQm9Jro8oWsSXgqPfMbp8Q= 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=rPzl9+ri; arc=fail smtp.client-ip=40.107.14.53 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="rPzl9+ri" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i3N77P/ulyqmnfCFj+0qZAieKmdGjkAHQ9HIJ2cy2gDRmT9ITRAcfKv4TYSBgFUEAAfg0p6I+tF0c6O5eSEH0Wvn5dTv91lj7hx74Xpox+LeU9WtY6Su8mx8mtoFX5DWEZXk5lojSRuKUUvbvNE5zvAC2YAPgfSMvKNlo4N4cPLKCjCwNKJAdInFXj6KBmtiBQT/SI0+wNywFNFq59kEJON5HVlrQT0xxup8HFpnSRkffoRgmdM9GUcH/AEhOhNyy6yOxsfbc2+SX5LfqYBOVSZhdhcbUvFBwJWveImMO2ojxpchzBCaUMJCcU5YBrjXAEBkjcicHWRvTCUcvsjmJQ== 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=Phf9O/MYIzC2amqf/EucGYukR9odptLsLx+PEsCe4VILQxtXzh+/+mSprk74QupEKo5iOdlHnKhnuvmxfs2HRqb0okfjoOd2u9GvRsGIxvPE7/qh/HkMsoqPcSQ6b44fDylKG1HLRbXx5G7h2FiATdzT3EnIvgpt8Ro02esZMSZNwulxZ3f8Z4pzGcvdyA6lVVBdryinQzXGl1dDk9+GVdM5iRvavJ6phNpldwARYjSPJSjj9A3gc5TCrcuv7NcdrKtlDr0v0mOirqS01xyKacIKz+ffRU3JfVqqsJzzJr7ISNoOimMdMfuH7SEhXRkXd9Qyiko+Ig0sVGhaGGaAvg== 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=rPzl9+riRIX91LIls/xXKkHQ0yRpIKSLcng0rMj9dSjzI7GjYL8/svY4qvNB/qy99zMtSr/MVp2zQ9Wt0fEHiYlgEdIlh3CgCeECV9uJgs9+a+bRxveL/5X4uLG0wZ125v/i5cropm+vqc36vlvPwXQtC4efmy/CwjC+JYlKV+o= 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 AM8PR04MB7937.eurprd04.prod.outlook.com (2603:10a6:20b:248::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 15:02:13 +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.7362.035; Fri, 15 Mar 2024 15:02:13 +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 v3 3/5] bap: Broadcast source reconfiguration support added Date: Fri, 15 Mar 2024 17:01:56 +0200 Message-Id: <20240315150158.79715-4-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240315150158.79715-1-silviu.barbulescu@nxp.com> References: <20240315150158.79715-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AS4P195CA0040.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:65a::28) 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_|AM8PR04MB7937:EE_ X-MS-Office365-Filtering-Correlation-Id: 09b3ebe6-85da-4905-3904-08dc4500e59b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mKIFpPIXUCLYgyawGB5ISLIZRTM0OnjtVRvcCoZOVq1a7dC/f88u1AI/w/XIycfj/ElvYlHfyATvtgv/SYnN0M44mnoaWsGAHn7auqO+1zf/T43oy9kbVfmhLeVDHeHbLerF4okjNuimz4q8CMRI9N8NEv828m4uaRNSM79a1qFm80z0RNT7QOMUiBQ1goNuVw/lgxXbyI+0oGDS1q6Sm5UOBKWC9sKoTpz6HS4HvN+iou97Z+zxlPKcOwipiyvCQRcF0VT+0HWbYKfFDo3LZjwGmzCb5PmZq+UVHDpXj7jOH+t4l0ZAygRkmXB9WNC8EzjymjXk3BYfFRzy0t0grfCkvfyKtYDSnptrXXz/1aluhYqMLkkVhF0m3Rs1n1jGciNr6xdsJKJZLv07/Odoaf55ElhM308IqNT5hgg9H4mykiFfjSe7dkb7WG30rSchWuam2IhEkdiwi6EHbblaKJPkD3RqDN/PePOf9LNA0IQ7uvGnDozX8qRmoWHbjB7yfAGeqsg/Lq/LUDjJ7LPuxvHvmyuAlnx7c5pC8ib3zTXH/SgXDMYQACrK+aEJ2sOIffnMpVOIK4rtOEY1xWLS9OpTtBoCxx6dbKFNJRVrTyqufWG8Ik6txXOG8HkmdkqyTpyJ/zMMTvJkUvJEK4hp52+OsLs97APCrVPrZ+kzHEA= 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)(1800799015)(376005)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QBfY6qhJQOPa4w958jmg95NEH3l0DpF9hthxeM5oLgld4VoIBNB28D1QVwyBNnnEzhk+I2wpQY41xplvIlHf3//FEKanBv8i8htTavDPQmPTaPNIodSIrrYCiF1GXImOPOJrKohPpEC5qyaxLPn8m33IVpOoB8zqkaRh+8o5Iq0r04PNvjd1DsfJ+wJm1HV4FdCWQLK5xSMHRFdVFKeJ3w8XqVZmBUaA91zBchJ/t3VEtBq5TlWbveKZxtxHeDk5BN23N21sZpybVSfTFGRljxnc9ULGnGR4P7tb8XAHDhZvq2n0DJqjp3mMoa0GSrgStKT442WsPTpWykFyfgb+4YMBkA3SoL6pvPXXZmKs+71pPvKXT/+aGPCR1niOW3ngiRUaIOy2sWh1Pw7jPtSlNqJ0qQFm6MuYNQ8wagQx5SyE5m/W/tMi38ZsPiMB7XZE6M+IMG8Qi0gSbAYY1NUfdP8qYudGmU6AVKHZlEI//p6IxM6LmnPbuz4ZyRtcbnXj7kIslConzlkXMeBWPSY3ZqwtN6S9Pz8JycGoEGXpcDbp3VCew+JpaqIDSS32RkKsOlTcUcxRGZ+NXu0SU2TDgSHRDkFISvEUv7IqjbT31QPIzJ+3ZuiRgHdm2fUPJPjnYvxo13WxzRU+XpKbjDggKBPQ2TZtXL7AmDBv7ZDPZaV+OZ+BaHTkopk1awf+pUBlsTPgIS7tARvkmSTfjXq8BesuKWO/ZfAtEbO0VYlPH9UmBc1NI4kmwtQM78lcf2jOyvsIWohJoGGH/6rb7JFCI5in6KpnAL2FNGsOH4br5zL7FJi47yGfS2++zNAtub/iGZJTcw5sTkfbNRzu+hBTos+gxYxAflnUOHeIMKDLm6XM1cEUS6xYRzia0KTQ73Fx3LRgTGpgf0qc2ZV3hWtVuTECM9Uk+Nhlsa1El6W9qe3/6u2awBGBCo85B4vR4wPK9e7R7mHQOHWYVF3AfzVul82Qi6uK7xr5qvhh99YuvT3gexDCLT2UBP4amsRbjxylsBVNanfN9b9HHSHKpxnPCQ9WJo79S1qBkHEx0ZWIlgQUQCYJB3h/tfv+enmxa+0ajnYXb+D0WgtH6UkpOkCw2UcetR4whxYKHDzjlr6FGb8/mnpZ7CccdpeZ9kvPXOC823w9lqbNdVubQHS7sKEbPENOWEpr5JrxQ0TCroD6vW0fVNlpjQL2kR9YzoK9pJhGyX1BqDz5VCT8aE5HvjWVDz13XAvWGL2c1TfDfEi61iXstk2zo5ntQso+yGrXuOfl7p6Ik5vdNeYepVu3mnH2ARwHrNN+DinKT/HFMfT6YSmCe19FXrH9m56Rm0jWcbozFCOrO+/DaYn/1IrXnQMGVUzAneexzR4W6aUAeet8DcP25nfuwJHFizYlkVPnaYN30BrJU2Df2+5I8oX2PNa946Nx45xE2WzaEq3U6hQxNxTvlhHllbzlVzCNm/5yAaBZZzggo7fYWyMte0uSJFG5xsF9iMeZwkFS/b6JOa6ZXnkm96QypV4laptKnu7mmzLxPBhBfzUBm6olWR5VdKX2oWRF0oPIZPr4M3Ch+6rjqUF82e7lTKiMyFjTqT3FvYHF6wycWg0StfdpYIj+kEGGRQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09b3ebe6-85da-4905-3904-08dc4500e59b X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 15:02:13.5854 (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: TMajN+lZIr6Z1lu+ptSgjdnZZoOtAvWvAVynxUZ8OHl9qWmatIpoO3aWl81cQZXuVuQ06uZCYyzArmHMcNQ2T1QAz+zEACdcwOG+p5YG5HY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7937 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 Fri Mar 15 15:01:57 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: 780777 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2053.outbound.protection.outlook.com [40.107.14.53]) (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 BF2933BBD0 for ; Fri, 15 Mar 2024 15:02:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514942; cv=fail; b=foY9XEWVTx48vRczgvZb6LW/yjiWA8S/zEAh12WqtfnjoCgcB6uzZh5WDiUxSdHxveYr1gvvZXULYQZ+/k8cyNs2DScQ7U44d/UACIxVxDKlWicxILHhoN9OBt/wqoe4ngHNvVkwkF82HyEfSxuuhKlnvApMdjag4fKRu1dfsgk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514942; c=relaxed/simple; bh=/BlKyd5xfpmcZ47yqXMCKxNwc8ISde8O0WwwXW9a77s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=QPBGnYYG/ntd0FTGAz1Woc/3LyYookwfrMCxK9IIaw+xKfpWw2Sfml4zVcy+Cz+FEI0fySjLhdYFdzfH/XDZ5cNtFFAArJBWnCLjY59fT8j1lt29D4FKODuz5EnkJjX/I5UKji5Egt1dr+aLzXZhb7zXGBHjhd0i3GEoUrh54N8= 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=kY7dMa8z; arc=fail smtp.client-ip=40.107.14.53 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="kY7dMa8z" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RtLgjxn7Fv2FooivcHyXgPMslRAuAUSG7V8TooqaBCvFCOsJ7zNNzba+xMK3Ce3kM0u8qZvjySFJ+t8J0my+TXPt0vOikkA28H2UPChMSPbBwbJiUwZMnNyfJC86bOK17n+Vy1CgRVn53eubqKWUcf3A9oCbyF7/fvFahZwxVWvSLTqzEIhzeuvCchPRe71RtqlIjt/QnDfpB4EFNbhVkszsf6HHQCnCvEpNO9+6pz643njwZ1+i+LOX8LhNA0RWURJxbyn4cvXyuOI6d4OY6koNjbUNnQA5U2ZheR6XN35PrFTORdj6MtvkqdW4pfdqdX6+pO8VYlZ9hnNbV6XrCw== 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=A03KZW8Z6+p+NIZ5EB5mp6EQbCg8ciAyJgOvEbJuPag=; b=cQgWM5E/HpLjpv6V0uQqaxND6g/Wg9w9RxXP7gBrWOwo/Vq7BnNmqar10UDp7pYCsnEK+dR2l5b+rsCcZndiXuPHQ2gQA+/CQw9vVkAl6y5h7d/5MGR7EVjtJDpzWWiQgmMaHPPVbWLNhBWT9mzflITtntBPqOK+E0nlsMHeu9RK0Uy51M5zN0ocupPrTDa/cAu/KcdtJ0lKDIF8n356qNcf3tO3P3j9jz/lOP/RusOXi3/DNH9z0CQKSaHiaZgRHZSt3nR46JlfKEcJcF5YGpQA94IgmhwZP0yWaskaBUfg8N2ABVscuvAkdGXa2Y0CKOlu2aylHLejhGw22UWYLA== 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=A03KZW8Z6+p+NIZ5EB5mp6EQbCg8ciAyJgOvEbJuPag=; b=kY7dMa8zfC9waEqM44C6OYfpEx65NH/3c8o4+Cveok+Qo4uZRBFIg+ZKH0GSR1aAqxVLZo9LoPqszYeR9kSmV0pVwKcEhIvKssPJTVX/o/j8bbVV5NWxlDCgMX47Wc9xP5j/f7H7VbX9fSvVV+DqlGWJBKjlRs/tQxKd/n2rG7U= 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 AM8PR04MB7937.eurprd04.prod.outlook.com (2603:10a6:20b:248::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 15:02:15 +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.7362.035; Fri, 15 Mar 2024 15:02:15 +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 v3 4/5] player.c: Remove bt_shell_noninteractive_quit on commands Date: Fri, 15 Mar 2024 17:01:57 +0200 Message-Id: <20240315150158.79715-5-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240315150158.79715-1-silviu.barbulescu@nxp.com> References: <20240315150158.79715-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AS4P251CA0022.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:5d3::14) 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_|AM8PR04MB7937:EE_ X-MS-Office365-Filtering-Correlation-Id: 833c3ae9-bde0-40c2-9c59-08dc4500e6e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J9jlKTPUEMfsVE347ZvrnWMCwxJPh4aXdLG7VwLonK17Gj4rsjYZY2rh7O6Z9ywNbv+OdFqHUABpXwuPE7zaNPufT1tTRWhoGLBCfEJgUlRUpMG7ArpeTol5niut7fXp2bmaMHUb1N2EhW+bxRUGR0mODhhFihCk/S1nRWNuTQrp6v7P4cdHPBZNWZ2rWJkLT39iaRHvpOgHDGxEDnH/ykBi8aQeVSp83J15bu20Ou1hyoGukEuIIZo4/LLJjbd/a1OBZX628MwrKhlMJJKllJ5sc2rayFQ84j9i5HM+kU/dJQXcV0lNsd420MVSliwyGolTfxQcXDuVP2bar3ZaSDThQUGahBBxr7RztUQPmJuUsjg2ubSb+CrxR4S8XokHM9sjRklAQTmB2y2wm/XFYlUWty1AdNFZZQ9Y2Ji7MhvBfUtXoTfS6H0sEH5m1A5J10CqKiFHuD35fALshxYAJDATJiQkcpDtdevJdkMdSLHII0oGrRLfIJMyayrraN0Nvk9QQQrg1tSAp02Jt/Ky08Pk109/Y/8lY7VMythsSgO207mWYxo21BQ3ayr5NLk7N2m1aypTtjjIge4hrOR78/qWiDGSeQf74UcABqz/ot03CxtEI1lfrCLrF9G32mTJkqqvtSxYOKVVTmWlhcIAGkg3N/yLWOWHMBi7q7eh3Ko= 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)(1800799015)(376005)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KJ0eN7Rl0Rm/ubsgCffzvAezn7VnAvBV0+mc3j7lltelpSu5co+Cqh3j56HzMgl8b734aOfMe7usWHa8slzyS7Po9uXDlhWxm3o5iKv1n61g4qNMcpAIKd6oFBuV/7aqQEJHLP6gt59lN76F2DETcRbooqV/MK5SumJ1g4sSRdF8WYVjUp4kMnzE78R2gdlor//pI9hHYrwYWlolJcaOgwe8rQIaYz0R2FW+yNrEjk8KZtiKZnuP9ZWk6jSPKbNWnuup+6d5XRIcnM868Ke+XqzJe4SZXHzgtfkj4FZMISVLhn/DzHuCpTFRsThuryfOK944U0FWM7lEu4oNOL64oV1JzOPlTWelgWffvRKV7lUkYD+zzgySa/LwobA6Qq5uFhE6Stx4mB3VXQH5g7K25vvPFnTHMqE0RXJtsdj9BDtOny8861PqGu7Uo7N4aCOuGLRLLS5+z/TwQbeWX+5elnEVUMIak4tTJLZhys+hMzOVgkr9hCjtOJBKV6wIKZYI7ozwLuqF0G9yKdFm4MvCw5uZFNcwLj/2djYT7xxtLAe/2xe2Fgfuu4VGmxFldxg/pY8V3ZoYQsZo4BdbTOPyhXAYRX0f+6Wo/ax32rEbClh+CRxMDIkYcRhZRGalIzDUPAHT3jNoMdGVVPkZXOTXYtCuboB2+O3jZSa+TBQ8h0VOOLNk+2fwrnVjY1AVJoAyzapAiof3lTxBwZ/V99aiQbtpxYGhnASLWOl3DLY0C+4O8bhVuw6ud6KtUb3QNthWZldc6Vy5kf3zU6ecOJb2THKn5uJQT7YH6aYCy/6w+Kcvftt4d5l8hJwFql8AgIRmr43PGy5GfXQXUGVzBn1vYsiyAnrepvb6k8gZYeNQVri6t8C5TxFW//OzRlvZiC1hL2Usss+Ri+gUDWu6TGoZlboGOoyzMUSg9tY7UIQLtk0FwgxAa6t02cyvUppdCJ+WXCuMoNVBeWIz2f1Z5Jh0VCP4Y2nm/BonRK+zLTXt5efo1tjB4hlEN7wWasW8GrC+IbEQx3RhBXXHbPLZkx+QyPkooeVebWB7vZ6M9K3z86UHKKwho6lcfPsNMiJAlXCm1pWyZ8TvdFFFSB195NqunJSPS3lJ5LeMtMjABuEFNtaDQcjpNDACBokuQvSrCGFn3oxfMrLGywNLIUMjSfes0RqvwfdvuyRDQX+purgp89oHpjb6ANgk6PSyA+kbTJLUNNeT7jyMhr3A5bKvdF9ZFSNjxRL6ehXzg81hfXIWqapP7WXNeUAoN9CTRpjuAWTj6mqUVE8WXj0jYi28tRu7w3XP1VQ7FIYRdfiltuxndm4vkjpPxJNvXMrmuu1Ke5ngUfd7g0zMWTel9513lD/98nCFLvihkZnrsAiYNZU6xNXiVJYJrY360qPfrZjHZza1wBz8lxCEaF0//fhPCzpF5vby+zNv6WTP/1f3CqQ/WlDxXZ+mc6XY+qHuCQVDFGHEV7qTCehBJCHLVpc6IzkTdm/dAkxomvyQLU1el8YQZPHUz/ZiLwHiE3i+SWDI2NOcwHDZcl5euChhxSCxBCO6yXrcNWW1hO2TCcCA11Ttr+f3Cw3U6i+BZMUFHMbjrvY1Vvf7TU4YkeOxXIEDqwpg9w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 833c3ae9-bde0-40c2-9c59-08dc4500e6e8 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 15:02:15.6942 (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: JktV8pAq9vF8iEc5Xeld2QgUemNrQz6CW1FB1CkMpXtMWbEtvxBBtLDIaqn96AYlFPZlzM8NuBOQc6y4BPRZHpuVnFDgrdV62Pjo26YEfrI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7937 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 c754af33d..f3f8c15eb 100644 --- a/client/player.c +++ b/client/player.c @@ -4895,7 +4895,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) @@ -4947,7 +4947,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 Fri Mar 15 15:01:58 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: 780579 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2053.outbound.protection.outlook.com [40.107.14.53]) (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 303AE3A1B5 for ; Fri, 15 Mar 2024 15:02:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514945; cv=fail; b=OS3XUF4IrJwMV+V3qJ0A3TXmFIz4nTTjTaENN8CenNFFBbE6g07A0SPuq0CmHMLL2jUte5UQSiiZUVzXBj/hwzS79EHDKAjl6RbzRQoLnFV2fFjcyDrZH7/2xWIpIahJMtmy+mfc6Fb66AZxn/c16TQPVfH7Gr10vjulDobaiXs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514945; c=relaxed/simple; bh=diZcbe/4DVTmrhAcDKRHpJ85BKSl7dS5TNNAlUnXjQg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=oqGbKNlHpdZRMugeWKqKAMDK2tzJmaoF8WykXMOhYgQQJ56h6e1iysQYvqADZ7O+l99B/DdH1omX5daBc7fREFGb/rwfN1YTMJ9OCotbFDzzP4Ab7RLWVO+xkd8Fg4OVjZMtXedc3+DLtqVNH4efNMhEHn7kvabSb4TzW7i6zCU= 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=n8MX2aeg; arc=fail smtp.client-ip=40.107.14.53 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="n8MX2aeg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0D0DcFofg9/N8GWde0+4fDhDXgNBnfeGei1tgcGzcFqKCg870TFc08KyZXC2dFxCBgOmmjSVAnlsjcQDNId7FqxOl/8Cd9ZRcG4Eo3T0/ITZGzk3SWOiwwg6VS2BHoWJsseoasyrzWKBPrVbnRDh//c44PpbU47kKg96lBgUyeEANKIYWjfKFZSnmfe40T5JeVpZi0dpC+zH4GkIPa05WRYZ07H5FrDmXvSGfJGxUFEFxDFJd62V1MR02+6QwfEKJd7ZogxgdpbGYPmGdGoWN+0yT9ulK9F32jFJUUTpmF8ADkOQefZu+OcWixSmWs5B6fvBIxx4lngHEhoAHCVyQ== 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=lA04cy2KmXNQaucRV1Bx8wdRTj4CvIoIIKsdhMtvoK2yVDGR+rLhtdybmUY6ZVTLjbD9gs6JZrD2DmALFoCxsnPR1S6R+Ee3YgAWjaMreoe8vIiymjJP0mduFhq3iGROPEPqlCdVVBWGd//Jda/6qNVFPhAfnNshQ7uLoWYviW7XsMzcalWwHmw4h4fJAjEFB8FuLKGKzzdIL6UYeBcDYXN8sAUqaacpwQRkp4GYEvInGnz9i/rbhFDTc868fFqodnqEON4tzUIJaLhLtFpJvsS7u4DADNs2rC3aTQeK1w/2K34I34aEnM99aRernTQTyZ0r0Wn+XRzfM+bf7y/V1A== 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=n8MX2aegJRHI8xI8TZpWkX8K/tLYC1WA5SrMBiMbMFhK0vUzqt79r7uYPD82Xc9N1Szwo3H63OAHWURTwA51wDuvA8ocO+/bcJ26jVsbUX9V1bUz6N3hd/fWhS2Srft6XlBH2Ikopywc/9FafO1DPycxKeScb+c35AvOD8yL5Ec= 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 AM8PR04MB7937.eurprd04.prod.outlook.com (2603:10a6:20b:248::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21; Fri, 15 Mar 2024 15:02:18 +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.7362.035; Fri, 15 Mar 2024 15:02:17 +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 v3 5/5] client: update bcast source script to support BIS reconfig Date: Fri, 15 Mar 2024 17:01:58 +0200 Message-Id: <20240315150158.79715-6-silviu.barbulescu@nxp.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240315150158.79715-1-silviu.barbulescu@nxp.com> References: <20240315150158.79715-1-silviu.barbulescu@nxp.com> X-ClientProxiedBy: AM9P195CA0028.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:21f::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_|AM8PR04MB7937:EE_ X-MS-Office365-Filtering-Correlation-Id: ecb08890-33cf-414a-7762-08dc4500e836 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MjcYp+WT/EMpB4q/aoYsrUfDA67TbmpUYsVrmaPb2gUL/8oWZ+ZY7Elpx3J0DKHjIgLP9HgEoIG+Zycaf4ANKBor+B21sYC6cI542HQkrUGzQJ4TPKG6zXAaxnti6au7UASuxwHuCbPS+rUoRMECRAbL5bX3YwBPgoCikuiuUpmc9eWJzxVpm73Zqf+7iGDv/cw+i5ENxn8VPChXBQqERLsx1kxfVWAHqHyP2StY8DjyM/mV60zXjvg0TrxkmUkE0dfVJdzt8Srd2H2BwqHI2W2MgkXMs6QUs88dJLH/8jK1qe/MqyDwjInWxP2kNVgFd5gnbx2l0lF2DmJrHqM0dJep0ZkpiD+kZUsS9+kBHYNua/HMOmdcnc0PYNKGke3QmgjxfNjzcy2sWdANj7abAg1n1wHuB0BJE3Oo3DEZHmyZftAlGbpAE+vDC2la6Y/MWy06DHeTYOrgosvoH3j4LmQ6V6ZBMQPkk27EIL4hH7HWLnjej1SGZzhMLEiqJyRSFLKUnZ8pkOY/2X5Tger1SDFmeqCyedyzT7M8EvVuMUOJ+ZsPyaqSkl//1h5PG0hJtTqqsWAjQhLrOYiEFYX0Bet5frtYaszGoHoaAFcoOgIANVqaqx2onAXNyanUcd+6GSx4elIxBAdWMt/xk+X4UzWMWdAUlG+N6hiU4dbagBU= 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)(1800799015)(376005)(366007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZuY2UtzxWgtJzk0BCim6QuAst6QAAB4hcxLwXMyW8SY3xSXKFpovdHtros+W8Cpiv0R/KNoVLO32kMGjPZUnN4iWWOHr58Sv/jHflGd0QuBLIPT8DvA4vT1hzCtmq9Dacangx2+f0rPCXFXFOXY5+z2t9w71FCuiNRcGtdamBUUYTdt93KGguBmq4Frv/GI0WpO07iEwdK4VhPWC6dSYWcoV4I9N9+mWYPBkSFNBhnRQCW24QVQq17jTfxht009vbCUbLzLhOmYYja0yYCxTW55twOFNktd5ELrK78nZvGUk8q6xWpIyZuZWUV8wN6B1/tsdCaVfo6pzeUgBSwgmS6xnPcrxiWXJNxvrCIImg6jAXOfChLBb962VuRJhGoCLtUNXmbTs7gT2u7NvNHtH6R9dQhzxc/jaN/F8c/zv1/+aQMDRzlgDJrjoGpxabOE58a6QNsGZ6+inh+Wf8sGu0t0QO2R+XHPLVH9ReQFljcy8uHzXry5CaPQzcLrPWJWvW78GaZAx8/Gp4MlFRO5ET+4Qo6BF/CZU2bSgMZWf4ADbWFzIhtHcEAT5hZpEKBrL84JS4/ZKp0eAxDm6hb3QbAicQ2BSb+f5Bu9XNfr5ebEQhx7+ei8z8Xhstq8iCIv6eK58cxuxsX7LhGIwHcGB+AabmJuccCiQ+/1zjoTL+36TgvYbXUFslUQDa44CMivTxjt6f2u/gI1qmlGMCds3o/3CD1EqWWBYAZT1nlQ1VgWwFD4bUQvO6K8jZMo0eCtp4Oax3uO18LiDr/zlU6F6niyRaH+FxpwIypPrPL70Bc4a/1RnhvueoJ2bZf4fsyi22YmYeSDajXXVbBAu6+OcSlgI+QFG1aZk2yc1kVAwxZd6deptHXzGUIDrcJ8PDer7QZXqai51E0MVKls2dgtnd3xXLlOuXEq5I8wvjurt9AC3C+BJ6YBCUKhgpHBs6sf7i067p34+aU0ujoHbhD6UbLqK0cNhPmyAtw+/w8/7fJ9hwwRPiZeHrv9pt0Ji01XkBcghUyxPtTt2StG334F/7pzN1ZV8xgcdS3m2O6LU1fu09Fc2vyslwVLa+HOMDh7+bN6yLjpj7JlQxT65qgwu7L/LqgdBlzKemAx4oxPr4va3HXZ+c+cIgDVC0G583d3Vu7jG/kU8kT9RMxSJCCdpCnpu+6ev1epypP36mTp65jWYVYX7klNuy9jWqHEee9UkT2ruW/3JjfKGen7FY9sH44LIeBd2ZCg7Q1uUdovQM1QNshTnwhhnnso3sDthHy9pXiYcxEJyjbJ9HT4ss9MWOityWJatzltL4xMCWmGwqpiaMor92Yz3yqA38zKO6RLUp7kd3UlT2GhtJ97f6FOAkOvMUHCTQj2gpYx+doqZ4hiZBXPgvEE3h1sIRm7sgxLAoPXz34DtyXo08KMwqWYb1wMxgP+UzCkY8Z/JS6A2wKDaG9E8B6d5tc68TTzronY7O87tz1f5Fa0WgMFOshfqR8Ik2W8ePJu1f1L9vWFi4xBS1VR8PLBV0ZSMDKzsI8UPygPN8ar+hFS4cp5dcanCFNxFPl/gg0h6dq772D9t+PXLWAPhjkbOYO7gEhZ292+6c/bd4GDSZp6khAYzG4+J7w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecb08890-33cf-414a-7762-08dc4500e836 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB10073.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 15:02:17.8961 (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: /HERGKP0yJK7BHmKRzs7Iz5skAzzwYCy4gq77oXgwCSgn7rjDOp8qHquaAdWg7hEGdxDMvbUyrk2prpxrloTonUrL061f1kVWtEMAPrf2gw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7937 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