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

2011-03-17 Thread Olaf Zimmermann
On Wed, 2011-03-16 at 21:20, stef wrote: Hello, patch will be welcome. I didn't knew bsuint16, and it seems no backend use it. ;-) *** backend/genesys_low.c.orig Wed Mar 16 11:10:54 2011 --- backend/genesys_low.c Wed Mar 16 20:38:14 2011 *** *** 65,70

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

2011-03-17 Thread stef
Le Wednesday 16 March 2011 23:34:18 Olaf Zimmermann, vous avez ?crit : On Wed, 2011-03-16 at 21:20, stef wrote: Hello, patch will be welcome. I didn't knew bsuint16, and it seems no backend use it. ;-) *** backend/genesys_low.c.orig Wed Mar 16 11:10:54 2011 ---

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

2011-03-17 Thread Olaf Zimmermann
On Thu, 2011-03-17 at 06:22, stef wrote: Hello, I've applied it. Thanks, Stef Thank you for your help. In the long run, though, I think your suggestion about 'uint8_t value[2]' is probably better (and more elegant). Regards, Olaf

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

2011-03-16 Thread Torfinn Ingolfsen
Hello, On Tue, Mar 15, 2011 at 10:18 PM, stef stef.dev at free.fr wrote: ? ? ? ?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 ? FWIW, SPARC cpus are big-endian: http://en.wikipedia.org/wiki/SPARC HTH -- Regards,

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

2011-03-16 Thread Olaf Zimmermann
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

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

2011-03-16 Thread stef
Le Wednesday 16 March 2011 15:34:17 Olaf Zimmermann, vous avez ?crit : 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

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

2011-03-15 Thread Olaf Zimmermann
Scanimage (32-bit build) conks out at genesys_low.c, line 391 (value=0xffbfe3ef, according to my debugger; looks odd). Output from scanimage is as follows: [snip] [genesys_gl124] gl124_init: value=0x00 [genesys_gl124] gl124_init: device is USB2.0 [sanei_usb] sanei_usb_control_msg: rtype = 0xc0,

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

2011-03-15 Thread stef
Le Tuesday 15 March 2011 14:27:14 Olaf Zimmermann, vous avez ?crit : Scanimage (32-bit build) conks out at genesys_low.c, line 391 (value=0xffbfe3ef, according to my debugger; looks odd). Output from scanimage is as follows: [snip] [genesys_gl124] gl124_init: value=0x00 [genesys_gl124]