Added
Link Here
|
1 |
--- backend/genesys_devices.c.orig 2013-08-26 00:22:58.000000000 +0300 |
2 |
+++ backend/genesys_devices.c 2015-05-30 21:42:35.971090137 +0300 |
3 |
@@ -671,6 +671,29 @@ static Genesys_Sensor Sensor[] = { |
4 |
{2.1, 2.1, 2.1}, |
5 |
{NULL, NULL, NULL}} |
6 |
, |
7 |
+ /* CANON LIDE 220 sensor */ |
8 |
+ {CIS_CANONLIDE220, |
9 |
+ 2400, /* optical resolution */ |
10 |
+ 87, /* black pixels */ |
11 |
+ 16, /* dummy pixels 16 */ |
12 |
+ 303, /* 303 */ |
13 |
+ 5168*4, /* total pixels */ |
14 |
+ 210, |
15 |
+ 200, |
16 |
+ {0x00, 0x00, 0x00, 0x00}, |
17 |
+ /* reg 0x10 - 0x15 : EXPR, EXPG and EXPB */ |
18 |
+ {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
19 |
+ /* reg 0x16 - 0x1d */ |
20 |
+ 0x10, 0x04, 0x00, 0x01, 0x30, 0x00, 0x02, 0x01 }, |
21 |
+ /* reg 0x52 - 0x5e */ |
22 |
+ { |
23 |
+ 0x00, 0x02, 0x04, 0x06, 0x04, 0x04, 0x04, 0x04, |
24 |
+ 0x1a, 0x00, 0xc0, 0x00, 0x00 |
25 |
+ } |
26 |
+ , |
27 |
+ {2.1, 2.1, 2.1}, |
28 |
+ {NULL, NULL, NULL}} |
29 |
+ , |
30 |
{CCD_PLUSTEK_3600, |
31 |
1200, |
32 |
87, /*(black) */ |
33 |
@@ -1868,6 +1891,59 @@ static Genesys_Model canon_lide_210_mode |
34 |
400 |
35 |
}; |
36 |
|
37 |
+static Genesys_Model canon_lide_220_model = { |
38 |
+ "canon-lide-220", /* Name */ |
39 |
+ "Canon", /* Device vendor string */ |
40 |
+ "LiDE 220", /* Device model name */ |
41 |
+ GENESYS_GL124, /* or a compatible one */ |
42 |
+ NULL, |
43 |
+ |
44 |
+ {4800, 2400, 1200, 600, 300, 150, 100, 75, 0}, /* possible x-resolutions */ |
45 |
+ {4800, 2400, 1200, 600, 300, 150, 100, 75, 0}, /* possible y-resolutions */ |
46 |
+ {16, 8, 0}, /* possible depths in gray mode */ |
47 |
+ {16, 8, 0}, /* possible depths in color mode */ |
48 |
+ |
49 |
+ SANE_FIX (2.2), /* Start of scan area in mm (x) */ |
50 |
+ SANE_FIX (8.7), /* Start of scan area in mm (y) */ |
51 |
+ SANE_FIX (216.70), /* Size of scan area in mm (x) */ |
52 |
+ SANE_FIX (297.5), /* Size of scan area in mm (y) */ |
53 |
+ |
54 |
+ SANE_FIX (0.0), /* Start of white strip in mm (y) */ |
55 |
+ SANE_FIX (0.0), /* Start of black mark in mm (x) */ |
56 |
+ |
57 |
+ SANE_FIX (0.0), /* Start of scan area in TA mode in mm (x) */ |
58 |
+ SANE_FIX (0.0), /* Start of scan area in TA mode in mm (y) */ |
59 |
+ SANE_FIX (100.0), /* Size of scan area in TA mode in mm (x) */ |
60 |
+ SANE_FIX (100.0), /* Size of scan area in TA mode in mm (y) */ |
61 |
+ |
62 |
+ SANE_FIX (0.0), /* Start of white strip in TA mode in mm (y) */ |
63 |
+ |
64 |
+ SANE_FIX (0.0), /* Size of scan area after paper sensor stops |
65 |
+ sensing document in mm */ |
66 |
+ SANE_FIX (0.0), /* Amount of feeding needed to eject document |
67 |
+ after finishing scanning in mm */ |
68 |
+ |
69 |
+ 0, 0, 0, /* RGB CCD Line-distance correction in pixel */ |
70 |
+ |
71 |
+ COLOR_ORDER_RGB, /* Order of the CCD/CIS colors */ |
72 |
+ |
73 |
+ SANE_TRUE, /* Is this a CIS scanner? */ |
74 |
+ SANE_FALSE, /* Is this a sheetfed scanner? */ |
75 |
+ CIS_CANONLIDE220, |
76 |
+ DAC_CANONLIDE110, |
77 |
+ GPO_CANONLIDE210, |
78 |
+ MOTOR_CANONLIDE210, |
79 |
+ GENESYS_FLAG_SKIP_WARMUP |
80 |
+ | GENESYS_FLAG_OFFSET_CALIBRATION |
81 |
+ | GENESYS_FLAG_DARK_CALIBRATION |
82 |
+ | GENESYS_FLAG_HALF_CCD_MODE |
83 |
+ | GENESYS_FLAG_SHADING_REPARK |
84 |
+ | GENESYS_FLAG_CUSTOM_GAMMA, |
85 |
+ GENESYS_HAS_SCAN_SW | GENESYS_HAS_COPY_SW | GENESYS_HAS_EMAIL_SW | GENESYS_HAS_FILE_SW | GENESYS_HAS_EXTRA_SW, |
86 |
+ 60, |
87 |
+ 400 |
88 |
+}; |
89 |
+ |
90 |
static Genesys_Model canon_5600f_model = { |
91 |
"canon-5600f", /* Name */ |
92 |
"Canon", /* Device vendor string */ |
93 |
@@ -3411,5 +3487,6 @@ static Genesys_USB_Device_Entry genesys_ |
94 |
/* GL124 devices */ |
95 |
{0x04a9, 0x1909, &canon_lide_110_model}, |
96 |
{0x04a9, 0x190a, &canon_lide_210_model}, |
97 |
+ {0x04a9, 0x190f, &canon_lide_220_model}, |
98 |
{0, 0, NULL} |
99 |
}; |