From 45ea23bc56f1ec49e30334555e8dcb887869e71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Fri, 9 Sep 2011 06:09:04 +0200 Subject: [PATCH] G4050 2400 dpi is working --- backend/genesys_gl843.c | 1 + backend/genesys_gl843.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/genesys_gl843.c b/backend/genesys_gl843.c index 4c61dcdf1..a52f4b90b 100644 --- a/backend/genesys_gl843.c +++ b/backend/genesys_gl843.c @@ -2150,6 +2150,7 @@ gl843_begin_scan (Genesys_Device * dev, Genesys_Register_Set * reg, switch(dpihw) { case 1200: + case 2400: RIE (sanei_genesys_write_register (dev, REG6C, 0x60)); RIE (sanei_genesys_write_register (dev, REGA6, 0x46)); break; diff --git a/backend/genesys_gl843.h b/backend/genesys_gl843.h index 61c145447..66ffe5ac6 100644 --- a/backend/genesys_gl843.h +++ b/backend/genesys_gl843.h @@ -587,15 +587,15 @@ static Sensor_Profile sensors[]={ }, {CCD_G4050 , 1200, 56064, 0x0fffff, 0x0001ff, 0x0001ff, 5168, 0, 0x2a, 0, 0, 0, 0x20, 0x08, 0x0c, 0x00, 0xc0, - {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x11, 0x2a, 0x38, 0x10, 0x00, 0x08} , + {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x10, 0x2a, 0x38, 0x10, 0x00, 0x08} , {0x02, 0x05, 0x08, 0x0b, 0x0e, 0x11, 0x1b, 0x00, 0x40, 0x00, 0x00, 0x00, 0x6f}, {0x41, 0x42, 0x4f, 0xa7, 0xb2, 0xc4} }, - {CCD_G4050 , 2400, 56064, 0x03ffff, 0x000000, 0x000000, 5168, 0, 0x2a, 0, 0, 0, 0x00, 0x00, 0x02, 0x00, 0xc0, - {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x0c, 0x00, 0x2a, 0x30, 0x00, 0x00, 0x08} , - {0x0b, 0x0e, 0x11, 0x02, 0x05, 0x08, 0x63, 0x00, 0x40, 0x00, 0x00, 0x00, 0x6f}, - {0x80, 0x80, 0x80, 0x4b, 0x4b, 0x4b} + {CCD_G4050 , 2400, 56064, 0x0fffff, 0x000000, 0x000000, 5168, 0, 0x2a, 0, 0, 0, 0x20, 0x08, 0x0a, 0x00, 0xc0, + {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x10, 0x2a, 0x38, 0x10, 0xc0, 0x08} , + {0x02, 0x05, 0x08, 0x0b, 0x0e, 0x11, 0x1b, 0x00, 0x40, 0x00, 0x00, 0x00, 0x6f}, + {0x49, 0x45, 0x52, 0xaa, 0xb2, 0xc7} }, {CCD_G4050 , 4800, 21376, 0x03ffff, 0x000000, 0x000000, 5168, 0, 0x2a, 0, 0, 0, 0x00, 0x00, 0x02, 0x00, 0xc0,