aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorBing Zhao <bzhao@marvell.com>2011-12-20 21:19:00 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-20 23:16:28 -0500
commitfa0fb93f2ac308a76fa64eb57c18511dadf97089 (patch)
tree6b44034cf6af4ed9559701f91679f332ee3a710a /drivers/bluetooth
parent030013d8585bfc9479bb367bf771d96ef8e289a4 (diff)
Bluetooth: btusb: fix bInterval for high/super speed isochronous endpoints
For high-speed/super-speed isochronous endpoints, the bInterval value is used as exponent, 2^(bInterval-1). Luckily we have usb_fill_int_urb() function that handles it correctly. So we just call this function to fill in the RX URB. Cc: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Bing Zhao <bzhao@marvell.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btusb.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index ea5ad1cbbd3d..a67c6db73354 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -508,15 +508,10 @@ static int btusb_submit_isoc_urb(struct hci_dev *hdev, gfp_t mem_flags)
508 508
509 pipe = usb_rcvisocpipe(data->udev, data->isoc_rx_ep->bEndpointAddress); 509 pipe = usb_rcvisocpipe(data->udev, data->isoc_rx_ep->bEndpointAddress);
510 510
511 urb->dev = data->udev; 511 usb_fill_int_urb(urb, data->udev, pipe, buf, size, btusb_isoc_complete,
512 urb->pipe = pipe; 512 hdev, data->isoc_rx_ep->bInterval);
513 urb->context = hdev;
514 urb->complete = btusb_isoc_complete;
515 urb->interval = data->isoc_rx_ep->bInterval;
516 513
517 urb->transfer_flags = URB_FREE_BUFFER | URB_ISO_ASAP; 514 urb->transfer_flags = URB_FREE_BUFFER | URB_ISO_ASAP;
518 urb->transfer_buffer = buf;
519 urb->transfer_buffer_length = size;
520 515
521 __fill_isoc_descriptor(urb, size, 516 __fill_isoc_descriptor(urb, size,
522 le16_to_cpu(data->isoc_rx_ep->wMaxPacketSize)); 517 le16_to_cpu(data->isoc_rx_ep->wMaxPacketSize));