Pieter Nagel <[EMAIL PROTECTED]> wrote:

[...]
> The conservative patch for 2.4.19 would be the following:
> 
> --- linux-2.4.19/drivers/usb/scanner.c.orig   Fri Oct  4 18:28:45 2002
> +++ linux-2.4.19/drivers/usb/scanner.c        Fri Oct  4 18:49:04 2002
> @@ -653,7 +653,7 @@
>                               ret = -EFAULT;
>                               break;
>                       }
> -                     count -= this_read; /* Compensate for short reads */
> +                     count -= partial; /* Compensate for short reads */
>                       bytes_read += partial; /* Keep tally of what actually was read 
>*/
>                       buffer += partial;
>               } else {

This does indeed fix the "funky result:-75" and Oops situation.
However (sorry!) there must be something you have missed in
this. The patch leads to scans with Sane at certain resolutions
being garbled. Without the patch, 2900dpi was one resolution
that used to work fine when the scan area was set to something
that did not cause a crash. However, now I systematically get
results like this one:

http://puma.uio.no/jon/gif/2900dpi-sample.jpg

When I set the resolution to 1450dpi, here is what it looks
like:

http://puma.uio.no/jon/gif/1450dpi-sample.jpg

The more elaborate patch I did not try, as there was posted
some concern about this might be breaking other dependancies.

Anyone around who really knows the scanner.c code to give
us a hand on this one?


Cheers & thanks,
-- Jon


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to