Skip to content

Commit bd5c974

Browse files
zeldinzougloub
authored andcommitted
fx2lafw: Increase buffer size granularity for USB3 compatibility
1 parent b96051a commit bd5c974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hardware/fx2lafw/protocol.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@ static size_t get_buffer_size(struct dev_context *devc)
580580

581581
/*
582582
* The buffer should be large enough to hold 10ms of data and
583-
* a multiple of 512.
583+
* a multiple of 1024.
584584
*/
585585
s = 10 * to_bytes_per_ms(devc->cur_samplerate);
586-
return (s + 511) & ~511;
586+
return (s + 1023) & ~1023;
587587
}
588588

589589
static unsigned int get_number_of_transfers(struct dev_context *devc)

0 commit comments

Comments
 (0)