[sane-devel] CanoScan Lide 110 on Solaris 10 (10/09) SPARC

Olaf Zimmermann oez at pt.lu
Wed Mar 16 14:34:17 UTC 2011


On Tue, 2011-03-15 at 22:18, stef wrote:
> Le Tuesday 15 March 2011 14:27:14 Olaf Zimmermann, vous avez écrit :

Ouf!
[Back to English:]
As it turns out, that was the sole problem -
all that is required is byte swapping in four places in genesys_low.c
(i.e. lines 265,269,387, and 391: replace 'value' with something like
'bsuint16(value)' ); everything else appears to be working as perfectly
as can be expected for a scanner in this price class.
Question:
Would there be a point in me creating a proper patch, or do you think
there is insufficient demand for this?

Regards,
Olaf

> 	Hello,
> 
> 	the following test is failing in sanei_genesys_read_gl847_register():  
> if((value & 0xff00) != 0x5500)
>     {
>       DBG (DBG_error,"sanei_genesys_read_gl847_register: invalid read, scanner 
> unplugged ?\n");
>       status=SANE_STATUS_IO_ERROR;
>     }
> 
> 	While the bytes (00 55) from USB are correct. I think this is an 
> endianess issue in code. What is the CPU running the code ?
> 
> Regards,
> 	Stef




More information about the sane-devel mailing list