[sane-devel] [PATCH 1/4] canon: Fix sense_handler

2012-08-10 Thread Ondrej Zary
sense_handler() crashes with Canon IX-4015 after the scanner is powered on because scanner returns unit attention - power on reset sense status as a reply to the Test Unit Ready command after power on - and dev is still NULL at that time. The non-NULL dev is needed only to check if the device is

[sane-devel] [PATCH 2/4] canon: Separate diagnose and calibrate capabilities

2012-08-10 Thread Ondrej Zary
Some scanners (e.g. IX-4015) support diangostics but not calibration so separate these two capabilities. diff --git a/backend/canon.c b/backend/canon.c index f7d3fe1..cf45d42 100644 --- a/backend/canon.c +++ b/backend/canon.c @@ -840,6 +840,7 @@ attach (const char *devnam, CANON_Device ** devp)

[sane-devel] [PATCH 3/4] canon: Add support for Canon IX-4015 scanner

2012-08-10 Thread Ondrej Zary
This adds support for Canon IX-4015 scanner. The difference from other scanners supported by this backend is that it has no highlight and shadow settings - the corresponding bytes in set_window command must be zero or it will fail. IX-4015 has optical resolution of 400 dpi, can interpolate up to

[sane-devel] [PATCH 4/4] canon: Fix cancel for Canon IX-4015

2012-08-10 Thread Ondrej Zary
IX-4015 requires medium_position after cancelling a scan. Without that, it does not return to home position and refuses to accept any other commands. --- a/backend/canon.c +++ b/backend/canon.c @@ -1671,7 +1671,9 @@ init_options (CANON_Scanner * s) s-opt[OPT_EJECT_AFTERSCAN].cap |=

[sane-devel] Canon IX-4015 not working

2012-08-10 Thread m. allan noah
We now have a nice stack of patches to support this scanner. I would like to commit them before this release. Ulrich- are you OK with that? allan On Tue, Jul 17, 2012 at 3:17 PM, Ulrich Deiters ulrich.deiters at uni-koeln.de wrote: Greetings, I cannot see from here (I am on vacation) which

[sane-devel] Network backend and lineart mode

2012-08-10 Thread Aleksandr Dezhin
://lists.alioth.debian.org/pipermail/sane-devel/attachments/20120810/193fec94/attachment.html