Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2590136rdg; Mon, 16 Oct 2023 08:49:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbNha1t4FNZJHCjqBzTv4+k9/q1UihxDsjsUOkkr01te9n5R30afqdHLOH4/wD5+iGlGWs X-Received: by 2002:a17:902:6f02:b0:1c5:de4c:f079 with SMTP id w2-20020a1709026f0200b001c5de4cf079mr22094303plk.33.1697471356540; Mon, 16 Oct 2023 08:49:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697471356; cv=pass; d=google.com; s=arc-20160816; b=lkcormzQKK63n88MzG5bYNlYg5e9eAtdteRGaJTat/De3SgiebB1tmkLmGe4+Jvzhx IycxVPCibEAQtrDifdG3ZKQA0WHcood599C4fE/sq87nhuc75tcmMliPpzKsm+42sMNd fJLAX+xIn0MsjeneVDhlc+S8384k0Ji5ExHxSQbfifkA0OF0NKCr2XGwSzjeQd0JxRPo E6445icfg6mRX0hLR6cLWPfiT1AzdsNEa2befceoAmdpD8jLl7shG8vnLVMeVVdFMuNo K/KZkDlbzgvN1bMD0gPMesfOhwCzj5eXRAlfKKJKdht+cHY56YebwK+7dTu/WRPR3bWp EcqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=KvpuIe5aJ9RVF9G0DwbGSJ2TlVIbdHtoiLU3aVlwy8g=; fh=gOZmdXQWWYi2KI/CDlaL8bHElbVrtxjT8kPXxzTdvp8=; b=gfXf6PTpU6GJ7g1fltKmVnoEce8LFXjArQj5ws5qSGdPJXfwMNJnNkYHdqhXb/tc8K Mwv3vAh3lD8IVGgra8M8sTPERJh0zg9ULK4Qob0W3ttyBreCI5woEQS8/d5YYww6XS8/ 5ufUWZARiI3IXlh3NW5bRkKDILqqi52PP6b09z+mG4iSWp6x2vECtxAl6y9d81DK5E6K yox4QbRcWUxII1IgQ1YPH6p1rwqYoFJZAIRj5urgkvnW+icynTzCtU6ok2FZdP0FZwee FjzYE8ldR45CN5wmYM5gKDASoBdIMKxLMXpwCiTkgb3Ka36wZp1vKMHI907KNAemsrdh 2Q9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=m692f8Bz; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e8-20020a17090301c800b001c9af7debb2si11213159plh.525.2023.10.16.08.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:49:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=m692f8Bz; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 99109804BC27; Mon, 16 Oct 2023 08:49:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233581AbjJPPtL (ORCPT + 99 others); Mon, 16 Oct 2023 11:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232365AbjJPPtL (ORCPT ); Mon, 16 Oct 2023 11:49:11 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2044.outbound.protection.outlook.com [40.107.7.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C895B4 for ; Mon, 16 Oct 2023 08:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KWrlycm1UQWfDJ98dIn5oJt2ekyoQfREvE1Jywix/OoQbDwXETuXq/M94S2OyCd5RfxbQ7/iu2gJ+mbUq42XcnLt7bGy/Y6ZOa9SvK7zG/ii50a+hwpcCRnrvxDeaQVrFoqpVjY2msQ0tDonCnKCDeEdkNNTBB7V5NOH8Gj5VXo5j+hb/y9LKJcPF6amnIe29ICunjpkHhnMIkdvy+vdXKKoljYgAvQIPuHmY0E6HJZMWhMN6l1LZ5laCkhah/eoLV7LAy+ZRDmZyUtAS6jTOyy39eW1aDOLkIYDOh3J63a6cmnhQfYD4PRQAWLxLihyrCiovjVz5+Q/IRuB3t0E9Q== 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=KvpuIe5aJ9RVF9G0DwbGSJ2TlVIbdHtoiLU3aVlwy8g=; b=lv/efXvSysCJdq6cdmRxzsI4/LDpnJl5R2Ku2cDihPbxmGN39qZp4sqohb+Rxh7a5PnX5TBJBC1DMeF+Z3twsrtBNjChjnYq0o+Y3pdIrxmI2yjl3qPZ6fVpKNKSo7+vzfwEti6KEgSX9l+SVRArwgN5CvjBhN2qJNijm8HqWxQ4wqGKGPuwGkWCMlhoRXjklUkj3f58pfSFsqg41wqGZERzVLXsv1qBhclftyTktVUo7qdkFzd5b5aFaU/sclQA7PRq+19sfsfCxw557ZciH46H0vaQNois6vvXpdenG/vF297VsYnnC90N5CY6eh6guSo3c+sbQ68KoTSRDZ02Uw== 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=KvpuIe5aJ9RVF9G0DwbGSJ2TlVIbdHtoiLU3aVlwy8g=; b=m692f8BzobK2v1i3QZCdUw1MPWrxDuP2ccsCvEtXFSFWtu9E6orpRqga6AI9mmS9bKZFpoK76u6qmDVF8BDP24VG2+HQsQK+87lY4/HhWcRzU3QxkuI3BKz02Qxj2GpyI9kO4UAPcIFCHXJ+Cv0BPppQAAeoFkPBFxgbB3fws/M= 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 VE1PR04MB7423.eurprd04.prod.outlook.com (2603:10a6:800:1a0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Mon, 16 Oct 2023 15:49:06 +0000 Received: from AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7763:779b:1a89:47da]) by AS8PR04MB8898.eurprd04.prod.outlook.com ([fe80::7763:779b:1a89:47da%3]) with mapi id 15.20.6863.046; Mon, 16 Oct 2023 15:49:06 +0000 From: Iulia Tanasescu To: linux-bluetooth@vger.kernel.org Cc: claudia.rosu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, luiz.dentz@gmail.com, Iulia Tanasescu Subject: [PATCH BlueZ 0/4] Add Modify Source initial implementation Date: Mon, 16 Oct 2023 18:48:56 +0300 Message-Id: <20231016154900.3094-1-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.39.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR0102CA0105.eurprd01.prod.exchangelabs.com (2603:10a6:803:15::46) To AS8PR04MB8898.eurprd04.prod.outlook.com (2603:10a6:20b:42d::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8898:EE_|VE1PR04MB7423:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f1abc51-f583-4b05-e8c5-08dbce5f6db1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nKuTgsStp4jOV3k0KNoTSRDusrLaVno1o4wpKVMNyaiKXLKDSf8zKk+n/Qlor0ud+nzyCbMv3b7u0EnGwWKNb7qh+PgE3JDQyqIS+pCQBpVO3vYElJXYCEdxvUENl7/Sd204hcCZ8rQVq0okq2hmBJfWxOdJ3SPbc/5Bu1ywCbU82blN1oNrYe2kIQDN+SNIbm1RWwjmUh94RLWSH/BIC3TckYe92d44VNDH+sHpmv6BEysWhMnMsMjJa3Do1TI7vYBJy7ogGZWcHiBZZ9OUBzIs91OKGJSkieou5jUhnLzrvOAZwlgWtcrDnGi9973kdy3gUKKISWCv7N32j8vB3LtKewJ2AvEK0i9X9/4f0ecwn2lAshS8z+FTTl5SNrS7+2U1w8KMpjFplA+hsb7SzYZWwqxPIB5G27AkJ2WZ1hXKuTNIWy37dq0VdNUyoCmCBk143aEFOv6dqp0SuAWM4EMr3bI1wSg5g8NqQna2yboYb/shUS//tMsrXpYrUUtPbQpmAjvBRh+mQvdDQG+v0UVBDlSWoCqprYRmWKo0neACrWctsKqsTBBQbuCONCWl 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:(13230031)(376002)(366004)(136003)(396003)(346002)(39860400002)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(36756003)(66946007)(66556008)(6916009)(316002)(66476007)(86362001)(38100700002)(5660300002)(44832011)(8676002)(8936002)(2906002)(4744005)(41300700001)(6512007)(6666004)(6506007)(4326008)(2616005)(26005)(1076003)(83380400001)(6486002)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?I9blhaTVKRSPO4Chzp7k0VJtfllaC/Pw+U+AKpZ6GTvXCqGIwTBxFO5sBVwu?= =?us-ascii?Q?vAyUyUI1aAAyxSXWPQcRXMkc7YXif5puNpR83fuEyfhJsMtSQDYH+IdEzCxk?= =?us-ascii?Q?X9h/JNjLIvA7ap9AnEMd3j7xLnt8wVo3GhBVrejc62doQYL0LsaSq0xCjQcr?= =?us-ascii?Q?UIQyeNzDy7yowpt4/VMkmZWfLs8E9tKWB9pVw/5Ft1KmQ6Z2jNmW62xpl4HF?= =?us-ascii?Q?Bep3wVKbDXLhrDsur+r147RGHW1BYmuPIPAQov1LwXXPNX3g0yOcPdhHjEtM?= =?us-ascii?Q?cPIkQ4g+6y1dd1jx0LAqSselQ4qbPR/M9nEI1vF+Y1Gnza/XASfsnyJL0NSS?= =?us-ascii?Q?sGBeOBWb041XncDLx8h47HusxM+s/BcDqJPJnc/t/azLcphdmVHcU6Rgq6IR?= =?us-ascii?Q?QyBio0sGMsXP4w6w96xJUjIrs3X/6wWh/vbBJPIbHPmBvSihO+qxo6qDp470?= =?us-ascii?Q?QtKtbj02nMpWFUYRTvl/hOv+u7FOYrAjo56qzqf9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+lhDAS0sWdPTiqVLP3roj2gcDV30mQmSRczHBtzZCBg8A6gI/ZXkzKEuj2e?= =?us-ascii?Q?5AYcx7ybRpBENbmHlsV2apTaEZTiwXZ3BldGZ1HhisWWR3AXf4X9sQK5IjtT?= =?us-ascii?Q?Mc5HPNK/6zaV+91yq5HuuS+ssorEky4EB7qF8xD48PXHPImVQsdLHxquzlDq?= =?us-ascii?Q?Fp2pyScMR0QFF4BH86CbhJ+33ABPvrDyJI2CVtmdSwN7ebqDHBFKklLig5MK?= =?us-ascii?Q?Qg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f1abc51-f583-4b05-e8c5-08dbce5f6db1 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 15:49:06.1414 (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: KjU1Z9OzepzPxXfo1Xi+7Vu3urn1fBbNN0/02GaI4tSMrKCAv+w+qMDVtkV9iK3ZR3K1YJoZSfOkNMZcuJ1cOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7423 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 08:49:12 -0700 (PDT) This patch implements a BASS fix for adding watches for closed channels, adds btio support for binding a PA sync channel to a number of BISes and adds an initial implementation for the BASS Modify Source procedure. This patch series depends on the kernel support added by Bluetooth: ISO: Allow binding a PA sync socket Iulia Tanasescu (4): btio: Handle closed channel in server_cb shared/bass: Handle G_IO_HUP on io channels btio: Allow binding a bcast listener before accept shared/bass: Add Modify Source initial implementation btio/btio.c | 54 ++++++- btio/btio.h | 2 +- profiles/audio/bap.c | 2 +- src/shared/bass.c | 333 ++++++++++++++++++++++++++++++++++++++++--- src/shared/bass.h | 4 + 5 files changed, 371 insertions(+), 24 deletions(-) base-commit: e347792f41a8ab2cf4f789b6544a4f8ec8464a53 -- 2.39.2