# Re: mustek 3-pass fix

David Mosberger-Tang (davidm@azstarnet.com)
Fri, 18 Jul 1997 12:03:33 -0700

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Amancio Hasty: "Re: Help: Umax Vista-S6E & xscanimage / umax-sane problem"
- Previous message: David Mosberger-Tang: "Re: mustek 3-pass fix"

>>>>> On Fri, 18 Jul 1997 12:02:10 -0400, Michael Sweet <mike@easysw.com> said:

Michael> I for one did not receive this patch, and as I'm testing my
Michael> SCSI code for sanei with it, the patch might be useful for
Michael> me :)

Here it is. You'll notice the following change: Linux now implements:

sanei_scsi_req_enter ()
sanei_scsi_req_wait ()

The sanei_scsi_cmd () is still there, but it's just for convenience &
backwards compatibility. It's equivalent to:

sanei_scsi_req_enter (fd, src, src_size, dst, dst_size, &id);
sanei_scsi_req_wait (fd, id);

I'm not sure how to implement queueing on non-Linux systems, so for
those platforms, sanei_scsi_req_enter() simply calls sanei_scsi_cmd()
and sanei_scsi_req_wait() is a no-op. This should work properly, but
will not get all the performance benefits (it should still improve
3-pass scanning performance by about a factor of two though since the
number of backtracks is reduced by a factor of two).

--david

    --
    Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
    To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com

- Next message: Amancio Hasty: "Re: Help: Umax Vista-S6E & xscanimage / umax-sane problem"
- Previous message: David Mosberger-Tang: "Re: mustek 3-pass fix"