public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] [PATCH] Fix to enable bluez SCO USB urbs.
@ 2004-02-27 23:57 James Courtier-Dutton
  2004-02-28 12:52 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: James Courtier-Dutton @ 2004-02-27 23:57 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

Here is a patch for /usr/src/linux-2.6.3/drivers/bluetooth/hci_usb.c

Without the interval set, the latest kernel 2.6.3 usb code will reject 
the usb_submit_urb().

Without this patch no ISOC urbs are submitted, and thus no SCO data is 
passed.

The proper fix would really be to only enable these when a SCO 
connection is actually open.

Cheers
James

[-- Attachment #2: sco-patch.diff --]
[-- Type: text/x-patch, Size: 657 bytes --]

--- hci_usb.c.org	2004-02-26 20:36:06.000000000 +0000
+++ hci_usb.c	2004-02-27 23:49:08.273537136 +0000
@@ -263,6 +263,7 @@
 
 	urb->context  = husb;
 	urb->dev      = husb->udev;
+	urb->interval = husb->isoc_in_ep->desc.bInterval;
 	urb->pipe     = usb_rcvisocpipe(husb->udev, husb->isoc_in_ep->desc.bEndpointAddress);
 	urb->complete = hci_usb_rx_complete;
 
@@ -490,6 +491,7 @@
 	
 	urb->context  = husb;
 	urb->dev      = husb->udev;
+	urb->interval = husb->isoc_out_ep->desc.bInterval;
 	urb->pipe     = usb_sndisocpipe(husb->udev, husb->isoc_out_ep->desc.bEndpointAddress);
 	urb->complete = hci_usb_tx_complete;
 	urb->transfer_flags = URB_ISO_ASAP;

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

end of thread, other threads:[~2004-02-29  2:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 23:57 [Bluez-devel] [PATCH] Fix to enable bluez SCO USB urbs James Courtier-Dutton
2004-02-28 12:52 ` Marcel Holtmann
2004-02-29  2:40   ` James Courtier-Dutton
2004-02-29  2:39     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox