From patchwork Wed Nov 20 10:26:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iulia Tanasescu X-Patchwork-Id: 13880987 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2060.outbound.protection.outlook.com [40.107.20.60]) (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 8D2A219E83C for ; Wed, 20 Nov 2024 10:26:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732098396; cv=fail; b=RpUZg4K3atEvyIz/xSWUH/+iDOBFtGVH8XEN2j48V7tFieswqqNigLQ2jogVVcTlwHI1l+r43lcdUzWhzVpGH5R0LFh/fcuFbfIbyK109zfDZfdV6HzFJeZVZCpOCqm/Nb9VKqQEKAeTEQtME6xqoPgmtYBvv++8xgsuzW7bCnc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732098396; c=relaxed/simple; bh=e9A8adVogRYKLHOQg0wyMTii24iCAiTQAfzmt79cGo8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=TXAO4v6HUza63XK7E3JBwz7NUOlgQf4uD9wgRgis0BqzsqUrn0CN83JwRNJEgCQq0GA/J20EgdyGn1PVGt2y0AYoR7M151QkWlr563AyJ10kwBqi2Z6n6CfuQSIJfztpe6kCsaYfdGbbxbcvC3H/P2lUnHglaUn/0tQh5yOaHsE= 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=kwNl6F1Z; arc=fail smtp.client-ip=40.107.20.60 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="kwNl6F1Z" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=j8Qo2V+FikhB942cv1Ch+uZgu3Isx+gyZUbGoumayyTcKxrW5sF+Us6NWAmKEP2CGNlCTX08JJ/RojCX1Sl0971EDF6RDKauGWL+rql/PLP2GhF5DILVjptxYV2H82WkfF2Qxzkz9R7fddIHumLKxVqNCJ3qTcRdgiAtyRvuagfqWALDFxI6/w3sYukLlEVGuIRnzntz8O9P5Bwv8V1J7u4nYtetIMEH8+76UMaqQNFxaZKjS00RqsjB4453ncx5zYwDsk9Lka4IHU5CHI2Eb6+VowVJ2qkV38WLGhndDk7+yc0fkxYJgkJ5UH7QOFSDXWLsmyZIisN+Lp/A+fp2GQ== 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=2Mn5AcMQDTHgX25uYCRPEByq6rHWfTMpfjqIiC0wzcs=; b=IJqdr0zFoA/8bAbvEZrGH8YoXuFr3vyFdgMnuCyNwEqhif0L/0roXgxVTawjEPtPcUYgT3/qsOGXzSqP8ZnnrKN8V5ou6oiXHrii9Em6IgxNONUu0zLwrvihfqOEmCC9k0o4anK/ricXgVhqqIZU0pireSoBvBLuZl0SocpcaviIvA0SiX4+6kO4mVb0Ufrm8FsxNozoDpMtDOfkRDfMAV5PWCYiNxPEOym/N00W2Ox/Er00fZOJzvkuW4/mqr/aLbic6Vjlpt1V2FAnmrqi6yJy2izcwA6BUJvWaq6fmeLj/97wdyTVQ4cVOuEl0t4gmLDH0q1Em0OboakuM3gASw== 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=2Mn5AcMQDTHgX25uYCRPEByq6rHWfTMpfjqIiC0wzcs=; b=kwNl6F1ZGdtXmqB0f0v13iVW7HNVvl10THBpWW7646Vmh4cRuNOtvErBXh8y72mCax3qszau27VLmwrtnuBc9caQG9AWfenk/DymervI0peRl/pqVNnS9O4GNvFoz2UkzfE72Ysf6U1jkCbCv2nj5yFwNF2xAundr4pqTZF1tKKMmtYtkDMMfrpR+XDFe30CEg1FV/9YT6h6Gbph5NU8piCKF+AXivljDx6rIfzm4eLIwqRTo00vANOIROtoYnY9APYshVpm4ZaTNdpP/6XuLJFyFW3+jnp5Qx8x+aR9wpl7lVbonPRlGs/uy630zZeF1TNEbTRVaoQIQmYFnCTpBA== 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 VI0PR04MB10389.eurprd04.prod.outlook.com (2603:10a6:800:217::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Wed, 20 Nov 2024 10:26:31 +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.023; Wed, 20 Nov 2024 10:26:31 +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 v2 6/7] bap: Remove API to probe device from BASS Date: Wed, 20 Nov 2024 12:26:00 +0200 Message-ID: <20241120102601.38415-7-iulia.tanasescu@nxp.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241120102601.38415-1-iulia.tanasescu@nxp.com> References: <20241120102601.38415-1-iulia.tanasescu@nxp.com> X-ClientProxiedBy: AS4P189CA0030.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5db::17) 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_|VI0PR04MB10389:EE_ X-MS-Office365-Filtering-Correlation-Id: 093bd02a-ef2c-45d0-0586-08dd094dccf3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: sA+0TuoJKqVWdoctDOTVg4NWzoIeUFe0rEY64oZ0w8FOauoH6vQZoABt6CD0cjAMWLYQzJpcD1dOVzwi1towNuD5adLr5DToGBXR7nQlHebwHGCxXuqFSLfG0K2KyTbrc7srMQMwMo2ux7mNhs+zVrvxIUtIOQwBOEg3Kk6shkgIF/9ZxzBTTsbC+iP2oCCdpO2OPrR2Cr7+SjmPWwqKC/SnVbwnZQ3p/1A81DLK1ccQQ8vwpxLnjjp4Q5F0cYKXp/JnfxVKXC2gdIM2ogXSyx0yI9Gca2N1/RurFlSSNEnS0xmG7KNUGBAGlwZxVgXirvbeXf4ieJTOHXemK9gXa9HzoD9WZ3fN51gYVknP3J6+uz9PWLOlShdpsKKye4Lkg5MsRols1w5S5jpbdAdcgoePM0wXrKxmzZfTRY96fpt56GdR5OHs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JT7fkdLd/SRqv/OkaWtL5LY24dbVDIbMxI1O9O1I22aT8X5cj6fURnJfHH1yvI/X7rILOOqiSjldwajG/GcVjR0L++aytY68HY4zj4sgWIpmaC8T0MzGZXvh+26Ow6k3dG5OLbkyll1wOuVWghMkODIrjBo0bZ7SugKsQEJUzhKLn/XxZKApo41qq80EltHdpTUwh2rhvyeCVJXHWriyHji6Ryq/3VuUKDoQTeS7bfpG17885sVazy4znF78dpM/ma0nglwBLLlgZ2qkZqXmTVSAB111eocovFGOI1kMxrl99vDk61uuqcP0E2F5O4kv4sa4mzmG7iB6nkrCXGafC8P8o8tMRNobPvFb5V0kxVwN6A5kDA/9akI08zRQfupDKa6wEB1u/swtnnLVz42iXdDY1ZFqZQ5HG/clB3+gXHtmvVuBRu3Up92u4BZ5EqOqYuugmljKyRQI2kKeZdDXcIAP6SHb1EoD4irDeTqTaL7ovXNXLDkVN05tYaUHSbOKPPuRxB5laeABOLuVmnz7pFYq7lujNVvOqIrdUtIvGTawoi78y/qZVuW+82hNZ33WJWE5kGMoctY84nTf5l0SgN7H9BKUA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 093bd02a-ef2c-45d0-0586-08dd094dccf3 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8898.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2024 10:26:31.3212 (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: K5GC9zHNNXGuldHN8YgfjmP1kqzI/ll2HUNa4ssdUp1EJxZ+e8VVLa2rMFmVzJ8TmzoEKmk+qq60vU639CFEhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10389 This removes the BAP API to probe broadcasters from BASS, since BASS is now directly adding the Broadcast Audio Announcement Service UUID to the broadcaster device, and it will internally handle the probe. --- profiles/audio/bap.c | 16 ---------------- profiles/audio/bap.h | 1 - 2 files changed, 17 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index a1cb3aeae..c1111b625 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -3112,22 +3112,6 @@ static bool match_bap_adapter(const void *data, const void *match_data) return adapter->adapter == match_data; } -void bap_scan_delegator_probe(struct btd_device *device) -{ - struct bap_data *data; - - /* Create BAP session for the Broadcaster device */ - data = bap_data_new(device); - data->device = device; - - bap_data_add(data); - - /* Add Broadcast Audio Announcement Service UUID - * to device and probe service. - */ - btd_device_add_uuid(device, BCAAS_UUID_STR); -} - static int bap_bcast_probe(struct btd_service *service) { struct btd_device *device = btd_service_get_device(service); diff --git a/profiles/audio/bap.h b/profiles/audio/bap.h index fcc443dbb..522072340 100644 --- a/profiles/audio/bap.h +++ b/profiles/audio/bap.h @@ -10,7 +10,6 @@ extern struct bt_iso_qos bap_sink_pa_qos; struct bt_bap *bap_get_session(struct btd_device *device); -void bap_scan_delegator_probe(struct btd_device *device); void bap_iso_qos_to_bap_qos(struct bt_iso_qos *iso_qos, struct bt_bap_qos *bap_qos);