diff options
author | Bing Zhao <bzhao@marvell.com> | 2011-12-20 18:19:00 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 09:27:20 -0700 |
commit | 962992dcf9ec5cc86e8f5233c9f8b7a417c6e7ff (patch) | |
tree | 49c9a08d2d83a16e5fd6b8b7c4c159b63d89dce6 | |
parent | 41f8ef7f8b7c2b0b0d1f4682bb70c709c1d3c541 (diff) | |
download | kernel_samsung_tuna-962992dcf9ec5cc86e8f5233c9f8b7a417c6e7ff.zip kernel_samsung_tuna-962992dcf9ec5cc86e8f5233c9f8b7a417c6e7ff.tar.gz kernel_samsung_tuna-962992dcf9ec5cc86e8f5233c9f8b7a417c6e7ff.tar.bz2 |
Bluetooth: btusb: fix bInterval for high/super speed isochronous endpoints
commit fa0fb93f2ac308a76fa64eb57c18511dadf97089 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/bluetooth/btusb.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 23b49e7..9f3a8b3 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -498,15 +498,10 @@ static int btusb_submit_isoc_urb(struct hci_dev *hdev, gfp_t mem_flags) pipe = usb_rcvisocpipe(data->udev, data->isoc_rx_ep->bEndpointAddress); - urb->dev = data->udev; - urb->pipe = pipe; - urb->context = hdev; - urb->complete = btusb_isoc_complete; - urb->interval = data->isoc_rx_ep->bInterval; + usb_fill_int_urb(urb, data->udev, pipe, buf, size, btusb_isoc_complete, + hdev, data->isoc_rx_ep->bInterval); urb->transfer_flags = URB_FREE_BUFFER | URB_ISO_ASAP; - urb->transfer_buffer = buf; - urb->transfer_buffer_length = size; __fill_isoc_descriptor(urb, size, le16_to_cpu(data->isoc_rx_ep->wMaxPacketSize)); |