From 662d6534c7683699a7d2695bee1e873aa243360e Mon Sep 17 00:00:00 2001 From: Igor Kuzmin Date: Fri, 22 Jun 2012 14:48:01 +0400 Subject: [PATCH] Disable power-of-2 alignment of isochronous I/O buffers This can save some memory. (The library user can always round max packet size himself if it's needed for some reason.) Signed-off-by: Stefan Richter --- src/fw-iso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fw-iso.c b/src/fw-iso.c index 8e8149e..0d2039d 100644 --- a/src/fw-iso.c +++ b/src/fw-iso.c @@ -491,7 +491,7 @@ iso_init(fw_handle_t handle, int type, handle->iso.xmit_handler = xmit_handler; handle->iso.recv_handler = recv_handler; handle->iso.buf_packets = buf_packets; - handle->iso.max_packet_size = round_to_power_of_two(max_packet_size); + handle->iso.max_packet_size = max_packet_size; handle->iso.packet_phase = 0; handle->iso.packet_count = 0; handle->iso.packets =