From: Silviu Florian Barbulescu <silviu.barbulescu@nxp.com>
To: linux-bluetooth@vger.kernel.org
Cc: Silviu Florian Barbulescu <silviu.barbulescu@nxp.com>
Subject: [PATCH v2 2/6] Add macro definitions for BAP broadcast source support
Date: Thu, 25 May 2023 18:34:48 +0300 [thread overview]
Message-ID: <20230525153452.125789-3-silviu.barbulescu@nxp.com> (raw)
In-Reply-To: <20230525153452.125789-1-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..5cdfedb4b 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 BAA_SERVICE 0x1852
+#define BAA_SERVICE_UUID "00001852-0000-1000-8000-00805f9b34fb"
+
#define PAC_CONTEXT 0x2bcd
#define PAC_SUPPORTED_CONTEXT 0x2bce
--
2.34.1
next prev parent reply other threads:[~2023-05-25 15:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 15:34 [PATCH v2 0/6] Add initial support for BAP broadcast source Silviu Florian Barbulescu
2023-05-25 15:34 ` [PATCH v2 1/6] Update Docs " Silviu Florian Barbulescu
2023-05-25 18:41 ` Add initial support " bluez.test.bot
2023-05-25 15:34 ` Silviu Florian Barbulescu [this message]
2023-05-25 15:34 ` [PATCH v2 3/6] Check for ISO broadcast support in controller Silviu Florian Barbulescu
2023-05-25 15:34 ` [PATCH v2 4/6] Add support for setsockopt (BT_IO_OPT_BASE) Silviu Florian Barbulescu
2023-05-25 15:34 ` [PATCH v2 5/6] Update bluetoothctl with support for broadcast source Silviu Florian Barbulescu
2023-05-25 17:47 ` Luiz Augusto von Dentz
2023-05-25 15:34 ` [PATCH v2 6/6] Add initial support for BAP " Silviu Florian Barbulescu
2023-05-26 22:10 ` [PATCH v2 0/6] " patchwork-bot+bluetooth
2023-05-26 22:37 ` Luiz Augusto von Dentz
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=20230525153452.125789-3-silviu.barbulescu@nxp.com \
--to=silviu.barbulescu@nxp.com \
--cc=linux-bluetooth@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.