Re: [sigrok-devel] [PATCH] sr: fxlafw: Move empty_transfer_count to device ctx

2012-06-27 Thread Uwe Hermann
On Wed, Jun 27, 2012 at 11:00:41PM +0200, Lars-Peter Clausen wrote: > If one device is failing it should not affect the transfers of other devices. Indeed. Thanks, merged. Uwe. -- http://hermann-uwe.de | http://sigrok.org http://randomprojects.org | http://unmaintained-free-software.org --

Re: [sigrok-devel] [PATCH 5/5] sr: fx2lafw: Calculate buffer size and timeout based on sample rate

2012-06-27 Thread Uwe Hermann
On Tue, Jun 26, 2012 at 08:59:32PM +0200, Lars-Peter Clausen wrote: > On 06/26/2012 08:56 AM, Joel Holdsworth wrote: > > Thanks for these. They look really good. Jup, awesome improvements! For archival purposes, we had some more discussions and tests on IRC, then merged the whole patchset. Thanks!

[sigrok-devel] [PATCH] sr: fxlafw: Move empty_transfer_count to device ctx

2012-06-27 Thread Lars-Peter Clausen
If one device is failing it should not affect the transfers of other devices. Signed-off-by: Lars-Peter Clausen --- libsigrok/hardware/fx2lafw/fx2lafw.c |9 - libsigrok/hardware/fx2lafw/fx2lafw.h |1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libsigrok/hardw

[sigrok-devel] [PATCH v2] sr: fx2lafw: Calculate buffer size and timeout based on sample rate

2012-06-27 Thread Lars-Peter Clausen
Currently timeout and buffer size are hard-coded in the fx2lawfw driver which is non-optimal if we want to get good results at both high and low sample rates. The timeout is hard-coded to 40ms, which does not work well when sampling at with a low sample rate. E.g. at 20kHz filling all available b