[sigrok-devel] [PATCH v2] sr: fx2lafw: Free transfers in reverse order

2012-07-05 Thread Lars-Peter Clausen
Free the USB transfers in the reverse order of which they were submitted. This will avoid that while transfer 0 is canceld transfer 1 is started by the host controller, and so on. Reported-by: Peter Stuge Signed-off-by: Lars-Peter Clausen --- Sorry, sent an old version of the patch as v1. ---

[sigrok-devel] [PATCH] sr: fx2lafw: Free transfers in reverse order

2012-07-05 Thread Lars-Peter Clausen
Free the USB transfers in the reverse order of which they were submitted. This will avoid that while transfer 0 is canceld transfer 1 is started by the host controller, and so on. Reported-by: Peter Stuge Signed-off-by: Lars-Peter Clausen --- libsigrok/hardware/fx2lafw/fx2lafw.c |4 ++-- 1

[sigrok-devel] [PATCH 6/6] qt: Use sr_session_stop() instead of sr_session_halt()

2012-07-05 Thread Lars-Peter Clausen
Use sr_session_stop() instead of the deprecated sr_session_halt(). Signed-off-by: Lars-Peter Clausen --- sigrok-qt/mainwindow.cpp |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigrok-qt/mainwindow.cpp b/sigrok-qt/mainwindow.cpp index f0ca848..810228f 100644 --- a/sig

[sigrok-devel] [PATCH 4/6] cli: Use sr_session_stop() instead of sr_session_halt()

2012-07-05 Thread Lars-Peter Clausen
Use sr_session_stop() instead of the deprecated sr_session_halt(). Signed-off-by: Lars-Peter Clausen --- sigrok-cli/sigrok-cli.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigrok-cli/sigrok-cli.c b/sigrok-cli/sigrok-cli.c index bce88e4..3a460bf 100644 --- a/sigrok

[sigrok-devel] [PATCH 3/6] sr: session: Deprecate sr_session_halt()

2012-07-05 Thread Lars-Peter Clausen
sr_session_halt() in its current state is kind of useless and even dangerous. All it will do is mark the session as not running, but wont signal the devices to stop to capture data. This is not so much of a problem with the blocking sr_session_run(), but once there is support for asynchronous data

[sigrok-devel] [PATCH 5/6] gtk: Use sr_session_stop() instead of sr_session_halt()

2012-07-05 Thread Lars-Peter Clausen
Use sr_session_stop() instead of the deprecated sr_session_halt(). Signed-off-by: Lars-Peter Clausen --- sigrok-gtk/main.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigrok-gtk/main.c b/sigrok-gtk/main.c index 5406b04..9546e1a 100644 --- a/sigrok-gtk/main.c +++ b/sigr

[sigrok-devel] [PATCH 2/6] sr: session: Do not cleanup the driver state in sr_session_stop()

2012-07-05 Thread Lars-Peter Clausen
By cleaning up the driver state all devices will become inaccessible, which means that is neither possible to query any information from it (like sample rate) and it is also not possible to restart data acquisition. sr_session_save() tries to query the sample rate from the device, as a result call

[sigrok-devel] [PATCH 1/6] sr: session: Close a device when it is removed from a session

2012-07-05 Thread Lars-Peter Clausen
A device is opened when it is added to a session, in the same fashion it should be closed again when it is removed from a session. Also remove all still attached devices from a session when the session is destroyed. Signed-off-by: Lars-Peter Clausen --- libsigrok/session.c | 11 --- 1