diff mbox series

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

Message ID 20241115103825.19761-6-iulia.tanasescu@nxp.com (mailing list archive)
State New
Headers show
Series bass: Rework Scan Delegator | expand

Commit Message

Iulia Tanasescu Nov. 15, 2024, 10:38 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 6e6d68b57..beab85cff 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -3243,22 +3243,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 ab35a3775..d91cada45 100644
--- a/profiles/audio/bap.h
+++ b/profiles/audio/bap.h
@@ -14,7 +14,6 @@  typedef void (*bap_stream_cb_t)(uint8_t bis, uint8_t sgrp,
 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);
 
 bool parse_base(struct bt_iso_base *base, struct bt_iso_qos *qos,
 		util_debug_func_t func, bap_stream_cb_t handler,