Change USB bulk endpoint for baseband data to have only one queue item. Since there are only two baseband buffers, and one is transferring with the codec and the other with USB, enqueueing more than one buffer at a time would result in transferring an incomplete buffer.

This commit is contained in:
Jared Boone
2013-12-31 20:34:01 -08:00
parent c6b1ec2979
commit 7920490f1e

View File

@ -58,7 +58,7 @@ usb_endpoint_t usb_endpoint_bulk_in = {
.setup_complete = 0, .setup_complete = 0,
.transfer_complete = usb_queue_transfer_complete .transfer_complete = usb_queue_transfer_complete
}; };
static USB_DEFINE_QUEUE(usb_endpoint_bulk_in, 4); static USB_DEFINE_QUEUE(usb_endpoint_bulk_in, 1);
usb_endpoint_t usb_endpoint_bulk_out = { usb_endpoint_t usb_endpoint_bulk_out = {
.address = 0x02, .address = 0x02,
@ -68,6 +68,6 @@ usb_endpoint_t usb_endpoint_bulk_out = {
.setup_complete = 0, .setup_complete = 0,
.transfer_complete = usb_queue_transfer_complete .transfer_complete = usb_queue_transfer_complete
}; };
static USB_DEFINE_QUEUE(usb_endpoint_bulk_out, 4); static USB_DEFINE_QUEUE(usb_endpoint_bulk_out, 1);