005-bluetooth_sco_buffer_align.patch 530 B

1234567891011121314
  1. Index: linux-2.4.35.4/drivers/bluetooth/hci_usb.c
  2. ===================================================================
  3. --- linux-2.4.35.4.orig/drivers/bluetooth/hci_usb.c
  4. +++ linux-2.4.35.4/drivers/bluetooth/hci_usb.c
  5. @@ -259,6 +259,9 @@ static int hci_usb_isoc_rx_submit(struct
  6. void *buf;
  7. mtu = husb->isoc_in_ep->wMaxPacketSize;
  8. +#ifdef CONFIG_BCM4710
  9. + mtu = (mtu + 1) & ~1; /* brcm: isoc buffers must be aligned on word boundary */
  10. +#endif
  11. size = mtu * HCI_MAX_ISOC_FRAMES;
  12. buf = kmalloc(size, GFP_ATOMIC);