diff mbox series

[BlueZ,2/6] bap: Make default PA sync QoS public

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

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

Iulia Tanasescu Nov. 15, 2024, 10:38 a.m. UTC
This make the default BAP QoS parameters for PA Create Sync public,
to be available to other plugins that might need to listen for
Broadcasters (like BASS).
---
 profiles/audio/bap.c | 2 +-
 profiles/audio/bap.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 98b28f15a..dbea59776 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -150,7 +150,7 @@  static struct queue *adapters;
  * The full QOS is populated at the time the user selects and endpoint and
  * configures it using SetConfiguration.
  */
-static struct bt_iso_qos bap_sink_pa_qos = {
+struct bt_iso_qos bap_sink_pa_qos = {
 	.bcast = {
 		.options		= 0x00,
 		.skip			= 0x0000,
diff --git a/profiles/audio/bap.h b/profiles/audio/bap.h
index cf2593db8..98bea558c 100644
--- a/profiles/audio/bap.h
+++ b/profiles/audio/bap.h
@@ -11,6 +11,8 @@  typedef void (*bap_stream_cb_t)(uint8_t bis, uint8_t sgrp,
 		struct iovec *caps, struct iovec *meta,
 		struct bt_iso_qos *qos, void *user_data);
 
+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);