diff mbox series

[v2,2/6] Add macro definitions for BAP broadcast source support

Message ID 20230525153452.125789-3-silviu.barbulescu@nxp.com (mailing list archive)
State Superseded
Headers show
Series Add initial support for BAP broadcast source | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch warning WARNING:LONG_LINE_COMMENT: line length of 83 exceeds 80 columns #121: FILE: lib/bluetooth.h:192: +#define BASE_MAX_LENGTH 248 /* (HCI_MAX_PER_AD_LENGTH - EIR_SERVICE_DATA_LENGTH) */ /github/workspace/src/src/13255384.patch total: 0 errors, 1 warnings, 38 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. /github/workspace/src/src/13255384.patch has style problems, please review. NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Silviu Florian Barbulescu May 25, 2023, 3:34 p.m. UTC
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 mbox series

Patch

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