Re: SnapScan 0.7

Francois Desarmenien (desar@club-internet.fr)
Sat, 10 Jul 1999 16:05:10 +0000

Unfortunatly, Kevin patch does *not* apply on SANE 1.0.1.
While waiting for him (four long days :), here is the change
he suggested me to have it work:

In 'sane_get_parameters' routine, replace:

status = open_scanner (pss);
CHECK_STATUS (status, me, "open_scanner");

/* fetch the latest parameters */
status = inquiry (pss);
CHECK_STATUS (status, me, "inquiry");

close_scanner (pss);

with:

if (pss->state == ST_IDLE) {
status = open_scanner (pss);
CHECK_STATUS (status, me, "open_scanner");

/* fetch the latest parameters */
status = inquiry (pss);
CHECK_STATUS (status, me, "inquiry");

close_scanner (pss);
}
else {
DBG(DL_INFO, "NOT doing an inquiry to get scanner parameters\n");
status = SANE_STATUS_GOOD;
}

That should do the trick.

Happy scanning,

Kevin Charter wrote:

> I've just put a patch on the SnapScan web page
>
> http://www.cs.ualberta.ca/~charter/SnapScan/snapscan.html
>
> that provides a fix for the problems people have had using the backend
> with the series 2.2 kernels (in particular, kernels >2.2.5 with the
> new generic scsi driver). It works with my model 300, an aha1522 and
> kernel 2.2.9. The new backend version is 0.7, and the patch fixes the
> sources distributed with SANE 1.0.1.
>
> Thanks to Francois Desarmeni, Douglas Gilbert, and Abel Deuring for
> their work tracking down the bug and suggesting this fix.
>
> I'll be out of contact until July 14th. In the meantime, I hope
> this fixes the problems people have had with late model kernels.
>
> Kevin
>
> --
> Source code, list archive, and docs: http://www.mostang.com/sane/
> To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

--
François Désarménien

Membre de l'ACM <http://www.acm.org> Membre de l'AFUL <http://www.aful.org>

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com