All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/5] To add support for Metadata, CID, VID
@ 2022-10-29 17:04 Abhay Maheta
  2022-10-29 17:04 ` [PATCH BlueZ 1/5] shared/bap: Fix handling for Company ID and Vendor Codec ID Abhay Maheta
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Abhay Maheta @ 2022-10-29 17:04 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Abhay Maheta

This series of patches adds support for Metadata, Company ID and
Vendor Codec ID during Endpoint Registration for LE Audio.

Abhay Maheta (1):
  shared/bap: Fix handling for Company ID and Vendor Codec ID

Maheta, Abhay (4):
  shared/bap: Add support to set stream metadata
  profiles: Add Support for Metadata, CID and VID
  media-api: Add CompanyID, VendorCodecID, Metadata
  client/player: Add support for Metadata, CID, VID

 client/player.c            | 185 +++++++++++++++++++++++++++++++++++--
 doc/media-api.txt          |  18 ++++
 profiles/audio/bap.c       |  20 ++++
 profiles/audio/media.c     | 100 ++++++++++++++++++--
 profiles/audio/transport.c |   4 +-
 src/shared/bap.c           |  25 ++++-
 src/shared/bap.h           |   4 +-
 7 files changed, 331 insertions(+), 25 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH BlueZ v2 1/6] shared/bap: Fix handling for Company ID and Vendor Codec ID
@ 2022-12-29 12:28 Abhay Maheta
  2022-12-29 14:17 ` To add support for Metadata, CID, VID bluez.test.bot
  0 siblings, 1 reply; 13+ messages in thread
From: Abhay Maheta @ 2022-12-29 12:28 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Abhay Maheta

This adds fixes for handing for Company ID and Vendor Codec ID
while adding PAC record to database and responding to Attribute
Read Request for Sink/Source PAC Characteristics.
---
 src/shared/bap.c | 5 +++++
 src/shared/bap.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 2919f243f..0cafb75e6 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -344,6 +344,8 @@ static void pac_foreach(void *data, void *user_data)
 
 	p = util_iov_push(iov, sizeof(*p));
 	p->codec.id = pac->codec.id;
+	p->codec.cid = pac->codec.cid;
+	p->codec.vid = pac->codec.vid;
 
 	if (pac->data) {
 		p->cc_len = pac->data->iov_len;
@@ -2383,6 +2385,9 @@ struct bt_bap_pac *bt_bap_add_vendor_pac(struct gatt_db *db,
 	if (!bdb)
 		return NULL;
 
+	if ((id != 0xff) && ((cid != 0U)  || (vid != 0U)))
+		return NULL;
+
 	codec.id = id;
 	codec.cid = cid;
 	codec.vid = vid;
diff --git a/src/shared/bap.h b/src/shared/bap.h
index 3558d0445..47a15636c 100644
--- a/src/shared/bap.h
+++ b/src/shared/bap.h
@@ -39,8 +39,8 @@ struct bt_bap_stream;
 
 struct bt_bap_codec {
 	uint8_t  id;
-	uint16_t vid;
 	uint16_t cid;
+	uint16_t vid;
 } __packed;
 
 struct bt_ltv {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH BlueZ v3 1/6] shared/bap: Fix handling for Company ID and Vendor Codec ID
@ 2022-12-29 15:52 Abhay Maheta
  2022-12-29 17:31 ` To add support for Metadata, CID, VID bluez.test.bot
  0 siblings, 1 reply; 13+ messages in thread
From: Abhay Maheta @ 2022-12-29 15:52 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Abhay Maheta, Abhay Maheta

This adds fixes for handing for Company ID and Vendor Codec ID
while adding PAC record to database and responding to Attribute
Read Request for Sink/Source PAC Characteristics.
---
 src/shared/bap.c | 5 +++++
 src/shared/bap.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/shared/bap.c b/src/shared/bap.c
index 2919f243f..0cafb75e6 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -344,6 +344,8 @@ static void pac_foreach(void *data, void *user_data)
 
 	p = util_iov_push(iov, sizeof(*p));
 	p->codec.id = pac->codec.id;
+	p->codec.cid = pac->codec.cid;
+	p->codec.vid = pac->codec.vid;
 
 	if (pac->data) {
 		p->cc_len = pac->data->iov_len;
@@ -2383,6 +2385,9 @@ struct bt_bap_pac *bt_bap_add_vendor_pac(struct gatt_db *db,
 	if (!bdb)
 		return NULL;
 
+	if ((id != 0xff) && ((cid != 0U)  || (vid != 0U)))
+		return NULL;
+
 	codec.id = id;
 	codec.cid = cid;
 	codec.vid = vid;
diff --git a/src/shared/bap.h b/src/shared/bap.h
index 3558d0445..47a15636c 100644
--- a/src/shared/bap.h
+++ b/src/shared/bap.h
@@ -39,8 +39,8 @@ struct bt_bap_stream;
 
 struct bt_bap_codec {
 	uint8_t  id;
-	uint16_t vid;
 	uint16_t cid;
+	uint16_t vid;
 } __packed;
 
 struct bt_ltv {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-12-29 17:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-29 17:04 [PATCH BlueZ 0/5] To add support for Metadata, CID, VID Abhay Maheta
2022-10-29 17:04 ` [PATCH BlueZ 1/5] shared/bap: Fix handling for Company ID and Vendor Codec ID Abhay Maheta
2022-10-29 17:42   ` To add support for Metadata, CID, VID bluez.test.bot
2022-10-31 20:48   ` [PATCH BlueZ 1/5] shared/bap: Fix handling for Company ID and Vendor Codec ID Luiz Augusto von Dentz
2022-10-29 17:04 ` [PATCH BlueZ 2/5] shared/bap: Add support to set stream metadata Abhay Maheta
2022-10-31 21:13   ` Luiz Augusto von Dentz
2022-10-29 17:04 ` [PATCH BlueZ 3/5] profiles: Add Support for Metadata, CID and VID Abhay Maheta
2022-10-29 17:04 ` [PATCH BlueZ 4/5] media-api: Add CompanyID, VendorCodecID, Metadata Abhay Maheta
2022-10-31 20:57   ` Luiz Augusto von Dentz
2022-10-29 17:04 ` [PATCH BlueZ 5/5] client/player: Add support for Metadata, CID, VID Abhay Maheta
2022-10-31 21:29   ` Luiz Augusto von Dentz
  -- strict thread matches above, loose matches on Subject: below --
2022-12-29 12:28 [PATCH BlueZ v2 1/6] shared/bap: Fix handling for Company ID and Vendor Codec ID Abhay Maheta
2022-12-29 14:17 ` To add support for Metadata, CID, VID bluez.test.bot
2022-12-29 15:52 [PATCH BlueZ v3 1/6] shared/bap: Fix handling for Company ID and Vendor Codec ID Abhay Maheta
2022-12-29 17:31 ` To add support for Metadata, CID, VID bluez.test.bot

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.