Linux bluetooth development
 help / color / mirror / Atom feed
From: Iulia Tanasescu <iulia.tanasescu@nxp.com>
To: linux-bluetooth@vger.kernel.org
Cc: Silviu Florian Barbulescu <silviu.barbulescu@nxp.com>
Subject: [PATCH BlueZ 2/6] lib: Add macro definitions for BAP broadcast source support
Date: Tue, 23 May 2023 17:35:00 +0300	[thread overview]
Message-ID: <20230523143504.3319-3-iulia.tanasescu@nxp.com> (raw)
In-Reply-To: <20230523143504.3319-1-iulia.tanasescu@nxp.com>

From: Silviu Florian Barbulescu <silviu.barbulescu@nxp.com>

This adds macro definitions for BAP broadcast source support.

---
 lib/bluetooth.h | 9 +++++++++
 lib/mgmt.h      | 2 ++
 lib/uuid.h      | 3 +++
 3 files changed, 14 insertions(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index b4bb6748f..ca4b0115b 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -150,6 +150,9 @@ struct bt_voice {
 #define BT_ISO_QOS_BIG_UNSET	0xff
 #define BT_ISO_QOS_BIS_UNSET	0xff
 
+#define BT_ISO_QOS_GROUP_UNSET	0xff
+#define BT_ISO_QOS_STREAM_UNSET	0xff
+
 struct bt_iso_io_qos {
 	uint32_t interval;
 	uint16_t latency;
@@ -186,6 +189,12 @@ struct bt_iso_bcast_qos {
 	uint16_t timeout;
 };
 
+#define BASE_MAX_LENGTH 248 /* (HCI_MAX_PER_AD_LENGTH - EIR_SERVICE_DATA_LENGTH) */
+struct bt_iso_base {
+	uint8_t base_len;
+	uint8_t base[BASE_MAX_LENGTH];
+};
+
 struct bt_iso_qos {
 	union {
 		struct bt_iso_ucast_qos ucast;
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 59273c85a..c3c905232 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -102,6 +102,8 @@ struct mgmt_rp_read_index_list {
 #define MGMT_SETTING_WIDEBAND_SPEECH	BIT(17)
 #define MGMT_SETTING_CIS_CENTRAL	BIT(18)
 #define MGMT_SETTING_CIS_PERIPHERAL	BIT(19)
+#define MGMT_SETTING_ISO_BROADCASTER	BIT(20)
+#define MGMT_SETTING_ISO_SYNC_RECEIVER	BIT(21)
 
 #define MGMT_OP_READ_INFO		0x0004
 struct mgmt_rp_read_info {
diff --git a/lib/uuid.h b/lib/uuid.h
index ddde4bfa3..8f2e23681 100644
--- a/lib/uuid.h
+++ b/lib/uuid.h
@@ -157,6 +157,9 @@ extern "C" {
 #define PAC_SOURCE_UUID		"00002bcb-0000-1000-8000-00805f9b34fb"
 #define PAC_SOURCE_LOC_CHRC_UUID			0x2bcc
 
+#define BROADCAST_AUDIO_ANNOUNCEMENT_SERVICE		0x1852
+#define BROADCAST_AUDIO_ANNOUNCEMENT_SERVICE_UUID	"00001852-0000-1000-8000-00805f9b34fb"
+
 #define PAC_CONTEXT					0x2bcd
 #define PAC_SUPPORTED_CONTEXT				0x2bce
 
-- 
2.34.1


  parent reply	other threads:[~2023-05-23 14:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23 14:34 [PATCH BlueZ 0/6] Add initial support for BAP broadcast source Iulia Tanasescu
2023-05-23 14:34 ` [PATCH BlueZ 1/6] doc: Update Docs " Iulia Tanasescu
2023-05-23 15:14   ` Add initial support " bluez.test.bot
2023-05-23 14:35 ` Iulia Tanasescu [this message]
2023-05-23 14:35 ` [PATCH BlueZ 3/6] monitor: Check for ISO broadcast support in controller Iulia Tanasescu
2023-05-23 14:35 ` [PATCH BlueZ 4/6] btio: Add support for setsockopt (BT_IO_OPT_BASE) Iulia Tanasescu
2023-05-23 14:35 ` [PATCH BlueZ 5/6] client/player: Update bluetoothctl with support for broadcast source Iulia Tanasescu
2023-05-23 16:31   ` Luiz Augusto von Dentz
2023-05-24  8:38     ` Silviu Florian Barbulescu
2023-05-23 14:35 ` [PATCH BlueZ 6/6] bap: Add initial support for BAP " Iulia Tanasescu
2023-05-23 16:46   ` Luiz Augusto von Dentz
2023-05-24 11:44     ` Silviu Florian Barbulescu
2023-05-26 22:10 ` [PATCH BlueZ 0/6] " patchwork-bot+bluetooth
2023-05-26 22:40 ` patchwork-bot+bluetooth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230523143504.3319-3-iulia.tanasescu@nxp.com \
    --to=iulia.tanasescu@nxp.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=silviu.barbulescu@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox