From 41b8ae57a916e98d9c5c4d2e2fa972883a162650 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 15 Jun 2004 11:54:46 +0000 Subject: [PATCH] libftdi: (tomj) changed readbuffer chunksize to 64 bytes, preparations for 0.4 release --- configure.in | 2 +- configure.in.in | 2 +- ftdi/ftdi.c | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 83d1f09..23789f1 100644 --- a/configure.in +++ b/configure.in @@ -38,7 +38,7 @@ dnl Perform program name transformation AC_ARG_PROGRAM dnl Automake doc recommends to do this only here. (Janos) -AM_INIT_AUTOMAKE(libftdi, 0.3) dnl searches for some needed programs +AM_INIT_AUTOMAKE(libftdi, 0.4) dnl searches for some needed programs dnl almost the same like KDE_SET_PEFIX but the path is /usr/local dnl diff --git a/configure.in.in b/configure.in.in index 950cc79..42a5414 100644 --- a/configure.in.in +++ b/configure.in.in @@ -38,7 +38,7 @@ dnl Perform program name transformation AC_ARG_PROGRAM dnl Automake doc recommends to do this only here. (Janos) -AM_INIT_AUTOMAKE(libftdi, 0.3) dnl searches for some needed programs +AM_INIT_AUTOMAKE(libftdi, 0.4) dnl searches for some needed programs dnl almost the same like KDE_SET_PEFIX but the path is /usr/local dnl diff --git a/ftdi/ftdi.c b/ftdi/ftdi.c index b40217a..97b3fcf 100644 --- a/ftdi/ftdi.c +++ b/ftdi/ftdi.c @@ -44,8 +44,11 @@ int ftdi_init(struct ftdi_context *ftdi) { ftdi->error_str = NULL; - // all fine. Now allocate the readbuffer - return ftdi_read_data_set_chunksize(ftdi, 4096); + /* All fine. Now allocate the readbuffer + Note: A readbuffer size above 64 bytes results in buggy input. + This seems to be a hardware limitation as noted + in the ftdi_sio driver */ + return ftdi_read_data_set_chunksize(ftdi, 64); } -- 1.7.1