We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b96051a commit bd5c974Copy full SHA for bd5c974
src/hardware/fx2lafw/protocol.c
@@ -580,10 +580,10 @@ static size_t get_buffer_size(struct dev_context *devc)
580
581
/*
582
* The buffer should be large enough to hold 10ms of data and
583
- * a multiple of 512.
+ * a multiple of 1024.
584
*/
585
s = 10 * to_bytes_per_ms(devc->cur_samplerate);
586
- return (s + 511) & ~511;
+ return (s + 1023) & ~1023;
587
}
588
589
static unsigned int get_number_of_transfers(struct dev_context *devc)
0 commit comments