diff mbox series

[BlueZ,v2,6/7] bap: Remove API to probe device from BASS

Message ID 20241120102601.38415-7-iulia.tanasescu@nxp.com
State New
Headers show
Series bass: Rework Scan Delegator | expand

Commit Message

Iulia Tanasescu Nov. 20, 2024, 10:26 a.m. UTC
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 mbox series

Patch

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);