From patchwork Fri Nov 15 10:38:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 13876073 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2084.outbound.protection.outlook.com [40.107.20.84]) (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 8806618FDCE for ; Fri, 15 Nov 2024 10:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.84 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731667119; cv=fail; b=dq6t3MWPeDjvNj7hsszt3M1CpauF3WfKidPRSyN6LaHZChbTiSOI/uw/uCUXEAPL8ecH0sHreVBZI/dfMIyK5lWvWIrpV0IFJX4lrBDekDfFS+1fB84wzHqPNrvABNXCvcgYe2/Fu4FdAznoCKm1b2LWiZPQ8PAvaHO8e5OkGro= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731667119; c=relaxed/simple; bh=3/Be+JMCxBQqFamE4j+Gy/CGMa8kMUwH6tC77y3QvzY=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=FWJkw1VFgHTfxHWyctnFUyYB0kE7ErXHrCs+tqulxioz+o5XrFdLytMJJ2ihiN3j8LVYLu5UhGAqyBOvERCQq5JW3LL8ZPxm7gRbPtqmY/ohqidE6ocVAcEXn+NzPcd3qZVt9RlrOlQ1Tu7AyCFPD1dXFnn7buquEI79Gec4apk= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=RbrN1nn0; arc=fail smtp.client-ip=40.107.20.84 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="RbrN1nn0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X7kfJlA2NVTvwmJhfqjyAWzEQMHnORkb1unsZKSnWTGqlMSze+VBfKSrqOyXdfBvDRdOWXKSmS6sl6VFCbfk7ctdhp/W/WHkNQ+yUwRlO3zD7AnjkUl0S84vexqVC1CHMB/ijvgM5fdq3XKetZ7l+EnK9MEjney8RoRALHRjoUPXPUryqq14u8jHemTXO4RY7bVrHftL+zij3ZmBQvPMmkERtUrUX+/+xXCtIMsDlvzCvdpD3CIY1xO/adQvg3xJWwDJ9bPfGUoAbNkyfdkaWA95PCkympbrNCBM7rbN4Z7ETWKmMVALpvXEPJH+XN04hdQTDzakasOEAGq7td9O/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=wLg0/Rak2VAY7YnsSKLV2mHtZrySPSnVlfYLWlcGgG0=; b=TtWO/zdcAisM0vAlSbcnMAp+7XtA/rOaZsrER1b2tjWqcRsCH/uq83O9AJRxCc70CzZtII1hia3fZM97XzLhz+E7XneVjcpTWQR2PnNaZrRROl/XnITtZ9zlpSHe4JGDDr3soibFHcVc7Wmlm92SgD18C93/pK3pWhTq3zJphFX9dtStieWiwX7tyNvjN9z5gO8TAbqmVDGzg/YeUUmE+ofHKuOrTJJCWGdXRnNUGsPixryrIFN0wdEcLducvaz/6J1XIO5ZuM2x08vHTx+rxu3PCLKmQwkD7zpHGM8Cfg1EHjJF2CFb6qZYvTyn3wgJkAiZ8zpUp/CGVNN0CKmPeg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wLg0/Rak2VAY7YnsSKLV2mHtZrySPSnVlfYLWlcGgG0=; b=RbrN1nn0vmxt0owrnOYQCb62agosDy5bSXIlnGP8y+AKkC/jirETi/YfUlGnA30++BknSJVBwGxEwyJZNvuUWK8TD/IXW1+XcsxOJILD5fcNWmcGHRyUds/LbhAV1vTcfFV7I5/PU9VMNiZthOceuy9Kw9qLfWNzjwaUkdO8SxkBXWFw9UpJRpKuBVwdvVvRrL0NVkr7+7GfKOTkS5ylhSy4FzFNdmQAzXOGyvffUrqgS4IiGbW2TaGsr1+E7ImYYtEQOgV0jhurC+B/xkMjQ2lxyPCVnfv0rLl1ILNTlNivtounUFEVbhUI4S1q27nRwyYlnWLD2XfA1y0A6MxEbw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) by VI0PR04MB10231.eurprd04.prod.outlook.com (2603:10a6:800:23f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.17; Fri, 15 Nov 2024 10:38:33 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::5e22:869c:33c:9654]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::5e22:869c:33c:9654%4]) with mapi id 15.20.8158.017; Fri, 15 Nov 2024 10:38:33 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Iulia Tanasescu Subject: [PATCH BlueZ 0/6] bass: Rework Scan Delegator Date: Fri, 15 Nov 2024 12:38:18 +0200 Message-ID: <20241115103825.19761-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: AM0PR02CA0198.eurprd02.prod.outlook.com (2603:10a6:20b:28e::35) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) 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: AS8PR04MB8898:EE_|VI0PR04MB10231:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d666168-6da1-4fc1-b499-08dd0561a779 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: Xk8qnbkI7VOE8zMM9VllbGhBg/nAop2B9/xMwdmtiMbui5/5omzxexto+SnGHE69cuImfJXAGZL4/MXF3sC0arFqJnLC6LqBl+YalPUzhS1sBG8rqqn/SIcJcio1VzBghTMf15803xySrt0TVohD4CnQZ3yxdnUi7P5SPX4/9VkUjp1MP94nwGwvqibvjlqi7zbF72E65vwAEXprdrN5XjI2C8eyJp4L8TVEfBgI0OY3Qn9pkCStKGwohNRpwAtQ3DZ1qT6UovkPw7O2ob8NnzMNWTXpqQeZ2hbmAlagOPHpxmPeq7iNQe/HKlvT1pXfarxW09CtcawTWN+vj7U+iBuhyB1I1vU+QS2wXxhgAqJ1mfwP6SKpeSWj4/o+pVl0WqLFycHenpjZPSuuiuwq96NDyhoiVr9IMRSIQ4kJHjeajsaBjBpCGQIWcPaaoXVYquBKcdGfdSQTZGjnl3mr4sbjBRjcFC68VLQLcuhrc4NCi1Ck8EaBlS+bJC33ZthSZr+YyvscssBhkmCc5hkGflUIqrlfEVeQhsTXy3gtNLO25vfK/joSDA9/1fUo1KZRq9jjvr1i56PzThtTLNr3OO4gKdUMD3c9xKvOr9VdIn5kQxKGcry5YCwuXdS1O4X7/BxFEfnPw+2sfiV0MZdadZyEhnSZfF5Z2wbxlSmhdMSxTKUIDE6VLaXVSg/+AjyayDpXqVK1YGk29YrwIy+z83Zyvq9s4mj+EdiMr66usbeMni/zRP5h8CrFvMdF8J1CvHsLlWcRcBVpsiP9jDZiv59RCUVnyeX3L3ggO6p2lEcBwyuVHohPNEYeE5kfmGBZ5uKCK3RmiqhVXUzFxGGLGGR5fymD62KDOq8T/XEAqd8ZsLT5pq1cRrqEn0X7Y09RgGCcBS16P+rErjUo6pvrzPjMqXvoeofKNNHg/DuZVxwFgOc3bReOS4WmldG1ecn5pssDG/g66utWmEUxowLv92YBIpPmCQk4Y56eD9CLDoiSIatDruiShfbcodBLWakYxfNepbW+lVbxCSCZn7JcoF2cGK+D38k5c79EqI3HdgBLZShvnets/CxBC7aICG8XAn0IP4PIadfXIgwllfeBCMHOMctOy/oy+ZT2+FozpeXwlooA3SxhU6KQTF8f4Ba+SXrUXxhVtcmzS/MsrSSH3DjYYuFpcvLPms2qtWRnF2uj+OEXl1EcENUkaIYCZbHz/TfSSg0gpVXxMD3Stx3sTDN8HCN0bewu4sWcFWatGuPAuCmn/eEF44Z3TohkspqJJ7zhGWjdTI5AwML1k1osDvaJ4qpSi9tWL/Adh9S0Bj9bZ5nnTqszGODrFmPVRv0n X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8898.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fTuEAHgZrG9+9409JLTeGjMSXe93hlM6JsORqQdTAzCvjS0r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plsgLHHPyYumYunYfZoDRNdnuU8P8AqAaCWI4oW3c/W7/fgYT/DYtXl6J3zTXqyf8a+cbLXQwsZNWGZBODKl5Mp4+Iji4Oq0RiZi0VDyIR4lIOVsm8RqBTKFKKtyQ/dwKycPl3vRUyEbsrSETDrNVgb5x7tYHiHhjURYe4Pws3yGXTPt6KJghb4q5B+0FOyX4Eb4HvqPuSNurNHBqXSmlslyufG56W7Oq5qr/1QlbvWDqcFT+CclC9/R/yWBwmxxfNxY7Ldbzf7MaMwz2SljkcFClwnezTaqBDqixEMM2JElCCkPSViqM6reeBgHiYh1NKfK363wKRKjTfC3prTrvnJpLZci1kdMrpMpK2VMd8h2h8A/rldBU3zXKm/KLaT8DdSJQBC+tWrcaHnIFAN8MNtrsd+xAEBB0fFGxDukKjiuFwMKSMTirY3u2Xg2DyNmxGipezP8FkIX5lPw5xnTs+kuN3do20/qbiY4dyjhVW+EhQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d666168-6da1-4fc1-b499-08dd0561a779 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2024 10:38:33.7363 (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: pYBCrz2NfsI6dYvD3vV+E8babCGmq+HI2RotAQto/8h4gQaXWyPbfrDaIZOgh1Y3D1VguJt/tnpyr1cvTlsKyA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10231 This patch reworks the Scan Delegator implementation in BASS, to manage BAP streams internally and leave BAP to just handle streams created by autonomous Broadcast Sink. Thus, this also removes long-lived PA sync support from BAP and also the pa idle timer, since kernel support has been added to order PA/BIG sync requests. Iulia Tanasescu (6): bap: Rework parse_base bap: Make default PA sync QoS public bap: Add helpers to convert iso_qos to/from bap_qos bass: Rework Scan Delegator to handle BAP streams bap: Remove API to probe device from BASS bap: Remove PA idle timer logic profiles/audio/bap.c | 559 +++++++++++++----------------------------- profiles/audio/bap.h | 16 +- profiles/audio/bass.c | 264 +++++++++++++++++--- profiles/audio/bass.h | 4 +- 4 files changed, 418 insertions(+), 425 deletions(-) base-commit: 95e89cd2e4f84773dc78415bf33758a7456827c9