All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Bluetooth: btusb: MediaTek ISO data transmission support
@ 2024-05-29  6:29 Chris Lu
  2024-05-29  6:29 ` [PATCH v2 1/3] Bluetooth: net: add hci_iso_hdr function for iso data Chris Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Chris Lu @ 2024-05-29  6:29 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg, Luiz Von Dentz
  Cc: Sean Wang, Deren Wu, Aaron Hou, Steve Lee, linux-bluetooth,
	linux-kernel, linux-mediatek, Chris Lu

Since SIG hasn't clearly defined the specification about ISO data over USB
transmission yet, MediaTek adopts a method by adding an additional interrupt
endpoint for ISO data transmission which is different from current way
on Bluetooth upstream driver using existed bulk. Interrupt endpoint has
guaranteed bandwidth, sufficient max data length for LE audio packet and
support error checking. These characteristics are similar to the use of ISO data.

---
Change in v2:
-Fix warning report from bluez.test.bot in btusb.c, align with other
packet type to parsing dlen when getting iso data.
---
Chris Lu (3):
  Bluetooth: net: add hci_iso_hdr function for iso data
  Bluetooth: btmtk: add macro to get/set/clear MediaTek defined flags
  Bluetooth: btusb: mediatek: add MediaTek ISO data transmission
    function

 drivers/bluetooth/btmtk.c   |  35 +++++
 drivers/bluetooth/btmtk.h   |  46 ++++++
 drivers/bluetooth/btusb.c   | 295 +++++++++++++++++++++++++++++++++++-
 include/net/bluetooth/hci.h |   5 +
 4 files changed, 380 insertions(+), 1 deletion(-)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH 1/3] Bluetooth: net: add hci_iso_hdr function for iso data
@ 2024-05-29  3:30 Chris Lu
  2024-05-29  3:56 ` Bluetooth: btusb: MediaTek ISO data transmission support bluez.test.bot
  0 siblings, 1 reply; 12+ messages in thread
From: Chris Lu @ 2024-05-29  3:30 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg, Luiz Von Dentz
  Cc: Sean Wang, Deren Wu, Aaron Hou, Steve Lee, linux-bluetooth,
	linux-kernel, linux-mediatek, Chris Lu

Add function hci_iso_hdr to get skb->data when packet type is ISO
which is similar to other packet type.

Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
 include/net/bluetooth/hci.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index e372a88e8c3f..b9f8f91f6c7f 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -2898,6 +2898,11 @@ static inline struct hci_sco_hdr *hci_sco_hdr(const struct sk_buff *skb)
 	return (struct hci_sco_hdr *) skb->data;
 }
 
+static inline struct hci_iso_hdr *hci_iso_hdr(const struct sk_buff *skb)
+{
+	return (struct hci_iso_hdr *) skb->data;
+}
+
 /* Command opcode pack/unpack */
 #define hci_opcode_pack(ogf, ocf)	((__u16) ((ocf & 0x03ff)|(ogf << 10)))
 #define hci_opcode_ogf(op)		(op >> 10)
-- 
2.18.0


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

end of thread, other threads:[~2024-06-06  3:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-29  6:29 [PATCH v2 0/3] Bluetooth: btusb: MediaTek ISO data transmission support Chris Lu
2024-05-29  6:29 ` [PATCH v2 1/3] Bluetooth: net: add hci_iso_hdr function for iso data Chris Lu
2024-05-29  7:00   ` Bluetooth: btusb: MediaTek ISO data transmission support bluez.test.bot
2024-05-29  6:29 ` [PATCH v2 2/3] Bluetooth: btmtk: add macro to get/set/clear MediaTek defined flags Chris Lu
2024-05-29  6:29 ` [PATCH v2 3/3] Bluetooth: btusb: mediatek: add MediaTek ISO data transmission function Chris Lu
2024-05-29  7:10   ` Paul Menzel
2024-05-29 11:52     ` Chris Lu (陸稚泓)
2024-05-29 15:39   ` Pauli Virtanen
2024-05-29 23:09   ` kernel test robot
2024-06-05 18:06     ` Luiz Augusto von Dentz
2024-06-06  3:01       ` Chris Lu (陸稚泓)
  -- strict thread matches above, loose matches on Subject: below --
2024-05-29  3:30 [PATCH 1/3] Bluetooth: net: add hci_iso_hdr function for iso data Chris Lu
2024-05-29  3:56 ` Bluetooth: btusb: MediaTek ISO data transmission support 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.