diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-15 13:23:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:26:49 -0400 |
commit | 9a97a2abe44781a13cd2ffc95069a8fd2678da68 (patch) | |
tree | a6b19578e73b3294ca55531c7a7c12fe8e2c0edd /drivers/media | |
parent | 568788a771ee88cc6b5e311a207c09731a6e47f0 (diff) |
V4L/DVB (8359): gspca: Adds register aliases for zc03xx registers
Thanks to http://zc0302.sourceforge.net/zc0302.php, we have some hints
about what each zc3xx register means.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/zc3xx-reg.h | 261 | ||||
-rw-r--r-- | drivers/media/video/gspca/zc3xx.c | 8167 |
2 files changed, 4354 insertions, 4074 deletions
diff --git a/drivers/media/video/gspca/zc3xx-reg.h b/drivers/media/video/gspca/zc3xx-reg.h new file mode 100644 index 000000000000..f52e09c2cc19 --- /dev/null +++ b/drivers/media/video/gspca/zc3xx-reg.h | |||
@@ -0,0 +1,261 @@ | |||
1 | /* | ||
2 | * zc030x registers | ||
3 | * | ||
4 | * Copyright (c) 2008 Mauro Carvalho Chehab <mchehab@infradead.org> | ||
5 | * | ||
6 | * The register aliases used here came from this driver: | ||
7 | * http://zc0302.sourceforge.net/zc0302.php | ||
8 | * | ||
9 | * This code is placed under the terms of the GNU General Public License v2 | ||
10 | */ | ||
11 | |||
12 | /* Define the register map */ | ||
13 | #define ZC3XX_R000_SYSTEMCONTROL 0x0000 | ||
14 | #define ZC3XX_R001_SYSTEMOPERATING 0x0001 | ||
15 | |||
16 | /* Picture size */ | ||
17 | #define ZC3XX_R002_CLOCKSELECT 0x0002 | ||
18 | #define ZC3XX_R003_FRAMEWIDTHHIGH 0x0003 | ||
19 | #define ZC3XX_R004_FRAMEWIDTHLOW 0x0004 | ||
20 | #define ZC3XX_R005_FRAMEHEIGHTHIGH 0x0005 | ||
21 | #define ZC3XX_R006_FRAMEHEIGHTLOW 0x0006 | ||
22 | |||
23 | /* JPEG control */ | ||
24 | #define ZC3XX_R008_CLOCKSETTING 0x0008 | ||
25 | |||
26 | /* Test mode */ | ||
27 | #define ZC3XX_R00B_TESTMODECONTROL 0x000b | ||
28 | |||
29 | /* Frame retreiving */ | ||
30 | #define ZC3XX_R00C_LASTACQTIME 0x000c | ||
31 | #define ZC3XX_R00D_MONITORRES 0x000d | ||
32 | #define ZC3XX_R00E_TIMESTAMPHIGH 0x000e | ||
33 | #define ZC3XX_R00F_TIMESTAMPLOW 0x000f | ||
34 | #define ZC3XX_R018_FRAMELOST 0x0018 | ||
35 | #define ZC3XX_R019_AUTOADJUSTFPS 0x0019 | ||
36 | #define ZC3XX_R01A_LASTFRAMESTATE 0x001a | ||
37 | #define ZC3XX_R025_DATACOUNTER 0x0025 | ||
38 | |||
39 | /* Stream and sensor specific */ | ||
40 | #define ZC3XX_R010_CMOSSENSORSELECT 0x0010 | ||
41 | #define ZC3XX_R011_VIDEOSTATUS 0x0011 | ||
42 | #define ZC3XX_R012_VIDEOCONTROLFUNC 0x0012 | ||
43 | |||
44 | /* Horizontal and vertical synchros */ | ||
45 | #define ZC3XX_R01D_HSYNC_0 0x001d | ||
46 | #define ZC3XX_R01E_HSYNC_1 0x001e | ||
47 | #define ZC3XX_R01F_HSYNC_2 0x001f | ||
48 | #define ZC3XX_R020_HSYNC_3 0x0020 | ||
49 | |||
50 | /* Target picture size in byte */ | ||
51 | #define ZC3XX_R022_TARGETPICTSIZE_0 0x0022 | ||
52 | #define ZC3XX_R023_TARGETPICTSIZE_1 0x0023 | ||
53 | #define ZC3XX_R024_TARGETPICTSIZE_2 0x0024 | ||
54 | |||
55 | /* Audio registers */ | ||
56 | #define ZC3XX_R030_AUDIOADC 0x0030 | ||
57 | #define ZC3XX_R031_AUDIOSTREAMSTATUS 0x0031 | ||
58 | #define ZC3XX_R032_AUDIOSTATUS 0x0032 | ||
59 | |||
60 | /* Sensor interface */ | ||
61 | #define ZC3XX_R080_HBLANKHIGH 0x0080 | ||
62 | #define ZC3XX_R081_HBLANKLOW 0x0081 | ||
63 | #define ZC3XX_R082_RESETLEVELADDR 0x0082 | ||
64 | #define ZC3XX_R083_RGAINADDR 0x0083 | ||
65 | #define ZC3XX_R084_GGAINADDR 0x0084 | ||
66 | #define ZC3XX_R085_BGAINADDR 0x0085 | ||
67 | #define ZC3XX_R086_EXPTIMEHIGH 0x0086 | ||
68 | #define ZC3XX_R087_EXPTIMEMID 0x0087 | ||
69 | #define ZC3XX_R088_EXPTIMELOW 0x0088 | ||
70 | #define ZC3XX_R089_RESETBLACKHIGH 0x0089 | ||
71 | #define ZC3XX_R08A_RESETWHITEHIGH 0x008a | ||
72 | #define ZC3XX_R08B_I2CDEVICEADDR 0x008b | ||
73 | #define ZC3XX_R08C_I2CIDLEANDNACK 0x008c | ||
74 | #define ZC3XX_R08D_COMPABILITYMODE 0x008d | ||
75 | #define ZC3XX_R08E_COMPABILITYMODE2 0x008e | ||
76 | |||
77 | /* I2C control */ | ||
78 | #define ZC3XX_R090_I2CCOMMAND 0x0090 | ||
79 | #define ZC3XX_R091_I2CSTATUS 0x0091 | ||
80 | #define ZC3XX_R092_I2CADDRESSSELECT 0x0092 | ||
81 | #define ZC3XX_R093_I2CSETVALUE 0x0093 | ||
82 | #define ZC3XX_R094_I2CWRITEACK 0x0094 | ||
83 | #define ZC3XX_R095_I2CREAD 0x0095 | ||
84 | #define ZC3XX_R096_I2CREADACK 0x0096 | ||
85 | |||
86 | /* Window inside the sensor array */ | ||
87 | #define ZC3XX_R097_WINYSTARTHIGH 0x0097 | ||
88 | #define ZC3XX_R098_WINYSTARTLOW 0x0098 | ||
89 | #define ZC3XX_R099_WINXSTARTHIGH 0x0099 | ||
90 | #define ZC3XX_R09A_WINXSTARTLOW 0x009a | ||
91 | #define ZC3XX_R09B_WINHEIGHTHIGH 0x009b | ||
92 | #define ZC3XX_R09C_WINHEIGHTLOW 0x009c | ||
93 | #define ZC3XX_R09D_WINWIDTHHIGH 0x009d | ||
94 | #define ZC3XX_R09E_WINWIDTHLOW 0x009e | ||
95 | #define ZC3XX_R119_FIRSTYHIGH 0x0119 | ||
96 | #define ZC3XX_R11A_FIRSTYLOW 0x011a | ||
97 | #define ZC3XX_R11B_FIRSTXHIGH 0x011b | ||
98 | #define ZC3XX_R11C_FIRSTXLOW 0x011c | ||
99 | |||
100 | /* Max sensor array size */ | ||
101 | #define ZC3XX_R09F_MAXXHIGH 0x009f | ||
102 | #define ZC3XX_R0A0_MAXXLOW 0x00a0 | ||
103 | #define ZC3XX_R0A1_MAXYHIGH 0x00a1 | ||
104 | #define ZC3XX_R0A2_MAXYLOW 0x00a2 | ||
105 | #define ZC3XX_R0A3_EXPOSURETIMEHIGH 0x00a3 | ||
106 | #define ZC3XX_R0A4_EXPOSURETIMELOW 0x00a4 | ||
107 | #define ZC3XX_R0A5_EXPOSUREGAIN 0x00a5 | ||
108 | #define ZC3XX_R0A6_EXPOSUREBLACKLVL 0x00a6 | ||
109 | |||
110 | /* Other registers */ | ||
111 | #define ZC3XX_R100_OPERATIONMODE 0x0100 | ||
112 | #define ZC3XX_R101_SENSORCORRECTION 0x0101 | ||
113 | |||
114 | /* Gains */ | ||
115 | #define ZC3XX_R116_RGAIN 0x0116 | ||
116 | #define ZC3XX_R117_GGAIN 0x0117 | ||
117 | #define ZC3XX_R118_BGAIN 0x0118 | ||
118 | #define ZC3XX_R11D_GLOBALGAIN 0x011d | ||
119 | #define ZC3XX_R1A8_DIGITALGAIN 0x01a8 | ||
120 | #define ZC3XX_R1A9_DIGITALLIMITDIFF 0x01a9 | ||
121 | #define ZC3XX_R1AA_DIGITALGAINSTEP 0x01aa | ||
122 | |||
123 | /* Auto correction */ | ||
124 | #define ZC3XX_R180_AUTOCORRECTENABLE 0x0180 | ||
125 | #define ZC3XX_R181_WINXSTART 0x0181 | ||
126 | #define ZC3XX_R182_WINXWIDTH 0x0182 | ||
127 | #define ZC3XX_R183_WINXCENTER 0x0183 | ||
128 | #define ZC3XX_R184_WINYSTART 0x0184 | ||
129 | #define ZC3XX_R185_WINYWIDTH 0x0185 | ||
130 | #define ZC3XX_R186_WINYCENTER 0x0186 | ||
131 | |||
132 | /* Gain range */ | ||
133 | #define ZC3XX_R187_MAXGAIN 0x0187 | ||
134 | #define ZC3XX_R188_MINGAIN 0x0188 | ||
135 | |||
136 | /* Auto exposure and white balance */ | ||
137 | #define ZC3XX_R189_AWBSTATUS 0x0189 | ||
138 | #define ZC3XX_R18A_AWBFREEZE 0x018a | ||
139 | #define ZC3XX_R18B_AESTATUS 0x018b | ||
140 | #define ZC3XX_R18C_AEFREEZE 0x018c | ||
141 | #define ZC3XX_R18F_AEUNFREEZE 0x018f | ||
142 | #define ZC3XX_R190_EXPOSURELIMITHIGH 0x0190 | ||
143 | #define ZC3XX_R191_EXPOSURELIMITMID 0x0191 | ||
144 | #define ZC3XX_R192_EXPOSURELIMITLOW 0x0192 | ||
145 | #define ZC3XX_R195_ANTIFLICKERHIGH 0x0195 | ||
146 | #define ZC3XX_R196_ANTIFLICKERMID 0x0196 | ||
147 | #define ZC3XX_R197_ANTIFLICKERLOW 0x0197 | ||
148 | |||
149 | /* What is this ? */ | ||
150 | #define ZC3XX_R18D_YTARGET 0x018d | ||
151 | #define ZC3XX_R18E_RESETLVL 0x018e | ||
152 | |||
153 | /* Color */ | ||
154 | #define ZC3XX_R1A0_REDMEANAFTERAGC 0x01a0 | ||
155 | #define ZC3XX_R1A1_GREENMEANAFTERAGC 0x01a1 | ||
156 | #define ZC3XX_R1A2_BLUEMEANAFTERAGC 0x01a2 | ||
157 | #define ZC3XX_R1A3_REDMEANAFTERAWB 0x01a3 | ||
158 | #define ZC3XX_R1A4_GREENMEANAFTERAWB 0x01a4 | ||
159 | #define ZC3XX_R1A5_BLUEMEANAFTERAWB 0x01a5 | ||
160 | #define ZC3XX_R1A6_YMEANAFTERAE 0x01a6 | ||
161 | #define ZC3XX_R1A7_CALCGLOBALMEAN 0x01a7 | ||
162 | |||
163 | #define ZC3XX_R1A2_BLUEMEANAFTERAGC 0x01a2 | ||
164 | |||
165 | /* Matrixes */ | ||
166 | |||
167 | /* Color matrix is like : | ||
168 | R' = R * RGB00 + G * RGB01 + B * RGB02 + RGB03 | ||
169 | G' = R * RGB10 + G * RGB11 + B * RGB22 + RGB13 | ||
170 | B' = R * RGB20 + G * RGB21 + B * RGB12 + RGB23 | ||
171 | */ | ||
172 | #define ZC3XX_R10A_RGB00 0x010a | ||
173 | #define ZC3XX_R10B_RGB01 0x010b | ||
174 | #define ZC3XX_R10C_RGB02 0x010c | ||
175 | #define ZC3XX_R113_RGB03 0x0113 | ||
176 | #define ZC3XX_R10D_RGB10 0x010d | ||
177 | #define ZC3XX_R10E_RGB11 0x010e | ||
178 | #define ZC3XX_R10F_RGB12 0x010f | ||
179 | #define ZC3XX_R114_RGB13 0x0114 | ||
180 | #define ZC3XX_R110_RGB20 0x0110 | ||
181 | #define ZC3XX_R111_RGB21 0x0111 | ||
182 | #define ZC3XX_R112_RGB22 0x0112 | ||
183 | #define ZC3XX_R115_RGB23 0x0115 | ||
184 | |||
185 | /* Gamma matrix */ | ||
186 | #define ZC3XX_R120_GAMMA00 0x0120 | ||
187 | #define ZC3XX_R121_GAMMA01 0x0121 | ||
188 | #define ZC3XX_R122_GAMMA02 0x0122 | ||
189 | #define ZC3XX_R123_GAMMA03 0x0123 | ||
190 | #define ZC3XX_R124_GAMMA04 0x0124 | ||
191 | #define ZC3XX_R125_GAMMA05 0x0125 | ||
192 | #define ZC3XX_R126_GAMMA06 0x0126 | ||
193 | #define ZC3XX_R127_GAMMA07 0x0127 | ||
194 | #define ZC3XX_R128_GAMMA08 0x0128 | ||
195 | #define ZC3XX_R129_GAMMA09 0x0129 | ||
196 | #define ZC3XX_R12A_GAMMA0A 0x012a | ||
197 | #define ZC3XX_R12B_GAMMA0B 0x012b | ||
198 | #define ZC3XX_R12C_GAMMA0C 0x012c | ||
199 | #define ZC3XX_R12D_GAMMA0D 0x012d | ||
200 | #define ZC3XX_R12E_GAMMA0E 0x012e | ||
201 | #define ZC3XX_R12F_GAMMA0F 0x012f | ||
202 | #define ZC3XX_R130_GAMMA10 0x0130 | ||
203 | #define ZC3XX_R131_GAMMA11 0x0131 | ||
204 | #define ZC3XX_R132_GAMMA12 0x0132 | ||
205 | #define ZC3XX_R133_GAMMA13 0x0133 | ||
206 | #define ZC3XX_R134_GAMMA14 0x0134 | ||
207 | #define ZC3XX_R135_GAMMA15 0x0135 | ||
208 | #define ZC3XX_R136_GAMMA16 0x0136 | ||
209 | #define ZC3XX_R137_GAMMA17 0x0137 | ||
210 | #define ZC3XX_R138_GAMMA18 0x0138 | ||
211 | #define ZC3XX_R139_GAMMA19 0x0139 | ||
212 | #define ZC3XX_R13A_GAMMA1A 0x013a | ||
213 | #define ZC3XX_R13B_GAMMA1B 0x013b | ||
214 | #define ZC3XX_R13C_GAMMA1C 0x013c | ||
215 | #define ZC3XX_R13D_GAMMA1D 0x013d | ||
216 | #define ZC3XX_R13E_GAMMA1E 0x013e | ||
217 | #define ZC3XX_R13F_GAMMA1F 0x013f | ||
218 | |||
219 | /* Luminance gamma */ | ||
220 | #define ZC3XX_R140_YGAMMA00 0x0140 | ||
221 | #define ZC3XX_R141_YGAMMA01 0x0141 | ||
222 | #define ZC3XX_R142_YGAMMA02 0x0142 | ||
223 | #define ZC3XX_R143_YGAMMA03 0x0143 | ||
224 | #define ZC3XX_R144_YGAMMA04 0x0144 | ||
225 | #define ZC3XX_R145_YGAMMA05 0x0145 | ||
226 | #define ZC3XX_R146_YGAMMA06 0x0146 | ||
227 | #define ZC3XX_R147_YGAMMA07 0x0147 | ||
228 | #define ZC3XX_R148_YGAMMA08 0x0148 | ||
229 | #define ZC3XX_R149_YGAMMA09 0x0149 | ||
230 | #define ZC3XX_R14A_YGAMMA0A 0x014a | ||
231 | #define ZC3XX_R14B_YGAMMA0B 0x014b | ||
232 | #define ZC3XX_R14C_YGAMMA0C 0x014c | ||
233 | #define ZC3XX_R14D_YGAMMA0D 0x014d | ||
234 | #define ZC3XX_R14E_YGAMMA0E 0x014e | ||
235 | #define ZC3XX_R14F_YGAMMA0F 0x014f | ||
236 | #define ZC3XX_R150_YGAMMA10 0x0150 | ||
237 | #define ZC3XX_R151_YGAMMA11 0x0151 | ||
238 | |||
239 | #define ZC3XX_R1C5_SHARPNESSMODE 0x01c5 | ||
240 | #define ZC3XX_R1C6_SHARPNESS00 0x01c6 | ||
241 | #define ZC3XX_R1C7_SHARPNESS01 0x01c7 | ||
242 | #define ZC3XX_R1C8_SHARPNESS02 0x01c8 | ||
243 | #define ZC3XX_R1C9_SHARPNESS03 0x01c9 | ||
244 | #define ZC3XX_R1CA_SHARPNESS04 0x01ca | ||
245 | #define ZC3XX_R1CB_SHARPNESS05 0x01cb | ||
246 | |||
247 | /* Synchronization */ | ||
248 | #define ZC3XX_R190_SYNC00LOW 0x0190 | ||
249 | #define ZC3XX_R191_SYNC00MID 0x0191 | ||
250 | #define ZC3XX_R192_SYNC00HIGH 0x0192 | ||
251 | #define ZC3XX_R195_SYNC01LOW 0x0195 | ||
252 | #define ZC3XX_R196_SYNC01MID 0x0196 | ||
253 | #define ZC3XX_R197_SYNC01HIGH 0x0197 | ||
254 | |||
255 | /* Dead pixels */ | ||
256 | #define ZC3XX_R250_DEADPIXELSMODE 0x0250 | ||
257 | |||
258 | /* EEPROM */ | ||
259 | #define ZC3XX_R300_EEPROMCONFIG 0x0300 | ||
260 | #define ZC3XX_R301_EEPROMACCESS 0x0301 | ||
261 | #define ZC3XX_R302_EEPROMSTATUS 0x0302 | ||
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c index 548c4c8c3f33..b761b11c5c6a 100644 --- a/drivers/media/video/gspca/zc3xx.c +++ b/drivers/media/video/gspca/zc3xx.c | |||
@@ -35,6 +35,7 @@ MODULE_LICENSE("GPL"); | |||
35 | static int force_sensor = -1; | 35 | static int force_sensor = -1; |
36 | 36 | ||
37 | #include "jpeg.h" | 37 | #include "jpeg.h" |
38 | #include "zc3xx-reg.h" | ||
38 | 39 | ||
39 | /* specific webcam descriptor */ | 40 | /* specific webcam descriptor */ |
40 | struct sd { | 41 | struct sd { |
@@ -209,30 +210,30 @@ struct usb_action { | |||
209 | static const struct usb_action cs2102_Initial[] = { | 210 | static const struct usb_action cs2102_Initial[] = { |
210 | {0xa1, 0x01, 0x0008}, | 211 | {0xa1, 0x01, 0x0008}, |
211 | {0xa1, 0x01, 0x0008}, | 212 | {0xa1, 0x01, 0x0008}, |
212 | {0xa0, 0x01, 0x0000}, | 213 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
213 | {0xa0, 0x10, 0x0002}, | 214 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
214 | {0xa0, 0x00, 0x0010}, | 215 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
215 | {0xa0, 0x01, 0x0001}, | 216 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
216 | {0xa0, 0x20, 0x0080}, | 217 | {0xa0, 0x20, ZC3XX_R080_HBLANKHIGH}, |
217 | {0xa0, 0x21, 0x0081}, | 218 | {0xa0, 0x21, ZC3XX_R081_HBLANKLOW}, |
218 | {0xa0, 0x30, 0x0083}, | 219 | {0xa0, 0x30, ZC3XX_R083_RGAINADDR}, |
219 | {0xa0, 0x31, 0x0084}, | 220 | {0xa0, 0x31, ZC3XX_R084_GGAINADDR}, |
220 | {0xa0, 0x32, 0x0085}, | 221 | {0xa0, 0x32, ZC3XX_R085_BGAINADDR}, |
221 | {0xa0, 0x23, 0x0086}, | 222 | {0xa0, 0x23, ZC3XX_R086_EXPTIMEHIGH}, |
222 | {0xa0, 0x24, 0x0087}, | 223 | {0xa0, 0x24, ZC3XX_R087_EXPTIMEMID}, |
223 | {0xa0, 0x25, 0x0088}, | 224 | {0xa0, 0x25, ZC3XX_R088_EXPTIMELOW}, |
224 | {0xa0, 0xb3, 0x008b}, | 225 | {0xa0, 0xb3, ZC3XX_R08B_I2CDEVICEADDR}, |
225 | {0xa0, 0x03, 0x0008}, /* 00 */ | 226 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
226 | {0xa0, 0x03, 0x0012}, | 227 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
227 | {0xa0, 0x01, 0x0012}, | 228 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
228 | {0xa0, 0x02, 0x0003}, | 229 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
229 | {0xa0, 0x80, 0x0004}, | 230 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
230 | {0xa0, 0x01, 0x0005}, | 231 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
231 | {0xa0, 0xe0, 0x0006}, | 232 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
232 | {0xa0, 0x00, 0x0098}, | 233 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
233 | {0xa0, 0x00, 0x009a}, | 234 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
234 | {0xa0, 0x00, 0x011a}, | 235 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
235 | {0xa0, 0x00, 0x011c}, | 236 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
236 | {0xaa, 0x02, 0x0008}, | 237 | {0xaa, 0x02, 0x0008}, |
237 | {0xaa, 0x03, 0x0000}, | 238 | {0xaa, 0x03, 0x0000}, |
238 | {0xaa, 0x11, 0x0000}, | 239 | {0xaa, 0x11, 0x0000}, |
@@ -245,124 +246,124 @@ static const struct usb_action cs2102_Initial[] = { | |||
245 | {0xaa, 0x30, 0x0030}, | 246 | {0xaa, 0x30, 0x0030}, |
246 | {0xaa, 0x31, 0x0030}, | 247 | {0xaa, 0x31, 0x0030}, |
247 | {0xaa, 0x32, 0x0030}, | 248 | {0xaa, 0x32, 0x0030}, |
248 | {0xa0, 0x37, 0x0101}, | 249 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
249 | {0xa0, 0x00, 0x0019}, | 250 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
250 | {0xa0, 0x05, 0x0012}, | 251 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
251 | {0xa0, 0x0d, 0x0100}, | 252 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
252 | {0xa0, 0x06, 0x0189}, | 253 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
253 | {0xa0, 0x03, 0x01c5}, | 254 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
254 | {0xa0, 0x13, 0x01cb}, | 255 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
255 | {0xa0, 0x10, 0x01ae}, | 256 | {0xa0, 0x10, 0x01ae}, |
256 | {0xa0, 0x08, 0x0250}, | 257 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
257 | {0xa0, 0x08, 0x0301}, | 258 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
258 | {0xa0, 0x68, 0x018d}, | 259 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
259 | {0xa0, 0x00, 0x01ad}, | 260 | {0xa0, 0x00, 0x01ad}, |
260 | {0xa1, 0x01, 0x0002}, | 261 | {0xa1, 0x01, 0x0002}, |
261 | {0xa1, 0x01, 0x0008}, | 262 | {0xa1, 0x01, 0x0008}, |
262 | {0xa0, 0x03, 0x0008}, /* 00 */ | 263 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
263 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 264 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
264 | {0xa1, 0x01, 0x01c8}, | 265 | {0xa1, 0x01, 0x01c8}, |
265 | {0xa1, 0x01, 0x01c9}, | 266 | {0xa1, 0x01, 0x01c9}, |
266 | {0xa1, 0x01, 0x01ca}, | 267 | {0xa1, 0x01, 0x01ca}, |
267 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 268 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
268 | {0xa0, 0x24, 0x0120}, /* gamma 5 */ | 269 | {0xa0, 0x24, ZC3XX_R120_GAMMA00}, /* gamma 5 */ |
269 | {0xa0, 0x44, 0x0121}, | 270 | {0xa0, 0x44, ZC3XX_R121_GAMMA01}, |
270 | {0xa0, 0x64, 0x0122}, | 271 | {0xa0, 0x64, ZC3XX_R122_GAMMA02}, |
271 | {0xa0, 0x84, 0x0123}, | 272 | {0xa0, 0x84, ZC3XX_R123_GAMMA03}, |
272 | {0xa0, 0x9d, 0x0124}, | 273 | {0xa0, 0x9d, ZC3XX_R124_GAMMA04}, |
273 | {0xa0, 0xb2, 0x0125}, | 274 | {0xa0, 0xb2, ZC3XX_R125_GAMMA05}, |
274 | {0xa0, 0xc4, 0x0126}, | 275 | {0xa0, 0xc4, ZC3XX_R126_GAMMA06}, |
275 | {0xa0, 0xd3, 0x0127}, | 276 | {0xa0, 0xd3, ZC3XX_R127_GAMMA07}, |
276 | {0xa0, 0xe0, 0x0128}, | 277 | {0xa0, 0xe0, ZC3XX_R128_GAMMA08}, |
277 | {0xa0, 0xeb, 0x0129}, | 278 | {0xa0, 0xeb, ZC3XX_R129_GAMMA09}, |
278 | {0xa0, 0xf4, 0x012a}, | 279 | {0xa0, 0xf4, ZC3XX_R12A_GAMMA0A}, |
279 | {0xa0, 0xfb, 0x012b}, | 280 | {0xa0, 0xfb, ZC3XX_R12B_GAMMA0B}, |
280 | {0xa0, 0xff, 0x012c}, | 281 | {0xa0, 0xff, ZC3XX_R12C_GAMMA0C}, |
281 | {0xa0, 0xff, 0x012d}, | 282 | {0xa0, 0xff, ZC3XX_R12D_GAMMA0D}, |
282 | {0xa0, 0xff, 0x012e}, | 283 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
283 | {0xa0, 0xff, 0x012f}, | 284 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
284 | {0xa0, 0x18, 0x0130}, | 285 | {0xa0, 0x18, ZC3XX_R130_GAMMA10}, |
285 | {0xa0, 0x20, 0x0131}, | 286 | {0xa0, 0x20, ZC3XX_R131_GAMMA11}, |
286 | {0xa0, 0x20, 0x0132}, | 287 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
287 | {0xa0, 0x1c, 0x0133}, | 288 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
288 | {0xa0, 0x16, 0x0134}, | 289 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
289 | {0xa0, 0x13, 0x0135}, | 290 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
290 | {0xa0, 0x10, 0x0136}, | 291 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
291 | {0xa0, 0x0e, 0x0137}, | 292 | {0xa0, 0x0e, ZC3XX_R137_GAMMA17}, |
292 | {0xa0, 0x0b, 0x0138}, | 293 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
293 | {0xa0, 0x09, 0x0139}, | 294 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
294 | {0xa0, 0x07, 0x013a}, | 295 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
295 | {0xa0, 0x06, 0x013b}, | 296 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
296 | {0xa0, 0x00, 0x013c}, | 297 | {0xa0, 0x00, ZC3XX_R13C_GAMMA1C}, |
297 | {0xa0, 0x00, 0x013d}, | 298 | {0xa0, 0x00, ZC3XX_R13D_GAMMA1D}, |
298 | {0xa0, 0x00, 0x013e}, | 299 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
299 | {0xa0, 0x01, 0x013f}, | 300 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
300 | {0xa0, 0x58, 0x010a}, /* matrix */ | 301 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
301 | {0xa0, 0xf4, 0x010b}, | 302 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
302 | {0xa0, 0xf4, 0x010c}, | 303 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
303 | {0xa0, 0xf4, 0x010d}, | 304 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
304 | {0xa0, 0x58, 0x010e}, | 305 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
305 | {0xa0, 0xf4, 0x010f}, | 306 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
306 | {0xa0, 0xf4, 0x0110}, | 307 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
307 | {0xa0, 0xf4, 0x0111}, | 308 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
308 | {0xa0, 0x58, 0x0112}, | 309 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
309 | {0xa1, 0x01, 0x0180}, | 310 | {0xa1, 0x01, 0x0180}, |
310 | {0xa0, 0x00, 0x0180}, | 311 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
311 | {0xa0, 0x00, 0x0019}, | 312 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
312 | {0xaa, 0x23, 0x0001}, | 313 | {0xaa, 0x23, 0x0001}, |
313 | {0xaa, 0x24, 0x0055}, | 314 | {0xaa, 0x24, 0x0055}, |
314 | {0xaa, 0x25, 0x00cc}, | 315 | {0xaa, 0x25, 0x00cc}, |
315 | {0xaa, 0x21, 0x003f}, | 316 | {0xaa, 0x21, 0x003f}, |
316 | {0xa0, 0x02, 0x0190}, | 317 | {0xa0, 0x02, ZC3XX_R190_EXPOSURELIMITHIGH}, |
317 | {0xa0, 0xab, 0x0191}, | 318 | {0xa0, 0xab, ZC3XX_R191_EXPOSURELIMITMID}, |
318 | {0xa0, 0x98, 0x0192}, | 319 | {0xa0, 0x98, ZC3XX_R192_EXPOSURELIMITLOW}, |
319 | {0xa0, 0x00, 0x0195}, | 320 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
320 | {0xa0, 0x30, 0x0196}, | 321 | {0xa0, 0x30, ZC3XX_R196_ANTIFLICKERMID}, |
321 | {0xa0, 0xd4, 0x0197}, | 322 | {0xa0, 0xd4, ZC3XX_R197_ANTIFLICKERLOW}, |
322 | {0xa0, 0x10, 0x018c}, | 323 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
323 | {0xa0, 0x20, 0x018f}, | 324 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
324 | {0xa0, 0x10, 0x01a9}, | 325 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
325 | {0xa0, 0x24, 0x01aa}, | 326 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
326 | {0xa0, 0x39, 0x001d}, | 327 | {0xa0, 0x39, ZC3XX_R01D_HSYNC_0}, |
327 | {0xa0, 0x70, 0x001e}, | 328 | {0xa0, 0x70, ZC3XX_R01E_HSYNC_1}, |
328 | {0xa0, 0xb0, 0x001f}, | 329 | {0xa0, 0xb0, ZC3XX_R01F_HSYNC_2}, |
329 | {0xa0, 0xff, 0x0020}, | 330 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
330 | {0xa0, 0x40, 0x0180}, | 331 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
331 | {0xa1, 0x01, 0x0180}, | 332 | {0xa1, 0x01, 0x0180}, |
332 | {0xa0, 0x42, 0x0180}, | 333 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
333 | {0xa0, 0x40, 0x0116}, | 334 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
334 | {0xa0, 0x40, 0x0117}, | 335 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
335 | {0xa0, 0x40, 0x0118}, | 336 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
336 | {} | 337 | {} |
337 | }; | 338 | }; |
338 | 339 | ||
339 | static const struct usb_action cs2102_InitialScale[] = { | 340 | static const struct usb_action cs2102_InitialScale[] = { |
340 | {0xa1, 0x01, 0x0008}, | 341 | {0xa1, 0x01, 0x0008}, |
341 | {0xa1, 0x01, 0x0008}, | 342 | {0xa1, 0x01, 0x0008}, |
342 | {0xa0, 0x01, 0x0000}, | 343 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
343 | {0xa0, 0x00, 0x0002}, | 344 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
344 | {0xa0, 0x00, 0x0010}, | 345 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
345 | {0xa0, 0x01, 0x0001}, | 346 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
346 | {0xa0, 0x20, 0x0080}, | 347 | {0xa0, 0x20, ZC3XX_R080_HBLANKHIGH}, |
347 | {0xa0, 0x21, 0x0081}, | 348 | {0xa0, 0x21, ZC3XX_R081_HBLANKLOW}, |
348 | {0xa0, 0x30, 0x0083}, | 349 | {0xa0, 0x30, ZC3XX_R083_RGAINADDR}, |
349 | {0xa0, 0x31, 0x0084}, | 350 | {0xa0, 0x31, ZC3XX_R084_GGAINADDR}, |
350 | {0xa0, 0x32, 0x0085}, | 351 | {0xa0, 0x32, ZC3XX_R085_BGAINADDR}, |
351 | {0xa0, 0x23, 0x0086}, | 352 | {0xa0, 0x23, ZC3XX_R086_EXPTIMEHIGH}, |
352 | {0xa0, 0x24, 0x0087}, | 353 | {0xa0, 0x24, ZC3XX_R087_EXPTIMEMID}, |
353 | {0xa0, 0x25, 0x0088}, | 354 | {0xa0, 0x25, ZC3XX_R088_EXPTIMELOW}, |
354 | {0xa0, 0xb3, 0x008b}, | 355 | {0xa0, 0xb3, ZC3XX_R08B_I2CDEVICEADDR}, |
355 | {0xa0, 0x03, 0x0008}, /* 00 */ | 356 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
356 | {0xa0, 0x03, 0x0012}, | 357 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
357 | {0xa0, 0x01, 0x0012}, | 358 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
358 | {0xa0, 0x02, 0x0003}, | 359 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
359 | {0xa0, 0x80, 0x0004}, | 360 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
360 | {0xa0, 0x01, 0x0005}, | 361 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
361 | {0xa0, 0xe0, 0x0006}, | 362 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
362 | {0xa0, 0x00, 0x0098}, | 363 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
363 | {0xa0, 0x00, 0x009a}, | 364 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
364 | {0xa0, 0x00, 0x011a}, | 365 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
365 | {0xa0, 0x00, 0x011c}, | 366 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
366 | {0xaa, 0x02, 0x0008}, | 367 | {0xaa, 0x02, 0x0008}, |
367 | {0xaa, 0x03, 0x0000}, | 368 | {0xaa, 0x03, 0x0000}, |
368 | {0xaa, 0x11, 0x0001}, | 369 | {0xaa, 0x11, 0x0001}, |
@@ -375,98 +376,98 @@ static const struct usb_action cs2102_InitialScale[] = { | |||
375 | {0xaa, 0x30, 0x0030}, | 376 | {0xaa, 0x30, 0x0030}, |
376 | {0xaa, 0x31, 0x0030}, | 377 | {0xaa, 0x31, 0x0030}, |
377 | {0xaa, 0x32, 0x0030}, | 378 | {0xaa, 0x32, 0x0030}, |
378 | {0xa0, 0x77, 0x0101}, | 379 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
379 | {0xa0, 0x00, 0x0019}, | 380 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
380 | {0xa0, 0x05, 0x0012}, | 381 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
381 | {0xa0, 0x0d, 0x0100}, | 382 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
382 | {0xa0, 0x06, 0x0189}, | 383 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
383 | {0xa0, 0x03, 0x01c5}, | 384 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
384 | {0xa0, 0x13, 0x01cb}, | 385 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
385 | {0xa0, 0x15, 0x01ae}, | 386 | {0xa0, 0x15, 0x01ae}, |
386 | {0xa0, 0x08, 0x0250}, | 387 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
387 | {0xa0, 0x08, 0x0301}, | 388 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
388 | {0xa0, 0x68, 0x018d}, | 389 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
389 | {0xa0, 0x00, 0x01ad}, | 390 | {0xa0, 0x00, 0x01ad}, |
390 | {0xa1, 0x01, 0x0002}, | 391 | {0xa1, 0x01, 0x0002}, |
391 | {0xa1, 0x01, 0x0008}, | 392 | {0xa1, 0x01, 0x0008}, |
392 | {0xa0, 0x03, 0x0008}, /* 00 */ | 393 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
393 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 394 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
394 | {0xa1, 0x01, 0x01c8}, | 395 | {0xa1, 0x01, 0x01c8}, |
395 | {0xa1, 0x01, 0x01c9}, | 396 | {0xa1, 0x01, 0x01c9}, |
396 | {0xa1, 0x01, 0x01ca}, | 397 | {0xa1, 0x01, 0x01ca}, |
397 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 398 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
398 | {0xa0, 0x24, 0x0120}, /* gamma 5 */ | 399 | {0xa0, 0x24, ZC3XX_R120_GAMMA00}, /* gamma 5 */ |
399 | {0xa0, 0x44, 0x0121}, | 400 | {0xa0, 0x44, ZC3XX_R121_GAMMA01}, |
400 | {0xa0, 0x64, 0x0122}, | 401 | {0xa0, 0x64, ZC3XX_R122_GAMMA02}, |
401 | {0xa0, 0x84, 0x0123}, | 402 | {0xa0, 0x84, ZC3XX_R123_GAMMA03}, |
402 | {0xa0, 0x9d, 0x0124}, | 403 | {0xa0, 0x9d, ZC3XX_R124_GAMMA04}, |
403 | {0xa0, 0xb2, 0x0125}, | 404 | {0xa0, 0xb2, ZC3XX_R125_GAMMA05}, |
404 | {0xa0, 0xc4, 0x0126}, | 405 | {0xa0, 0xc4, ZC3XX_R126_GAMMA06}, |
405 | {0xa0, 0xd3, 0x0127}, | 406 | {0xa0, 0xd3, ZC3XX_R127_GAMMA07}, |
406 | {0xa0, 0xe0, 0x0128}, | 407 | {0xa0, 0xe0, ZC3XX_R128_GAMMA08}, |
407 | {0xa0, 0xeb, 0x0129}, | 408 | {0xa0, 0xeb, ZC3XX_R129_GAMMA09}, |
408 | {0xa0, 0xf4, 0x012a}, | 409 | {0xa0, 0xf4, ZC3XX_R12A_GAMMA0A}, |
409 | {0xa0, 0xfb, 0x012b}, | 410 | {0xa0, 0xfb, ZC3XX_R12B_GAMMA0B}, |
410 | {0xa0, 0xff, 0x012c}, | 411 | {0xa0, 0xff, ZC3XX_R12C_GAMMA0C}, |
411 | {0xa0, 0xff, 0x012d}, | 412 | {0xa0, 0xff, ZC3XX_R12D_GAMMA0D}, |
412 | {0xa0, 0xff, 0x012e}, | 413 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
413 | {0xa0, 0xff, 0x012f}, | 414 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
414 | {0xa0, 0x18, 0x0130}, | 415 | {0xa0, 0x18, ZC3XX_R130_GAMMA10}, |
415 | {0xa0, 0x20, 0x0131}, | 416 | {0xa0, 0x20, ZC3XX_R131_GAMMA11}, |
416 | {0xa0, 0x20, 0x0132}, | 417 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
417 | {0xa0, 0x1c, 0x0133}, | 418 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
418 | {0xa0, 0x16, 0x0134}, | 419 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
419 | {0xa0, 0x13, 0x0135}, | 420 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
420 | {0xa0, 0x10, 0x0136}, | 421 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
421 | {0xa0, 0x0e, 0x0137}, | 422 | {0xa0, 0x0e, ZC3XX_R137_GAMMA17}, |
422 | {0xa0, 0x0b, 0x0138}, | 423 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
423 | {0xa0, 0x09, 0x0139}, | 424 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
424 | {0xa0, 0x07, 0x013a}, | 425 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
425 | {0xa0, 0x06, 0x013b}, | 426 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
426 | {0xa0, 0x00, 0x013c}, | 427 | {0xa0, 0x00, ZC3XX_R13C_GAMMA1C}, |
427 | {0xa0, 0x00, 0x013d}, | 428 | {0xa0, 0x00, ZC3XX_R13D_GAMMA1D}, |
428 | {0xa0, 0x00, 0x013e}, | 429 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
429 | {0xa0, 0x01, 0x013f}, | 430 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
430 | {0xa0, 0x58, 0x010a}, /* matrix */ | 431 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
431 | {0xa0, 0xf4, 0x010b}, | 432 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
432 | {0xa0, 0xf4, 0x010c}, | 433 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
433 | {0xa0, 0xf4, 0x010d}, | 434 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
434 | {0xa0, 0x58, 0x010e}, | 435 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
435 | {0xa0, 0xf4, 0x010f}, | 436 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
436 | {0xa0, 0xf4, 0x0110}, | 437 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
437 | {0xa0, 0xf4, 0x0111}, | 438 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
438 | {0xa0, 0x58, 0x0112}, | 439 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
439 | {0xa1, 0x01, 0x0180}, | 440 | {0xa1, 0x01, 0x0180}, |
440 | {0xa0, 0x00, 0x0180}, | 441 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
441 | {0xa0, 0x00, 0x0019}, | 442 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
442 | {0xaa, 0x23, 0x0000}, | 443 | {0xaa, 0x23, 0x0000}, |
443 | {0xaa, 0x24, 0x00aa}, | 444 | {0xaa, 0x24, 0x00aa}, |
444 | {0xaa, 0x25, 0x00e6}, | 445 | {0xaa, 0x25, 0x00e6}, |
445 | {0xaa, 0x21, 0x003f}, | 446 | {0xaa, 0x21, 0x003f}, |
446 | {0xa0, 0x01, 0x0190}, | 447 | {0xa0, 0x01, ZC3XX_R190_EXPOSURELIMITHIGH}, |
447 | {0xa0, 0x55, 0x0191}, | 448 | {0xa0, 0x55, ZC3XX_R191_EXPOSURELIMITMID}, |
448 | {0xa0, 0xcc, 0x0192}, | 449 | {0xa0, 0xcc, ZC3XX_R192_EXPOSURELIMITLOW}, |
449 | {0xa0, 0x00, 0x0195}, | 450 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
450 | {0xa0, 0x18, 0x0196}, | 451 | {0xa0, 0x18, ZC3XX_R196_ANTIFLICKERMID}, |
451 | {0xa0, 0x6a, 0x0197}, | 452 | {0xa0, 0x6a, ZC3XX_R197_ANTIFLICKERLOW}, |
452 | {0xa0, 0x10, 0x018c}, | 453 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
453 | {0xa0, 0x20, 0x018f}, | 454 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
454 | {0xa0, 0x10, 0x01a9}, | 455 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
455 | {0xa0, 0x24, 0x01aa}, | 456 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
456 | {0xa0, 0x3f, 0x001d}, | 457 | {0xa0, 0x3f, ZC3XX_R01D_HSYNC_0}, |
457 | {0xa0, 0xa5, 0x001e}, | 458 | {0xa0, 0xa5, ZC3XX_R01E_HSYNC_1}, |
458 | {0xa0, 0xf0, 0x001f}, | 459 | {0xa0, 0xf0, ZC3XX_R01F_HSYNC_2}, |
459 | {0xa0, 0xff, 0x0020}, | 460 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
460 | {0xa0, 0x40, 0x0180}, | 461 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
461 | {0xa1, 0x01, 0x0180}, | 462 | {0xa1, 0x01, 0x0180}, |
462 | {0xa0, 0x42, 0x0180}, | 463 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
463 | {0xa0, 0x40, 0x0116}, | 464 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
464 | {0xa0, 0x40, 0x0117}, | 465 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
465 | {0xa0, 0x40, 0x0118}, | 466 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
466 | {} | 467 | {} |
467 | }; | 468 | }; |
468 | static const struct usb_action cs2102_50HZ[] = { | 469 | static const struct usb_action cs2102_50HZ[] = { |
469 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 470 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
470 | {0xaa, 0x0f, 0x008c}, /* 00,0f,8c,aa */ | 471 | {0xaa, 0x0f, 0x008c}, /* 00,0f,8c,aa */ |
471 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ | 472 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ |
472 | {0xaa, 0x04, 0x00ac}, /* 00,04,ac,aa */ | 473 | {0xaa, 0x04, 0x00ac}, /* 00,04,ac,aa */ |
@@ -475,23 +476,23 @@ static const struct usb_action cs2102_50HZ[] = { | |||
475 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ | 476 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ |
476 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ | 477 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ |
477 | {0xaa, 0x1d, 0x00ac}, /* 00,1d,ac,aa */ | 478 | {0xaa, 0x1d, 0x00ac}, /* 00,1d,ac,aa */ |
478 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 479 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
479 | {0xa0, 0x3f, 0x0191}, /* 01,91,3f,cc */ | 480 | {0xa0, 0x3f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,3f,cc */ |
480 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 481 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
481 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 482 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
482 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 483 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
483 | {0xa0, 0x42, 0x0197}, /* 01,97,42,cc */ | 484 | {0xa0, 0x42, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,42,cc */ |
484 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 485 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
485 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 486 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
486 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 487 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
487 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc */ | 488 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
488 | {0xa0, 0x8c, 0x001d}, /* 00,1d,8c,cc */ | 489 | {0xa0, 0x8c, ZC3XX_R01D_HSYNC_0}, /* 00,1d,8c,cc */ |
489 | {0xa0, 0xb0, 0x001e}, /* 00,1e,b0,cc */ | 490 | {0xa0, 0xb0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,b0,cc */ |
490 | {0xa0, 0xd0, 0x001f}, /* 00,1f,d0,cc */ | 491 | {0xa0, 0xd0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,d0,cc */ |
491 | {} | 492 | {} |
492 | }; | 493 | }; |
493 | static const struct usb_action cs2102_50HZScale[] = { | 494 | static const struct usb_action cs2102_50HZScale[] = { |
494 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 495 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
495 | {0xaa, 0x0f, 0x0093}, /* 00,0f,93,aa */ | 496 | {0xaa, 0x0f, 0x0093}, /* 00,0f,93,aa */ |
496 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ | 497 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ |
497 | {0xaa, 0x04, 0x00a1}, /* 00,04,a1,aa */ | 498 | {0xaa, 0x04, 0x00a1}, /* 00,04,a1,aa */ |
@@ -500,23 +501,23 @@ static const struct usb_action cs2102_50HZScale[] = { | |||
500 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ | 501 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ |
501 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ | 502 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ |
502 | {0xaa, 0x1d, 0x00a1}, /* 00,1d,a1,aa */ | 503 | {0xaa, 0x1d, 0x00a1}, /* 00,1d,a1,aa */ |
503 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 504 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
504 | {0xa0, 0x3f, 0x0191}, /* 01,91,3f,cc */ | 505 | {0xa0, 0x3f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,3f,cc */ |
505 | {0xa0, 0xf7, 0x0192}, /* 01,92,f7,cc */ | 506 | {0xa0, 0xf7, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f7,cc */ |
506 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 507 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
507 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 508 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
508 | {0xa0, 0x83, 0x0197}, /* 01,97,83,cc */ | 509 | {0xa0, 0x83, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,83,cc */ |
509 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 510 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
510 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 511 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
511 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 512 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
512 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc */ | 513 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
513 | {0xa0, 0x93, 0x001d}, /* 00,1d,93,cc */ | 514 | {0xa0, 0x93, ZC3XX_R01D_HSYNC_0}, /* 00,1d,93,cc */ |
514 | {0xa0, 0xb0, 0x001e}, /* 00,1e,b0,cc */ | 515 | {0xa0, 0xb0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,b0,cc */ |
515 | {0xa0, 0xd0, 0x001f}, /* 00,1f,d0,cc */ | 516 | {0xa0, 0xd0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,d0,cc */ |
516 | {} | 517 | {} |
517 | }; | 518 | }; |
518 | static const struct usb_action cs2102_60HZ[] = { | 519 | static const struct usb_action cs2102_60HZ[] = { |
519 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 520 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
520 | {0xaa, 0x0f, 0x005d}, /* 00,0f,5d,aa */ | 521 | {0xaa, 0x0f, 0x005d}, /* 00,0f,5d,aa */ |
521 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ | 522 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ |
522 | {0xaa, 0x04, 0x00aa}, /* 00,04,aa,aa */ | 523 | {0xaa, 0x04, 0x00aa}, /* 00,04,aa,aa */ |
@@ -525,23 +526,23 @@ static const struct usb_action cs2102_60HZ[] = { | |||
525 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ | 526 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ |
526 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ | 527 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ |
527 | {0xaa, 0x1d, 0x00aa}, /* 00,1d,aa,aa */ | 528 | {0xaa, 0x1d, 0x00aa}, /* 00,1d,aa,aa */ |
528 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 529 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
529 | {0xa0, 0x3f, 0x0191}, /* 01,91,3f,cc */ | 530 | {0xa0, 0x3f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,3f,cc */ |
530 | {0xa0, 0xe4, 0x0192}, /* 01,92,e4,cc */ | 531 | {0xa0, 0xe4, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,e4,cc */ |
531 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 532 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
532 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 533 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
533 | {0xa0, 0x3a, 0x0197}, /* 01,97,3a,cc */ | 534 | {0xa0, 0x3a, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3a,cc */ |
534 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 535 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
535 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 536 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
536 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 537 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
537 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc */ | 538 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
538 | {0xa0, 0x5d, 0x001d}, /* 00,1d,5d,cc */ | 539 | {0xa0, 0x5d, ZC3XX_R01D_HSYNC_0}, /* 00,1d,5d,cc */ |
539 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 540 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
540 | {0xa0, 0xd0, 0x00c8}, /* 00,c8,d0,cc */ | 541 | {0xa0, 0xd0, 0x00c8}, /* 00,c8,d0,cc */ |
541 | {} | 542 | {} |
542 | }; | 543 | }; |
543 | static const struct usb_action cs2102_60HZScale[] = { | 544 | static const struct usb_action cs2102_60HZScale[] = { |
544 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 545 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
545 | {0xaa, 0x0f, 0x00b7}, /* 00,0f,b7,aa */ | 546 | {0xaa, 0x0f, 0x00b7}, /* 00,0f,b7,aa */ |
546 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ | 547 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ |
547 | {0xaa, 0x04, 0x00be}, /* 00,04,be,aa */ | 548 | {0xaa, 0x04, 0x00be}, /* 00,04,be,aa */ |
@@ -550,23 +551,23 @@ static const struct usb_action cs2102_60HZScale[] = { | |||
550 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ | 551 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ |
551 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ | 552 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ |
552 | {0xaa, 0x1d, 0x00be}, /* 00,1d,be,aa */ | 553 | {0xaa, 0x1d, 0x00be}, /* 00,1d,be,aa */ |
553 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 554 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
554 | {0xa0, 0x3f, 0x0191}, /* 01,91,3f,cc */ | 555 | {0xa0, 0x3f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,3f,cc */ |
555 | {0xa0, 0xfc, 0x0192}, /* 01,92,fc,cc */ | 556 | {0xa0, 0xfc, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,fc,cc */ |
556 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 557 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
557 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 558 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
558 | {0xa0, 0x69, 0x0197}, /* 01,97,69,cc */ | 559 | {0xa0, 0x69, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,69,cc */ |
559 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 560 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
560 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 561 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
561 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 562 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
562 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc */ | 563 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
563 | {0xa0, 0xb7, 0x001d}, /* 00,1d,b7,cc */ | 564 | {0xa0, 0xb7, ZC3XX_R01D_HSYNC_0}, /* 00,1d,b7,cc */ |
564 | {0xa0, 0xd0, 0x001e}, /* 00,1e,d0,cc */ | 565 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
565 | {0xa0, 0xe8, 0x001f}, /* 00,1f,e8,cc */ | 566 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
566 | {} | 567 | {} |
567 | }; | 568 | }; |
568 | static const struct usb_action cs2102_NoFliker[] = { | 569 | static const struct usb_action cs2102_NoFliker[] = { |
569 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 570 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
570 | {0xaa, 0x0f, 0x0059}, /* 00,0f,59,aa */ | 571 | {0xaa, 0x0f, 0x0059}, /* 00,0f,59,aa */ |
571 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ | 572 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ |
572 | {0xaa, 0x04, 0x0080}, /* 00,04,80,aa */ | 573 | {0xaa, 0x04, 0x0080}, /* 00,04,80,aa */ |
@@ -575,23 +576,23 @@ static const struct usb_action cs2102_NoFliker[] = { | |||
575 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ | 576 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ |
576 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ | 577 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ |
577 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ | 578 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ |
578 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 579 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
579 | {0xa0, 0x3f, 0x0191}, /* 01,91,3f,cc */ | 580 | {0xa0, 0x3f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,3f,cc */ |
580 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 581 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
581 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 582 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
582 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 583 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
583 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 584 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
584 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 585 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
585 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 586 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
586 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 587 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
587 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 588 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
588 | {0xa0, 0x59, 0x001d}, /* 00,1d,59,cc */ | 589 | {0xa0, 0x59, ZC3XX_R01D_HSYNC_0}, /* 00,1d,59,cc */ |
589 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 590 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
590 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc */ | 591 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
591 | {} | 592 | {} |
592 | }; | 593 | }; |
593 | static const struct usb_action cs2102_NoFlikerScale[] = { | 594 | static const struct usb_action cs2102_NoFlikerScale[] = { |
594 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 595 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
595 | {0xaa, 0x0f, 0x0059}, /* 00,0f,59,aa */ | 596 | {0xaa, 0x0f, 0x0059}, /* 00,0f,59,aa */ |
596 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ | 597 | {0xaa, 0x03, 0x0005}, /* 00,03,05,aa */ |
597 | {0xaa, 0x04, 0x0080}, /* 00,04,80,aa */ | 598 | {0xaa, 0x04, 0x0080}, /* 00,04,80,aa */ |
@@ -600,878 +601,878 @@ static const struct usb_action cs2102_NoFlikerScale[] = { | |||
600 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ | 601 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa */ |
601 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ | 602 | {0xaa, 0x1c, 0x0005}, /* 00,1c,05,aa */ |
602 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ | 603 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ |
603 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 604 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
604 | {0xa0, 0x3f, 0x0191}, /* 01,91,3f,cc */ | 605 | {0xa0, 0x3f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,3f,cc */ |
605 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 606 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
606 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 607 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
607 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 608 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
608 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 609 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
609 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 610 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
610 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 611 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
611 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 612 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
612 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 613 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
613 | {0xa0, 0x59, 0x001d}, /* 00,1d,59,cc */ | 614 | {0xa0, 0x59, ZC3XX_R01D_HSYNC_0}, /* 00,1d,59,cc */ |
614 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 615 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
615 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc */ | 616 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
616 | {} | 617 | {} |
617 | }; | 618 | }; |
618 | 619 | ||
619 | /* CS2102_KOCOM */ | 620 | /* CS2102_KOCOM */ |
620 | static const struct usb_action cs2102K_Initial[] = { | 621 | static const struct usb_action cs2102K_Initial[] = { |
621 | {0xa0, 0x11, 0x0002}, | 622 | {0xa0, 0x11, ZC3XX_R002_CLOCKSELECT}, |
622 | {0xa0, 0x03, 0x0008}, | 623 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
623 | {0xa0, 0x08, 0x0010}, | 624 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
624 | {0xa0, 0x02, 0x0003}, | 625 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
625 | {0xa0, 0x80, 0x0004}, | 626 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
626 | {0xa0, 0x01, 0x0005}, | 627 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
627 | {0xa0, 0xe0, 0x0006}, | 628 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
628 | {0xa0, 0x01, 0x0001}, | 629 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
629 | {0xa0, 0x03, 0x0012}, | 630 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
630 | {0xa0, 0x01, 0x0012}, | 631 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
631 | {0xa0, 0x00, 0x0098}, | 632 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
632 | {0xa0, 0x00, 0x009a}, | 633 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
633 | {0xa0, 0x00, 0x011a}, | 634 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
634 | {0xa0, 0x00, 0x011c}, | 635 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
635 | {0xa0, 0xe8, 0x009c}, | 636 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
636 | {0xa0, 0x88, 0x009e}, | 637 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
637 | {0xa0, 0x55, 0x008b}, | 638 | {0xa0, 0x55, ZC3XX_R08B_I2CDEVICEADDR}, |
638 | {0xa0, 0x18, 0x0092}, | 639 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
639 | {0xa0, 0x00, 0x0093}, | 640 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
640 | {0xa0, 0x00, 0x0094}, | 641 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
641 | {0xa0, 0x01, 0x0090}, | 642 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
642 | {0xa0, 0x0a, 0x0092}, | 643 | {0xa0, 0x0a, ZC3XX_R092_I2CADDRESSSELECT}, |
643 | {0xa0, 0x02, 0x0093}, | 644 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
644 | {0xa0, 0x00, 0x0094}, | 645 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
645 | {0xa0, 0x01, 0x0090}, | 646 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
646 | {0xa0, 0x0b, 0x0092}, | 647 | {0xa0, 0x0b, ZC3XX_R092_I2CADDRESSSELECT}, |
647 | {0xa0, 0x02, 0x0093}, | 648 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
648 | {0xa0, 0x00, 0x0094}, | 649 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
649 | {0xa0, 0x01, 0x0090}, | 650 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
650 | {0xa0, 0x0c, 0x0092}, | 651 | {0xa0, 0x0c, ZC3XX_R092_I2CADDRESSSELECT}, |
651 | {0xa0, 0x7c, 0x0093}, | 652 | {0xa0, 0x7c, ZC3XX_R093_I2CSETVALUE}, |
652 | {0xa0, 0x00, 0x0094}, | 653 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
653 | {0xa0, 0x01, 0x0090}, | 654 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
654 | {0xa0, 0x0d, 0x0092}, | 655 | {0xa0, 0x0d, ZC3XX_R092_I2CADDRESSSELECT}, |
655 | {0xa0, 0xa3, 0x0093}, | 656 | {0xa0, 0xa3, ZC3XX_R093_I2CSETVALUE}, |
656 | {0xa0, 0x00, 0x0094}, | 657 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
657 | {0xa0, 0x01, 0x0090}, | 658 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
658 | {0xa0, 0x03, 0x0092}, | 659 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
659 | {0xa0, 0xfb, 0x0093}, | 660 | {0xa0, 0xfb, ZC3XX_R093_I2CSETVALUE}, |
660 | {0xa0, 0x00, 0x0094}, | 661 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
661 | {0xa0, 0x01, 0x0090}, | 662 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
662 | {0xa0, 0x05, 0x0092}, | 663 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
663 | {0xa0, 0x00, 0x0093}, | 664 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
664 | {0xa0, 0x00, 0x0094}, | 665 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
665 | {0xa0, 0x01, 0x0090}, | 666 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
666 | {0xa0, 0x06, 0x0092}, | 667 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
667 | {0xa0, 0x03, 0x0093}, | 668 | {0xa0, 0x03, ZC3XX_R093_I2CSETVALUE}, |
668 | {0xa0, 0x00, 0x0094}, | 669 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
669 | {0xa0, 0x01, 0x0090}, | 670 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
670 | {0xa0, 0x09, 0x0092}, | 671 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
671 | {0xa0, 0x08, 0x0093}, | 672 | {0xa0, 0x08, ZC3XX_R093_I2CSETVALUE}, |
672 | {0xa0, 0x00, 0x0094}, | 673 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
673 | {0xa0, 0x01, 0x0090}, | 674 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
674 | {0xa0, 0x0e, 0x0092}, | 675 | {0xa0, 0x0e, ZC3XX_R092_I2CADDRESSSELECT}, |
675 | {0xa0, 0x04, 0x0093}, | 676 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
676 | {0xa0, 0x00, 0x0094}, | 677 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
677 | {0xa0, 0x01, 0x0090}, | 678 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
678 | {0xa0, 0x0f, 0x0092}, | 679 | {0xa0, 0x0f, ZC3XX_R092_I2CADDRESSSELECT}, |
679 | {0xa0, 0x18, 0x0093}, | 680 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
680 | {0xa0, 0x00, 0x0094}, | 681 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
681 | {0xa0, 0x01, 0x0090}, | 682 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
682 | {0xa0, 0x10, 0x0092}, | 683 | {0xa0, 0x10, ZC3XX_R092_I2CADDRESSSELECT}, |
683 | {0xa0, 0x18, 0x0093}, | 684 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
684 | {0xa0, 0x00, 0x0094}, | 685 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
685 | {0xa0, 0x01, 0x0090}, | 686 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
686 | {0xa0, 0x11, 0x0092}, | 687 | {0xa0, 0x11, ZC3XX_R092_I2CADDRESSSELECT}, |
687 | {0xa0, 0x18, 0x0093}, | 688 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
688 | {0xa0, 0x00, 0x0094}, | 689 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
689 | {0xa0, 0x01, 0x0090}, | 690 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
690 | {0xa0, 0x12, 0x0092}, | 691 | {0xa0, 0x12, ZC3XX_R092_I2CADDRESSSELECT}, |
691 | {0xa0, 0x18, 0x0093}, | 692 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
692 | {0xa0, 0x00, 0x0094}, | 693 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
693 | {0xa0, 0x01, 0x0090}, | 694 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
694 | {0xa0, 0x15, 0x0092}, | 695 | {0xa0, 0x15, ZC3XX_R092_I2CADDRESSSELECT}, |
695 | {0xa0, 0x00, 0x0093}, | 696 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
696 | {0xa0, 0x00, 0x0094}, | 697 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
697 | {0xa0, 0x01, 0x0090}, | 698 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
698 | {0xa0, 0x16, 0x0092}, | 699 | {0xa0, 0x16, ZC3XX_R092_I2CADDRESSSELECT}, |
699 | {0xa0, 0x0c, 0x0093}, | 700 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
700 | {0xa0, 0x00, 0x0094}, | 701 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
701 | {0xa0, 0x01, 0x0090}, | 702 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
702 | {0xa0, 0x17, 0x0092}, | 703 | {0xa0, 0x17, ZC3XX_R092_I2CADDRESSSELECT}, |
703 | {0xa0, 0x0c, 0x0093}, | 704 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
704 | {0xa0, 0x00, 0x0094}, | 705 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
705 | {0xa0, 0x01, 0x0090}, | 706 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
706 | {0xa0, 0x18, 0x0092}, | 707 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
707 | {0xa0, 0x04, 0x0093}, | 708 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
708 | {0xa0, 0x00, 0x0094}, | 709 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
709 | {0xa0, 0x01, 0x0090}, | 710 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
710 | {0xa0, 0xb7, 0x0101}, | 711 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
711 | {0xa0, 0x05, 0x0012}, | 712 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
712 | {0xa0, 0x78, 0x018d}, | 713 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
713 | {0xa0, 0x0d, 0x0100}, | 714 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
714 | {0xa0, 0x06, 0x0189}, | 715 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
715 | {0xa0, 0x03, 0x01c5}, | 716 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
716 | {0xa0, 0x13, 0x01cb}, | 717 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
717 | {0xa0, 0x20, 0x0087}, | 718 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
718 | {0xa0, 0x21, 0x0088}, | 719 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
719 | {0xa0, 0x08, 0x0250}, | 720 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
720 | {0xa0, 0x08, 0x0301}, | 721 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
721 | {0xa0, 0x00, 0x01ad}, | 722 | {0xa0, 0x00, 0x01ad}, |
722 | {0xa0, 0x01, 0x01b1}, | 723 | {0xa0, 0x01, 0x01b1}, |
723 | {0xa0, 0x02, 0x0180}, | 724 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
724 | {0xa0, 0x60, 0x0116}, | 725 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
725 | {0xa0, 0x40, 0x0117}, | 726 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
726 | {0xa0, 0x4c, 0x0118}, | 727 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
727 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 728 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
728 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 729 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
729 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 730 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
730 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 731 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
731 | {0xa0, 0x38, 0x0121}, | 732 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
732 | {0xa0, 0x59, 0x0122}, | 733 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
733 | {0xa0, 0x79, 0x0123}, | 734 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
734 | {0xa0, 0x92, 0x0124}, | 735 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
735 | {0xa0, 0xa7, 0x0125}, | 736 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
736 | {0xa0, 0xb9, 0x0126}, | 737 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
737 | {0xa0, 0xc8, 0x0127}, | 738 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
738 | {0xa0, 0xd4, 0x0128}, | 739 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
739 | {0xa0, 0xdf, 0x0129}, | 740 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
740 | {0xa0, 0xe7, 0x012a}, | 741 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
741 | {0xa0, 0xee, 0x012b}, | 742 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
742 | {0xa0, 0xf4, 0x012c}, | 743 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
743 | {0xa0, 0xf9, 0x012d}, | 744 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
744 | {0xa0, 0xfc, 0x012e}, | 745 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
745 | {0xa0, 0xff, 0x012f}, | 746 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
746 | {0xa0, 0x26, 0x0130}, | 747 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
747 | {0xa0, 0x22, 0x0131}, | 748 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
748 | {0xa0, 0x20, 0x0132}, | 749 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
749 | {0xa0, 0x1c, 0x0133}, | 750 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
750 | {0xa0, 0x16, 0x0134}, | 751 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
751 | {0xa0, 0x13, 0x0135}, | 752 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
752 | {0xa0, 0x10, 0x0136}, | 753 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
753 | {0xa0, 0x0d, 0x0137}, | 754 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
754 | {0xa0, 0x0b, 0x0138}, | 755 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
755 | {0xa0, 0x09, 0x0139}, | 756 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
756 | {0xa0, 0x07, 0x013a}, | 757 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
757 | {0xa0, 0x06, 0x013b}, | 758 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
758 | {0xa0, 0x05, 0x013c}, | 759 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
759 | {0xa0, 0x04, 0x013d}, | 760 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
760 | {0xa0, 0x03, 0x013e}, | 761 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
761 | {0xa0, 0x02, 0x013f}, | 762 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
762 | {0xa0, 0x58, 0x010a}, /* matrix */ | 763 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
763 | {0xa0, 0xf4, 0x010b}, | 764 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
764 | {0xa0, 0xf4, 0x010c}, | 765 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
765 | {0xa0, 0xf4, 0x010d}, | 766 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
766 | {0xa0, 0x58, 0x010e}, | 767 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
767 | {0xa0, 0xf4, 0x010f}, | 768 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
768 | {0xa0, 0xf4, 0x0110}, | 769 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
769 | {0xa0, 0xf4, 0x0111}, | 770 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
770 | {0xa0, 0x58, 0x0112}, | 771 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
771 | {0xa0, 0x00, 0x0180}, | 772 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
772 | {0xa0, 0x00, 0x0019}, | 773 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
773 | {0xa0, 0x18, 0x0092}, | 774 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
774 | {0xa0, 0x00, 0x0093}, | 775 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
775 | {0xa0, 0x00, 0x0094}, | 776 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
776 | {0xa0, 0x01, 0x0090}, | 777 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
777 | {0xa0, 0x13, 0x0092}, | 778 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
778 | {0xa0, 0x22, 0x0093}, | 779 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
779 | {0xa0, 0x00, 0x0094}, | 780 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
780 | {0xa0, 0x01, 0x0090}, | 781 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
781 | {0xa0, 0x14, 0x0092}, | 782 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
782 | {0xa0, 0x01, 0x0093}, | 783 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
783 | {0xa0, 0x00, 0x0094}, | 784 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
784 | {0xa0, 0x01, 0x0090}, | 785 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
785 | {0xa0, 0x20, 0x0092}, | 786 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
786 | {0xa0, 0x01, 0x0093}, | 787 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
787 | {0xa0, 0x00, 0x0094}, | 788 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
788 | {0xa0, 0x01, 0x0090}, | 789 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
789 | {0xa0, 0x21, 0x0092}, | 790 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
790 | {0xa0, 0x22, 0x0093}, | 791 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
791 | {0xa0, 0x00, 0x0094}, | 792 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
792 | {0xa0, 0x01, 0x0090}, | 793 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
793 | {0xa0, 0x18, 0x0092}, | 794 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
794 | {0xa0, 0x04, 0x0093}, | 795 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
795 | {0xa0, 0x00, 0x0094}, | 796 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
796 | {0xa0, 0x01, 0x0090}, | 797 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
797 | {0xa0, 0x01, 0x00a3}, | 798 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
798 | {0xa0, 0x22, 0x00a4}, | 799 | {0xa0, 0x22, ZC3XX_R0A4_EXPOSURETIMELOW}, |
799 | {0xa0, 0x00, 0x0190}, | 800 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
800 | {0xa0, 0x07, 0x0191}, | 801 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
801 | {0xa0, 0xee, 0x0192}, | 802 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, |
802 | {0xa0, 0x00, 0x0195}, | 803 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
803 | {0xa0, 0x00, 0x0196}, | 804 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
804 | {0xa0, 0x3a, 0x0197}, | 805 | {0xa0, 0x3a, ZC3XX_R197_ANTIFLICKERLOW}, |
805 | {0xa0, 0x10, 0x018c}, | 806 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
806 | {0xa0, 0x20, 0x018f}, | 807 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
807 | {0xa0, 0x0c, 0x01a9}, | 808 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
808 | {0xa0, 0x28, 0x01aa}, | 809 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
809 | {0xa0, 0x04, 0x001d}, | 810 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
810 | {0xa0, 0x0f, 0x001e}, | 811 | {0xa0, 0x0f, ZC3XX_R01E_HSYNC_1}, |
811 | {0xa0, 0x19, 0x001f}, | 812 | {0xa0, 0x19, ZC3XX_R01F_HSYNC_2}, |
812 | {0xa0, 0x1f, 0x0020}, | 813 | {0xa0, 0x1f, ZC3XX_R020_HSYNC_3}, |
813 | {0xa0, 0x60, 0x011d}, | 814 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
814 | {0xa0, 0x60, 0x011d}, | 815 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
815 | {0xa0, 0x42, 0x0180}, | 816 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
816 | {0xa0, 0x42, 0x0180}, | 817 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
817 | {0xa0, 0x60, 0x0116}, | 818 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
818 | {0xa0, 0x40, 0x0117}, | 819 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
819 | {0xa0, 0x4c, 0x0118}, | 820 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
820 | {0xa0, 0x04, 0x01a7}, | 821 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
821 | {0xa0, 0x20, 0x0092}, | 822 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
822 | {0xa0, 0x01, 0x0093}, | 823 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
823 | {0xa0, 0x00, 0x0094}, | 824 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
824 | {0xa0, 0x01, 0x0090}, | 825 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
825 | {0xa0, 0x21, 0x0092}, | 826 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
826 | {0xa0, 0x5c, 0x0093}, | 827 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
827 | {0xa0, 0x00, 0x0094}, | 828 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
828 | {0xa0, 0x01, 0x0090}, | 829 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
829 | {0xa0, 0x18, 0x0092}, | 830 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
830 | {0xa0, 0x00, 0x0093}, | 831 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
831 | {0xa0, 0x00, 0x0094}, | 832 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
832 | {0xa0, 0x01, 0x0090}, | 833 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
833 | {0xa0, 0x13, 0x0092}, | 834 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
834 | {0xa0, 0x5c, 0x0093}, | 835 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
835 | {0xa0, 0x00, 0x0094}, | 836 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
836 | {0xa0, 0x01, 0x0090}, | 837 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
837 | {0xa0, 0x14, 0x0092}, | 838 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
838 | {0xa0, 0x01, 0x0093}, | 839 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
839 | {0xa0, 0x00, 0x0094}, | 840 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
840 | {0xa0, 0x01, 0x0090}, | 841 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
841 | {0xa0, 0x18, 0x0092}, | 842 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
842 | {0xa0, 0x04, 0x0093}, | 843 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
843 | {0xa0, 0x00, 0x0094}, | 844 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
844 | {0xa0, 0x01, 0x0090}, | 845 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
845 | {0xa0, 0x00, 0x01a7}, | 846 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
846 | {0xa0, 0x04, 0x01a7}, | 847 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
847 | {0xa0, 0x00, 0x01a7}, | 848 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
848 | {0xa0, 0x04, 0x01a7}, | 849 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
849 | {0xa0, 0x20, 0x0092}, | 850 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
850 | {0xa0, 0x01, 0x0093}, | 851 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
851 | {0xa0, 0x00, 0x0094}, | 852 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
852 | {0xa0, 0x01, 0x0090}, | 853 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
853 | {0xa0, 0x21, 0x0092}, | 854 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
854 | {0xa0, 0x96, 0x0093}, | 855 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
855 | {0xa0, 0x00, 0x0094}, | 856 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
856 | {0xa0, 0x01, 0x0090}, | 857 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
857 | {0xa0, 0x18, 0x0092}, | 858 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
858 | {0xa0, 0x00, 0x0093}, | 859 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
859 | {0xa0, 0x00, 0x0094}, | 860 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
860 | {0xa0, 0x01, 0x0090}, | 861 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
861 | {0xa0, 0x13, 0x0092}, | 862 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
862 | {0xa0, 0x96, 0x0093}, | 863 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
863 | {0xa0, 0x00, 0x0094}, | 864 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
864 | {0xa0, 0x01, 0x0090}, | 865 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
865 | {0xa0, 0x14, 0x0092}, | 866 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
866 | {0xa0, 0x01, 0x0093}, | 867 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
867 | {0xa0, 0x00, 0x0094}, | 868 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
868 | {0xa0, 0x01, 0x0090}, | 869 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
869 | {0xa0, 0x18, 0x0092}, | 870 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
870 | {0xa0, 0x04, 0x0093}, | 871 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
871 | {0xa0, 0x00, 0x0094}, | 872 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
872 | {0xa0, 0x01, 0x0090}, | 873 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
873 | {0xa0, 0x00, 0x01a7}, | 874 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
874 | {0xa0, 0x04, 0x01a7}, | 875 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
875 | {0xa0, 0x00, 0x01a7}, | 876 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
876 | {} | 877 | {} |
877 | }; | 878 | }; |
878 | 879 | ||
879 | static const struct usb_action cs2102K_InitialScale[] = { | 880 | static const struct usb_action cs2102K_InitialScale[] = { |
880 | {0xa0, 0x11, 0x0002}, | 881 | {0xa0, 0x11, ZC3XX_R002_CLOCKSELECT}, |
881 | {0xa0, 0x00, 0x0002}, | 882 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
882 | {0xa0, 0x03, 0x0008}, | 883 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
883 | {0xa0, 0x08, 0x0010}, | 884 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
884 | {0xa0, 0x02, 0x0003}, | 885 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
885 | {0xa0, 0x80, 0x0004}, | 886 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
886 | {0xa0, 0x01, 0x0005}, | 887 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
887 | {0xa0, 0xe0, 0x0006}, | 888 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
888 | {0xa0, 0x01, 0x0001}, | 889 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
889 | {0xa0, 0x03, 0x0012}, | 890 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
890 | {0xa0, 0x01, 0x0012}, | 891 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
891 | {0xa0, 0x00, 0x0098}, | 892 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
892 | {0xa0, 0x00, 0x009a}, | 893 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
893 | {0xa0, 0x00, 0x011a}, | 894 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
894 | {0xa0, 0x00, 0x011c}, | 895 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
895 | {0xa0, 0xe8, 0x009c}, | 896 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
896 | {0xa0, 0x88, 0x009e}, | 897 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
897 | {0xa0, 0x55, 0x008b}, | 898 | {0xa0, 0x55, ZC3XX_R08B_I2CDEVICEADDR}, |
898 | {0xa0, 0x18, 0x0092}, | 899 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
899 | {0xa0, 0x00, 0x0093}, | 900 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
900 | {0xa0, 0x00, 0x0094}, | 901 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
901 | {0xa0, 0x01, 0x0090}, | 902 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
902 | {0xa0, 0x0a, 0x0092}, | 903 | {0xa0, 0x0a, ZC3XX_R092_I2CADDRESSSELECT}, |
903 | {0xa0, 0x02, 0x0093}, | 904 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
904 | {0xa0, 0x00, 0x0094}, | 905 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
905 | {0xa0, 0x01, 0x0090}, | 906 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
906 | {0xa0, 0x0b, 0x0092}, | 907 | {0xa0, 0x0b, ZC3XX_R092_I2CADDRESSSELECT}, |
907 | {0xa0, 0x02, 0x0093}, | 908 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
908 | {0xa0, 0x00, 0x0094}, | 909 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
909 | {0xa0, 0x01, 0x0090}, | 910 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
910 | {0xa0, 0x0c, 0x0092}, | 911 | {0xa0, 0x0c, ZC3XX_R092_I2CADDRESSSELECT}, |
911 | {0xa0, 0x7b, 0x0093}, | 912 | {0xa0, 0x7b, ZC3XX_R093_I2CSETVALUE}, |
912 | {0xa0, 0x00, 0x0094}, | 913 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
913 | {0xa0, 0x01, 0x0090}, | 914 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
914 | {0xa0, 0x0d, 0x0092}, | 915 | {0xa0, 0x0d, ZC3XX_R092_I2CADDRESSSELECT}, |
915 | {0xa0, 0xa3, 0x0093}, | 916 | {0xa0, 0xa3, ZC3XX_R093_I2CSETVALUE}, |
916 | {0xa0, 0x00, 0x0094}, | 917 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
917 | {0xa0, 0x01, 0x0090}, | 918 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
918 | {0xa0, 0x03, 0x0092}, | 919 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
919 | {0xa0, 0xfb, 0x0093}, | 920 | {0xa0, 0xfb, ZC3XX_R093_I2CSETVALUE}, |
920 | {0xa0, 0x00, 0x0094}, | 921 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
921 | {0xa0, 0x01, 0x0090}, | 922 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
922 | {0xa0, 0x05, 0x0092}, | 923 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
923 | {0xa0, 0x00, 0x0093}, | 924 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
924 | {0xa0, 0x00, 0x0094}, | 925 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
925 | {0xa0, 0x01, 0x0090}, | 926 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
926 | {0xa0, 0x06, 0x0092}, | 927 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
927 | {0xa0, 0x03, 0x0093}, | 928 | {0xa0, 0x03, ZC3XX_R093_I2CSETVALUE}, |
928 | {0xa0, 0x00, 0x0094}, | 929 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
929 | {0xa0, 0x01, 0x0090}, | 930 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
930 | {0xa0, 0x09, 0x0092}, | 931 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
931 | {0xa0, 0x08, 0x0093}, | 932 | {0xa0, 0x08, ZC3XX_R093_I2CSETVALUE}, |
932 | {0xa0, 0x00, 0x0094}, | 933 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
933 | {0xa0, 0x01, 0x0090}, | 934 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
934 | {0xa0, 0x0e, 0x0092}, | 935 | {0xa0, 0x0e, ZC3XX_R092_I2CADDRESSSELECT}, |
935 | {0xa0, 0x04, 0x0093}, | 936 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
936 | {0xa0, 0x00, 0x0094}, | 937 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
937 | {0xa0, 0x01, 0x0090}, | 938 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
938 | {0xa0, 0x0f, 0x0092}, | 939 | {0xa0, 0x0f, ZC3XX_R092_I2CADDRESSSELECT}, |
939 | {0xa0, 0x18, 0x0093}, | 940 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
940 | {0xa0, 0x00, 0x0094}, | 941 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
941 | {0xa0, 0x01, 0x0090}, | 942 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
942 | {0xa0, 0x10, 0x0092}, | 943 | {0xa0, 0x10, ZC3XX_R092_I2CADDRESSSELECT}, |
943 | {0xa0, 0x18, 0x0093}, | 944 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
944 | {0xa0, 0x00, 0x0094}, | 945 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
945 | {0xa0, 0x01, 0x0090}, | 946 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
946 | {0xa0, 0x11, 0x0092}, | 947 | {0xa0, 0x11, ZC3XX_R092_I2CADDRESSSELECT}, |
947 | {0xa0, 0x18, 0x0093}, | 948 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
948 | {0xa0, 0x00, 0x0094}, | 949 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
949 | {0xa0, 0x01, 0x0090}, | 950 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
950 | {0xa0, 0x12, 0x0092}, | 951 | {0xa0, 0x12, ZC3XX_R092_I2CADDRESSSELECT}, |
951 | {0xa0, 0x18, 0x0093}, | 952 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
952 | {0xa0, 0x00, 0x0094}, | 953 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
953 | {0xa0, 0x01, 0x0090}, | 954 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
954 | {0xa0, 0x15, 0x0092}, | 955 | {0xa0, 0x15, ZC3XX_R092_I2CADDRESSSELECT}, |
955 | {0xa0, 0x00, 0x0093}, | 956 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
956 | {0xa0, 0x00, 0x0094}, | 957 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
957 | {0xa0, 0x01, 0x0090}, | 958 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
958 | {0xa0, 0x16, 0x0092}, | 959 | {0xa0, 0x16, ZC3XX_R092_I2CADDRESSSELECT}, |
959 | {0xa0, 0x0c, 0x0093}, | 960 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
960 | {0xa0, 0x00, 0x0094}, | 961 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
961 | {0xa0, 0x01, 0x0090}, | 962 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
962 | {0xa0, 0x17, 0x0092}, | 963 | {0xa0, 0x17, ZC3XX_R092_I2CADDRESSSELECT}, |
963 | {0xa0, 0x0c, 0x0093}, | 964 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
964 | {0xa0, 0x00, 0x0094}, | 965 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
965 | {0xa0, 0x01, 0x0090}, | 966 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
966 | {0xa0, 0x18, 0x0092}, | 967 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
967 | {0xa0, 0x04, 0x0093}, | 968 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
968 | {0xa0, 0x00, 0x0094}, | 969 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
969 | {0xa0, 0x01, 0x0090}, | 970 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
970 | {0xa0, 0xf7, 0x0101}, | 971 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
971 | {0xa0, 0x05, 0x0012}, | 972 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
972 | {0xa0, 0x78, 0x018d}, | 973 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
973 | {0xa0, 0x0d, 0x0100}, | 974 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
974 | {0xa0, 0x06, 0x0189}, | 975 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
975 | {0xa0, 0x03, 0x01c5}, | 976 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
976 | {0xa0, 0x13, 0x01cb}, | 977 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
977 | {0xa0, 0x20, 0x0087}, | 978 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
978 | {0xa0, 0x21, 0x0088}, | 979 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
979 | {0xa0, 0x08, 0x0250}, | 980 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
980 | {0xa0, 0x08, 0x0301}, | 981 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
981 | {0xa0, 0x00, 0x01ad}, | 982 | {0xa0, 0x00, 0x01ad}, |
982 | {0xa0, 0x01, 0x01b1}, | 983 | {0xa0, 0x01, 0x01b1}, |
983 | {0xa0, 0x02, 0x0180}, | 984 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
984 | {0xa0, 0x60, 0x0116}, | 985 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
985 | {0xa0, 0x40, 0x0117}, | 986 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
986 | {0xa0, 0x4c, 0x0118}, | 987 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
987 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 988 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
988 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 989 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
989 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 990 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
990 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 991 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
991 | {0xa0, 0x38, 0x0121}, | 992 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
992 | {0xa0, 0x59, 0x0122}, | 993 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
993 | {0xa0, 0x79, 0x0123}, | 994 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
994 | {0xa0, 0x92, 0x0124}, | 995 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
995 | {0xa0, 0xa7, 0x0125}, | 996 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
996 | {0xa0, 0xb9, 0x0126}, | 997 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
997 | {0xa0, 0xc8, 0x0127}, | 998 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
998 | {0xa0, 0xd4, 0x0128}, | 999 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
999 | {0xa0, 0xdf, 0x0129}, | 1000 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
1000 | {0xa0, 0xe7, 0x012a}, | 1001 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
1001 | {0xa0, 0xee, 0x012b}, | 1002 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
1002 | {0xa0, 0xf4, 0x012c}, | 1003 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
1003 | {0xa0, 0xf9, 0x012d}, | 1004 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
1004 | {0xa0, 0xfc, 0x012e}, | 1005 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
1005 | {0xa0, 0xff, 0x012f}, | 1006 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
1006 | {0xa0, 0x26, 0x0130}, | 1007 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
1007 | {0xa0, 0x22, 0x0131}, | 1008 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
1008 | {0xa0, 0x20, 0x0132}, | 1009 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
1009 | {0xa0, 0x1c, 0x0133}, | 1010 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
1010 | {0xa0, 0x16, 0x0134}, | 1011 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
1011 | {0xa0, 0x13, 0x0135}, | 1012 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
1012 | {0xa0, 0x10, 0x0136}, | 1013 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
1013 | {0xa0, 0x0d, 0x0137}, | 1014 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
1014 | {0xa0, 0x0b, 0x0138}, | 1015 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
1015 | {0xa0, 0x09, 0x0139}, | 1016 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
1016 | {0xa0, 0x07, 0x013a}, | 1017 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
1017 | {0xa0, 0x06, 0x013b}, | 1018 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
1018 | {0xa0, 0x05, 0x013c}, | 1019 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
1019 | {0xa0, 0x04, 0x013d}, | 1020 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
1020 | {0xa0, 0x03, 0x013e}, | 1021 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
1021 | {0xa0, 0x02, 0x013f}, | 1022 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
1022 | {0xa0, 0x58, 0x010a}, /* matrix */ | 1023 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
1023 | {0xa0, 0xf4, 0x010b}, | 1024 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
1024 | {0xa0, 0xf4, 0x010c}, | 1025 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
1025 | {0xa0, 0xf4, 0x010d}, | 1026 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
1026 | {0xa0, 0x58, 0x010e}, | 1027 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
1027 | {0xa0, 0xf4, 0x010f}, | 1028 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
1028 | {0xa0, 0xf4, 0x0110}, | 1029 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
1029 | {0xa0, 0xf4, 0x0111}, | 1030 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
1030 | {0xa0, 0x58, 0x0112}, | 1031 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
1031 | {0xa0, 0x00, 0x0180}, | 1032 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
1032 | {0xa0, 0x00, 0x0019}, | 1033 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
1033 | {0xa0, 0x18, 0x0092}, | 1034 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1034 | {0xa0, 0x00, 0x0093}, | 1035 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1035 | {0xa0, 0x00, 0x0094}, | 1036 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1036 | {0xa0, 0x01, 0x0090}, | 1037 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1037 | {0xa0, 0x13, 0x0092}, | 1038 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1038 | {0xa0, 0x22, 0x0093}, | 1039 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
1039 | {0xa0, 0x00, 0x0094}, | 1040 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1040 | {0xa0, 0x01, 0x0090}, | 1041 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1041 | {0xa0, 0x14, 0x0092}, | 1042 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1042 | {0xa0, 0x01, 0x0093}, | 1043 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1043 | {0xa0, 0x00, 0x0094}, | 1044 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1044 | {0xa0, 0x01, 0x0090}, | 1045 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1045 | {0xa0, 0x20, 0x0092}, | 1046 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1046 | {0xa0, 0x01, 0x0093}, | 1047 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1047 | {0xa0, 0x00, 0x0094}, | 1048 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1048 | {0xa0, 0x01, 0x0090}, | 1049 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1049 | {0xa0, 0x21, 0x0092}, | 1050 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1050 | {0xa0, 0x22, 0x0093}, | 1051 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
1051 | {0xa0, 0x00, 0x0094}, | 1052 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1052 | {0xa0, 0x01, 0x0090}, | 1053 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1053 | {0xa0, 0x18, 0x0092}, | 1054 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1054 | {0xa0, 0x04, 0x0093}, | 1055 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1055 | {0xa0, 0x00, 0x0094}, | 1056 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1056 | {0xa0, 0x01, 0x0090}, | 1057 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1057 | {0xa0, 0x01, 0x00a3}, | 1058 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
1058 | {0xa0, 0x22, 0x00a4}, | 1059 | {0xa0, 0x22, ZC3XX_R0A4_EXPOSURETIMELOW}, |
1059 | {0xa0, 0x00, 0x0190}, | 1060 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
1060 | {0xa0, 0x07, 0x0191}, | 1061 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
1061 | {0xa0, 0xee, 0x0192}, | 1062 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, |
1062 | {0xa0, 0x00, 0x0195}, | 1063 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
1063 | {0xa0, 0x00, 0x0196}, | 1064 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
1064 | {0xa0, 0x3a, 0x0197}, | 1065 | {0xa0, 0x3a, ZC3XX_R197_ANTIFLICKERLOW}, |
1065 | {0xa0, 0x10, 0x018c}, | 1066 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
1066 | {0xa0, 0x20, 0x018f}, | 1067 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
1067 | {0xa0, 0x0c, 0x01a9}, | 1068 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
1068 | {0xa0, 0x28, 0x01aa}, | 1069 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
1069 | {0xa0, 0x04, 0x001d}, | 1070 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
1070 | {0xa0, 0x0f, 0x001e}, | 1071 | {0xa0, 0x0f, ZC3XX_R01E_HSYNC_1}, |
1071 | {0xa0, 0x19, 0x001f}, | 1072 | {0xa0, 0x19, ZC3XX_R01F_HSYNC_2}, |
1072 | {0xa0, 0x1f, 0x0020}, | 1073 | {0xa0, 0x1f, ZC3XX_R020_HSYNC_3}, |
1073 | {0xa0, 0x60, 0x011d}, | 1074 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
1074 | {0xa0, 0x60, 0x011d}, | 1075 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
1075 | {0xa0, 0x42, 0x0180}, | 1076 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
1076 | {0xa0, 0x42, 0x0180}, | 1077 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
1077 | {0xa0, 0x60, 0x0116}, | 1078 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
1078 | {0xa0, 0x40, 0x0117}, | 1079 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1079 | {0xa0, 0x4c, 0x0118}, | 1080 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
1080 | {0xa0, 0x01, 0x0000}, | 1081 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
1081 | {0xa0, 0x01, 0x0000}, | 1082 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
1082 | {0xa0, 0x00, 0x0002}, | 1083 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
1083 | {0xa0, 0x03, 0x0008}, | 1084 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
1084 | {0xa0, 0x08, 0x0010}, | 1085 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
1085 | {0xa0, 0x02, 0x0003}, | 1086 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
1086 | {0xa0, 0x80, 0x0004}, | 1087 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
1087 | {0xa0, 0x01, 0x0005}, | 1088 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
1088 | {0xa0, 0xe0, 0x0006}, | 1089 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
1089 | {0xa0, 0x01, 0x0001}, | 1090 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
1090 | {0xa0, 0x03, 0x0012}, | 1091 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1091 | {0xa0, 0x01, 0x0012}, | 1092 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1092 | {0xa0, 0x00, 0x0098}, | 1093 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
1093 | {0xa0, 0x00, 0x009a}, | 1094 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
1094 | {0xa0, 0x00, 0x011a}, | 1095 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
1095 | {0xa0, 0x00, 0x011c}, | 1096 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
1096 | {0xa0, 0xe8, 0x009c}, | 1097 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
1097 | {0xa0, 0x88, 0x009e}, | 1098 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
1098 | {0xa0, 0x55, 0x008b}, | 1099 | {0xa0, 0x55, ZC3XX_R08B_I2CDEVICEADDR}, |
1099 | {0xa0, 0x18, 0x0092}, | 1100 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1100 | {0xa0, 0x00, 0x0093}, | 1101 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1101 | {0xa0, 0x00, 0x0094}, | 1102 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1102 | {0xa0, 0x01, 0x0090}, | 1103 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1103 | {0xa0, 0x0A, 0x0092}, | 1104 | {0xa0, 0x0A, ZC3XX_R092_I2CADDRESSSELECT}, |
1104 | {0xa0, 0x02, 0x0093}, | 1105 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1105 | {0xa0, 0x00, 0x0094}, | 1106 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1106 | {0xa0, 0x01, 0x0090}, | 1107 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1107 | {0xa0, 0x0B, 0x0092}, | 1108 | {0xa0, 0x0B, ZC3XX_R092_I2CADDRESSSELECT}, |
1108 | {0xa0, 0x02, 0x0093}, | 1109 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1109 | {0xa0, 0x00, 0x0094}, | 1110 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1110 | {0xa0, 0x01, 0x0090}, | 1111 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1111 | {0xa0, 0x0C, 0x0092}, | 1112 | {0xa0, 0x0C, ZC3XX_R092_I2CADDRESSSELECT}, |
1112 | {0xa0, 0x7b, 0x0093}, | 1113 | {0xa0, 0x7b, ZC3XX_R093_I2CSETVALUE}, |
1113 | {0xa0, 0x00, 0x0094}, | 1114 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1114 | {0xa0, 0x01, 0x0090}, | 1115 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1115 | {0xa0, 0x0D, 0x0092}, | 1116 | {0xa0, 0x0D, ZC3XX_R092_I2CADDRESSSELECT}, |
1116 | {0xa0, 0xA3, 0x0093}, | 1117 | {0xa0, 0xA3, ZC3XX_R093_I2CSETVALUE}, |
1117 | {0xa0, 0x00, 0x0094}, | 1118 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1118 | {0xa0, 0x01, 0x0090}, | 1119 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1119 | {0xa0, 0x03, 0x0092}, | 1120 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
1120 | {0xa0, 0xfb, 0x0093}, | 1121 | {0xa0, 0xfb, ZC3XX_R093_I2CSETVALUE}, |
1121 | {0xa0, 0x00, 0x0094}, | 1122 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1122 | {0xa0, 0x01, 0x0090}, | 1123 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1123 | {0xa0, 0x05, 0x0092}, | 1124 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
1124 | {0xa0, 0x00, 0x0093}, | 1125 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1125 | {0xa0, 0x00, 0x0094}, | 1126 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1126 | {0xa0, 0x01, 0x0090}, | 1127 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1127 | {0xa0, 0x06, 0x0092}, | 1128 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
1128 | {0xa0, 0x03, 0x0093}, | 1129 | {0xa0, 0x03, ZC3XX_R093_I2CSETVALUE}, |
1129 | {0xa0, 0x00, 0x0094}, | 1130 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1130 | {0xa0, 0x01, 0x0090}, | 1131 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1131 | {0xa0, 0x09, 0x0092}, | 1132 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
1132 | {0xa0, 0x08, 0x0093}, | 1133 | {0xa0, 0x08, ZC3XX_R093_I2CSETVALUE}, |
1133 | {0xa0, 0x00, 0x0094}, | 1134 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1134 | {0xa0, 0x01, 0x0090}, | 1135 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1135 | {0xa0, 0x0E, 0x0092}, | 1136 | {0xa0, 0x0E, ZC3XX_R092_I2CADDRESSSELECT}, |
1136 | {0xa0, 0x04, 0x0093}, | 1137 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1137 | {0xa0, 0x00, 0x0094}, | 1138 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1138 | {0xa0, 0x01, 0x0090}, | 1139 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1139 | {0xa0, 0x0f, 0x0092}, | 1140 | {0xa0, 0x0f, ZC3XX_R092_I2CADDRESSSELECT}, |
1140 | {0xa0, 0x18, 0x0093}, | 1141 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
1141 | {0xa0, 0x00, 0x0094}, | 1142 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1142 | {0xa0, 0x01, 0x0090}, | 1143 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1143 | {0xa0, 0x10, 0x0092}, | 1144 | {0xa0, 0x10, ZC3XX_R092_I2CADDRESSSELECT}, |
1144 | {0xa0, 0x18, 0x0093}, | 1145 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
1145 | {0xa0, 0x00, 0x0094}, | 1146 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1146 | {0xa0, 0x01, 0x0090}, | 1147 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1147 | {0xa0, 0x11, 0x0092}, | 1148 | {0xa0, 0x11, ZC3XX_R092_I2CADDRESSSELECT}, |
1148 | {0xa0, 0x18, 0x0093}, | 1149 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
1149 | {0xa0, 0x00, 0x0094}, | 1150 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1150 | {0xa0, 0x01, 0x0090}, | 1151 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1151 | {0xa0, 0x12, 0x0092}, | 1152 | {0xa0, 0x12, ZC3XX_R092_I2CADDRESSSELECT}, |
1152 | {0xa0, 0x18, 0x0093}, | 1153 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
1153 | {0xa0, 0x00, 0x0094}, | 1154 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1154 | {0xa0, 0x01, 0x0090}, | 1155 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1155 | {0xa0, 0x15, 0x0092}, | 1156 | {0xa0, 0x15, ZC3XX_R092_I2CADDRESSSELECT}, |
1156 | {0xa0, 0x00, 0x0093}, | 1157 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1157 | {0xa0, 0x00, 0x0094}, | 1158 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1158 | {0xa0, 0x01, 0x0090}, | 1159 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1159 | {0xa0, 0x16, 0x0092}, | 1160 | {0xa0, 0x16, ZC3XX_R092_I2CADDRESSSELECT}, |
1160 | {0xa0, 0x0c, 0x0093}, | 1161 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
1161 | {0xa0, 0x00, 0x0094}, | 1162 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1162 | {0xa0, 0x01, 0x0090}, | 1163 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1163 | {0xa0, 0x17, 0x0092}, | 1164 | {0xa0, 0x17, ZC3XX_R092_I2CADDRESSSELECT}, |
1164 | {0xa0, 0x0C, 0x0093}, | 1165 | {0xa0, 0x0C, ZC3XX_R093_I2CSETVALUE}, |
1165 | {0xa0, 0x00, 0x0094}, | 1166 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1166 | {0xa0, 0x01, 0x0090}, | 1167 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1167 | {0xa0, 0x18, 0x0092}, | 1168 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1168 | {0xa0, 0x04, 0x0093}, | 1169 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1169 | {0xa0, 0x00, 0x0094}, | 1170 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1170 | {0xa0, 0x01, 0x0090}, | 1171 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1171 | {0xa0, 0xf7, 0x0101}, | 1172 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
1172 | {0xa0, 0x05, 0x0012}, | 1173 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1173 | {0xa0, 0x78, 0x018d}, | 1174 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
1174 | {0xa0, 0x0d, 0x0100}, | 1175 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
1175 | {0xa0, 0x06, 0x0189}, | 1176 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
1176 | {0xa0, 0x03, 0x01c5}, | 1177 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
1177 | {0xa0, 0x13, 0x01cb}, | 1178 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
1178 | {0xa0, 0x20, 0x0087}, | 1179 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
1179 | {0xa0, 0x21, 0x0088}, | 1180 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
1180 | {0xa0, 0x08, 0x0250}, | 1181 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
1181 | {0xa0, 0x08, 0x0301}, | 1182 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
1182 | {0xa0, 0x00, 0x01ad}, | 1183 | {0xa0, 0x00, 0x01ad}, |
1183 | {0xa0, 0x01, 0x01b1}, | 1184 | {0xa0, 0x01, 0x01b1}, |
1184 | {0xa0, 0x02, 0x0180}, | 1185 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
1185 | {0xa0, 0x60, 0x0116}, | 1186 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
1186 | {0xa0, 0x40, 0x0117}, | 1187 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1187 | {0xa0, 0x4c, 0x0118}, | 1188 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
1188 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 1189 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
1189 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 1190 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
1190 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 1191 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
1191 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 1192 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
1192 | {0xa0, 0x38, 0x0121}, | 1193 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
1193 | {0xa0, 0x59, 0x0122}, | 1194 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
1194 | {0xa0, 0x79, 0x0123}, | 1195 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
1195 | {0xa0, 0x92, 0x0124}, | 1196 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
1196 | {0xa0, 0xa7, 0x0125}, | 1197 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
1197 | {0xa0, 0xb9, 0x0126}, | 1198 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
1198 | {0xa0, 0xc8, 0x0127}, | 1199 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
1199 | {0xa0, 0xd4, 0x0128}, | 1200 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
1200 | {0xa0, 0xdf, 0x0129}, | 1201 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
1201 | {0xa0, 0xe7, 0x012a}, | 1202 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
1202 | {0xa0, 0xee, 0x012b}, | 1203 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
1203 | {0xa0, 0xf4, 0x012c}, | 1204 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
1204 | {0xa0, 0xf9, 0x012d}, | 1205 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
1205 | {0xa0, 0xfc, 0x012e}, | 1206 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
1206 | {0xa0, 0xff, 0x012f}, | 1207 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
1207 | {0xa0, 0x26, 0x0130}, | 1208 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
1208 | {0xa0, 0x22, 0x0131}, | 1209 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
1209 | {0xa0, 0x20, 0x0132}, | 1210 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
1210 | {0xa0, 0x1c, 0x0133}, | 1211 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
1211 | {0xa0, 0x16, 0x0134}, | 1212 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
1212 | {0xa0, 0x13, 0x0135}, | 1213 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
1213 | {0xa0, 0x10, 0x0136}, | 1214 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
1214 | {0xa0, 0x0d, 0x0137}, | 1215 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
1215 | {0xa0, 0x0b, 0x0138}, | 1216 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
1216 | {0xa0, 0x09, 0x0139}, | 1217 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
1217 | {0xa0, 0x07, 0x013a}, | 1218 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
1218 | {0xa0, 0x06, 0x013b}, | 1219 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
1219 | {0xa0, 0x05, 0x013c}, | 1220 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
1220 | {0xa0, 0x04, 0x013d}, | 1221 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
1221 | {0xa0, 0x03, 0x013e}, | 1222 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
1222 | {0xa0, 0x02, 0x013f}, | 1223 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
1223 | {0xa0, 0x58, 0x010a}, /* matrix */ | 1224 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
1224 | {0xa0, 0xf4, 0x010b}, | 1225 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
1225 | {0xa0, 0xf4, 0x010c}, | 1226 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
1226 | {0xa0, 0xf4, 0x010d}, | 1227 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
1227 | {0xa0, 0x58, 0x010e}, | 1228 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
1228 | {0xa0, 0xf4, 0x010f}, | 1229 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
1229 | {0xa0, 0xf4, 0x0110}, | 1230 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
1230 | {0xa0, 0xf4, 0x0111}, | 1231 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
1231 | {0xa0, 0x58, 0x0112}, | 1232 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
1232 | {0xa0, 0x00, 0x0180}, | 1233 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
1233 | {0xa0, 0x00, 0x0019}, | 1234 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
1234 | {0xa0, 0x18, 0x0092}, | 1235 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1235 | {0xa0, 0x00, 0x0093}, | 1236 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1236 | {0xa0, 0x00, 0x0094}, | 1237 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1237 | {0xa0, 0x01, 0x0090}, | 1238 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1238 | {0xa0, 0x13, 0x0092}, | 1239 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1239 | {0xa0, 0x22, 0x0093}, | 1240 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
1240 | {0xa0, 0x00, 0x0094}, | 1241 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1241 | {0xa0, 0x01, 0x0090}, | 1242 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1242 | {0xa0, 0x14, 0x0092}, | 1243 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1243 | {0xa0, 0x01, 0x0093}, | 1244 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1244 | {0xa0, 0x00, 0x0094}, | 1245 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1245 | {0xa0, 0x01, 0x0090}, | 1246 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1246 | {0xa0, 0x20, 0x0092}, | 1247 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1247 | {0xa0, 0x01, 0x0093}, | 1248 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1248 | {0xa0, 0x00, 0x0094}, | 1249 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1249 | {0xa0, 0x01, 0x0090}, | 1250 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1250 | {0xa0, 0x21, 0x0092}, | 1251 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1251 | {0xa0, 0x22, 0x0093}, | 1252 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
1252 | {0xa0, 0x00, 0x0094}, | 1253 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1253 | {0xa0, 0x01, 0x0090}, | 1254 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1254 | {0xa0, 0x18, 0x0092}, | 1255 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1255 | {0xa0, 0x04, 0x0093}, | 1256 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1256 | {0xa0, 0x00, 0x0094}, | 1257 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1257 | {0xa0, 0x01, 0x0090}, | 1258 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1258 | {0xa0, 0x01, 0x00a3}, | 1259 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
1259 | {0xa0, 0x22, 0x00a4}, | 1260 | {0xa0, 0x22, ZC3XX_R0A4_EXPOSURETIMELOW}, |
1260 | {0xa0, 0x00, 0x0190}, | 1261 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
1261 | {0xa0, 0x07, 0x0191}, | 1262 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
1262 | {0xa0, 0xee, 0x0192}, | 1263 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, |
1263 | {0xa0, 0x00, 0x0195}, | 1264 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
1264 | {0xa0, 0x00, 0x0196}, | 1265 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
1265 | {0xa0, 0x3a, 0x0197}, | 1266 | {0xa0, 0x3a, ZC3XX_R197_ANTIFLICKERLOW}, |
1266 | {0xa0, 0x10, 0x018c}, | 1267 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
1267 | {0xa0, 0x20, 0x018f}, | 1268 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
1268 | {0xa0, 0x0c, 0x01a9}, | 1269 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
1269 | {0xa0, 0x28, 0x01aa}, | 1270 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
1270 | {0xa0, 0x04, 0x001d}, | 1271 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
1271 | {0xa0, 0x0f, 0x001e}, | 1272 | {0xa0, 0x0f, ZC3XX_R01E_HSYNC_1}, |
1272 | {0xa0, 0x19, 0x001f}, | 1273 | {0xa0, 0x19, ZC3XX_R01F_HSYNC_2}, |
1273 | {0xa0, 0x1f, 0x0020}, | 1274 | {0xa0, 0x1f, ZC3XX_R020_HSYNC_3}, |
1274 | {0xa0, 0x60, 0x011d}, | 1275 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
1275 | {0xa0, 0x60, 0x011d}, | 1276 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
1276 | {0xa0, 0x42, 0x0180}, | 1277 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
1277 | {0xa0, 0x42, 0x0180}, | 1278 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
1278 | {0xa0, 0x60, 0x0116}, | 1279 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
1279 | {0xa0, 0x40, 0x0117}, | 1280 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1280 | {0xa0, 0x4c, 0x0118}, | 1281 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
1281 | {0xa0, 0x04, 0x01a7}, | 1282 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1282 | {0xa0, 0x20, 0x0092}, | 1283 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1283 | {0xa0, 0x01, 0x0093}, | 1284 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1284 | {0xa0, 0x00, 0x0094}, | 1285 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1285 | {0xa0, 0x01, 0x0090}, | 1286 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1286 | {0xa0, 0x21, 0x0092}, | 1287 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1287 | {0xa0, 0x5c, 0x0093}, | 1288 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
1288 | {0xa0, 0x00, 0x0094}, | 1289 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1289 | {0xa0, 0x01, 0x0090}, | 1290 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1290 | {0xa0, 0x18, 0x0092}, | 1291 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1291 | {0xa0, 0x00, 0x0093}, | 1292 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1292 | {0xa0, 0x00, 0x0094}, | 1293 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1293 | {0xa0, 0x01, 0x0090}, | 1294 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1294 | {0xa0, 0x13, 0x0092}, | 1295 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1295 | {0xa0, 0x5c, 0x0093}, | 1296 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
1296 | {0xa0, 0x00, 0x0094}, | 1297 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1297 | {0xa0, 0x01, 0x0090}, | 1298 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1298 | {0xa0, 0x14, 0x0092}, | 1299 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1299 | {0xa0, 0x01, 0x0093}, | 1300 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1300 | {0xa0, 0x00, 0x0094}, | 1301 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1301 | {0xa0, 0x01, 0x0090}, | 1302 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1302 | {0xa0, 0x18, 0x0092}, | 1303 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1303 | {0xa0, 0x04, 0x0093}, | 1304 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1304 | {0xa0, 0x00, 0x0094}, | 1305 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1305 | {0xa0, 0x01, 0x0090}, | 1306 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1306 | {0xa0, 0x00, 0x01a7}, | 1307 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1307 | {0xa0, 0x04, 0x01a7}, | 1308 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1308 | {0xa0, 0x00, 0x01a7}, | 1309 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1309 | {0xa0, 0x04, 0x01a7}, | 1310 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1310 | {0xa0, 0x20, 0x0092}, | 1311 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1311 | {0xa0, 0x01, 0x0093}, | 1312 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1312 | {0xa0, 0x00, 0x0094}, | 1313 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1313 | {0xa0, 0x01, 0x0090}, | 1314 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1314 | {0xa0, 0x21, 0x0092}, | 1315 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1315 | {0xa0, 0x96, 0x0093}, | 1316 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
1316 | {0xa0, 0x00, 0x0094}, | 1317 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1317 | {0xa0, 0x01, 0x0090}, | 1318 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1318 | {0xa0, 0x18, 0x0092}, | 1319 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1319 | {0xa0, 0x00, 0x0093}, | 1320 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1320 | {0xa0, 0x00, 0x0094}, | 1321 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1321 | {0xa0, 0x01, 0x0090}, | 1322 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1322 | {0xa0, 0x13, 0x0092}, | 1323 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1323 | {0xa0, 0x96, 0x0093}, | 1324 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
1324 | {0xa0, 0x00, 0x0094}, | 1325 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1325 | {0xa0, 0x01, 0x0090}, | 1326 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1326 | {0xa0, 0x14, 0x0092}, | 1327 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1327 | {0xa0, 0x01, 0x0093}, | 1328 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1328 | {0xa0, 0x00, 0x0094}, | 1329 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1329 | {0xa0, 0x01, 0x0090}, | 1330 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1330 | {0xa0, 0x18, 0x0092}, | 1331 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1331 | {0xa0, 0x04, 0x0093}, | 1332 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1332 | {0xa0, 0x00, 0x0094}, | 1333 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1333 | {0xa0, 0x01, 0x0090}, | 1334 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1334 | {0xa0, 0x00, 0x01a7}, | 1335 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1335 | {0xa0, 0x04, 0x01a7}, | 1336 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1336 | {0xa0, 0x00, 0x01a7}, | 1337 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1337 | {0xa0, 0x04, 0x01a7}, | 1338 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1338 | {0xa0, 0x00, 0x01a7}, | 1339 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1339 | {0xa0, 0x04, 0x01a7}, | 1340 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1340 | {0xa0, 0x20, 0x0092}, | 1341 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1341 | {0xa0, 0x01, 0x0093}, | 1342 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1342 | {0xa0, 0x00, 0x0094}, | 1343 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1343 | {0xa0, 0x01, 0x0090}, | 1344 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1344 | {0xa0, 0x21, 0x0092}, | 1345 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1345 | {0xa0, 0xd0, 0x0093}, | 1346 | {0xa0, 0xd0, ZC3XX_R093_I2CSETVALUE}, |
1346 | {0xa0, 0x00, 0x0094}, | 1347 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1347 | {0xa0, 0x01, 0x0090}, | 1348 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1348 | {0xa0, 0x18, 0x0092}, | 1349 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1349 | {0xa0, 0x00, 0x0093}, | 1350 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1350 | {0xa0, 0x00, 0x0094}, | 1351 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1351 | {0xa0, 0x01, 0x0090}, | 1352 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1352 | {0xa0, 0x13, 0x0092}, | 1353 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1353 | {0xa0, 0xd0, 0x0093}, | 1354 | {0xa0, 0xd0, ZC3XX_R093_I2CSETVALUE}, |
1354 | {0xa0, 0x00, 0x0094}, | 1355 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1355 | {0xa0, 0x01, 0x0090}, | 1356 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1356 | {0xa0, 0x14, 0x0092}, | 1357 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1357 | {0xa0, 0x01, 0x0093}, | 1358 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
1358 | {0xa0, 0x00, 0x0094}, | 1359 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1359 | {0xa0, 0x01, 0x0090}, | 1360 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1360 | {0xa0, 0x18, 0x0092}, | 1361 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1361 | {0xa0, 0x04, 0x0093}, | 1362 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1362 | {0xa0, 0x00, 0x0094}, | 1363 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1363 | {0xa0, 0x01, 0x0090}, | 1364 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1364 | {0xa0, 0x00, 0x01a7}, | 1365 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1365 | {0xa0, 0x02, 0x0008}, | 1366 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, |
1366 | {0xa0, 0x04, 0x01a7}, | 1367 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1367 | {0xa0, 0x00, 0x01a7}, | 1368 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1368 | {0xa0, 0x04, 0x01a7}, | 1369 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1369 | {0xa0, 0x20, 0x0092}, | 1370 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1370 | {0xa0, 0x02, 0x0093}, | 1371 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1371 | {0xa0, 0x00, 0x0094}, | 1372 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1372 | {0xa0, 0x01, 0x0090}, | 1373 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1373 | {0xa0, 0x21, 0x0092}, | 1374 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1374 | {0xa0, 0x0a, 0x0093}, | 1375 | {0xa0, 0x0a, ZC3XX_R093_I2CSETVALUE}, |
1375 | {0xa0, 0x00, 0x0094}, | 1376 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1376 | {0xa0, 0x01, 0x0090}, | 1377 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1377 | {0xa0, 0x18, 0x0092}, | 1378 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1378 | {0xa0, 0x00, 0x0093}, | 1379 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1379 | {0xa0, 0x00, 0x0094}, | 1380 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1380 | {0xa0, 0x01, 0x0090}, | 1381 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1381 | {0xa0, 0x13, 0x0092}, | 1382 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1382 | {0xa0, 0x0a, 0x0093}, | 1383 | {0xa0, 0x0a, ZC3XX_R093_I2CSETVALUE}, |
1383 | {0xa0, 0x00, 0x0094}, | 1384 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1384 | {0xa0, 0x01, 0x0090}, | 1385 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1385 | {0xa0, 0x14, 0x0092}, | 1386 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1386 | {0xa0, 0x02, 0x0093}, | 1387 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1387 | {0xa0, 0x00, 0x0094}, | 1388 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1388 | {0xa0, 0x01, 0x0090}, | 1389 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1389 | {0xa0, 0x18, 0x0092}, | 1390 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1390 | {0xa0, 0x04, 0x0093}, | 1391 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1391 | {0xa0, 0x00, 0x0094}, | 1392 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1392 | {0xa0, 0x01, 0x0090}, | 1393 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1393 | {0xa0, 0x00, 0x01a7}, | 1394 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1394 | {0xa0, 0x04, 0x01a7}, | 1395 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1395 | {0xa0, 0x00, 0x01a7}, | 1396 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1396 | {0xa0, 0x04, 0x01a7}, | 1397 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1397 | {0xa0, 0x20, 0x0092}, | 1398 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1398 | {0xa0, 0x02, 0x0093}, | 1399 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1399 | {0xa0, 0x00, 0x0094}, | 1400 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1400 | {0xa0, 0x01, 0x0090}, | 1401 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1401 | {0xa0, 0x21, 0x0092}, | 1402 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1402 | {0xa0, 0x44, 0x0093}, | 1403 | {0xa0, 0x44, ZC3XX_R093_I2CSETVALUE}, |
1403 | {0xa0, 0x00, 0x0094}, | 1404 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1404 | {0xa0, 0x01, 0x0090}, | 1405 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1405 | {0xa0, 0x18, 0x0092}, | 1406 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1406 | {0xa0, 0x00, 0x0093}, | 1407 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1407 | {0xa0, 0x00, 0x0094}, | 1408 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1408 | {0xa0, 0x01, 0x0090}, | 1409 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1409 | {0xa0, 0x13, 0x0092}, | 1410 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1410 | {0xa0, 0x44, 0x0093}, | 1411 | {0xa0, 0x44, ZC3XX_R093_I2CSETVALUE}, |
1411 | {0xa0, 0x00, 0x0094}, | 1412 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1412 | {0xa0, 0x01, 0x0090}, | 1413 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1413 | {0xa0, 0x14, 0x0092}, | 1414 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1414 | {0xa0, 0x02, 0x0093}, | 1415 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1415 | {0xa0, 0x00, 0x0094}, | 1416 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1416 | {0xa0, 0x01, 0x0090}, | 1417 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1417 | {0xa0, 0x18, 0x0092}, | 1418 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1418 | {0xa0, 0x04, 0x0093}, | 1419 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1419 | {0xa0, 0x00, 0x0094}, | 1420 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1420 | {0xa0, 0x01, 0x0090}, | 1421 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1421 | {0xa0, 0x00, 0x01a7}, | 1422 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1422 | {0xa0, 0x04, 0x01a7}, | 1423 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1423 | {0xa0, 0x00, 0x01a7}, | 1424 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1424 | {0xa0, 0x04, 0x01a7}, | 1425 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1425 | {0xa0, 0x20, 0x0092}, | 1426 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
1426 | {0xa0, 0x02, 0x0093}, | 1427 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1427 | {0xa0, 0x00, 0x0094}, | 1428 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1428 | {0xa0, 0x01, 0x0090}, | 1429 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1429 | {0xa0, 0x21, 0x0092}, | 1430 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
1430 | {0xa0, 0x7e, 0x0093}, | 1431 | {0xa0, 0x7e, ZC3XX_R093_I2CSETVALUE}, |
1431 | {0xa0, 0x00, 0x0094}, | 1432 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1432 | {0xa0, 0x01, 0x0090}, | 1433 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1433 | {0xa0, 0x18, 0x0092}, | 1434 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1434 | {0xa0, 0x00, 0x0093}, | 1435 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
1435 | {0xa0, 0x00, 0x0094}, | 1436 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1436 | {0xa0, 0x01, 0x0090}, | 1437 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1437 | {0xa0, 0x13, 0x0092}, | 1438 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
1438 | {0xa0, 0x7e, 0x0093}, | 1439 | {0xa0, 0x7e, ZC3XX_R093_I2CSETVALUE}, |
1439 | {0xa0, 0x00, 0x0094}, | 1440 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1440 | {0xa0, 0x01, 0x0090}, | 1441 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1441 | {0xa0, 0x14, 0x0092}, | 1442 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
1442 | {0xa0, 0x02, 0x0093}, | 1443 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
1443 | {0xa0, 0x00, 0x0094}, | 1444 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1444 | {0xa0, 0x01, 0x0090}, | 1445 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1445 | {0xa0, 0x18, 0x0092}, | 1446 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
1446 | {0xa0, 0x04, 0x0093}, | 1447 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
1447 | {0xa0, 0x00, 0x0094}, | 1448 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
1448 | {0xa0, 0x01, 0x0090}, | 1449 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
1449 | {0xa0, 0x00, 0x01a7}, | 1450 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1450 | {0xa0, 0x04, 0x01a7}, | 1451 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1451 | {0xa0, 0x00, 0x01a7}, | 1452 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1452 | {0xa0, 0x04, 0x01a7}, | 1453 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
1453 | {} | 1454 | {} |
1454 | }; | 1455 | }; |
1455 | 1456 | ||
1456 | static const struct usb_action gc0305_Initial[] = { /* 640x480 */ | 1457 | static const struct usb_action gc0305_Initial[] = { /* 640x480 */ |
1457 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 1458 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
1458 | {0xa0, 0x03, 0x0008}, /* 00,08,03,cc */ | 1459 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
1459 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc */ | 1460 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
1460 | {0xa0, 0x04, 0x0002}, /* 00,02,04,cc */ | 1461 | {0xa0, 0x04, ZC3XX_R002_CLOCKSELECT}, /* 00,02,04,cc */ |
1461 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 1462 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
1462 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 1463 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
1463 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 1464 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
1464 | {0xa0, 0xe0, 0x0006}, /* 00,06,e0,cc */ | 1465 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
1465 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 1466 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
1466 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc */ | 1467 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
1467 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 1468 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
1468 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 1469 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
1469 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 1470 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
1470 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 1471 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
1471 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 1472 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
1472 | {0xa0, 0xe6, 0x009c}, /* 00,9c,e6,cc */ | 1473 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc */ |
1473 | {0xa0, 0x86, 0x009e}, /* 00,9e,86,cc */ | 1474 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
1474 | {0xa0, 0x98, 0x008b}, /* 00,8b,98,cc */ | 1475 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc */ |
1475 | {0xaa, 0x13, 0x0002}, /* 00,13,02,aa */ | 1476 | {0xaa, 0x13, 0x0002}, /* 00,13,02,aa */ |
1476 | {0xaa, 0x15, 0x0003}, /* 00,15,03,aa */ | 1477 | {0xaa, 0x15, 0x0003}, /* 00,15,03,aa */ |
1477 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ | 1478 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
@@ -1481,9 +1482,9 @@ static const struct usb_action gc0305_Initial[] = { /* 640x480 */ | |||
1481 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ | 1482 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ |
1482 | {0xaa, 0x1f, 0x0008}, /* 00,1f,08,aa */ | 1483 | {0xaa, 0x1f, 0x0008}, /* 00,1f,08,aa */ |
1483 | {0xaa, 0x21, 0x0012}, /* 00,21,12,aa */ | 1484 | {0xaa, 0x21, 0x0012}, /* 00,21,12,aa */ |
1484 | {0xa0, 0x82, 0x0086}, /* 00,86,82,cc */ | 1485 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc */ |
1485 | {0xa0, 0x83, 0x0087}, /* 00,87,83,cc */ | 1486 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc */ |
1486 | {0xa0, 0x84, 0x0088}, /* 00,88,84,cc */ | 1487 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc */ |
1487 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ | 1488 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
1488 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa */ | 1489 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa */ |
1489 | {0xaa, 0x0b, 0x00b0}, /* 00,0b,b0,aa */ | 1490 | {0xaa, 0x0b, 0x00b0}, /* 00,0b,b0,aa */ |
@@ -1499,43 +1500,43 @@ static const struct usb_action gc0305_Initial[] = { /* 640x480 */ | |||
1499 | {0xaa, 0x19, 0x0086}, /* 00,19,86,aa */ | 1500 | {0xaa, 0x19, 0x0086}, /* 00,19,86,aa */ |
1500 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ | 1501 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
1501 | {0xaa, 0x1b, 0x0020}, /* 00,1b,20,aa */ | 1502 | {0xaa, 0x1b, 0x0020}, /* 00,1b,20,aa */ |
1502 | {0xa0, 0xb7, 0x0101}, /* 01,01,b7,cc */ | 1503 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc */ |
1503 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 1504 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
1504 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 1505 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
1505 | {0xa0, 0x76, 0x0189}, /* 01,89,76,cc */ | 1506 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc */ |
1506 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc */ | 1507 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc */ |
1507 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 1508 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
1508 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 1509 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
1509 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 1510 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
1510 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 1511 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
1511 | {0xa0, 0x60, 0x01a8}, /* 01,a8,60,cc */ | 1512 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
1512 | {0xa0, 0x85, 0x018d}, /* 01,8d,85,cc */ | 1513 | {0xa0, 0x85, ZC3XX_R18D_YTARGET}, /* 01,8d,85,cc */ |
1513 | {0xa0, 0x00, 0x011e}, /* 01,1e,00,cc */ | 1514 | {0xa0, 0x00, 0x011e}, /* 01,1e,00,cc */ |
1514 | {0xa0, 0x52, 0x0116}, /* 01,16,52,cc */ | 1515 | {0xa0, 0x52, ZC3XX_R116_RGAIN}, /* 01,16,52,cc */ |
1515 | {0xa0, 0x40, 0x0117}, /* 01,17,40,cc */ | 1516 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, /* 01,17,40,cc */ |
1516 | {0xa0, 0x52, 0x0118}, /* 01,18,52,cc */ | 1517 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
1517 | {0xa0, 0x03, 0x0113}, /* 01,13,03,cc */ | 1518 | {0xa0, 0x03, ZC3XX_R113_RGB03}, /* 01,13,03,cc */ |
1518 | {} | 1519 | {} |
1519 | }; | 1520 | }; |
1520 | static const struct usb_action gc0305_InitialScale[] = { /* 320x240 */ | 1521 | static const struct usb_action gc0305_InitialScale[] = { /* 320x240 */ |
1521 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 1522 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
1522 | {0xa0, 0x03, 0x0008}, /* 00,08,03,cc */ | 1523 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
1523 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc */ | 1524 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
1524 | {0xa0, 0x10, 0x0002}, /* 00,02,10,cc */ | 1525 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
1525 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 1526 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
1526 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 1527 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
1527 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 1528 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
1528 | {0xa0, 0xe0, 0x0006}, /* 00,06,e0,cc */ | 1529 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
1529 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 1530 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
1530 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc */ | 1531 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
1531 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 1532 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
1532 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 1533 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
1533 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 1534 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
1534 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 1535 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
1535 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 1536 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
1536 | {0xa0, 0xe8, 0x009c}, /* 00,9c,e8,cc */ | 1537 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e8,cc */ |
1537 | {0xa0, 0x88, 0x009e}, /* 00,9e,88,cc */ | 1538 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
1538 | {0xa0, 0x98, 0x008b}, /* 00,8b,98,cc */ | 1539 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc */ |
1539 | {0xaa, 0x13, 0x0000}, /* 00,13,00,aa */ | 1540 | {0xaa, 0x13, 0x0000}, /* 00,13,00,aa */ |
1540 | {0xaa, 0x15, 0x0001}, /* 00,15,01,aa */ | 1541 | {0xaa, 0x15, 0x0001}, /* 00,15,01,aa */ |
1541 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ | 1542 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
@@ -1545,9 +1546,9 @@ static const struct usb_action gc0305_InitialScale[] = { /* 320x240 */ | |||
1545 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ | 1546 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ |
1546 | {0xaa, 0x1f, 0x0008}, /* 00,1f,08,aa */ | 1547 | {0xaa, 0x1f, 0x0008}, /* 00,1f,08,aa */ |
1547 | {0xaa, 0x21, 0x0012}, /* 00,21,12,aa */ | 1548 | {0xaa, 0x21, 0x0012}, /* 00,21,12,aa */ |
1548 | {0xa0, 0x82, 0x0086}, /* 00,86,82,cc */ | 1549 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc */ |
1549 | {0xa0, 0x83, 0x0087}, /* 00,87,83,cc */ | 1550 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc */ |
1550 | {0xa0, 0x84, 0x0088}, /* 00,88,84,cc */ | 1551 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc */ |
1551 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ | 1552 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
1552 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa */ | 1553 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa */ |
1553 | {0xaa, 0x0b, 0x00b0}, /* 00,0b,b0,aa */ | 1554 | {0xaa, 0x0b, 0x00b0}, /* 00,0b,b0,aa */ |
@@ -1563,115 +1564,119 @@ static const struct usb_action gc0305_InitialScale[] = { /* 320x240 */ | |||
1563 | {0xaa, 0x19, 0x0088}, /* 00,19,88,aa */ | 1564 | {0xaa, 0x19, 0x0088}, /* 00,19,88,aa */ |
1564 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ | 1565 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
1565 | {0xaa, 0x1b, 0x0020}, /* 00,1b,20,aa */ | 1566 | {0xaa, 0x1b, 0x0020}, /* 00,1b,20,aa */ |
1566 | {0xa0, 0xb7, 0x0101}, /* 01,01,b7,cc */ | 1567 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc */ |
1567 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 1568 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
1568 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 1569 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
1569 | {0xa0, 0x76, 0x0189}, /* 01,89,76,cc */ | 1570 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc */ |
1570 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc */ | 1571 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc */ |
1571 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 1572 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
1572 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 1573 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
1573 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 1574 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
1574 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 1575 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
1575 | {0xa0, 0x60, 0x01a8}, /* 01,a8,60,cc */ | 1576 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
1576 | {0xa0, 0x00, 0x011e}, /* 01,1e,00,cc */ | 1577 | {0xa0, 0x00, 0x011e}, /* 01,1e,00,cc */ |
1577 | {0xa0, 0x52, 0x0116}, /* 01,16,52,cc */ | 1578 | {0xa0, 0x52, ZC3XX_R116_RGAIN}, /* 01,16,52,cc */ |
1578 | {0xa0, 0x40, 0x0117}, /* 01,17,40,cc */ | 1579 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, /* 01,17,40,cc */ |
1579 | {0xa0, 0x52, 0x0118}, /* 01,18,52,cc */ | 1580 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
1580 | {0xa0, 0x03, 0x0113}, /* 01,13,03,cc */ | 1581 | {0xa0, 0x03, ZC3XX_R113_RGB03}, /* 01,13,03,cc */ |
1581 | {} | 1582 | {} |
1582 | }; | 1583 | }; |
1583 | static const struct usb_action gc0305_50HZ[] = { | 1584 | static const struct usb_action gc0305_50HZ[] = { |
1584 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 1585 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
1585 | {0xaa, 0x83, 0x0002}, /* 00,83,02,aa */ | 1586 | {0xaa, 0x83, 0x0002}, /* 00,83,02,aa */ |
1586 | {0xaa, 0x84, 0x0038}, /* 00,84,38,aa */ /* win: 00,84,ec */ | 1587 | {0xaa, 0x84, 0x0038}, /* 00,84,38,aa */ /* win: 00,84,ec */ |
1587 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 1588 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
1588 | {0xa0, 0x0b, 0x0191}, /* 01,91,0b,cc */ | 1589 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0b,cc */ |
1589 | {0xa0, 0x18, 0x0192}, /* 01,92,18,cc */ /* win: 01,92,10 */ | 1590 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
1590 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 1591 | /* win: 01,92,10 */ |
1591 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 1592 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
1592 | {0xa0, 0x8e, 0x0197}, /* 01,97,8e,cc */ /* win: 01,97,ec */ | 1593 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
1593 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc */ | 1594 | {0xa0, 0x8e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,8e,cc */ |
1594 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc */ | 1595 | /* win: 01,97,ec */ |
1595 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 1596 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc */ |
1596 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc */ | 1597 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc */ |
1597 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc */ | 1598 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
1598 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 1599 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
1599 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc */ | 1600 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc */ |
1600 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 1601 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
1601 | {0xa0, 0x60, 0x011d}, /* 01,1d,60,cc */ | 1602 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
1602 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc */ | 1603 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
1603 | /* {0xa0, 0x85, 0x018d}, * 01,8d,85,cc * * if 640x480 */ | 1604 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,60,cc */ |
1605 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ | ||
1606 | /* {0xa0, 0x85, ZC3XX_R18D_YTARGET}, * 01,8d,85,cc * | ||
1607 | * if 640x480 */ | ||
1604 | {} | 1608 | {} |
1605 | }; | 1609 | }; |
1606 | static const struct usb_action gc0305_60HZ[] = { | 1610 | static const struct usb_action gc0305_60HZ[] = { |
1607 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 1611 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
1608 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ | 1612 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
1609 | {0xaa, 0x84, 0x00ec}, /* 00,84,ec,aa */ | 1613 | {0xaa, 0x84, 0x00ec}, /* 00,84,ec,aa */ |
1610 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 1614 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
1611 | {0xa0, 0x0b, 0x0191}, /* 01,91,0b,cc */ | 1615 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0b,cc */ |
1612 | {0xa0, 0x10, 0x0192}, /* 01,92,10,cc */ | 1616 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,10,cc */ |
1613 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 1617 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
1614 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 1618 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
1615 | {0xa0, 0xec, 0x0197}, /* 01,97,ec,cc */ | 1619 | {0xa0, 0xec, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,ec,cc */ |
1616 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc */ | 1620 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc */ |
1617 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc */ | 1621 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc */ |
1618 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 1622 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
1619 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc */ | 1623 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
1620 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc */ | 1624 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc */ |
1621 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 1625 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
1622 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc */ | 1626 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
1623 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 1627 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
1624 | {0xa0, 0x60, 0x011d}, /* 01,1d,60,cc */ | 1628 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,60,cc */ |
1625 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc */ | 1629 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
1626 | {0xa0, 0x80, 0x018d}, /* 01,8d,80,cc */ | 1630 | {0xa0, 0x80, ZC3XX_R18D_YTARGET}, /* 01,8d,80,cc */ |
1627 | {} | 1631 | {} |
1628 | }; | 1632 | }; |
1629 | 1633 | ||
1630 | static const struct usb_action gc0305_NoFliker[] = { | 1634 | static const struct usb_action gc0305_NoFliker[] = { |
1631 | {0xa0, 0x0c, 0x0100}, /* 01,00,0c,cc */ | 1635 | {0xa0, 0x0c, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0c,cc */ |
1632 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 1636 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
1633 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ | 1637 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
1634 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ | 1638 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ |
1635 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 1639 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
1636 | {0xa0, 0x00, 0x0191}, /* 01,91,00,cc */ | 1640 | {0xa0, 0x00, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,00,cc */ |
1637 | {0xa0, 0x48, 0x0192}, /* 01,92,48,cc */ | 1641 | {0xa0, 0x48, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,48,cc */ |
1638 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 1642 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
1639 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 1643 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
1640 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 1644 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
1641 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc */ | 1645 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc */ |
1642 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc */ | 1646 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc */ |
1643 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc */ | 1647 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc */ |
1644 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 1648 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
1645 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc */ | 1649 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
1646 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 1650 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
1647 | {0xa0, 0x60, 0x011d}, /* 01,1d,60,cc */ | 1651 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,60,cc */ |
1648 | {0xa0, 0x03, 0x0180}, /* 01,80,03,cc */ | 1652 | {0xa0, 0x03, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,03,cc */ |
1649 | {0xa0, 0x80, 0x018d}, /* 01,8d,80,cc */ | 1653 | {0xa0, 0x80, ZC3XX_R18D_YTARGET}, /* 01,8d,80,cc */ |
1650 | {} | 1654 | {} |
1651 | }; | 1655 | }; |
1652 | 1656 | ||
1653 | /* play poker with registers at your own risk !! */ | 1657 | /* play poker with registers at your own risk !! */ |
1654 | static const struct usb_action hdcs2020xx_Initial[] = { | 1658 | static const struct usb_action hdcs2020xx_Initial[] = { |
1655 | {0xa0, 0x01, 0x0000}, | 1659 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
1656 | {0xa0, 0x03, 0x0008}, | 1660 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
1657 | {0xa0, 0x0e, 0x0010}, | 1661 | {0xa0, 0x0e, ZC3XX_R010_CMOSSENSORSELECT}, |
1658 | {0xa0, 0x10, 0x0002}, | 1662 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
1659 | {0xa0, 0x02, 0x0003}, | 1663 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
1660 | {0xa0, 0x80, 0x0004}, | 1664 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
1661 | {0xa0, 0x01, 0x0005}, | 1665 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
1662 | {0xa0, 0xd0, 0x0006}, /* D0 ?? E0 did not start */ | 1666 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
1663 | {0xa0, 0x01, 0x0001}, | 1667 | /* D0 ?? E0 did not start */ |
1664 | {0xa0, 0x03, 0x0012}, | 1668 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
1665 | {0xa0, 0x01, 0x0012}, | 1669 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1666 | {0xa0, 0x08, 0x008d}, | 1670 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1667 | {0xa0, 0x08, 0x0098}, | 1671 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
1668 | {0xa0, 0x02, 0x009a}, | 1672 | {0xa0, 0x08, ZC3XX_R098_WINYSTARTLOW}, |
1669 | {0xa0, 0x08, 0x011a}, | 1673 | {0xa0, 0x02, ZC3XX_R09A_WINXSTARTLOW}, |
1670 | {0xa0, 0x02, 0x011c}, | 1674 | {0xa0, 0x08, ZC3XX_R11A_FIRSTYLOW}, |
1671 | {0xa0, 0x01, 0x009b}, | 1675 | {0xa0, 0x02, ZC3XX_R11C_FIRSTXLOW}, |
1672 | {0xa0, 0xd8, 0x009c}, | 1676 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
1673 | {0xa0, 0x02, 0x009d}, | 1677 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, |
1674 | {0xa0, 0x88, 0x009e}, | 1678 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
1679 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, | ||
1675 | {0xaa, 0x02, 0x0002}, | 1680 | {0xaa, 0x02, 0x0002}, |
1676 | {0xaa, 0x07, 0x0006}, | 1681 | {0xaa, 0x07, 0x0006}, |
1677 | {0xaa, 0x08, 0x0002}, | 1682 | {0xaa, 0x08, 0x0002}, |
@@ -1684,71 +1689,71 @@ static const struct usb_action hdcs2020xx_Initial[] = { | |||
1684 | {0xaa, 0x12, 0x0005}, | 1689 | {0xaa, 0x12, 0x0005}, |
1685 | {0xaa, 0x13, 0x0063}, | 1690 | {0xaa, 0x13, 0x0063}, |
1686 | {0xaa, 0x15, 0x0070}, | 1691 | {0xaa, 0x15, 0x0070}, |
1687 | {0xa0, 0x37, 0x0101}, | 1692 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
1688 | {0xa0, 0x0d, 0x0100}, | 1693 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
1689 | {0xa0, 0x06, 0x0189}, | 1694 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
1690 | {0xa0, 0x00, 0x01ad}, | 1695 | {0xa0, 0x00, 0x01ad}, |
1691 | {0xa0, 0x03, 0x01c5}, | 1696 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
1692 | {0xa0, 0x13, 0x01cb}, | 1697 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
1693 | {0xa0, 0x08, 0x0250}, | 1698 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
1694 | {0xa0, 0x08, 0x0301}, | 1699 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
1695 | {0xa0, 0x70, 0x018d}, | 1700 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
1696 | {0xa1, 0x01, 0x0002}, | 1701 | {0xa1, 0x01, 0x0002}, |
1697 | {0xa1, 0x01, 0x0008}, | 1702 | {0xa1, 0x01, 0x0008}, |
1698 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 1703 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
1699 | {0xa0, 0x04, 0x01c6}, /* sharpness+ */ | 1704 | {0xa0, 0x04, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
1700 | {0xa1, 0x01, 0x01c8}, | 1705 | {0xa1, 0x01, 0x01c8}, |
1701 | {0xa1, 0x01, 0x01c9}, | 1706 | {0xa1, 0x01, 0x01c9}, |
1702 | {0xa1, 0x01, 0x01ca}, | 1707 | {0xa1, 0x01, 0x01ca}, |
1703 | {0xa0, 0x07, 0x01cb}, /* sharpness- */ | 1708 | {0xa0, 0x07, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
1704 | {0xa0, 0x11, 0x0120}, /* gamma ~4 */ | 1709 | {0xa0, 0x11, ZC3XX_R120_GAMMA00}, /* gamma ~4 */ |
1705 | {0xa0, 0x37, 0x0121}, | 1710 | {0xa0, 0x37, ZC3XX_R121_GAMMA01}, |
1706 | {0xa0, 0x58, 0x0122}, | 1711 | {0xa0, 0x58, ZC3XX_R122_GAMMA02}, |
1707 | {0xa0, 0x79, 0x0123}, | 1712 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
1708 | {0xa0, 0x91, 0x0124}, | 1713 | {0xa0, 0x91, ZC3XX_R124_GAMMA04}, |
1709 | {0xa0, 0xa6, 0x0125}, | 1714 | {0xa0, 0xa6, ZC3XX_R125_GAMMA05}, |
1710 | {0xa0, 0xb8, 0x0126}, | 1715 | {0xa0, 0xb8, ZC3XX_R126_GAMMA06}, |
1711 | {0xa0, 0xc7, 0x0127}, | 1716 | {0xa0, 0xc7, ZC3XX_R127_GAMMA07}, |
1712 | {0xa0, 0xd3, 0x0128}, | 1717 | {0xa0, 0xd3, ZC3XX_R128_GAMMA08}, |
1713 | {0xa0, 0xde, 0x0129}, | 1718 | {0xa0, 0xde, ZC3XX_R129_GAMMA09}, |
1714 | {0xa0, 0xe6, 0x012a}, | 1719 | {0xa0, 0xe6, ZC3XX_R12A_GAMMA0A}, |
1715 | {0xa0, 0xed, 0x012b}, | 1720 | {0xa0, 0xed, ZC3XX_R12B_GAMMA0B}, |
1716 | {0xa0, 0xf3, 0x012c}, | 1721 | {0xa0, 0xf3, ZC3XX_R12C_GAMMA0C}, |
1717 | {0xa0, 0xf8, 0x012d}, | 1722 | {0xa0, 0xf8, ZC3XX_R12D_GAMMA0D}, |
1718 | {0xa0, 0xfb, 0x012e}, | 1723 | {0xa0, 0xfb, ZC3XX_R12E_GAMMA0E}, |
1719 | {0xa0, 0xff, 0x012f}, | 1724 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
1720 | {0xa0, 0x26, 0x0130}, | 1725 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
1721 | {0xa0, 0x23, 0x0131}, | 1726 | {0xa0, 0x23, ZC3XX_R131_GAMMA11}, |
1722 | {0xa0, 0x20, 0x0132}, | 1727 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
1723 | {0xa0, 0x1c, 0x0133}, | 1728 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
1724 | {0xa0, 0x16, 0x0134}, | 1729 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
1725 | {0xa0, 0x13, 0x0135}, | 1730 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
1726 | {0xa0, 0x10, 0x0136}, | 1731 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
1727 | {0xa0, 0x0d, 0x0137}, | 1732 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
1728 | {0xa0, 0x0b, 0x0138}, | 1733 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
1729 | {0xa0, 0x09, 0x0139}, | 1734 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
1730 | {0xa0, 0x07, 0x013a}, | 1735 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
1731 | {0xa0, 0x06, 0x013b}, | 1736 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
1732 | {0xa0, 0x05, 0x013c}, | 1737 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
1733 | {0xa0, 0x04, 0x013d}, | 1738 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
1734 | {0xa0, 0x03, 0x013e}, | 1739 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
1735 | {0xa0, 0x02, 0x013f}, | 1740 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
1736 | 1741 | ||
1737 | {0xa0, 0x4c, 0x010a}, /* matrix */ | 1742 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
1738 | {0xa0, 0xf5, 0x010b}, | 1743 | {0xa0, 0xf5, ZC3XX_R10B_RGB01}, |
1739 | {0xa0, 0xff, 0x010c}, | 1744 | {0xa0, 0xff, ZC3XX_R10C_RGB02}, |
1740 | {0xa0, 0xf9, 0x010d}, | 1745 | {0xa0, 0xf9, ZC3XX_R10D_RGB10}, |
1741 | {0xa0, 0x51, 0x010e}, | 1746 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
1742 | {0xa0, 0xf5, 0x010f}, | 1747 | {0xa0, 0xf5, ZC3XX_R10F_RGB12}, |
1743 | {0xa0, 0xfb, 0x0110}, | 1748 | {0xa0, 0xfb, ZC3XX_R110_RGB20}, |
1744 | {0xa0, 0xed, 0x0111}, | 1749 | {0xa0, 0xed, ZC3XX_R111_RGB21}, |
1745 | {0xa0, 0x5f, 0x0112}, | 1750 | {0xa0, 0x5f, ZC3XX_R112_RGB22}, |
1746 | 1751 | ||
1747 | {0xa1, 0x01, 0x0180}, | 1752 | {0xa1, 0x01, 0x0180}, |
1748 | {0xa0, 0x00, 0x0180}, | 1753 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
1749 | {0xa0, 0x00, 0x0019}, | 1754 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
1750 | {0xa0, 0x20, 0x0087}, | 1755 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
1751 | {0xa0, 0x21, 0x0088}, | 1756 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
1752 | {0xaa, 0x20, 0x0004}, | 1757 | {0xaa, 0x20, 0x0004}, |
1753 | {0xaa, 0x21, 0x003d}, | 1758 | {0xaa, 0x21, 0x003d}, |
1754 | {0xaa, 0x03, 0x0041}, | 1759 | {0xaa, 0x03, 0x0041}, |
@@ -1756,67 +1761,67 @@ static const struct usb_action hdcs2020xx_Initial[] = { | |||
1756 | {0xaa, 0x05, 0x003d}, | 1761 | {0xaa, 0x05, 0x003d}, |
1757 | {0xaa, 0x0e, 0x0001}, | 1762 | {0xaa, 0x0e, 0x0001}, |
1758 | {0xaa, 0x0f, 0x0000}, | 1763 | {0xaa, 0x0f, 0x0000}, |
1759 | {0xa0, 0x14, 0x01a9}, | 1764 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
1760 | {0xa0, 0x24, 0x01aa}, | 1765 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
1761 | {0xa0, 0x00, 0x0190}, | 1766 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
1762 | {0xa0, 0x04, 0x0191}, | 1767 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, |
1763 | {0xa0, 0x3d, 0x0192}, | 1768 | {0xa0, 0x3d, ZC3XX_R192_EXPOSURELIMITLOW}, |
1764 | {0xa0, 0x00, 0x0195}, | 1769 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
1765 | {0xa0, 0x00, 0x0196}, | 1770 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
1766 | {0xa0, 0x9b, 0x0197}, | 1771 | {0xa0, 0x9b, ZC3XX_R197_ANTIFLICKERLOW}, |
1767 | {0xa0, 0x10, 0x018c}, | 1772 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
1768 | {0xa0, 0x20, 0x018f}, | 1773 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
1769 | {0xa0, 0x41, 0x001d}, | 1774 | {0xa0, 0x41, ZC3XX_R01D_HSYNC_0}, |
1770 | {0xa0, 0x6f, 0x001e}, | 1775 | {0xa0, 0x6f, ZC3XX_R01E_HSYNC_1}, |
1771 | {0xa0, 0xad, 0x001f}, | 1776 | {0xa0, 0xad, ZC3XX_R01F_HSYNC_2}, |
1772 | {0xa0, 0xff, 0x0020}, | 1777 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
1773 | {0xa0, 0x0f, 0x0087}, | 1778 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, |
1774 | {0xa0, 0x0e, 0x0088}, | 1779 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, |
1775 | {0xa0, 0x40, 0x0180}, | 1780 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
1776 | {0xa1, 0x01, 0x0195}, | 1781 | {0xa1, 0x01, 0x0195}, |
1777 | {0xa1, 0x01, 0x0196}, | 1782 | {0xa1, 0x01, 0x0196}, |
1778 | {0xa1, 0x01, 0x0197}, | 1783 | {0xa1, 0x01, 0x0197}, |
1779 | {0xa0, 0x3d, 0x0192}, | 1784 | {0xa0, 0x3d, ZC3XX_R192_EXPOSURELIMITLOW}, |
1780 | {0xa0, 0x04, 0x0191}, | 1785 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, |
1781 | {0xa0, 0x00, 0x0190}, | 1786 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
1782 | {0xa0, 0x1d, 0x0116}, | 1787 | {0xa0, 0x1d, ZC3XX_R116_RGAIN}, |
1783 | {0xa0, 0x40, 0x0117}, | 1788 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1784 | {0xa0, 0x85, 0x0118}, | 1789 | {0xa0, 0x85, ZC3XX_R118_BGAIN}, |
1785 | {0xa1, 0x01, 0x0116}, | 1790 | {0xa1, 0x01, 0x0116}, |
1786 | {0xa1, 0x01, 0x0118}, | 1791 | {0xa1, 0x01, 0x0118}, |
1787 | {0xa1, 0x01, 0x0180}, | 1792 | {0xa1, 0x01, 0x0180}, |
1788 | {0xa0, 0x42, 0x0180}, | 1793 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
1789 | {0xa0, 0x1d, 0x0116}, | 1794 | {0xa0, 0x1d, ZC3XX_R116_RGAIN}, |
1790 | {0xa0, 0x40, 0x0117}, | 1795 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1791 | {0xa0, 0x85, 0x0118}, | 1796 | {0xa0, 0x85, ZC3XX_R118_BGAIN}, |
1792 | {0xa1, 0x01, 0x0116}, | 1797 | {0xa1, 0x01, 0x0116}, |
1793 | {0xa1, 0x01, 0x0118}, | 1798 | {0xa1, 0x01, 0x0118}, |
1794 | /* {0xa0, 0x02, 0x0008}, */ | 1799 | /* {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, */ |
1795 | {0xa0, 0x00, 0x0007}, | 1800 | {0xa0, 0x00, 0x0007}, |
1796 | {} | 1801 | {} |
1797 | }; | 1802 | }; |
1798 | 1803 | ||
1799 | static const struct usb_action hdcs2020xx_InitialScale[] = { | 1804 | static const struct usb_action hdcs2020xx_InitialScale[] = { |
1800 | {0xa0, 0x01, 0x0000}, | 1805 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
1801 | {0xa0, 0x03, 0x0008}, | 1806 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
1802 | {0xa0, 0x0e, 0x0010}, | 1807 | {0xa0, 0x0e, ZC3XX_R010_CMOSSENSORSELECT}, |
1803 | {0xa0, 0x00, 0x0002}, | 1808 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
1804 | {0xa0, 0x02, 0x0003}, | 1809 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
1805 | {0xa0, 0x80, 0x0004}, | 1810 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
1806 | {0xa0, 0x01, 0x0005}, | 1811 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
1807 | {0xa0, 0xe0, 0x0006}, | 1812 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
1808 | {0xa0, 0x01, 0x0001}, | 1813 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
1809 | {0xa0, 0x03, 0x0012}, | 1814 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1810 | {0xa0, 0x01, 0x0012}, | 1815 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1811 | {0xa0, 0x08, 0x008d}, | 1816 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
1812 | {0xa0, 0x00, 0x0098}, | 1817 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
1813 | {0xa0, 0x03, 0x009a}, | 1818 | {0xa0, 0x03, ZC3XX_R09A_WINXSTARTLOW}, |
1814 | {0xa0, 0x00, 0x011a}, | 1819 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
1815 | {0xa0, 0x03, 0x011c}, | 1820 | {0xa0, 0x03, ZC3XX_R11C_FIRSTXLOW}, |
1816 | {0xa0, 0x01, 0x009b}, | 1821 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
1817 | {0xa0, 0xe6, 0x009c}, | 1822 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
1818 | {0xa0, 0x02, 0x009d}, | 1823 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
1819 | {0xa0, 0x86, 0x009e}, | 1824 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
1820 | {0xaa, 0x02, 0x0002}, | 1825 | {0xaa, 0x02, 0x0002}, |
1821 | {0xaa, 0x07, 0x0006}, | 1826 | {0xaa, 0x07, 0x0006}, |
1822 | {0xaa, 0x08, 0x0002}, | 1827 | {0xaa, 0x08, 0x0002}, |
@@ -1829,70 +1834,70 @@ static const struct usb_action hdcs2020xx_InitialScale[] = { | |||
1829 | {0xaa, 0x12, 0x0005}, | 1834 | {0xaa, 0x12, 0x0005}, |
1830 | {0xaa, 0x13, 0x0063}, | 1835 | {0xaa, 0x13, 0x0063}, |
1831 | {0xaa, 0x15, 0x0070}, | 1836 | {0xaa, 0x15, 0x0070}, |
1832 | {0xa0, 0xb7, 0x0101}, | 1837 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
1833 | {0xa0, 0x0d, 0x0100}, | 1838 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
1834 | {0xa0, 0x06, 0x0189}, | 1839 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
1835 | {0xa0, 0x00, 0x01ad}, | 1840 | {0xa0, 0x00, 0x01ad}, |
1836 | {0xa0, 0x03, 0x01c5}, | 1841 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
1837 | {0xa0, 0x13, 0x01cb}, | 1842 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
1838 | {0xa0, 0x08, 0x0250}, | 1843 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
1839 | {0xa0, 0x08, 0x0301}, | 1844 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
1840 | {0xa0, 0x70, 0x018d}, | 1845 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
1841 | {0xa1, 0x01, 0x0002}, | 1846 | {0xa1, 0x01, 0x0002}, |
1842 | {0xa1, 0x01, 0x0008}, | 1847 | {0xa1, 0x01, 0x0008}, |
1843 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 1848 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
1844 | {0xa0, 0x04, 0x01c6}, /* sharpness+ */ | 1849 | {0xa0, 0x04, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
1845 | {0xa1, 0x01, 0x01c8}, | 1850 | {0xa1, 0x01, 0x01c8}, |
1846 | {0xa1, 0x01, 0x01c9}, | 1851 | {0xa1, 0x01, 0x01c9}, |
1847 | {0xa1, 0x01, 0x01ca}, | 1852 | {0xa1, 0x01, 0x01ca}, |
1848 | {0xa0, 0x07, 0x01cb}, /* sharpness- */ | 1853 | {0xa0, 0x07, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
1849 | {0xa0, 0x11, 0x0120}, /* gamma ~4*/ | 1854 | {0xa0, 0x11, ZC3XX_R120_GAMMA00}, /* gamma ~4*/ |
1850 | {0xa0, 0x37, 0x0121}, | 1855 | {0xa0, 0x37, ZC3XX_R121_GAMMA01}, |
1851 | {0xa0, 0x58, 0x0122}, | 1856 | {0xa0, 0x58, ZC3XX_R122_GAMMA02}, |
1852 | {0xa0, 0x79, 0x0123}, | 1857 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
1853 | {0xa0, 0x91, 0x0124}, | 1858 | {0xa0, 0x91, ZC3XX_R124_GAMMA04}, |
1854 | {0xa0, 0xa6, 0x0125}, | 1859 | {0xa0, 0xa6, ZC3XX_R125_GAMMA05}, |
1855 | {0xa0, 0xb8, 0x0126}, | 1860 | {0xa0, 0xb8, ZC3XX_R126_GAMMA06}, |
1856 | {0xa0, 0xc7, 0x0127}, | 1861 | {0xa0, 0xc7, ZC3XX_R127_GAMMA07}, |
1857 | {0xa0, 0xd3, 0x0128}, | 1862 | {0xa0, 0xd3, ZC3XX_R128_GAMMA08}, |
1858 | {0xa0, 0xde, 0x0129}, | 1863 | {0xa0, 0xde, ZC3XX_R129_GAMMA09}, |
1859 | {0xa0, 0xe6, 0x012a}, | 1864 | {0xa0, 0xe6, ZC3XX_R12A_GAMMA0A}, |
1860 | {0xa0, 0xed, 0x012b}, | 1865 | {0xa0, 0xed, ZC3XX_R12B_GAMMA0B}, |
1861 | {0xa0, 0xf3, 0x012c}, | 1866 | {0xa0, 0xf3, ZC3XX_R12C_GAMMA0C}, |
1862 | {0xa0, 0xf8, 0x012d}, | 1867 | {0xa0, 0xf8, ZC3XX_R12D_GAMMA0D}, |
1863 | {0xa0, 0xfb, 0x012e}, | 1868 | {0xa0, 0xfb, ZC3XX_R12E_GAMMA0E}, |
1864 | {0xa0, 0xff, 0x012f}, | 1869 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
1865 | {0xa0, 0x26, 0x0130}, | 1870 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
1866 | {0xa0, 0x23, 0x0131}, | 1871 | {0xa0, 0x23, ZC3XX_R131_GAMMA11}, |
1867 | {0xa0, 0x20, 0x0132}, | 1872 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
1868 | {0xa0, 0x1c, 0x0133}, | 1873 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
1869 | {0xa0, 0x16, 0x0134}, | 1874 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
1870 | {0xa0, 0x13, 0x0135}, | 1875 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
1871 | {0xa0, 0x10, 0x0136}, | 1876 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
1872 | {0xa0, 0x0d, 0x0137}, | 1877 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
1873 | {0xa0, 0x0b, 0x0138}, | 1878 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
1874 | {0xa0, 0x09, 0x0139}, | 1879 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
1875 | {0xa0, 0x07, 0x013a}, | 1880 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
1876 | {0xa0, 0x06, 0x013b}, | 1881 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
1877 | {0xa0, 0x05, 0x013c}, | 1882 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
1878 | {0xa0, 0x04, 0x013d}, | 1883 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
1879 | {0xa0, 0x03, 0x013e}, | 1884 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
1880 | {0xa0, 0x02, 0x013f}, | 1885 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
1881 | {0xa0, 0x60, 0x010a}, /* matrix */ | 1886 | {0xa0, 0x60, ZC3XX_R10A_RGB00}, /* matrix */ |
1882 | {0xa0, 0xff, 0x010b}, | 1887 | {0xa0, 0xff, ZC3XX_R10B_RGB01}, |
1883 | {0xa0, 0xff, 0x010c}, | 1888 | {0xa0, 0xff, ZC3XX_R10C_RGB02}, |
1884 | {0xa0, 0xff, 0x010d}, | 1889 | {0xa0, 0xff, ZC3XX_R10D_RGB10}, |
1885 | {0xa0, 0x60, 0x010e}, | 1890 | {0xa0, 0x60, ZC3XX_R10E_RGB11}, |
1886 | {0xa0, 0xff, 0x010f}, | 1891 | {0xa0, 0xff, ZC3XX_R10F_RGB12}, |
1887 | {0xa0, 0xff, 0x0110}, | 1892 | {0xa0, 0xff, ZC3XX_R110_RGB20}, |
1888 | {0xa0, 0xff, 0x0111}, | 1893 | {0xa0, 0xff, ZC3XX_R111_RGB21}, |
1889 | {0xa0, 0x60, 0x0112}, | 1894 | {0xa0, 0x60, ZC3XX_R112_RGB22}, |
1890 | 1895 | ||
1891 | {0xa1, 0x01, 0x0180}, | 1896 | {0xa1, 0x01, 0x0180}, |
1892 | {0xa0, 0x00, 0x0180}, | 1897 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
1893 | {0xa0, 0x00, 0x0019}, | 1898 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
1894 | {0xa0, 0x20, 0x0087}, | 1899 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
1895 | {0xa0, 0x21, 0x0088}, | 1900 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
1896 | {0xaa, 0x20, 0x0002}, | 1901 | {0xaa, 0x20, 0x0002}, |
1897 | {0xaa, 0x21, 0x001b}, | 1902 | {0xaa, 0x21, 0x001b}, |
1898 | {0xaa, 0x03, 0x0044}, | 1903 | {0xaa, 0x03, 0x0044}, |
@@ -1900,62 +1905,62 @@ static const struct usb_action hdcs2020xx_InitialScale[] = { | |||
1900 | {0xaa, 0x05, 0x001b}, | 1905 | {0xaa, 0x05, 0x001b}, |
1901 | {0xaa, 0x0e, 0x0001}, | 1906 | {0xaa, 0x0e, 0x0001}, |
1902 | {0xaa, 0x0f, 0x0000}, | 1907 | {0xaa, 0x0f, 0x0000}, |
1903 | {0xa0, 0x14, 0x01a9}, | 1908 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
1904 | {0xa0, 0x24, 0x01aa}, | 1909 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
1905 | {0xa0, 0x00, 0x0190}, | 1910 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
1906 | {0xa0, 0x02, 0x0191}, | 1911 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
1907 | {0xa0, 0x1b, 0x0192}, | 1912 | {0xa0, 0x1b, ZC3XX_R192_EXPOSURELIMITLOW}, |
1908 | {0xa0, 0x00, 0x0195}, | 1913 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
1909 | {0xa0, 0x00, 0x0196}, | 1914 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
1910 | {0xa0, 0x4d, 0x0197}, | 1915 | {0xa0, 0x4d, ZC3XX_R197_ANTIFLICKERLOW}, |
1911 | {0xa0, 0x10, 0x018c}, | 1916 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
1912 | {0xa0, 0x20, 0x018f}, | 1917 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
1913 | {0xa0, 0x44, 0x001d}, | 1918 | {0xa0, 0x44, ZC3XX_R01D_HSYNC_0}, |
1914 | {0xa0, 0x6f, 0x001e}, | 1919 | {0xa0, 0x6f, ZC3XX_R01E_HSYNC_1}, |
1915 | {0xa0, 0xad, 0x001f}, | 1920 | {0xa0, 0xad, ZC3XX_R01F_HSYNC_2}, |
1916 | {0xa0, 0xeb, 0x0020}, | 1921 | {0xa0, 0xeb, ZC3XX_R020_HSYNC_3}, |
1917 | {0xa0, 0x0f, 0x0087}, | 1922 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, |
1918 | {0xa0, 0x0e, 0x0088}, | 1923 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, |
1919 | {0xa0, 0x40, 0x0180}, | 1924 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
1920 | {0xa1, 0x01, 0x0195}, | 1925 | {0xa1, 0x01, 0x0195}, |
1921 | {0xa1, 0x01, 0x0196}, | 1926 | {0xa1, 0x01, 0x0196}, |
1922 | {0xa1, 0x01, 0x0197}, | 1927 | {0xa1, 0x01, 0x0197}, |
1923 | {0xa0, 0x1b, 0x0192}, | 1928 | {0xa0, 0x1b, ZC3XX_R192_EXPOSURELIMITLOW}, |
1924 | {0xa0, 0x02, 0x0191}, | 1929 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
1925 | {0xa0, 0x00, 0x0190}, | 1930 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
1926 | {0xa0, 0x1d, 0x0116}, | 1931 | {0xa0, 0x1d, ZC3XX_R116_RGAIN}, |
1927 | {0xa0, 0x40, 0x0117}, | 1932 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1928 | {0xa0, 0x99, 0x0118}, | 1933 | {0xa0, 0x99, ZC3XX_R118_BGAIN}, |
1929 | {0xa1, 0x01, 0x0116}, | 1934 | {0xa1, 0x01, 0x0116}, |
1930 | {0xa1, 0x01, 0x0118}, | 1935 | {0xa1, 0x01, 0x0118}, |
1931 | {0xa1, 0x01, 0x0180}, | 1936 | {0xa1, 0x01, 0x0180}, |
1932 | {0xa0, 0x42, 0x0180}, | 1937 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
1933 | {0xa0, 0x1d, 0x0116}, | 1938 | {0xa0, 0x1d, ZC3XX_R116_RGAIN}, |
1934 | {0xa0, 0x40, 0x0117}, | 1939 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1935 | {0xa0, 0x99, 0x0118}, | 1940 | {0xa0, 0x99, ZC3XX_R118_BGAIN}, |
1936 | /* {0xa0, 0x02, 0x0008}, */ | 1941 | /* {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, */ |
1937 | {0xa0, 0x00, 0x0007}, | 1942 | {0xa0, 0x00, 0x0007}, |
1938 | /* {0xa0, 0x18, 0x00fe}, */ | 1943 | /* {0xa0, 0x18, 0x00fe}, */ |
1939 | {} | 1944 | {} |
1940 | }; | 1945 | }; |
1941 | static const struct usb_action hdcs2020xb_Initial[] = { | 1946 | static const struct usb_action hdcs2020xb_Initial[] = { |
1942 | {0xa0, 0x01, 0x0000}, | 1947 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
1943 | {0xa0, 0x11, 0x0002}, | 1948 | {0xa0, 0x11, ZC3XX_R002_CLOCKSELECT}, |
1944 | {0xa0, 0x03, 0x0008}, /* qtable 0x05 */ | 1949 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* qtable 0x05 */ |
1945 | {0xa0, 0x08, 0x0010}, | 1950 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
1946 | {0xa0, 0x02, 0x0003}, | 1951 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
1947 | {0xa0, 0x80, 0x0004}, | 1952 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
1948 | {0xa0, 0x01, 0x0005}, | 1953 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
1949 | {0xa0, 0xe0, 0x0006}, | 1954 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
1950 | {0xa0, 0x01, 0x0001}, | 1955 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
1951 | {0xa0, 0x03, 0x0012}, | 1956 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1952 | {0xa0, 0x01, 0x0012}, | 1957 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1953 | {0xa0, 0x00, 0x0098}, | 1958 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
1954 | {0xa0, 0x00, 0x009a}, | 1959 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
1955 | {0xa0, 0x00, 0x011a}, | 1960 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
1956 | {0xa0, 0x00, 0x011c}, | 1961 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
1957 | {0xa0, 0xe8, 0x009c}, | 1962 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
1958 | {0xa0, 0x88, 0x009e}, | 1963 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
1959 | {0xaa, 0x1c, 0x0000}, | 1964 | {0xaa, 0x1c, 0x0000}, |
1960 | {0xaa, 0x0a, 0x0001}, | 1965 | {0xaa, 0x0a, 0x0001}, |
1961 | {0xaa, 0x0b, 0x0006}, | 1966 | {0xaa, 0x0b, 0x0006}, |
@@ -1973,121 +1978,121 @@ static const struct usb_action hdcs2020xb_Initial[] = { | |||
1973 | 1978 | ||
1974 | {0xaa, 0x15, 0x004e}, | 1979 | {0xaa, 0x15, 0x004e}, |
1975 | {0xaa, 0x1c, 0x0004}, | 1980 | {0xaa, 0x1c, 0x0004}, |
1976 | {0xa0, 0xb7, 0x0101}, | 1981 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
1977 | {0xa0, 0x05, 0x0012}, | 1982 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
1978 | {0xa0, 0x70, 0x018d}, | 1983 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
1979 | {0xa0, 0x0d, 0x0100}, | 1984 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
1980 | {0xa0, 0x06, 0x0189}, | 1985 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
1981 | {0xa0, 0x03, 0x01c5}, | 1986 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
1982 | {0xa0, 0x13, 0x01cb}, | 1987 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
1983 | {0xa0, 0x08, 0x0250}, | 1988 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
1984 | {0xa0, 0x08, 0x0301}, | 1989 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
1985 | {0xa1, 0x01, 0x0002}, | 1990 | {0xa1, 0x01, 0x0002}, |
1986 | {0xa1, 0x01, 0x0008}, | 1991 | {0xa1, 0x01, 0x0008}, |
1987 | {0xa1, 0x01, 0x0180}, | 1992 | {0xa1, 0x01, 0x0180}, |
1988 | {0xa0, 0x02, 0x0180}, | 1993 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
1989 | {0xa0, 0x40, 0x0116}, | 1994 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
1990 | {0xa0, 0x40, 0x0117}, | 1995 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
1991 | {0xa0, 0x40, 0x0118}, | 1996 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
1992 | {0xa1, 0x01, 0x0008}, | 1997 | {0xa1, 0x01, 0x0008}, |
1993 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 1998 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
1994 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 1999 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
1995 | {0xa1, 0x01, 0x01c8}, | 2000 | {0xa1, 0x01, 0x01c8}, |
1996 | {0xa1, 0x01, 0x01c9}, | 2001 | {0xa1, 0x01, 0x01c9}, |
1997 | {0xa1, 0x01, 0x01ca}, | 2002 | {0xa1, 0x01, 0x01ca}, |
1998 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2003 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
1999 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 2004 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
2000 | {0xa0, 0x38, 0x0121}, | 2005 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
2001 | {0xa0, 0x59, 0x0122}, | 2006 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
2002 | {0xa0, 0x79, 0x0123}, | 2007 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
2003 | {0xa0, 0x92, 0x0124}, | 2008 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
2004 | {0xa0, 0xa7, 0x0125}, | 2009 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
2005 | {0xa0, 0xb9, 0x0126}, | 2010 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
2006 | {0xa0, 0xc8, 0x0127}, | 2011 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
2007 | {0xa0, 0xd4, 0x0128}, | 2012 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
2008 | {0xa0, 0xdf, 0x0129}, | 2013 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
2009 | {0xa0, 0xe7, 0x012a}, | 2014 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
2010 | {0xa0, 0xee, 0x012b}, | 2015 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
2011 | {0xa0, 0xf4, 0x012c}, | 2016 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
2012 | {0xa0, 0xf9, 0x012d}, | 2017 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
2013 | {0xa0, 0xfc, 0x012e}, | 2018 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
2014 | {0xa0, 0xff, 0x012f}, | 2019 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
2015 | {0xa0, 0x26, 0x0130}, | 2020 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
2016 | {0xa0, 0x22, 0x0131}, | 2021 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
2017 | {0xa0, 0x20, 0x0132}, | 2022 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
2018 | {0xa0, 0x1c, 0x0133}, | 2023 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
2019 | {0xa0, 0x16, 0x0134}, | 2024 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
2020 | {0xa0, 0x13, 0x0135}, | 2025 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
2021 | {0xa0, 0x10, 0x0136}, | 2026 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
2022 | {0xa0, 0x0d, 0x0137}, | 2027 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
2023 | {0xa0, 0x0b, 0x0138}, | 2028 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
2024 | {0xa0, 0x09, 0x0139}, | 2029 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
2025 | {0xa0, 0x07, 0x013a}, | 2030 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
2026 | {0xa0, 0x06, 0x013b}, | 2031 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
2027 | {0xa0, 0x05, 0x013c}, | 2032 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
2028 | {0xa0, 0x04, 0x013d}, | 2033 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
2029 | {0xa0, 0x03, 0x013e}, | 2034 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
2030 | {0xa0, 0x02, 0x013f}, | 2035 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
2031 | 2036 | ||
2032 | {0xa0, 0x66, 0x010a}, /* matrix */ | 2037 | {0xa0, 0x66, ZC3XX_R10A_RGB00}, /* matrix */ |
2033 | {0xa0, 0xed, 0x010b}, | 2038 | {0xa0, 0xed, ZC3XX_R10B_RGB01}, |
2034 | {0xa0, 0xed, 0x010c}, | 2039 | {0xa0, 0xed, ZC3XX_R10C_RGB02}, |
2035 | {0xa0, 0xed, 0x010d}, | 2040 | {0xa0, 0xed, ZC3XX_R10D_RGB10}, |
2036 | {0xa0, 0x66, 0x010e}, | 2041 | {0xa0, 0x66, ZC3XX_R10E_RGB11}, |
2037 | {0xa0, 0xed, 0x010f}, | 2042 | {0xa0, 0xed, ZC3XX_R10F_RGB12}, |
2038 | {0xa0, 0xed, 0x0110}, | 2043 | {0xa0, 0xed, ZC3XX_R110_RGB20}, |
2039 | {0xa0, 0xed, 0x0111}, | 2044 | {0xa0, 0xed, ZC3XX_R111_RGB21}, |
2040 | {0xa0, 0x66, 0x0112}, | 2045 | {0xa0, 0x66, ZC3XX_R112_RGB22}, |
2041 | 2046 | ||
2042 | {0xa1, 0x01, 0x0180}, | 2047 | {0xa1, 0x01, 0x0180}, |
2043 | {0xa0, 0x00, 0x0180}, | 2048 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
2044 | {0xa0, 0x00, 0x0019}, | 2049 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2045 | {0xaa, 0x13, 0x0031}, | 2050 | {0xaa, 0x13, 0x0031}, |
2046 | {0xaa, 0x14, 0x0001}, | 2051 | {0xaa, 0x14, 0x0001}, |
2047 | {0xaa, 0x0e, 0x0004}, | 2052 | {0xaa, 0x0e, 0x0004}, |
2048 | {0xaa, 0x19, 0x00cd}, | 2053 | {0xaa, 0x19, 0x00cd}, |
2049 | {0xa0, 0x00, 0x0190}, | 2054 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
2050 | {0xa0, 0x02, 0x0191}, | 2055 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
2051 | {0xa0, 0x62, 0x0192}, | 2056 | {0xa0, 0x62, ZC3XX_R192_EXPOSURELIMITLOW}, |
2052 | {0xa0, 0x00, 0x0195}, | 2057 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
2053 | {0xa0, 0x00, 0x0196}, | 2058 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
2054 | {0xa0, 0x3d, 0x0197}, | 2059 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, |
2055 | {0xa0, 0x10, 0x018c}, | 2060 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
2056 | {0xa0, 0x20, 0x018f}, | 2061 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
2057 | 2062 | ||
2058 | {0xa0, 0x0c, 0x01a9}, /* 0x14 */ | 2063 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 0x14 */ |
2059 | {0xa0, 0x28, 0x01aa}, | 2064 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2060 | {0xa0, 0x04, 0x001d}, | 2065 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
2061 | {0xa0, 0x18, 0x001e}, | 2066 | {0xa0, 0x18, ZC3XX_R01E_HSYNC_1}, |
2062 | {0xa0, 0x2c, 0x001f}, | 2067 | {0xa0, 0x2c, ZC3XX_R01F_HSYNC_2}, |
2063 | {0xa0, 0x41, 0x0020}, | 2068 | {0xa0, 0x41, ZC3XX_R020_HSYNC_3}, |
2064 | {0xa0, 0x60, 0x011d}, | 2069 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
2065 | {0xa0, 0x42, 0x0180}, | 2070 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2066 | {0xa1, 0x01, 0x0180}, | 2071 | {0xa1, 0x01, 0x0180}, |
2067 | {0xa0, 0x42, 0x0180}, | 2072 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2068 | {0xa0, 0x40, 0x0116}, | 2073 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2069 | {0xa0, 0x40, 0x0117}, | 2074 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2070 | {0xa0, 0x40, 0x0118}, | 2075 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2071 | {} | 2076 | {} |
2072 | }; | 2077 | }; |
2073 | static const struct usb_action hdcs2020xb_InitialScale[] = { | 2078 | static const struct usb_action hdcs2020xb_InitialScale[] = { |
2074 | {0xa0, 0x01, 0x0000}, | 2079 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2075 | {0xa0, 0x00, 0x0002}, | 2080 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
2076 | {0xa0, 0x03, 0x0008}, | 2081 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
2077 | {0xa0, 0x08, 0x0010}, | 2082 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
2078 | {0xa0, 0x02, 0x0003}, | 2083 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2079 | {0xa0, 0x80, 0x0004}, | 2084 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2080 | {0xa0, 0x01, 0x0005}, | 2085 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2081 | {0xa0, 0xe0, 0x0006}, | 2086 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
2082 | {0xa0, 0x01, 0x0001}, | 2087 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2083 | {0xa0, 0x03, 0x0012}, | 2088 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2084 | {0xa0, 0x01, 0x0012}, | 2089 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2085 | {0xa0, 0x00, 0x0098}, | 2090 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
2086 | {0xa0, 0x00, 0x009a}, | 2091 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
2087 | {0xa0, 0x00, 0x011a}, | 2092 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
2088 | {0xa0, 0x00, 0x011c}, | 2093 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
2089 | {0xa0, 0xe8, 0x009c}, | 2094 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
2090 | {0xa0, 0x88, 0x009e}, | 2095 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
2091 | {0xaa, 0x1c, 0x0000}, | 2096 | {0xaa, 0x1c, 0x0000}, |
2092 | {0xaa, 0x0a, 0x0001}, | 2097 | {0xaa, 0x0a, 0x0001}, |
2093 | {0xaa, 0x0b, 0x0006}, | 2098 | {0xaa, 0x0b, 0x0006}, |
@@ -2103,182 +2108,182 @@ static const struct usb_action hdcs2020xb_InitialScale[] = { | |||
2103 | {0xaa, 0x12, 0x0018}, | 2108 | {0xaa, 0x12, 0x0018}, |
2104 | {0xaa, 0x15, 0x004e}, | 2109 | {0xaa, 0x15, 0x004e}, |
2105 | {0xaa, 0x1c, 0x0004}, | 2110 | {0xaa, 0x1c, 0x0004}, |
2106 | {0xa0, 0xf7, 0x0101}, | 2111 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
2107 | {0xa0, 0x05, 0x0012}, | 2112 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2108 | {0xa0, 0x70, 0x018d}, | 2113 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
2109 | {0xa0, 0x0d, 0x0100}, | 2114 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2110 | {0xa0, 0x06, 0x0189}, | 2115 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2111 | {0xa0, 0x03, 0x01c5}, | 2116 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2112 | {0xa0, 0x13, 0x01cb}, | 2117 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2113 | {0xa0, 0x08, 0x0250}, | 2118 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2114 | {0xa0, 0x08, 0x0301}, | 2119 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2115 | {0xa1, 0x01, 0x0002}, | 2120 | {0xa1, 0x01, 0x0002}, |
2116 | {0xa1, 0x01, 0x0008}, | 2121 | {0xa1, 0x01, 0x0008}, |
2117 | {0xa1, 0x01, 0x0180}, | 2122 | {0xa1, 0x01, 0x0180}, |
2118 | {0xa0, 0x02, 0x0180}, | 2123 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
2119 | {0xa0, 0x40, 0x0116}, | 2124 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2120 | {0xa0, 0x40, 0x0117}, | 2125 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2121 | {0xa0, 0x40, 0x0118}, | 2126 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2122 | {0xa1, 0x01, 0x0008}, | 2127 | {0xa1, 0x01, 0x0008}, |
2123 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2128 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2124 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2129 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2125 | {0xa1, 0x01, 0x01c8}, | 2130 | {0xa1, 0x01, 0x01c8}, |
2126 | {0xa1, 0x01, 0x01c9}, | 2131 | {0xa1, 0x01, 0x01c9}, |
2127 | {0xa1, 0x01, 0x01ca}, | 2132 | {0xa1, 0x01, 0x01ca}, |
2128 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2133 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2129 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 2134 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
2130 | {0xa0, 0x38, 0x0121}, | 2135 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
2131 | {0xa0, 0x59, 0x0122}, | 2136 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
2132 | {0xa0, 0x79, 0x0123}, | 2137 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
2133 | {0xa0, 0x92, 0x0124}, | 2138 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
2134 | {0xa0, 0xa7, 0x0125}, | 2139 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
2135 | {0xa0, 0xb9, 0x0126}, | 2140 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
2136 | {0xa0, 0xc8, 0x0127}, | 2141 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
2137 | {0xa0, 0xd4, 0x0128}, | 2142 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
2138 | {0xa0, 0xdf, 0x0129}, | 2143 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
2139 | {0xa0, 0xe7, 0x012a}, | 2144 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
2140 | {0xa0, 0xee, 0x012b}, | 2145 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
2141 | {0xa0, 0xf4, 0x012c}, | 2146 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
2142 | {0xa0, 0xf9, 0x012d}, | 2147 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
2143 | {0xa0, 0xfc, 0x012e}, | 2148 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
2144 | {0xa0, 0xff, 0x012f}, | 2149 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
2145 | {0xa0, 0x26, 0x0130}, | 2150 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
2146 | {0xa0, 0x22, 0x0131}, | 2151 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
2147 | {0xa0, 0x20, 0x0132}, | 2152 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
2148 | {0xa0, 0x1c, 0x0133}, | 2153 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
2149 | {0xa0, 0x16, 0x0134}, | 2154 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
2150 | {0xa0, 0x13, 0x0135}, | 2155 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
2151 | {0xa0, 0x10, 0x0136}, | 2156 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
2152 | {0xa0, 0x0d, 0x0137}, | 2157 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
2153 | {0xa0, 0x0b, 0x0138}, | 2158 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
2154 | {0xa0, 0x09, 0x0139}, | 2159 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
2155 | {0xa0, 0x07, 0x013a}, | 2160 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
2156 | {0xa0, 0x06, 0x013b}, | 2161 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
2157 | {0xa0, 0x05, 0x013c}, | 2162 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
2158 | {0xa0, 0x04, 0x013d}, | 2163 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
2159 | {0xa0, 0x03, 0x013e}, | 2164 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
2160 | {0xa0, 0x02, 0x013f}, | 2165 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
2161 | {0xa0, 0x66, 0x010a}, /* matrix */ | 2166 | {0xa0, 0x66, ZC3XX_R10A_RGB00}, /* matrix */ |
2162 | {0xa0, 0xed, 0x010b}, | 2167 | {0xa0, 0xed, ZC3XX_R10B_RGB01}, |
2163 | {0xa0, 0xed, 0x010c}, | 2168 | {0xa0, 0xed, ZC3XX_R10C_RGB02}, |
2164 | {0xa0, 0xed, 0x010d}, | 2169 | {0xa0, 0xed, ZC3XX_R10D_RGB10}, |
2165 | {0xa0, 0x66, 0x010e}, | 2170 | {0xa0, 0x66, ZC3XX_R10E_RGB11}, |
2166 | {0xa0, 0xed, 0x010f}, | 2171 | {0xa0, 0xed, ZC3XX_R10F_RGB12}, |
2167 | {0xa0, 0xed, 0x0110}, | 2172 | {0xa0, 0xed, ZC3XX_R110_RGB20}, |
2168 | {0xa0, 0xed, 0x0111}, | 2173 | {0xa0, 0xed, ZC3XX_R111_RGB21}, |
2169 | {0xa0, 0x66, 0x0112}, | 2174 | {0xa0, 0x66, ZC3XX_R112_RGB22}, |
2170 | {0xa1, 0x01, 0x0180}, | 2175 | {0xa1, 0x01, 0x0180}, |
2171 | {0xa0, 0x00, 0x0180}, | 2176 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
2172 | {0xa0, 0x00, 0x0019}, | 2177 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2173 | /**** set exposure ***/ | 2178 | /**** set exposure ***/ |
2174 | {0xaa, 0x13, 0x0031}, | 2179 | {0xaa, 0x13, 0x0031}, |
2175 | {0xaa, 0x14, 0x0001}, | 2180 | {0xaa, 0x14, 0x0001}, |
2176 | {0xaa, 0x0e, 0x0004}, | 2181 | {0xaa, 0x0e, 0x0004}, |
2177 | {0xaa, 0x19, 0x00cd}, | 2182 | {0xaa, 0x19, 0x00cd}, |
2178 | {0xa0, 0x00, 0x0190}, | 2183 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
2179 | {0xa0, 0x02, 0x0191}, | 2184 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
2180 | {0xa0, 0x62, 0x0192}, | 2185 | {0xa0, 0x62, ZC3XX_R192_EXPOSURELIMITLOW}, |
2181 | {0xa0, 0x00, 0x0195}, | 2186 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
2182 | {0xa0, 0x00, 0x0196}, | 2187 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
2183 | {0xa0, 0x3d, 0x0197}, | 2188 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, |
2184 | {0xa0, 0x10, 0x018c}, | 2189 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
2185 | {0xa0, 0x20, 0x018f}, | 2190 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
2186 | {0xa0, 0x0c, 0x01a9}, | 2191 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
2187 | {0xa0, 0x28, 0x01aa}, | 2192 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2188 | {0xa0, 0x04, 0x001d}, | 2193 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
2189 | {0xa0, 0x18, 0x001e}, | 2194 | {0xa0, 0x18, ZC3XX_R01E_HSYNC_1}, |
2190 | {0xa0, 0x2c, 0x001f}, | 2195 | {0xa0, 0x2c, ZC3XX_R01F_HSYNC_2}, |
2191 | {0xa0, 0x41, 0x0020}, | 2196 | {0xa0, 0x41, ZC3XX_R020_HSYNC_3}, |
2192 | {0xa0, 0x60, 0x011d}, | 2197 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
2193 | {0xa0, 0x42, 0x0180}, | 2198 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2194 | {0xa1, 0x01, 0x0180}, | 2199 | {0xa1, 0x01, 0x0180}, |
2195 | {0xa0, 0x42, 0x0180}, | 2200 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2196 | {0xa0, 0x40, 0x0116}, | 2201 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2197 | {0xa0, 0x40, 0x0117}, | 2202 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2198 | {0xa0, 0x40, 0x0118}, | 2203 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2199 | {} | 2204 | {} |
2200 | }; | 2205 | }; |
2201 | static const struct usb_action hdcs2020b_50HZ[] = { | 2206 | static const struct usb_action hdcs2020b_50HZ[] = { |
2202 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 2207 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
2203 | {0xaa, 0x13, 0x0018}, /* 00,13,18,aa */ | 2208 | {0xaa, 0x13, 0x0018}, /* 00,13,18,aa */ |
2204 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ | 2209 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ |
2205 | {0xaa, 0x0e, 0x0005}, /* 00,0e,05,aa */ | 2210 | {0xaa, 0x0e, 0x0005}, /* 00,0e,05,aa */ |
2206 | {0xaa, 0x19, 0x001f}, /* 00,19,1f,aa */ | 2211 | {0xaa, 0x19, 0x001f}, /* 00,19,1f,aa */ |
2207 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 2212 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
2208 | {0xa0, 0x02, 0x0191}, /* 01,91,02,cc */ | 2213 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
2209 | {0xa0, 0x76, 0x0192}, /* 01,92,76,cc */ | 2214 | {0xa0, 0x76, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,76,cc */ |
2210 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 2215 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
2211 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 2216 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
2212 | {0xa0, 0x46, 0x0197}, /* 01,97,46,cc */ | 2217 | {0xa0, 0x46, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,46,cc */ |
2213 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 2218 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
2214 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 2219 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
2215 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 2220 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
2216 | {0xa0, 0x28, 0x01aa}, /* 01,aa,28,cc */ | 2221 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,28,cc */ |
2217 | {0xa0, 0x05, 0x001d}, /* 00,1d,05,cc */ | 2222 | {0xa0, 0x05, ZC3XX_R01D_HSYNC_0}, /* 00,1d,05,cc */ |
2218 | {0xa0, 0x1a, 0x001e}, /* 00,1e,1a,cc */ | 2223 | {0xa0, 0x1a, ZC3XX_R01E_HSYNC_1}, /* 00,1e,1a,cc */ |
2219 | {0xa0, 0x2f, 0x001f}, /* 00,1f,2f,cc */ | 2224 | {0xa0, 0x2f, ZC3XX_R01F_HSYNC_2}, /* 00,1f,2f,cc */ |
2220 | {} | 2225 | {} |
2221 | }; | 2226 | }; |
2222 | static const struct usb_action hdcs2020b_60HZ[] = { | 2227 | static const struct usb_action hdcs2020b_60HZ[] = { |
2223 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 2228 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
2224 | {0xaa, 0x13, 0x0031}, /* 00,13,31,aa */ | 2229 | {0xaa, 0x13, 0x0031}, /* 00,13,31,aa */ |
2225 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ | 2230 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ |
2226 | {0xaa, 0x0e, 0x0004}, /* 00,0e,04,aa */ | 2231 | {0xaa, 0x0e, 0x0004}, /* 00,0e,04,aa */ |
2227 | {0xaa, 0x19, 0x00cd}, /* 00,19,cd,aa */ | 2232 | {0xaa, 0x19, 0x00cd}, /* 00,19,cd,aa */ |
2228 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 2233 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
2229 | {0xa0, 0x02, 0x0191}, /* 01,91,02,cc */ | 2234 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
2230 | {0xa0, 0x62, 0x0192}, /* 01,92,62,cc */ | 2235 | {0xa0, 0x62, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,62,cc */ |
2231 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 2236 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
2232 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 2237 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
2233 | {0xa0, 0x3d, 0x0197}, /* 01,97,3d,cc */ | 2238 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3d,cc */ |
2234 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 2239 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
2235 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 2240 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
2236 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 2241 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
2237 | {0xa0, 0x28, 0x01aa}, /* 01,aa,28,cc */ | 2242 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,28,cc */ |
2238 | {0xa0, 0x04, 0x001d}, /* 00,1d,04,cc */ | 2243 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, /* 00,1d,04,cc */ |
2239 | {0xa0, 0x18, 0x001e}, /* 00,1e,18,cc */ | 2244 | {0xa0, 0x18, ZC3XX_R01E_HSYNC_1}, /* 00,1e,18,cc */ |
2240 | {0xa0, 0x2c, 0x001f}, /* 00,1f,2c,cc */ | 2245 | {0xa0, 0x2c, ZC3XX_R01F_HSYNC_2}, /* 00,1f,2c,cc */ |
2241 | {} | 2246 | {} |
2242 | }; | 2247 | }; |
2243 | static const struct usb_action hdcs2020b_NoFliker[] = { | 2248 | static const struct usb_action hdcs2020b_NoFliker[] = { |
2244 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 2249 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
2245 | {0xaa, 0x13, 0x0010}, /* 00,13,10,aa */ | 2250 | {0xaa, 0x13, 0x0010}, /* 00,13,10,aa */ |
2246 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ | 2251 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ |
2247 | {0xaa, 0x0e, 0x0004}, /* 00,0e,04,aa */ | 2252 | {0xaa, 0x0e, 0x0004}, /* 00,0e,04,aa */ |
2248 | {0xaa, 0x19, 0x0000}, /* 00,19,00,aa */ | 2253 | {0xaa, 0x19, 0x0000}, /* 00,19,00,aa */ |
2249 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 2254 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
2250 | {0xa0, 0x02, 0x0191}, /* 01,91,02,cc */ | 2255 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
2251 | {0xa0, 0x70, 0x0192}, /* 01,92,70,cc */ | 2256 | {0xa0, 0x70, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,70,cc */ |
2252 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 2257 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
2253 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 2258 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
2254 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 2259 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
2255 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 2260 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
2256 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 2261 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
2257 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 2262 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
2258 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 2263 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
2259 | {0xa0, 0x04, 0x001d}, /* 00,1d,04,cc */ | 2264 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, /* 00,1d,04,cc */ |
2260 | {0xa0, 0x17, 0x001e}, /* 00,1e,17,cc */ | 2265 | {0xa0, 0x17, ZC3XX_R01E_HSYNC_1}, /* 00,1e,17,cc */ |
2261 | {0xa0, 0x2a, 0x001f}, /* 00,1f,2a,cc */ | 2266 | {0xa0, 0x2a, ZC3XX_R01F_HSYNC_2}, /* 00,1f,2a,cc */ |
2262 | {} | 2267 | {} |
2263 | }; | 2268 | }; |
2264 | 2269 | ||
2265 | static const struct usb_action hv7131bxx_Initial[] = { | 2270 | static const struct usb_action hv7131bxx_Initial[] = { |
2266 | {0xa0, 0x01, 0x0000}, | 2271 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2267 | {0xa0, 0x10, 0x0002}, | 2272 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
2268 | {0xa0, 0x00, 0x0010}, | 2273 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
2269 | {0xa0, 0x01, 0x0001}, | 2274 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2270 | {0xa0, 0x77, 0x0101}, | 2275 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
2271 | {0xa0, 0x03, 0x0008}, /* 00 */ | 2276 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
2272 | {0xa0, 0x03, 0x0012}, | 2277 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2273 | {0xa0, 0x01, 0x0012}, | 2278 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2274 | {0xa0, 0x02, 0x0003}, | 2279 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2275 | {0xa0, 0x80, 0x0004}, | 2280 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2276 | {0xa0, 0x01, 0x0005}, | 2281 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2277 | {0xa0, 0xe0, 0x0006}, | 2282 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
2278 | {0xa0, 0x00, 0x0098}, | 2283 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
2279 | {0xa0, 0x00, 0x009a}, | 2284 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
2280 | {0xa0, 0x00, 0x011a}, | 2285 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
2281 | {0xa0, 0x00, 0x011c}, | 2286 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
2282 | {0xaa, 0x30, 0x002d}, | 2287 | {0xaa, 0x30, 0x002d}, |
2283 | {0xaa, 0x01, 0x0005}, | 2288 | {0xaa, 0x01, 0x0005}, |
2284 | {0xaa, 0x11, 0x0000}, | 2289 | {0xaa, 0x11, 0x0000}, |
@@ -2291,48 +2296,48 @@ static const struct usb_action hv7131bxx_Initial[] = { | |||
2291 | {0xaa, 0x32, 0x0038}, | 2296 | {0xaa, 0x32, 0x0038}, |
2292 | {0xaa, 0x33, 0x0038}, | 2297 | {0xaa, 0x33, 0x0038}, |
2293 | {0xaa, 0x5b, 0x0001}, | 2298 | {0xaa, 0x5b, 0x0001}, |
2294 | {0xa0, 0x00, 0x0019}, | 2299 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2295 | {0xa0, 0x05, 0x0012}, | 2300 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2296 | {0xa0, 0x0d, 0x0100}, | 2301 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2297 | {0xa0, 0x68, 0x018d}, | 2302 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
2298 | {0xa0, 0x60, 0x01a8}, | 2303 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
2299 | {0xa0, 0x00, 0x01ad}, | 2304 | {0xa0, 0x00, 0x01ad}, |
2300 | {0xa0, 0xc0, 0x019b}, | 2305 | {0xa0, 0xc0, 0x019b}, |
2301 | {0xa0, 0xa0, 0x019c}, | 2306 | {0xa0, 0xa0, 0x019c}, |
2302 | {0xa0, 0x02, 0x0188}, | 2307 | {0xa0, 0x02, ZC3XX_R188_MINGAIN}, |
2303 | {0xa0, 0x06, 0x0189}, | 2308 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2304 | {0xa0, 0x03, 0x01c5}, | 2309 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2305 | {0xa0, 0x13, 0x01cb}, | 2310 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2306 | {0xa0, 0x08, 0x0250}, | 2311 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2307 | {0xa0, 0x08, 0x0301}, | 2312 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2308 | {0xaa, 0x02, 0x0080}, /* {0xaa, 0x02, 0x0090}; */ | 2313 | {0xaa, 0x02, 0x0080}, /* {0xaa, 0x02, 0x0090}; */ |
2309 | {0xa1, 0x01, 0x0002}, | 2314 | {0xa1, 0x01, 0x0002}, |
2310 | {0xa0, 0x00, 0x0092}, | 2315 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
2311 | {0xa0, 0x02, 0x0090}, | 2316 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
2312 | {0xa1, 0x01, 0x0091}, | 2317 | {0xa1, 0x01, 0x0091}, |
2313 | {0xa1, 0x01, 0x0095}, | 2318 | {0xa1, 0x01, 0x0095}, |
2314 | {0xa1, 0x01, 0x0096}, | 2319 | {0xa1, 0x01, 0x0096}, |
2315 | 2320 | ||
2316 | {0xa1, 0x01, 0x0008}, | 2321 | {0xa1, 0x01, 0x0008}, |
2317 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2322 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2318 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2323 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2319 | {0xa1, 0x01, 0x01c8}, | 2324 | {0xa1, 0x01, 0x01c8}, |
2320 | {0xa1, 0x01, 0x01c9}, | 2325 | {0xa1, 0x01, 0x01c9}, |
2321 | {0xa1, 0x01, 0x01ca}, | 2326 | {0xa1, 0x01, 0x01ca}, |
2322 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2327 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2323 | 2328 | ||
2324 | {0xa0, 0x50, 0x010a}, /* matrix */ | 2329 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
2325 | {0xa0, 0xf8, 0x010b}, | 2330 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
2326 | {0xa0, 0xf8, 0x010c}, | 2331 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
2327 | {0xa0, 0xf8, 0x010d}, | 2332 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
2328 | {0xa0, 0x50, 0x010e}, | 2333 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
2329 | {0xa0, 0xf8, 0x010f}, | 2334 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
2330 | {0xa0, 0xf8, 0x0110}, | 2335 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
2331 | {0xa0, 0xf8, 0x0111}, | 2336 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
2332 | {0xa0, 0x50, 0x0112}, | 2337 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
2333 | {0xa1, 0x01, 0x0180}, | 2338 | {0xa1, 0x01, 0x0180}, |
2334 | {0xa0, 0x10, 0x0180}, | 2339 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
2335 | {0xa0, 0x00, 0x0019}, | 2340 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2336 | {0xaa, 0x25, 0x0007}, | 2341 | {0xaa, 0x25, 0x0007}, |
2337 | {0xaa, 0x26, 0x00a1}, | 2342 | {0xaa, 0x26, 0x00a1}, |
2338 | {0xaa, 0x27, 0x0020}, | 2343 | {0xaa, 0x27, 0x0020}, |
@@ -2341,52 +2346,52 @@ static const struct usb_action hv7131bxx_Initial[] = { | |||
2341 | {0xaa, 0x22, 0x0016}, | 2346 | {0xaa, 0x22, 0x0016}, |
2342 | {0xaa, 0x23, 0x0040}, | 2347 | {0xaa, 0x23, 0x0040}, |
2343 | 2348 | ||
2344 | {0xa0, 0x10, 0x0190}, /* 2F */ | 2349 | {0xa0, 0x10, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 2F */ |
2345 | {0xa0, 0x04, 0x0191}, /* 4d */ | 2350 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 4d */ |
2346 | {0xa0, 0x60, 0x0192}, | 2351 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, |
2347 | {0xa0, 0x01, 0x0195}, | 2352 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, |
2348 | {0xa0, 0x86, 0x0196}, | 2353 | {0xa0, 0x86, ZC3XX_R196_ANTIFLICKERMID}, |
2349 | {0xa0, 0xa0, 0x0197}, | 2354 | {0xa0, 0xa0, ZC3XX_R197_ANTIFLICKERLOW}, |
2350 | {0xa0, 0x07, 0x018c}, | 2355 | {0xa0, 0x07, ZC3XX_R18C_AEFREEZE}, |
2351 | {0xa0, 0x0f, 0x018f}, | 2356 | {0xa0, 0x0f, ZC3XX_R18F_AEUNFREEZE}, |
2352 | {0xa0, 0x18, 0x01a9}, | 2357 | {0xa0, 0x18, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
2353 | {0xa0, 0x24, 0x01aa}, | 2358 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2354 | {0xa0, 0x00, 0x001d}, | 2359 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, |
2355 | {0xa0, 0xa0, 0x001e}, | 2360 | {0xa0, 0xa0, ZC3XX_R01E_HSYNC_1}, |
2356 | {0xa0, 0x16, 0x001f}, | 2361 | {0xa0, 0x16, ZC3XX_R01F_HSYNC_2}, |
2357 | {0xa0, 0x40, 0x0020}, | 2362 | {0xa0, 0x40, ZC3XX_R020_HSYNC_3}, |
2358 | {0xa0, 0x60, 0x011d}, | 2363 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
2359 | {0xa1, 0x01, 0x001d}, | 2364 | {0xa1, 0x01, 0x001d}, |
2360 | {0xa1, 0x01, 0x001e}, | 2365 | {0xa1, 0x01, 0x001e}, |
2361 | {0xa1, 0x01, 0x001f}, | 2366 | {0xa1, 0x01, 0x001f}, |
2362 | {0xa1, 0x01, 0x0020}, | 2367 | {0xa1, 0x01, 0x0020}, |
2363 | {0xa0, 0x40, 0x0180}, | 2368 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
2364 | {0xa1, 0x01, 0x0180}, | 2369 | {0xa1, 0x01, 0x0180}, |
2365 | {0xa0, 0x42, 0x0180}, | 2370 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2366 | {0xa0, 0x40, 0x0116}, | 2371 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2367 | {0xa0, 0x40, 0x0117}, | 2372 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2368 | {0xa0, 0x40, 0x0118}, | 2373 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2369 | /* {0xa0, 0x02, 0x0008}, */ | 2374 | /* {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, */ |
2370 | {} | 2375 | {} |
2371 | }; | 2376 | }; |
2372 | 2377 | ||
2373 | static const struct usb_action hv7131bxx_InitialScale[] = { | 2378 | static const struct usb_action hv7131bxx_InitialScale[] = { |
2374 | {0xa0, 0x01, 0x0000}, | 2379 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2375 | {0xa0, 0x00, 0x0002}, | 2380 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
2376 | {0xa0, 0x00, 0x0010}, | 2381 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
2377 | {0xa0, 0x01, 0x0001}, | 2382 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2378 | {0xa0, 0x37, 0x0101}, | 2383 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
2379 | {0xa0, 0x03, 0x0008}, /* 00 */ | 2384 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
2380 | {0xa0, 0x03, 0x0012}, | 2385 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2381 | {0xa0, 0x01, 0x0012}, | 2386 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2382 | {0xa0, 0x02, 0x0003}, | 2387 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2383 | {0xa0, 0x80, 0x0004}, | 2388 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2384 | {0xa0, 0x01, 0x0005}, | 2389 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2385 | {0xa0, 0xe0, 0x0006}, | 2390 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
2386 | {0xa0, 0x00, 0x0098}, | 2391 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
2387 | {0xa0, 0x00, 0x009a}, | 2392 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
2388 | {0xa0, 0x00, 0x011a}, | 2393 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
2389 | {0xa0, 0x00, 0x011c}, | 2394 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
2390 | {0xaa, 0x30, 0x002d}, | 2395 | {0xaa, 0x30, 0x002d}, |
2391 | {0xaa, 0x01, 0x0005}, | 2396 | {0xaa, 0x01, 0x0005}, |
2392 | {0xaa, 0x11, 0x0001}, | 2397 | {0xaa, 0x11, 0x0001}, |
@@ -2399,47 +2404,47 @@ static const struct usb_action hv7131bxx_InitialScale[] = { | |||
2399 | {0xaa, 0x32, 0x0038}, | 2404 | {0xaa, 0x32, 0x0038}, |
2400 | {0xaa, 0x33, 0x0038}, | 2405 | {0xaa, 0x33, 0x0038}, |
2401 | {0xaa, 0x5b, 0x0001}, | 2406 | {0xaa, 0x5b, 0x0001}, |
2402 | {0xa0, 0x00, 0x0019}, | 2407 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2403 | {0xa0, 0x05, 0x0012}, | 2408 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2404 | {0xa0, 0x0d, 0x0100}, | 2409 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2405 | {0xa0, 0x70, 0x018d}, | 2410 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
2406 | {0xa0, 0x60, 0x01a8}, | 2411 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
2407 | {0xa0, 0x00, 0x01ad}, | 2412 | {0xa0, 0x00, 0x01ad}, |
2408 | {0xa0, 0xc0, 0x019b}, | 2413 | {0xa0, 0xc0, 0x019b}, |
2409 | {0xa0, 0xa0, 0x019c}, | 2414 | {0xa0, 0xa0, 0x019c}, |
2410 | {0xa0, 0x02, 0x0188}, | 2415 | {0xa0, 0x02, ZC3XX_R188_MINGAIN}, |
2411 | {0xa0, 0x06, 0x0189}, | 2416 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2412 | {0xa0, 0x03, 0x01c5}, | 2417 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2413 | {0xa0, 0x13, 0x01cb}, | 2418 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2414 | {0xa0, 0x08, 0x0250}, | 2419 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2415 | {0xa0, 0x08, 0x0301}, | 2420 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2416 | {0xaa, 0x02, 0x0090}, /* {0xaa, 0x02, 0x0080}, */ | 2421 | {0xaa, 0x02, 0x0090}, /* {0xaa, 0x02, 0x0080}, */ |
2417 | {0xa1, 0x01, 0x0002}, | 2422 | {0xa1, 0x01, 0x0002}, |
2418 | {0xa0, 0x00, 0x0092}, | 2423 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
2419 | {0xa0, 0x02, 0x0090}, | 2424 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
2420 | {0xa1, 0x01, 0x0091}, | 2425 | {0xa1, 0x01, 0x0091}, |
2421 | {0xa1, 0x01, 0x0095}, | 2426 | {0xa1, 0x01, 0x0095}, |
2422 | {0xa1, 0x01, 0x0096}, | 2427 | {0xa1, 0x01, 0x0096}, |
2423 | {0xa1, 0x01, 0x0008}, | 2428 | {0xa1, 0x01, 0x0008}, |
2424 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2429 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2425 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2430 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2426 | {0xa1, 0x01, 0x01c8}, | 2431 | {0xa1, 0x01, 0x01c8}, |
2427 | {0xa1, 0x01, 0x01c9}, | 2432 | {0xa1, 0x01, 0x01c9}, |
2428 | {0xa1, 0x01, 0x01ca}, | 2433 | {0xa1, 0x01, 0x01ca}, |
2429 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2434 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2430 | 2435 | ||
2431 | {0xa0, 0x50, 0x010a}, /* matrix */ | 2436 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
2432 | {0xa0, 0xf8, 0x010b}, | 2437 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
2433 | {0xa0, 0xf8, 0x010c}, | 2438 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
2434 | {0xa0, 0xf8, 0x010d}, | 2439 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
2435 | {0xa0, 0x50, 0x010e}, | 2440 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
2436 | {0xa0, 0xf8, 0x010f}, | 2441 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
2437 | {0xa0, 0xf8, 0x0110}, | 2442 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
2438 | {0xa0, 0xf8, 0x0111}, | 2443 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
2439 | {0xa0, 0x50, 0x0112}, | 2444 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
2440 | {0xa1, 0x01, 0x0180}, | 2445 | {0xa1, 0x01, 0x0180}, |
2441 | {0xa0, 0x10, 0x0180}, | 2446 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
2442 | {0xa0, 0x00, 0x0019}, | 2447 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2443 | {0xaa, 0x25, 0x0007}, | 2448 | {0xaa, 0x25, 0x0007}, |
2444 | {0xaa, 0x26, 0x00a1}, | 2449 | {0xaa, 0x26, 0x00a1}, |
2445 | {0xaa, 0x27, 0x0020}, | 2450 | {0xaa, 0x27, 0x0020}, |
@@ -2447,57 +2452,57 @@ static const struct usb_action hv7131bxx_InitialScale[] = { | |||
2447 | {0xaa, 0x21, 0x0040}, | 2452 | {0xaa, 0x21, 0x0040}, |
2448 | {0xaa, 0x22, 0x0013}, | 2453 | {0xaa, 0x22, 0x0013}, |
2449 | {0xaa, 0x23, 0x004c}, | 2454 | {0xaa, 0x23, 0x004c}, |
2450 | {0xa0, 0x10, 0x0190}, /* 2f */ | 2455 | {0xa0, 0x10, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 2f */ |
2451 | {0xa0, 0x04, 0x0191}, /* 4d */ | 2456 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 4d */ |
2452 | {0xa0, 0x60, 0x0192}, /* 60 */ | 2457 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 60 */ |
2453 | {0xa0, 0x00, 0x0195}, | 2458 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
2454 | {0xa0, 0xc3, 0x0196}, | 2459 | {0xa0, 0xc3, ZC3XX_R196_ANTIFLICKERMID}, |
2455 | {0xa0, 0x50, 0x0197}, | 2460 | {0xa0, 0x50, ZC3XX_R197_ANTIFLICKERLOW}, |
2456 | {0xa0, 0x0c, 0x018c}, | 2461 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, |
2457 | {0xa0, 0x18, 0x018f}, | 2462 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, |
2458 | {0xa0, 0x18, 0x01a9}, | 2463 | {0xa0, 0x18, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
2459 | {0xa0, 0x24, 0x01aa}, | 2464 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2460 | {0xa0, 0x00, 0x001d}, | 2465 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, |
2461 | {0xa0, 0x40, 0x001e}, | 2466 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, |
2462 | {0xa0, 0x13, 0x001f}, | 2467 | {0xa0, 0x13, ZC3XX_R01F_HSYNC_2}, |
2463 | {0xa0, 0x4c, 0x0020}, | 2468 | {0xa0, 0x4c, ZC3XX_R020_HSYNC_3}, |
2464 | {0xa0, 0x60, 0x011d}, | 2469 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
2465 | {0xa1, 0x01, 0x001d}, | 2470 | {0xa1, 0x01, 0x001d}, |
2466 | {0xa1, 0x01, 0x001e}, | 2471 | {0xa1, 0x01, 0x001e}, |
2467 | {0xa1, 0x01, 0x001f}, | 2472 | {0xa1, 0x01, 0x001f}, |
2468 | {0xa1, 0x01, 0x0020}, | 2473 | {0xa1, 0x01, 0x0020}, |
2469 | {0xa0, 0x40, 0x0180}, | 2474 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
2470 | {0xa1, 0x01, 0x0180}, | 2475 | {0xa1, 0x01, 0x0180}, |
2471 | {0xa0, 0x42, 0x0180}, | 2476 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2472 | {0xa0, 0x40, 0x0116}, | 2477 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2473 | {0xa0, 0x40, 0x0117}, | 2478 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2474 | {0xa0, 0x40, 0x0118}, | 2479 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2475 | /* {0xa0, 0x02, 0x0008}, */ | 2480 | /* {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, */ |
2476 | {} | 2481 | {} |
2477 | }; | 2482 | }; |
2478 | 2483 | ||
2479 | static const struct usb_action hv7131cxx_Initial[] = { | 2484 | static const struct usb_action hv7131cxx_Initial[] = { |
2480 | {0xa0, 0x01, 0x0000}, | 2485 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2481 | {0xa0, 0x10, 0x0002}, | 2486 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
2482 | {0xa0, 0x01, 0x0010}, | 2487 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, |
2483 | {0xa0, 0x01, 0x0001}, | 2488 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2484 | {0xa0, 0x77, 0x0101}, | 2489 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
2485 | {0xa0, 0x03, 0x0008}, | 2490 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
2486 | {0xa0, 0x05, 0x0012}, | 2491 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2487 | {0xa0, 0x07, 0x0012}, | 2492 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2488 | {0xa0, 0x02, 0x0003}, | 2493 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2489 | {0xa0, 0x80, 0x0004}, | 2494 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2490 | {0xa0, 0x01, 0x0005}, | 2495 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2491 | {0xa0, 0xe0, 0x0006}, | 2496 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
2492 | {0xa0, 0x00, 0x0098}, | 2497 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
2493 | {0xa0, 0x00, 0x009a}, | 2498 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
2494 | {0xa0, 0x01, 0x009b}, | 2499 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
2495 | {0xa0, 0xe8, 0x009c}, | 2500 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
2496 | {0xa0, 0x02, 0x009d}, | 2501 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
2497 | {0xa0, 0x88, 0x009e}, | 2502 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
2498 | {0xa0, 0x00, 0x011a}, | 2503 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
2499 | {0xa0, 0x00, 0x011c}, | 2504 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
2500 | {0xa0, 0x05, 0x0012}, | 2505 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2501 | {0xaa, 0x01, 0x000c}, | 2506 | {0xaa, 0x01, 0x000c}, |
2502 | {0xaa, 0x11, 0x0000}, | 2507 | {0xaa, 0x11, 0x0000}, |
2503 | {0xaa, 0x13, 0x0000}, | 2508 | {0xaa, 0x13, 0x0000}, |
@@ -2506,96 +2511,96 @@ static const struct usb_action hv7131cxx_Initial[] = { | |||
2506 | {0xaa, 0x16, 0x0002}, | 2511 | {0xaa, 0x16, 0x0002}, |
2507 | {0xaa, 0x17, 0x0088}, | 2512 | {0xaa, 0x17, 0x0088}, |
2508 | 2513 | ||
2509 | {0xa0, 0x00, 0x0019}, | 2514 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2510 | {0xa0, 0x0d, 0x0100}, | 2515 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2511 | {0xa0, 0x89, 0x018d}, | 2516 | {0xa0, 0x89, ZC3XX_R18D_YTARGET}, |
2512 | {0xa0, 0x50, 0x01a8}, | 2517 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, |
2513 | {0xa0, 0x00, 0x01ad}, | 2518 | {0xa0, 0x00, 0x01ad}, |
2514 | {0xa0, 0xc0, 0x019b}, | 2519 | {0xa0, 0xc0, 0x019b}, |
2515 | {0xa0, 0xa0, 0x019c}, | 2520 | {0xa0, 0xa0, 0x019c}, |
2516 | {0xa0, 0x06, 0x0189}, | 2521 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2517 | {0xa0, 0x03, 0x01c5}, | 2522 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2518 | {0xa0, 0x13, 0x01cb}, | 2523 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2519 | {0xa0, 0x08, 0x0250}, | 2524 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2520 | {0xa0, 0x08, 0x0301}, | 2525 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2521 | {0xa1, 0x01, 0x0002}, | 2526 | {0xa1, 0x01, 0x0002}, |
2522 | {0xa0, 0x00, 0x0092}, | 2527 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
2523 | {0xa0, 0x02, 0x0090}, | 2528 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
2524 | {0xa1, 0x01, 0x0091}, | 2529 | {0xa1, 0x01, 0x0091}, |
2525 | {0xa1, 0x01, 0x0095}, | 2530 | {0xa1, 0x01, 0x0095}, |
2526 | {0xa1, 0x01, 0x0096}, | 2531 | {0xa1, 0x01, 0x0096}, |
2527 | 2532 | ||
2528 | {0xa1, 0x01, 0x0008}, | 2533 | {0xa1, 0x01, 0x0008}, |
2529 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2534 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2530 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2535 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2531 | {0xa1, 0x01, 0x01c8}, | 2536 | {0xa1, 0x01, 0x01c8}, |
2532 | {0xa1, 0x01, 0x01c9}, | 2537 | {0xa1, 0x01, 0x01c9}, |
2533 | {0xa1, 0x01, 0x01ca}, | 2538 | {0xa1, 0x01, 0x01ca}, |
2534 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2539 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2535 | 2540 | ||
2536 | {0xa0, 0x60, 0x010a}, /* matrix */ | 2541 | {0xa0, 0x60, ZC3XX_R10A_RGB00}, /* matrix */ |
2537 | {0xa0, 0xf0, 0x010b}, | 2542 | {0xa0, 0xf0, ZC3XX_R10B_RGB01}, |
2538 | {0xa0, 0xf0, 0x010c}, | 2543 | {0xa0, 0xf0, ZC3XX_R10C_RGB02}, |
2539 | {0xa0, 0xf0, 0x010d}, | 2544 | {0xa0, 0xf0, ZC3XX_R10D_RGB10}, |
2540 | {0xa0, 0x60, 0x010e}, | 2545 | {0xa0, 0x60, ZC3XX_R10E_RGB11}, |
2541 | {0xa0, 0xf0, 0x010f}, | 2546 | {0xa0, 0xf0, ZC3XX_R10F_RGB12}, |
2542 | {0xa0, 0xf0, 0x0110}, | 2547 | {0xa0, 0xf0, ZC3XX_R110_RGB20}, |
2543 | {0xa0, 0xf0, 0x0111}, | 2548 | {0xa0, 0xf0, ZC3XX_R111_RGB21}, |
2544 | {0xa0, 0x60, 0x0112}, | 2549 | {0xa0, 0x60, ZC3XX_R112_RGB22}, |
2545 | {0xa1, 0x01, 0x0180}, | 2550 | {0xa1, 0x01, 0x0180}, |
2546 | {0xa0, 0x10, 0x0180}, | 2551 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
2547 | {0xa0, 0x00, 0x0019}, | 2552 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2548 | {0xaa, 0x25, 0x0007}, | 2553 | {0xaa, 0x25, 0x0007}, |
2549 | {0xaa, 0x26, 0x0053}, | 2554 | {0xaa, 0x26, 0x0053}, |
2550 | {0xaa, 0x27, 0x0000}, | 2555 | {0xaa, 0x27, 0x0000}, |
2551 | 2556 | ||
2552 | {0xa0, 0x10, 0x0190}, /* 2f */ | 2557 | {0xa0, 0x10, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 2f */ |
2553 | {0xa0, 0x04, 0x0191}, /* 9b */ | 2558 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 9b */ |
2554 | {0xa0, 0x60, 0x0192}, /* 80 */ | 2559 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 80 */ |
2555 | {0xa0, 0x01, 0x0195}, | 2560 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, |
2556 | {0xa0, 0xd4, 0x0196}, | 2561 | {0xa0, 0xd4, ZC3XX_R196_ANTIFLICKERMID}, |
2557 | {0xa0, 0xc0, 0x0197}, | 2562 | {0xa0, 0xc0, ZC3XX_R197_ANTIFLICKERLOW}, |
2558 | {0xa0, 0x10, 0x018c}, | 2563 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
2559 | {0xa0, 0x20, 0x018f}, | 2564 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
2560 | {0xa0, 0x60, 0x01a8}, | 2565 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
2561 | {0xa0, 0x10, 0x01a9}, | 2566 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
2562 | {0xa0, 0x13, 0x01aa}, | 2567 | {0xa0, 0x13, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2563 | {0xa1, 0x01, 0x001d}, | 2568 | {0xa1, 0x01, 0x001d}, |
2564 | {0xa1, 0x01, 0x001e}, | 2569 | {0xa1, 0x01, 0x001e}, |
2565 | {0xa1, 0x01, 0x001f}, | 2570 | {0xa1, 0x01, 0x001f}, |
2566 | {0xa1, 0x01, 0x0020}, | 2571 | {0xa1, 0x01, 0x0020}, |
2567 | {0xa0, 0x40, 0x0180}, | 2572 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
2568 | {0xa1, 0x01, 0x0180}, | 2573 | {0xa1, 0x01, 0x0180}, |
2569 | {0xa0, 0x42, 0x0180}, | 2574 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2570 | {} | 2575 | {} |
2571 | }; | 2576 | }; |
2572 | 2577 | ||
2573 | static const struct usb_action hv7131cxx_InitialScale[] = { | 2578 | static const struct usb_action hv7131cxx_InitialScale[] = { |
2574 | {0xa0, 0x01, 0x0000}, | 2579 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2575 | 2580 | ||
2576 | {0xa0, 0x00, 0x0002}, /* diff */ | 2581 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* diff */ |
2577 | {0xa0, 0x01, 0x0010}, | 2582 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, |
2578 | {0xa0, 0x01, 0x0001}, | 2583 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2579 | {0xa0, 0x77, 0x0101}, | 2584 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
2580 | {0xa0, 0x03, 0x0008}, | 2585 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
2581 | 2586 | ||
2582 | {0xa0, 0x05, 0x0012}, | 2587 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2583 | {0xa0, 0x07, 0x0012}, | 2588 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2584 | 2589 | ||
2585 | {0xa0, 0x02, 0x0003}, | 2590 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2586 | {0xa0, 0x80, 0x0004}, | 2591 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2587 | {0xa0, 0x01, 0x0005}, | 2592 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2588 | {0xa0, 0xe0, 0x0006}, /* 1e0 */ | 2593 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 1e0 */ |
2589 | 2594 | ||
2590 | {0xa0, 0x00, 0x0098}, | 2595 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
2591 | {0xa0, 0x00, 0x009a}, | 2596 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
2592 | {0xa0, 0x01, 0x009b}, | 2597 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
2593 | {0xa0, 0xe8, 0x009c}, | 2598 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
2594 | {0xa0, 0x02, 0x009d}, | 2599 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
2595 | {0xa0, 0x88, 0x009e}, | 2600 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
2596 | {0xa0, 0x00, 0x011a}, | 2601 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
2597 | {0xa0, 0x00, 0x011c}, | 2602 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
2598 | {0xa0, 0x05, 0x0012}, | 2603 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2599 | {0xaa, 0x01, 0x000c}, | 2604 | {0xaa, 0x01, 0x000c}, |
2600 | {0xaa, 0x11, 0x0000}, | 2605 | {0xaa, 0x11, 0x0000}, |
2601 | {0xaa, 0x13, 0x0000}, | 2606 | {0xaa, 0x13, 0x0000}, |
@@ -2604,101 +2609,102 @@ static const struct usb_action hv7131cxx_InitialScale[] = { | |||
2604 | {0xaa, 0x16, 0x0002}, | 2609 | {0xaa, 0x16, 0x0002}, |
2605 | {0xaa, 0x17, 0x0088}, | 2610 | {0xaa, 0x17, 0x0088}, |
2606 | 2611 | ||
2607 | {0xa0, 0x00, 0x0019}, /* 00 */ | 2612 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00 */ |
2608 | 2613 | ||
2609 | {0xa0, 0x0d, 0x0100}, | 2614 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2610 | {0xa0, 0x89, 0x018d}, | 2615 | {0xa0, 0x89, ZC3XX_R18D_YTARGET}, |
2611 | {0xa0, 0x50, 0x01a8}, | 2616 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, |
2612 | {0xa0, 0x00, 0x01ad}, | 2617 | {0xa0, 0x00, 0x01ad}, |
2613 | {0xa0, 0xc0, 0x019b}, | 2618 | {0xa0, 0xc0, 0x019b}, |
2614 | {0xa0, 0xa0, 0x019c}, | 2619 | {0xa0, 0xa0, 0x019c}, |
2615 | {0xa0, 0x06, 0x0189}, | 2620 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2616 | {0xa0, 0x03, 0x01c5}, | 2621 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2617 | {0xa0, 0x13, 0x01cb}, | 2622 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2618 | {0xa0, 0x08, 0x0250}, | 2623 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2619 | {0xa0, 0x08, 0x0301}, | 2624 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2620 | {0xa1, 0x01, 0x0002}, | 2625 | {0xa1, 0x01, 0x0002}, |
2621 | {0xa0, 0x00, 0x0092}, /* read the i2c chips ident */ | 2626 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
2622 | {0xa0, 0x02, 0x0090}, | 2627 | /* read the i2c chips ident */ |
2628 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, | ||
2623 | {0xa1, 0x01, 0x0091}, | 2629 | {0xa1, 0x01, 0x0091}, |
2624 | {0xa1, 0x01, 0x0095}, | 2630 | {0xa1, 0x01, 0x0095}, |
2625 | {0xa1, 0x01, 0x0096}, | 2631 | {0xa1, 0x01, 0x0096}, |
2626 | 2632 | ||
2627 | {0xa1, 0x01, 0x0008}, | 2633 | {0xa1, 0x01, 0x0008}, |
2628 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2634 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2629 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2635 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2630 | {0xa1, 0x01, 0x01c8}, | 2636 | {0xa1, 0x01, 0x01c8}, |
2631 | {0xa1, 0x01, 0x01c9}, | 2637 | {0xa1, 0x01, 0x01c9}, |
2632 | {0xa1, 0x01, 0x01ca}, | 2638 | {0xa1, 0x01, 0x01ca}, |
2633 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2639 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2634 | 2640 | ||
2635 | {0xa0, 0x60, 0x010a}, /* matrix */ | 2641 | {0xa0, 0x60, ZC3XX_R10A_RGB00}, /* matrix */ |
2636 | {0xa0, 0xf0, 0x010b}, | 2642 | {0xa0, 0xf0, ZC3XX_R10B_RGB01}, |
2637 | {0xa0, 0xf0, 0x010c}, | 2643 | {0xa0, 0xf0, ZC3XX_R10C_RGB02}, |
2638 | {0xa0, 0xf0, 0x010d}, | 2644 | {0xa0, 0xf0, ZC3XX_R10D_RGB10}, |
2639 | {0xa0, 0x60, 0x010e}, | 2645 | {0xa0, 0x60, ZC3XX_R10E_RGB11}, |
2640 | {0xa0, 0xf0, 0x010f}, | 2646 | {0xa0, 0xf0, ZC3XX_R10F_RGB12}, |
2641 | {0xa0, 0xf0, 0x0110}, | 2647 | {0xa0, 0xf0, ZC3XX_R110_RGB20}, |
2642 | {0xa0, 0xf0, 0x0111}, | 2648 | {0xa0, 0xf0, ZC3XX_R111_RGB21}, |
2643 | {0xa0, 0x60, 0x0112}, | 2649 | {0xa0, 0x60, ZC3XX_R112_RGB22}, |
2644 | {0xa1, 0x01, 0x0180}, | 2650 | {0xa1, 0x01, 0x0180}, |
2645 | {0xa0, 0x10, 0x0180}, | 2651 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
2646 | {0xa0, 0x00, 0x0019}, | 2652 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2647 | {0xaa, 0x25, 0x0007}, | 2653 | {0xaa, 0x25, 0x0007}, |
2648 | {0xaa, 0x26, 0x0053}, | 2654 | {0xaa, 0x26, 0x0053}, |
2649 | {0xaa, 0x27, 0x0000}, | 2655 | {0xaa, 0x27, 0x0000}, |
2650 | 2656 | ||
2651 | {0xa0, 0x10, 0x0190}, /* 2f */ | 2657 | {0xa0, 0x10, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 2f */ |
2652 | {0xa0, 0x04, 0x0191}, /* 9b */ | 2658 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 9b */ |
2653 | {0xa0, 0x60, 0x0192}, /* 80 */ | 2659 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 80 */ |
2654 | 2660 | ||
2655 | {0xa0, 0x01, 0x0195}, | 2661 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, |
2656 | {0xa0, 0xd4, 0x0196}, | 2662 | {0xa0, 0xd4, ZC3XX_R196_ANTIFLICKERMID}, |
2657 | {0xa0, 0xc0, 0x0197}, | 2663 | {0xa0, 0xc0, ZC3XX_R197_ANTIFLICKERLOW}, |
2658 | 2664 | ||
2659 | {0xa0, 0x10, 0x018c}, | 2665 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
2660 | {0xa0, 0x20, 0x018f}, | 2666 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
2661 | {0xa0, 0x60, 0x01a8}, | 2667 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
2662 | {0xa0, 0x10, 0x01a9}, | 2668 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
2663 | {0xa0, 0x13, 0x01aa}, | 2669 | {0xa0, 0x13, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2664 | {0xa1, 0x01, 0x001d}, | 2670 | {0xa1, 0x01, 0x001d}, |
2665 | {0xa1, 0x01, 0x001e}, | 2671 | {0xa1, 0x01, 0x001e}, |
2666 | {0xa1, 0x01, 0x001f}, | 2672 | {0xa1, 0x01, 0x001f}, |
2667 | {0xa1, 0x01, 0x0020}, | 2673 | {0xa1, 0x01, 0x0020}, |
2668 | {0xa0, 0x40, 0x0180}, | 2674 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
2669 | {0xa1, 0x01, 0x0180}, | 2675 | {0xa1, 0x01, 0x0180}, |
2670 | {0xa0, 0x42, 0x0180}, | 2676 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2671 | {} | 2677 | {} |
2672 | }; | 2678 | }; |
2673 | 2679 | ||
2674 | static const struct usb_action icm105axx_Initial[] = { | 2680 | static const struct usb_action icm105axx_Initial[] = { |
2675 | {0xa0, 0x01, 0x0000}, | 2681 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2676 | {0xa0, 0x10, 0x0002}, | 2682 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
2677 | {0xa0, 0x03, 0x0008}, | 2683 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
2678 | {0xa0, 0x0c, 0x0010}, | 2684 | {0xa0, 0x0c, ZC3XX_R010_CMOSSENSORSELECT}, |
2679 | {0xa0, 0x02, 0x0003}, | 2685 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2680 | {0xa0, 0x80, 0x0004}, | 2686 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2681 | {0xa0, 0x01, 0x0005}, | 2687 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2682 | {0xa0, 0xe0, 0x0006}, | 2688 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
2683 | {0xa0, 0x01, 0x0001}, | 2689 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2684 | {0xa0, 0x03, 0x0012}, | 2690 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2685 | {0xa0, 0x01, 0x0012}, | 2691 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2686 | {0xa0, 0xa1, 0x008b}, | 2692 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
2687 | {0xa0, 0x00, 0x0097}, | 2693 | {0xa0, 0x00, ZC3XX_R097_WINYSTARTHIGH}, |
2688 | {0xa0, 0x01, 0x0098}, | 2694 | {0xa0, 0x01, ZC3XX_R098_WINYSTARTLOW}, |
2689 | {0xa0, 0x00, 0x0099}, | 2695 | {0xa0, 0x00, ZC3XX_R099_WINXSTARTHIGH}, |
2690 | {0xa0, 0x01, 0x009a}, | 2696 | {0xa0, 0x01, ZC3XX_R09A_WINXSTARTLOW}, |
2691 | {0xa0, 0x01, 0x011a}, | 2697 | {0xa0, 0x01, ZC3XX_R11A_FIRSTYLOW}, |
2692 | {0xa0, 0x01, 0x011c}, | 2698 | {0xa0, 0x01, ZC3XX_R11C_FIRSTXLOW}, |
2693 | {0xa0, 0x01, 0x009b}, | 2699 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
2694 | {0xa0, 0xe8, 0x009c}, | 2700 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
2695 | {0xa0, 0x02, 0x009d}, | 2701 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
2696 | {0xa0, 0x88, 0x009e}, | 2702 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
2697 | {0xa0, 0x37, 0x0101}, | 2703 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
2698 | {0xa0, 0x0d, 0x0100}, | 2704 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2699 | {0xa0, 0x06, 0x0189}, | 2705 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2700 | {0xa0, 0x03, 0x01c5}, | 2706 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2701 | {0xa0, 0x13, 0x01cb}, | 2707 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2702 | {0xaa, 0x01, 0x0010}, | 2708 | {0xaa, 0x01, 0x0010}, |
2703 | {0xaa, 0x03, 0x0000}, | 2709 | {0xaa, 0x03, 0x0000}, |
2704 | {0xaa, 0x04, 0x0001}, | 2710 | {0xaa, 0x04, 0x0001}, |
@@ -2779,36 +2785,36 @@ static const struct usb_action icm105axx_Initial[] = { | |||
2779 | {0xaa, 0x24, 0x0080}, | 2785 | {0xaa, 0x24, 0x0080}, |
2780 | {0xaa, 0x26, 0x0080}, | 2786 | {0xaa, 0x26, 0x0080}, |
2781 | {0xaa, 0x00, 0x0084}, | 2787 | {0xaa, 0x00, 0x0084}, |
2782 | {0xa0, 0x08, 0x0250}, | 2788 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2783 | {0xa0, 0x08, 0x0301}, | 2789 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2784 | {0xaa, 0xa8, 0x00c0}, | 2790 | {0xaa, 0xa8, 0x00c0}, |
2785 | {0xa1, 0x01, 0x0002}, | 2791 | {0xa1, 0x01, 0x0002}, |
2786 | {0xa1, 0x01, 0x0008}, | 2792 | {0xa1, 0x01, 0x0008}, |
2787 | {0xa1, 0x01, 0x0180}, | 2793 | {0xa1, 0x01, 0x0180}, |
2788 | {0xa0, 0x02, 0x0180}, | 2794 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
2789 | {0xa0, 0x40, 0x0116}, | 2795 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2790 | {0xa0, 0x40, 0x0117}, | 2796 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2791 | {0xa0, 0x40, 0x0118}, | 2797 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2792 | {0xa1, 0x01, 0x0008}, | 2798 | {0xa1, 0x01, 0x0008}, |
2793 | 2799 | ||
2794 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2800 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2795 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2801 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2796 | {0xa1, 0x01, 0x01c8}, | 2802 | {0xa1, 0x01, 0x01c8}, |
2797 | {0xa1, 0x01, 0x01c9}, | 2803 | {0xa1, 0x01, 0x01c9}, |
2798 | {0xa1, 0x01, 0x01ca}, | 2804 | {0xa1, 0x01, 0x01ca}, |
2799 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2805 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2800 | {0xa0, 0x52, 0x010a}, /* matrix */ | 2806 | {0xa0, 0x52, ZC3XX_R10A_RGB00}, /* matrix */ |
2801 | {0xa0, 0xf7, 0x010b}, | 2807 | {0xa0, 0xf7, ZC3XX_R10B_RGB01}, |
2802 | {0xa0, 0xf7, 0x010c}, | 2808 | {0xa0, 0xf7, ZC3XX_R10C_RGB02}, |
2803 | {0xa0, 0xf7, 0x010d}, | 2809 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
2804 | {0xa0, 0x52, 0x010e}, | 2810 | {0xa0, 0x52, ZC3XX_R10E_RGB11}, |
2805 | {0xa0, 0xf7, 0x010f}, | 2811 | {0xa0, 0xf7, ZC3XX_R10F_RGB12}, |
2806 | {0xa0, 0xf7, 0x0110}, | 2812 | {0xa0, 0xf7, ZC3XX_R110_RGB20}, |
2807 | {0xa0, 0xf7, 0x0111}, | 2813 | {0xa0, 0xf7, ZC3XX_R111_RGB21}, |
2808 | {0xa0, 0x52, 0x0112}, | 2814 | {0xa0, 0x52, ZC3XX_R112_RGB22}, |
2809 | {0xa1, 0x01, 0x0180}, | 2815 | {0xa1, 0x01, 0x0180}, |
2810 | {0xa0, 0x00, 0x0180}, | 2816 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
2811 | {0xa0, 0x00, 0x0019}, | 2817 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2812 | {0xaa, 0x0d, 0x0003}, | 2818 | {0xaa, 0x0d, 0x0003}, |
2813 | {0xaa, 0x0c, 0x008c}, | 2819 | {0xaa, 0x0c, 0x008c}, |
2814 | {0xaa, 0x0e, 0x0095}, | 2820 | {0xaa, 0x0e, 0x0095}, |
@@ -2820,62 +2826,62 @@ static const struct usb_action icm105axx_Initial[] = { | |||
2820 | {0xaa, 0x24, 0x0080}, | 2826 | {0xaa, 0x24, 0x0080}, |
2821 | {0xaa, 0x26, 0x0080}, | 2827 | {0xaa, 0x26, 0x0080}, |
2822 | {0xaa, 0x00, 0x0084}, | 2828 | {0xaa, 0x00, 0x0084}, |
2823 | {0xa0, 0x02, 0x00a3}, | 2829 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
2824 | {0xa0, 0x94, 0x00a4}, | 2830 | {0xa0, 0x94, ZC3XX_R0A4_EXPOSURETIMELOW}, |
2825 | {0xa0, 0x00, 0x0190}, | 2831 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
2826 | {0xa0, 0x04, 0x0191}, | 2832 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, |
2827 | {0xa0, 0x20, 0x0192}, | 2833 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, |
2828 | {0xa0, 0x00, 0x0195}, | 2834 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
2829 | {0xa0, 0x00, 0x0196}, | 2835 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
2830 | {0xa0, 0x84, 0x0197}, | 2836 | {0xa0, 0x84, ZC3XX_R197_ANTIFLICKERLOW}, |
2831 | {0xa0, 0x10, 0x018c}, | 2837 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
2832 | {0xa0, 0x20, 0x018f}, | 2838 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
2833 | {0xa0, 0x10, 0x01a9}, | 2839 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
2834 | {0xa0, 0x12, 0x01aa}, | 2840 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, |
2835 | {0xa0, 0xe3, 0x001d}, | 2841 | {0xa0, 0xe3, ZC3XX_R01D_HSYNC_0}, |
2836 | {0xa0, 0xec, 0x001e}, | 2842 | {0xa0, 0xec, ZC3XX_R01E_HSYNC_1}, |
2837 | {0xa0, 0xf5, 0x001f}, | 2843 | {0xa0, 0xf5, ZC3XX_R01F_HSYNC_2}, |
2838 | {0xa0, 0xff, 0x0020}, | 2844 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
2839 | {0xa0, 0x00, 0x01a7}, | 2845 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
2840 | {0xa0, 0xc0, 0x01a8}, | 2846 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, |
2841 | {0xa0, 0xc0, 0x011d}, | 2847 | {0xa0, 0xc0, ZC3XX_R11D_GLOBALGAIN}, |
2842 | {0xa0, 0x42, 0x0180}, | 2848 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2843 | {0xa1, 0x01, 0x0180}, | 2849 | {0xa1, 0x01, 0x0180}, |
2844 | {0xa0, 0x42, 0x0180}, | 2850 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
2845 | {0xa0, 0x40, 0x0116}, | 2851 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2846 | {0xa0, 0x40, 0x0117}, | 2852 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2847 | {0xa0, 0x40, 0x0118}, | 2853 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2848 | {} | 2854 | {} |
2849 | }; | 2855 | }; |
2850 | 2856 | ||
2851 | static const struct usb_action icm105axx_InitialScale[] = { | 2857 | static const struct usb_action icm105axx_InitialScale[] = { |
2852 | {0xa0, 0x01, 0x0000}, | 2858 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
2853 | {0xa0, 0x00, 0x0002}, | 2859 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
2854 | {0xa0, 0x03, 0x0008}, | 2860 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
2855 | {0xa0, 0x0c, 0x0010}, | 2861 | {0xa0, 0x0c, ZC3XX_R010_CMOSSENSORSELECT}, |
2856 | {0xa0, 0x02, 0x0003}, | 2862 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
2857 | {0xa0, 0x80, 0x0004}, | 2863 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
2858 | {0xa0, 0x01, 0x0005}, | 2864 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
2859 | {0xa0, 0xe0, 0x0006}, | 2865 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
2860 | {0xa0, 0x01, 0x0001}, | 2866 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
2861 | {0xa0, 0x03, 0x0012}, | 2867 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2862 | {0xa0, 0x01, 0x0012}, | 2868 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
2863 | {0xa0, 0xa1, 0x008b}, | 2869 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
2864 | {0xa0, 0x00, 0x0097}, | 2870 | {0xa0, 0x00, ZC3XX_R097_WINYSTARTHIGH}, |
2865 | {0xa0, 0x02, 0x0098}, | 2871 | {0xa0, 0x02, ZC3XX_R098_WINYSTARTLOW}, |
2866 | {0xa0, 0x00, 0x0099}, | 2872 | {0xa0, 0x00, ZC3XX_R099_WINXSTARTHIGH}, |
2867 | {0xa0, 0x02, 0x009a}, | 2873 | {0xa0, 0x02, ZC3XX_R09A_WINXSTARTLOW}, |
2868 | {0xa0, 0x02, 0x011a}, | 2874 | {0xa0, 0x02, ZC3XX_R11A_FIRSTYLOW}, |
2869 | {0xa0, 0x02, 0x011c}, | 2875 | {0xa0, 0x02, ZC3XX_R11C_FIRSTXLOW}, |
2870 | {0xa0, 0x01, 0x009b}, | 2876 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
2871 | {0xa0, 0xe6, 0x009c}, | 2877 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
2872 | {0xa0, 0x02, 0x009d}, | 2878 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
2873 | {0xa0, 0x86, 0x009e}, | 2879 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
2874 | {0xa0, 0x77, 0x0101}, | 2880 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
2875 | {0xa0, 0x0d, 0x0100}, | 2881 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
2876 | {0xa0, 0x06, 0x0189}, | 2882 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
2877 | {0xa0, 0x03, 0x01c5}, | 2883 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
2878 | {0xa0, 0x13, 0x01cb}, | 2884 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
2879 | {0xaa, 0x01, 0x0010}, | 2885 | {0xaa, 0x01, 0x0010}, |
2880 | {0xaa, 0x03, 0x0000}, | 2886 | {0xaa, 0x03, 0x0000}, |
2881 | {0xaa, 0x04, 0x0001}, | 2887 | {0xaa, 0x04, 0x0001}, |
@@ -2903,9 +2909,9 @@ static const struct usb_action icm105axx_InitialScale[] = { | |||
2903 | {0xaa, 0x06, 0x000d}, | 2909 | {0xaa, 0x06, 0x000d}, |
2904 | {0xaa, 0x08, 0x0000}, | 2910 | {0xaa, 0x08, 0x0000}, |
2905 | {0xaa, 0x03, 0x0005}, | 2911 | {0xaa, 0x03, 0x0005}, |
2906 | {0xa0, 0x04, 0x0092}, | 2912 | {0xa0, 0x04, ZC3XX_R092_I2CADDRESSSELECT}, |
2907 | {0xa0, 0x19, 0x0093}, | 2913 | {0xa0, 0x19, ZC3XX_R093_I2CSETVALUE}, |
2908 | {0xa0, 0x01, 0x0090}, | 2914 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
2909 | {0xa1, 0x01, 0x0091}, | 2915 | {0xa1, 0x01, 0x0091}, |
2910 | {0xaa, 0x05, 0x0020}, | 2916 | {0xaa, 0x05, 0x0020}, |
2911 | {0xaa, 0x06, 0x0005}, | 2917 | {0xaa, 0x06, 0x0005}, |
@@ -2959,38 +2965,38 @@ static const struct usb_action icm105axx_InitialScale[] = { | |||
2959 | {0xaa, 0x24, 0x0080}, | 2965 | {0xaa, 0x24, 0x0080}, |
2960 | {0xaa, 0x26, 0x0080}, | 2966 | {0xaa, 0x26, 0x0080}, |
2961 | {0xaa, 0x00, 0x0084}, | 2967 | {0xaa, 0x00, 0x0084}, |
2962 | {0xa0, 0x08, 0x0250}, | 2968 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
2963 | {0xa0, 0x08, 0x0301}, | 2969 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
2964 | {0xaa, 0xa8, 0x0080}, | 2970 | {0xaa, 0xa8, 0x0080}, |
2965 | {0xa0, 0x78, 0x018d}, | 2971 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
2966 | {0xa1, 0x01, 0x0002}, | 2972 | {0xa1, 0x01, 0x0002}, |
2967 | {0xa1, 0x01, 0x0008}, | 2973 | {0xa1, 0x01, 0x0008}, |
2968 | {0xa1, 0x01, 0x0180}, | 2974 | {0xa1, 0x01, 0x0180}, |
2969 | {0xa0, 0x02, 0x0180}, | 2975 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
2970 | {0xa0, 0x40, 0x0116}, | 2976 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
2971 | {0xa0, 0x40, 0x0117}, | 2977 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
2972 | {0xa0, 0x40, 0x0118}, | 2978 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
2973 | {0xa1, 0x01, 0x0008}, | 2979 | {0xa1, 0x01, 0x0008}, |
2974 | 2980 | ||
2975 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 2981 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
2976 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 2982 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
2977 | {0xa1, 0x01, 0x01c8}, | 2983 | {0xa1, 0x01, 0x01c8}, |
2978 | {0xa1, 0x01, 0x01c9}, | 2984 | {0xa1, 0x01, 0x01c9}, |
2979 | {0xa1, 0x01, 0x01ca}, | 2985 | {0xa1, 0x01, 0x01ca}, |
2980 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 2986 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
2981 | 2987 | ||
2982 | {0xa0, 0x52, 0x010a}, /* matrix */ | 2988 | {0xa0, 0x52, ZC3XX_R10A_RGB00}, /* matrix */ |
2983 | {0xa0, 0xf7, 0x010b}, | 2989 | {0xa0, 0xf7, ZC3XX_R10B_RGB01}, |
2984 | {0xa0, 0xf7, 0x010c}, | 2990 | {0xa0, 0xf7, ZC3XX_R10C_RGB02}, |
2985 | {0xa0, 0xf7, 0x010d}, | 2991 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
2986 | {0xa0, 0x52, 0x010e}, | 2992 | {0xa0, 0x52, ZC3XX_R10E_RGB11}, |
2987 | {0xa0, 0xf7, 0x010f}, | 2993 | {0xa0, 0xf7, ZC3XX_R10F_RGB12}, |
2988 | {0xa0, 0xf7, 0x0110}, | 2994 | {0xa0, 0xf7, ZC3XX_R110_RGB20}, |
2989 | {0xa0, 0xf7, 0x0111}, | 2995 | {0xa0, 0xf7, ZC3XX_R111_RGB21}, |
2990 | {0xa0, 0x52, 0x0112}, | 2996 | {0xa0, 0x52, ZC3XX_R112_RGB22}, |
2991 | {0xa1, 0x01, 0x0180}, | 2997 | {0xa1, 0x01, 0x0180}, |
2992 | {0xa0, 0x00, 0x0180}, | 2998 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
2993 | {0xa0, 0x00, 0x0019}, | 2999 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
2994 | {0xaa, 0x0d, 0x0003}, | 3000 | {0xaa, 0x0d, 0x0003}, |
2995 | {0xaa, 0x0c, 0x0020}, | 3001 | {0xaa, 0x0c, 0x0020}, |
2996 | {0xaa, 0x0e, 0x000e}, | 3002 | {0xaa, 0x0e, 0x000e}, |
@@ -3002,33 +3008,33 @@ static const struct usb_action icm105axx_InitialScale[] = { | |||
3002 | {0xaa, 0x24, 0x0080}, | 3008 | {0xaa, 0x24, 0x0080}, |
3003 | {0xaa, 0x26, 0x0080}, | 3009 | {0xaa, 0x26, 0x0080}, |
3004 | {0xaa, 0x00, 0x0084}, | 3010 | {0xaa, 0x00, 0x0084}, |
3005 | {0xa0, 0x02, 0x00a3}, | 3011 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
3006 | {0xa0, 0x0d, 0x00a4}, | 3012 | {0xa0, 0x0d, ZC3XX_R0A4_EXPOSURETIMELOW}, |
3007 | {0xa0, 0x00, 0x0190}, | 3013 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
3008 | {0xa0, 0x04, 0x0191}, | 3014 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, |
3009 | {0xa0, 0x1a, 0x0192}, | 3015 | {0xa0, 0x1a, ZC3XX_R192_EXPOSURELIMITLOW}, |
3010 | {0xa0, 0x00, 0x0195}, | 3016 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
3011 | {0xa0, 0x00, 0x0196}, | 3017 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
3012 | {0xa0, 0x4b, 0x0197}, | 3018 | {0xa0, 0x4b, ZC3XX_R197_ANTIFLICKERLOW}, |
3013 | {0xa0, 0x10, 0x018c}, | 3019 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
3014 | {0xa0, 0x20, 0x018f}, | 3020 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
3015 | {0xa0, 0x10, 0x01a9}, | 3021 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
3016 | {0xa0, 0x12, 0x01aa}, | 3022 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, |
3017 | {0xa0, 0xc8, 0x001d}, | 3023 | {0xa0, 0xc8, ZC3XX_R01D_HSYNC_0}, |
3018 | {0xa0, 0xd8, 0x001e}, | 3024 | {0xa0, 0xd8, ZC3XX_R01E_HSYNC_1}, |
3019 | {0xa0, 0xea, 0x001f}, | 3025 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, |
3020 | {0xa0, 0xff, 0x0020}, | 3026 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
3021 | {0xa0, 0x00, 0x01a7}, | 3027 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
3022 | {0xa0, 0x42, 0x0180}, | 3028 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
3023 | {0xa1, 0x01, 0x0180}, | 3029 | {0xa1, 0x01, 0x0180}, |
3024 | {0xa0, 0x42, 0x0180}, | 3030 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
3025 | {0xa0, 0x40, 0x0116}, | 3031 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
3026 | {0xa0, 0x40, 0x0117}, | 3032 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
3027 | {0xa0, 0x40, 0x0118}, | 3033 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
3028 | {} | 3034 | {} |
3029 | }; | 3035 | }; |
3030 | static const struct usb_action icm105a_50HZ[] = { | 3036 | static const struct usb_action icm105a_50HZ[] = { |
3031 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3037 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3032 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ | 3038 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
3033 | {0xaa, 0x0c, 0x0020}, /* 00,0c,20,aa */ | 3039 | {0xaa, 0x0c, 0x0020}, /* 00,0c,20,aa */ |
3034 | {0xaa, 0x0e, 0x000e}, /* 00,0e,0e,aa */ | 3040 | {0xaa, 0x0e, 0x000e}, /* 00,0e,0e,aa */ |
@@ -3040,26 +3046,26 @@ static const struct usb_action icm105a_50HZ[] = { | |||
3040 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ | 3046 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
3041 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ | 3047 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
3042 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ | 3048 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
3043 | {0xa0, 0x02, 0x00a3}, /* 00,a3,02,cc */ | 3049 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
3044 | {0xa0, 0x0d, 0x00a4}, /* 00,a4,0d,cc */ | 3050 | {0xa0, 0x0d, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,0d,cc */ |
3045 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3051 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3046 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3052 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3047 | {0xa0, 0x1a, 0x0192}, /* 01,92,1a,cc */ | 3053 | {0xa0, 0x1a, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,1a,cc */ |
3048 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3054 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3049 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3055 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3050 | {0xa0, 0x4b, 0x0197}, /* 01,97,4b,cc */ | 3056 | {0xa0, 0x4b, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,4b,cc */ |
3051 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 3057 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
3052 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 3058 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
3053 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 3059 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
3054 | {0xa0, 0x12, 0x01aa}, /* 01,aa,12,cc */ | 3060 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
3055 | {0xa0, 0xc8, 0x001d}, /* 00,1d,c8,cc */ | 3061 | {0xa0, 0xc8, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c8,cc */ |
3056 | {0xa0, 0xd8, 0x001e}, /* 00,1e,d8,cc */ | 3062 | {0xa0, 0xd8, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d8,cc */ |
3057 | {0xa0, 0xea, 0x001f}, /* 00,1f,ea,cc */ | 3063 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ea,cc */ |
3058 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 3064 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
3059 | {} | 3065 | {} |
3060 | }; | 3066 | }; |
3061 | static const struct usb_action icm105a_50HZScale[] = { | 3067 | static const struct usb_action icm105a_50HZScale[] = { |
3062 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3068 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3063 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ | 3069 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
3064 | {0xaa, 0x0c, 0x008c}, /* 00,0c,8c,aa */ | 3070 | {0xaa, 0x0c, 0x008c}, /* 00,0c,8c,aa */ |
3065 | {0xaa, 0x0e, 0x0095}, /* 00,0e,95,aa */ | 3071 | {0xaa, 0x0e, 0x0095}, /* 00,0e,95,aa */ |
@@ -3071,28 +3077,28 @@ static const struct usb_action icm105a_50HZScale[] = { | |||
3071 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ | 3077 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
3072 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ | 3078 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
3073 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ | 3079 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
3074 | {0xa0, 0x02, 0x00a3}, /* 00,a3,02,cc */ | 3080 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
3075 | {0xa0, 0x94, 0x00a4}, /* 00,a4,94,cc */ | 3081 | {0xa0, 0x94, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,94,cc */ |
3076 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3082 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3077 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3083 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3078 | {0xa0, 0x20, 0x0192}, /* 01,92,20,cc */ | 3084 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,20,cc */ |
3079 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3085 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3080 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3086 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3081 | {0xa0, 0x84, 0x0197}, /* 01,97,84,cc */ | 3087 | {0xa0, 0x84, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,84,cc */ |
3082 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 3088 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
3083 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 3089 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
3084 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 3090 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
3085 | {0xa0, 0x12, 0x01aa}, /* 01,aa,12,cc */ | 3091 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
3086 | {0xa0, 0xe3, 0x001d}, /* 00,1d,e3,cc */ | 3092 | {0xa0, 0xe3, ZC3XX_R01D_HSYNC_0}, /* 00,1d,e3,cc */ |
3087 | {0xa0, 0xec, 0x001e}, /* 00,1e,ec,cc */ | 3093 | {0xa0, 0xec, ZC3XX_R01E_HSYNC_1}, /* 00,1e,ec,cc */ |
3088 | {0xa0, 0xf5, 0x001f}, /* 00,1f,f5,cc */ | 3094 | {0xa0, 0xf5, ZC3XX_R01F_HSYNC_2}, /* 00,1f,f5,cc */ |
3089 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 3095 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
3090 | {0xa0, 0x00, 0x01a7}, /* 01,a7,00,cc */ | 3096 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, /* 01,a7,00,cc */ |
3091 | {0xa0, 0xc0, 0x01a8}, /* 01,a8,c0,cc */ | 3097 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,c0,cc */ |
3092 | {} | 3098 | {} |
3093 | }; | 3099 | }; |
3094 | static const struct usb_action icm105a_60HZ[] = { | 3100 | static const struct usb_action icm105a_60HZ[] = { |
3095 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3101 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3096 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ | 3102 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
3097 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ | 3103 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ |
3098 | {0xaa, 0x0e, 0x000d}, /* 00,0e,0d,aa */ | 3104 | {0xaa, 0x0e, 0x000d}, /* 00,0e,0d,aa */ |
@@ -3104,26 +3110,26 @@ static const struct usb_action icm105a_60HZ[] = { | |||
3104 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ | 3110 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
3105 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ | 3111 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
3106 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ | 3112 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
3107 | {0xa0, 0x02, 0x00a3}, /* 00,a3,02,cc */ | 3113 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
3108 | {0xa0, 0x08, 0x00a4}, /* 00,a4,08,cc */ | 3114 | {0xa0, 0x08, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,08,cc */ |
3109 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3115 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3110 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3116 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3111 | {0xa0, 0x10, 0x0192}, /* 01,92,10,cc */ | 3117 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,10,cc */ |
3112 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3118 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3113 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3119 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3114 | {0xa0, 0x41, 0x0197}, /* 01,97,41,cc */ | 3120 | {0xa0, 0x41, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,41,cc */ |
3115 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 3121 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
3116 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 3122 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
3117 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 3123 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
3118 | {0xa0, 0x12, 0x01aa}, /* 01,aa,12,cc */ | 3124 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
3119 | {0xa0, 0xc1, 0x001d}, /* 00,1d,c1,cc */ | 3125 | {0xa0, 0xc1, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c1,cc */ |
3120 | {0xa0, 0xd4, 0x001e}, /* 00,1e,d4,cc */ | 3126 | {0xa0, 0xd4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d4,cc */ |
3121 | {0xa0, 0xe8, 0x001f}, /* 00,1f,e8,cc */ | 3127 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
3122 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 3128 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
3123 | {} | 3129 | {} |
3124 | }; | 3130 | }; |
3125 | static const struct usb_action icm105a_60HZScale[] = { | 3131 | static const struct usb_action icm105a_60HZScale[] = { |
3126 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3132 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3127 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ | 3133 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
3128 | {0xaa, 0x0c, 0x0008}, /* 00,0c,08,aa */ | 3134 | {0xaa, 0x0c, 0x0008}, /* 00,0c,08,aa */ |
3129 | {0xaa, 0x0e, 0x0086}, /* 00,0e,86,aa */ | 3135 | {0xaa, 0x0e, 0x0086}, /* 00,0e,86,aa */ |
@@ -3135,28 +3141,28 @@ static const struct usb_action icm105a_60HZScale[] = { | |||
3135 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ | 3141 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
3136 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ | 3142 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
3137 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ | 3143 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
3138 | {0xa0, 0x02, 0x00a3}, /* 00,a3,02,cc */ | 3144 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
3139 | {0xa0, 0x85, 0x00a4}, /* 00,a4,85,cc */ | 3145 | {0xa0, 0x85, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,85,cc */ |
3140 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3146 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3141 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3147 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3142 | {0xa0, 0x08, 0x0192}, /* 01,92,08,cc */ | 3148 | {0xa0, 0x08, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,08,cc */ |
3143 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3149 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3144 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3150 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3145 | {0xa0, 0x81, 0x0197}, /* 01,97,81,cc */ | 3151 | {0xa0, 0x81, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,81,cc */ |
3146 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 3152 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
3147 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 3153 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
3148 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 3154 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
3149 | {0xa0, 0x12, 0x01aa}, /* 01,aa,12,cc */ | 3155 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
3150 | {0xa0, 0xc2, 0x001d}, /* 00,1d,c2,cc */ | 3156 | {0xa0, 0xc2, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c2,cc */ |
3151 | {0xa0, 0xd6, 0x001e}, /* 00,1e,d6,cc */ | 3157 | {0xa0, 0xd6, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d6,cc */ |
3152 | {0xa0, 0xea, 0x001f}, /* 00,1f,ea,cc */ | 3158 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ea,cc */ |
3153 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 3159 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
3154 | {0xa0, 0x00, 0x01a7}, /* 01,a7,00,cc */ | 3160 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, /* 01,a7,00,cc */ |
3155 | {0xa0, 0xc0, 0x01a8}, /* 01,a8,c0,cc */ | 3161 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,c0,cc */ |
3156 | {} | 3162 | {} |
3157 | }; | 3163 | }; |
3158 | static const struct usb_action icm105a_NoFliker[] = { | 3164 | static const struct usb_action icm105a_NoFliker[] = { |
3159 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3165 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3160 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ | 3166 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
3161 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ | 3167 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ |
3162 | {0xaa, 0x0e, 0x000d}, /* 00,0e,0d,aa */ | 3168 | {0xaa, 0x0e, 0x000d}, /* 00,0e,0d,aa */ |
@@ -3168,26 +3174,26 @@ static const struct usb_action icm105a_NoFliker[] = { | |||
3168 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ | 3174 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
3169 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ | 3175 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
3170 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ | 3176 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
3171 | {0xa0, 0x02, 0x00a3}, /* 00,a3,02,cc */ | 3177 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
3172 | {0xa0, 0x00, 0x00a4}, /* 00,a4,00,cc */ | 3178 | {0xa0, 0x00, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,00,cc */ |
3173 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3179 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3174 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3180 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3175 | {0xa0, 0x20, 0x0192}, /* 01,92,20,cc */ | 3181 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,20,cc */ |
3176 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3182 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3177 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3183 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3178 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 3184 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
3179 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 3185 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
3180 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 3186 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
3181 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 3187 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
3182 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 3188 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
3183 | {0xa0, 0xc1, 0x001d}, /* 00,1d,c1,cc */ | 3189 | {0xa0, 0xc1, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c1,cc */ |
3184 | {0xa0, 0xd4, 0x001e}, /* 00,1e,d4,cc */ | 3190 | {0xa0, 0xd4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d4,cc */ |
3185 | {0xa0, 0xe8, 0x001f}, /* 00,1f,e8,cc */ | 3191 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
3186 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 3192 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
3187 | {} | 3193 | {} |
3188 | }; | 3194 | }; |
3189 | static const struct usb_action icm105a_NoFlikerScale[] = { | 3195 | static const struct usb_action icm105a_NoFlikerScale[] = { |
3190 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3196 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3191 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ | 3197 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
3192 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ | 3198 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ |
3193 | {0xaa, 0x0e, 0x0081}, /* 00,0e,81,aa */ | 3199 | {0xaa, 0x0e, 0x0081}, /* 00,0e,81,aa */ |
@@ -3199,52 +3205,52 @@ static const struct usb_action icm105a_NoFlikerScale[] = { | |||
3199 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ | 3205 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
3200 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ | 3206 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
3201 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ | 3207 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
3202 | {0xa0, 0x02, 0x00a3}, /* 00,a3,02,cc */ | 3208 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
3203 | {0xa0, 0x80, 0x00a4}, /* 00,a4,80,cc */ | 3209 | {0xa0, 0x80, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,80,cc */ |
3204 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3210 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3205 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3211 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3206 | {0xa0, 0x20, 0x0192}, /* 01,92,20,cc */ | 3212 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,20,cc */ |
3207 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3213 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3208 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3214 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3209 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 3215 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
3210 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 3216 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
3211 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 3217 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
3212 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 3218 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
3213 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 3219 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
3214 | {0xa0, 0xc1, 0x001d}, /* 00,1d,c1,cc */ | 3220 | {0xa0, 0xc1, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c1,cc */ |
3215 | {0xa0, 0xd4, 0x001e}, /* 00,1e,d4,cc */ | 3221 | {0xa0, 0xd4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d4,cc */ |
3216 | {0xa0, 0xe8, 0x001f}, /* 00,1f,e8,cc */ | 3222 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
3217 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 3223 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
3218 | {0xa0, 0x00, 0x01a7}, /* 01,a7,00,cc */ | 3224 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, /* 01,a7,00,cc */ |
3219 | {0xa0, 0xc0, 0x01a8}, /* 01,a8,c0,cc */ | 3225 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,c0,cc */ |
3220 | {} | 3226 | {} |
3221 | }; | 3227 | }; |
3222 | 3228 | ||
3223 | static const struct usb_action MC501CB_InitialScale[] = { | 3229 | static const struct usb_action MC501CB_InitialScale[] = { |
3224 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 3230 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
3225 | {0xa0, 0x00, 0x0002}, /* 00,02,00,cc */ | 3231 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 00,02,00,cc */ |
3226 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc */ | 3232 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
3227 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 3233 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
3228 | {0xa0, 0x03, 0x0008}, /* 00,08,03,cc */ | 3234 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
3229 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 3235 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
3230 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 3236 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
3231 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 3237 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
3232 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 3238 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
3233 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 3239 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
3234 | {0xa0, 0xd8, 0x0006}, /* 00,06,d8,cc */ | 3240 | {0xa0, 0xd8, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d8,cc */ |
3235 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 3241 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
3236 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 3242 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
3237 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 3243 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
3238 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 3244 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
3239 | {0xa0, 0x01, 0x009b}, /* 00,9b,01,cc */ | 3245 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, /* 00,9b,01,cc */ |
3240 | {0xa0, 0xde, 0x009c}, /* 00,9c,de,cc */ | 3246 | {0xa0, 0xde, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,de,cc */ |
3241 | {0xa0, 0x02, 0x009d}, /* 00,9d,02,cc */ | 3247 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, /* 00,9d,02,cc */ |
3242 | {0xa0, 0x86, 0x009e}, /* 00,9e,86,cc */ | 3248 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
3243 | {0xa0, 0x33, 0x0086}, /* 00,86,33,cc */ | 3249 | {0xa0, 0x33, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,33,cc */ |
3244 | {0xa0, 0x34, 0x0087}, /* 00,87,34,cc */ | 3250 | {0xa0, 0x34, ZC3XX_R087_EXPTIMEMID}, /* 00,87,34,cc */ |
3245 | {0xa0, 0x35, 0x0088}, /* 00,88,35,cc */ | 3251 | {0xa0, 0x35, ZC3XX_R088_EXPTIMELOW}, /* 00,88,35,cc */ |
3246 | {0xa0, 0xb0, 0x008b}, /* 00,8b,b0,cc */ | 3252 | {0xa0, 0xb0, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,b0,cc */ |
3247 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 3253 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
3248 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ | 3254 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
3249 | {0xaa, 0x01, 0x0003}, /* 00,01,03,aa */ | 3255 | {0xaa, 0x01, 0x0003}, /* 00,01,03,aa */ |
3250 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ | 3256 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
@@ -3280,7 +3286,7 @@ static const struct usb_action MC501CB_InitialScale[] = { | |||
3280 | {0xaa, 0x11, 0x0001}, /* 00,11,01,aa */ | 3286 | {0xaa, 0x11, 0x0001}, /* 00,11,01,aa */ |
3281 | {0xaa, 0x30, 0x0000}, /* 00,30,00,aa */ | 3287 | {0xaa, 0x30, 0x0000}, /* 00,30,00,aa */ |
3282 | {0xaa, 0x60, 0x0000}, /* 00,60,00,aa */ | 3288 | {0xaa, 0x60, 0x0000}, /* 00,60,00,aa */ |
3283 | {0xaa, 0xa0, 0x001a}, /* 00,a0,1a,aa */ | 3289 | {0xaa, 0xa0, ZC3XX_R01A_LASTFRAMESTATE}, /* 00,a0,1a,aa */ |
3284 | {0xaa, 0xa1, 0x0000}, /* 00,a1,00,aa */ | 3290 | {0xaa, 0xa1, 0x0000}, /* 00,a1,00,aa */ |
3285 | {0xaa, 0xa2, 0x003f}, /* 00,a2,3f,aa */ | 3291 | {0xaa, 0xa2, 0x003f}, /* 00,a2,3f,aa */ |
3286 | {0xaa, 0xa3, 0x0028}, /* 00,a3,28,aa */ | 3292 | {0xaa, 0xa3, 0x0028}, /* 00,a3,28,aa */ |
@@ -3312,15 +3318,15 @@ static const struct usb_action MC501CB_InitialScale[] = { | |||
3312 | {0xaa, 0x3e, 0x006a}, /* 00,3e,6A,aa */ | 3318 | {0xaa, 0x3e, 0x006a}, /* 00,3e,6A,aa */ |
3313 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ | 3319 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
3314 | {0xaa, 0x52, 0x00ff}, /* 00,52,FF,aa */ | 3320 | {0xaa, 0x52, 0x00ff}, /* 00,52,FF,aa */ |
3315 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3321 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3316 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 3322 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
3317 | {0xa0, 0x37, 0x0101}, /* 01,01,37,cc */ | 3323 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
3318 | {0xa0, 0x06, 0x0189}, /* 01,89,06,cc */ | 3324 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
3319 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 3325 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
3320 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 3326 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
3321 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 3327 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
3322 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 3328 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
3323 | {0xa0, 0x02, 0x0180}, /* 01,80,02,cc */ | 3329 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
3324 | {0xaa, 0x03, 0x0002}, /* 00,03,02,aa */ | 3330 | {0xaa, 0x03, 0x0002}, /* 00,03,02,aa */ |
3325 | {0xaa, 0x51, 0x0027}, /* 00,51,27,aa */ | 3331 | {0xaa, 0x51, 0x0027}, /* 00,51,27,aa */ |
3326 | {0xaa, 0x52, 0x0020}, /* 00,52,20,aa */ | 3332 | {0xaa, 0x52, 0x0020}, /* 00,52,20,aa */ |
@@ -3341,30 +3347,30 @@ static const struct usb_action MC501CB_InitialScale[] = { | |||
3341 | }; | 3347 | }; |
3342 | 3348 | ||
3343 | static const struct usb_action MC501CB_Initial[] = { /* 320x240 */ | 3349 | static const struct usb_action MC501CB_Initial[] = { /* 320x240 */ |
3344 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 3350 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
3345 | {0xa0, 0x10, 0x0002}, /* 00,02,10,cc */ | 3351 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
3346 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc */ | 3352 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
3347 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 3353 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
3348 | {0xa0, 0x03, 0x0008}, /* 00,08,03,cc */ | 3354 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
3349 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 3355 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
3350 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 3356 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
3351 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 3357 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
3352 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 3358 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
3353 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 3359 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
3354 | {0xa0, 0xd0, 0x0006}, /* 00,06,d0,cc */ | 3360 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d0,cc */ |
3355 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 3361 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
3356 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 3362 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
3357 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 3363 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
3358 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 3364 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
3359 | {0xa0, 0x01, 0x009b}, /* 00,9b,01,cc */ | 3365 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, /* 00,9b,01,cc */ |
3360 | {0xa0, 0xd8, 0x009c}, /* 00,9c,d8,cc */ | 3366 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,d8,cc */ |
3361 | {0xa0, 0x02, 0x009d}, /* 00,9d,02,cc */ | 3367 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, /* 00,9d,02,cc */ |
3362 | {0xa0, 0x88, 0x009e}, /* 00,9e,88,cc */ | 3368 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
3363 | {0xa0, 0x33, 0x0086}, /* 00,86,33,cc */ | 3369 | {0xa0, 0x33, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,33,cc */ |
3364 | {0xa0, 0x34, 0x0087}, /* 00,87,34,cc */ | 3370 | {0xa0, 0x34, ZC3XX_R087_EXPTIMEMID}, /* 00,87,34,cc */ |
3365 | {0xa0, 0x35, 0x0088}, /* 00,88,35,cc */ | 3371 | {0xa0, 0x35, ZC3XX_R088_EXPTIMELOW}, /* 00,88,35,cc */ |
3366 | {0xa0, 0xb0, 0x008b}, /* 00,8b,b0,cc */ | 3372 | {0xa0, 0xb0, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,b0,cc */ |
3367 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 3373 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
3368 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ | 3374 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
3369 | {0xaa, 0x01, 0x0003}, /* 00,01,03,aa */ | 3375 | {0xaa, 0x01, 0x0003}, /* 00,01,03,aa */ |
3370 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ | 3376 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
@@ -3400,7 +3406,7 @@ static const struct usb_action MC501CB_Initial[] = { /* 320x240 */ | |||
3400 | {0xaa, 0x11, 0x0001}, /* 00,11,01,aa */ | 3406 | {0xaa, 0x11, 0x0001}, /* 00,11,01,aa */ |
3401 | {0xaa, 0x30, 0x0000}, /* 00,30,00,aa */ | 3407 | {0xaa, 0x30, 0x0000}, /* 00,30,00,aa */ |
3402 | {0xaa, 0x60, 0x0000}, /* 00,60,00,aa */ | 3408 | {0xaa, 0x60, 0x0000}, /* 00,60,00,aa */ |
3403 | {0xaa, 0xa0, 0x001a}, /* 00,a0,1a,aa */ | 3409 | {0xaa, 0xa0, ZC3XX_R01A_LASTFRAMESTATE}, /* 00,a0,1a,aa */ |
3404 | {0xaa, 0xa1, 0x0000}, /* 00,a1,00,aa */ | 3410 | {0xaa, 0xa1, 0x0000}, /* 00,a1,00,aa */ |
3405 | {0xaa, 0xa2, 0x003f}, /* 00,a2,3f,aa */ | 3411 | {0xaa, 0xa2, 0x003f}, /* 00,a2,3f,aa */ |
3406 | {0xaa, 0xa3, 0x0028}, /* 00,a3,28,aa */ | 3412 | {0xaa, 0xa3, 0x0028}, /* 00,a3,28,aa */ |
@@ -3432,15 +3438,15 @@ static const struct usb_action MC501CB_Initial[] = { /* 320x240 */ | |||
3432 | {0xaa, 0x3e, 0x00d4}, /* 00,3E,D4,aa */ | 3438 | {0xaa, 0x3e, 0x00d4}, /* 00,3E,D4,aa */ |
3433 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ | 3439 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
3434 | {0xaa, 0x52, 0x00ff}, /* 00,52,FF,aa */ | 3440 | {0xaa, 0x52, 0x00ff}, /* 00,52,FF,aa */ |
3435 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 3441 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
3436 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 3442 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
3437 | {0xa0, 0x37, 0x0101}, /* 01,01,37,cc */ | 3443 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
3438 | {0xa0, 0x06, 0x0189}, /* 01,89,06,cc */ | 3444 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
3439 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 3445 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
3440 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 3446 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
3441 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 3447 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
3442 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 3448 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
3443 | {0xa0, 0x02, 0x0180}, /* 01,80,02,cc */ | 3449 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
3444 | {0xaa, 0x03, 0x0002}, /* 00,03,02,aa */ | 3450 | {0xaa, 0x03, 0x0002}, /* 00,03,02,aa */ |
3445 | {0xaa, 0x51, 0x004e}, /* 00,51,4E,aa */ | 3451 | {0xaa, 0x51, 0x004e}, /* 00,51,4E,aa */ |
3446 | {0xaa, 0x52, 0x0041}, /* 00,52,41,aa */ | 3452 | {0xaa, 0x52, 0x0041}, /* 00,52,41,aa */ |
@@ -3558,30 +3564,30 @@ static const struct usb_action MC501CB_NoFlikerScale[] = { | |||
3558 | 3564 | ||
3559 | /* from zs211.inf - HKR,%OV7620%,Initial - 640x480 */ | 3565 | /* from zs211.inf - HKR,%OV7620%,Initial - 640x480 */ |
3560 | static const struct usb_action OV7620_mode0[] = { | 3566 | static const struct usb_action OV7620_mode0[] = { |
3561 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 3567 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
3562 | {0xa0, 0x40, 0x0002}, /* 00,02,40,cc */ | 3568 | {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, /* 00,02,40,cc */ |
3563 | {0xa0, 0x00, 0x0008}, /* 00,08,00,cc */ | 3569 | {0xa0, 0x00, ZC3XX_R008_CLOCKSETTING}, /* 00,08,00,cc */ |
3564 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 3570 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
3565 | {0xa0, 0x06, 0x0010}, /* 00,10,06,cc */ | 3571 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,06,cc */ |
3566 | {0xa0, 0x02, 0x0083}, /* 00,83,02,cc */ | 3572 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, /* 00,83,02,cc */ |
3567 | {0xa0, 0x01, 0x0085}, /* 00,85,01,cc */ | 3573 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, /* 00,85,01,cc */ |
3568 | {0xa0, 0x80, 0x0086}, /* 00,86,80,cc */ | 3574 | {0xa0, 0x80, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,80,cc */ |
3569 | {0xa0, 0x81, 0x0087}, /* 00,87,81,cc */ | 3575 | {0xa0, 0x81, ZC3XX_R087_EXPTIMEMID}, /* 00,87,81,cc */ |
3570 | {0xa0, 0x10, 0x0088}, /* 00,88,10,cc */ | 3576 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, /* 00,88,10,cc */ |
3571 | {0xa0, 0xa1, 0x008b}, /* 00,8b,a1,cc */ | 3577 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,a1,cc */ |
3572 | {0xa0, 0x08, 0x008d}, /* 00,8d,08,cc */ | 3578 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* 00,8d,08,cc */ |
3573 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 3579 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
3574 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 3580 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
3575 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 3581 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
3576 | {0xa0, 0xd8, 0x0006}, /* 00,06,d8,cc */ | 3582 | {0xa0, 0xd8, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d8,cc */ |
3577 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc */ | 3583 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
3578 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 3584 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
3579 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 3585 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
3580 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 3586 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
3581 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 3587 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
3582 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 3588 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
3583 | {0xa0, 0xde, 0x009c}, /* 00,9c,de,cc */ | 3589 | {0xa0, 0xde, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,de,cc */ |
3584 | {0xa0, 0x86, 0x009e}, /* 00,9e,86,cc */ | 3590 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
3585 | {0xaa, 0x12, 0x0088}, /* 00,12,88,aa */ | 3591 | {0xaa, 0x12, 0x0088}, /* 00,12,88,aa */ |
3586 | {0xaa, 0x12, 0x0048}, /* 00,12,48,aa */ | 3592 | {0xaa, 0x12, 0x0048}, /* 00,12,48,aa */ |
3587 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ | 3593 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
@@ -3610,49 +3616,51 @@ static const struct usb_action OV7620_mode0[] = { | |||
3610 | {0xaa, 0x06, 0x0080}, /* 00,06,80,aa */ | 3616 | {0xaa, 0x06, 0x0080}, /* 00,06,80,aa */ |
3611 | {0xaa, 0x01, 0x0090}, /* 00,01,90,aa */ | 3617 | {0xaa, 0x01, 0x0090}, /* 00,01,90,aa */ |
3612 | {0xaa, 0x02, 0x0030}, /* 00,02,30,aa */ | 3618 | {0xaa, 0x02, 0x0030}, /* 00,02,30,aa */ |
3613 | {0xa0, 0x77, 0x0101}, /* 01,01,77,cc */ | 3619 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,77,cc */ |
3614 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 3620 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
3615 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 3621 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
3616 | {0xa0, 0x06, 0x0189}, /* 01,89,06,cc */ | 3622 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
3617 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ | 3623 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
3618 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 3624 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
3619 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 3625 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
3620 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 3626 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
3621 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 3627 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
3622 | {0xa0, 0x68, 0x0116}, /* 01,16,68,cc */ | 3628 | {0xa0, 0x68, ZC3XX_R116_RGAIN}, /* 01,16,68,cc */ |
3623 | {0xa0, 0x52, 0x0118}, /* 01,18,52,cc */ | 3629 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
3624 | {0xa0, 0x40, 0x011d}, /* 01,1d,40,cc */ | 3630 | {0xa0, 0x40, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,40,cc */ |
3625 | {0xa0, 0x02, 0x0180}, /* 01,80,02,cc */ | 3631 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
3626 | {0xa0, 0x50, 0x01a8}, /* 01,a8,50,cc */ | 3632 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,50,cc */ |
3627 | {} | 3633 | {} |
3628 | }; | 3634 | }; |
3629 | 3635 | ||
3630 | /* from zs211.inf - HKR,%OV7620%,InitialScale - 320x240 */ | 3636 | /* from zs211.inf - HKR,%OV7620%,InitialScale - 320x240 */ |
3631 | static const struct usb_action OV7620_mode1[] = { | 3637 | static const struct usb_action OV7620_mode1[] = { |
3632 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 3638 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
3633 | {0xa0, 0x50, 0x0002}, /* 00,02,50,cc */ | 3639 | {0xa0, 0x50, ZC3XX_R002_CLOCKSELECT}, /* 00,02,50,cc */ |
3634 | {0xa0, 0x03, 0x0008}, /* 00,08,00,cc */ /* mx change? */ | 3640 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,00,cc */ |
3635 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 3641 | /* mx change? */ |
3636 | {0xa0, 0x06, 0x0010}, /* 00,10,06,cc */ | 3642 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
3637 | {0xa0, 0x02, 0x0083}, /* 00,83,02,cc */ | 3643 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,06,cc */ |
3638 | {0xa0, 0x01, 0x0085}, /* 00,85,01,cc */ | 3644 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, /* 00,83,02,cc */ |
3639 | {0xa0, 0x80, 0x0086}, /* 00,86,80,cc */ | 3645 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, /* 00,85,01,cc */ |
3640 | {0xa0, 0x81, 0x0087}, /* 00,87,81,cc */ | 3646 | {0xa0, 0x80, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,80,cc */ |
3641 | {0xa0, 0x10, 0x0088}, /* 00,88,10,cc */ | 3647 | {0xa0, 0x81, ZC3XX_R087_EXPTIMEMID}, /* 00,87,81,cc */ |
3642 | {0xa0, 0xa1, 0x008b}, /* 00,8b,a1,cc */ | 3648 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, /* 00,88,10,cc */ |
3643 | {0xa0, 0x08, 0x008d}, /* 00,8d,08,cc */ | 3649 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,a1,cc */ |
3644 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 3650 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* 00,8d,08,cc */ |
3645 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 3651 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
3646 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 3652 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
3647 | {0xa0, 0xd0, 0x0006}, /* 00,06,d0,cc */ | 3653 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
3648 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc */ | 3654 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d0,cc */ |
3649 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 3655 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
3650 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 3656 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
3651 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 3657 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
3652 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 3658 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
3653 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 3659 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
3654 | {0xa0, 0xd6, 0x009c}, /* 00,9c,d6,cc */ /* OV7648 00,9c,d8,cc */ | 3660 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
3655 | {0xa0, 0x88, 0x009e}, /* 00,9e,88,cc */ | 3661 | {0xa0, 0xd6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,d6,cc */ |
3662 | /* OV7648 00,9c,d8,cc */ | ||
3663 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ | ||
3656 | {0xaa, 0x12, 0x0088}, /* 00,12,88,aa */ | 3664 | {0xaa, 0x12, 0x0088}, /* 00,12,88,aa */ |
3657 | {0xaa, 0x12, 0x0048}, /* 00,12,48,aa */ | 3665 | {0xaa, 0x12, 0x0048}, /* 00,12,48,aa */ |
3658 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ | 3666 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
@@ -3681,20 +3689,20 @@ static const struct usb_action OV7620_mode1[] = { | |||
3681 | {0xaa, 0x06, 0x0080}, /* 00,06,80,aa */ | 3689 | {0xaa, 0x06, 0x0080}, /* 00,06,80,aa */ |
3682 | {0xaa, 0x01, 0x0090}, /* 00,01,90,aa */ | 3690 | {0xaa, 0x01, 0x0090}, /* 00,01,90,aa */ |
3683 | {0xaa, 0x02, 0x0030}, /* 00,02,30,aa */ | 3691 | {0xaa, 0x02, 0x0030}, /* 00,02,30,aa */ |
3684 | {0xa0, 0x77, 0x0101}, /* 01,01,77,cc */ | 3692 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,77,cc */ |
3685 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 3693 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
3686 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 3694 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
3687 | {0xa0, 0x06, 0x0189}, /* 01,89,06,cc */ | 3695 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
3688 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ | 3696 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
3689 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 3697 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
3690 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 3698 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
3691 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 3699 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
3692 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 3700 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
3693 | {0xa0, 0x68, 0x0116}, /* 01,16,68,cc */ | 3701 | {0xa0, 0x68, ZC3XX_R116_RGAIN}, /* 01,16,68,cc */ |
3694 | {0xa0, 0x52, 0x0118}, /* 01,18,52,cc */ | 3702 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
3695 | {0xa0, 0x50, 0x011d}, /* 01,1d,50,cc */ | 3703 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,50,cc */ |
3696 | {0xa0, 0x02, 0x0180}, /* 01,80,02,cc */ | 3704 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
3697 | {0xa0, 0x50, 0x01a8}, /* 01,a8,50,cc */ | 3705 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,50,cc */ |
3698 | {} | 3706 | {} |
3699 | }; | 3707 | }; |
3700 | 3708 | ||
@@ -3705,34 +3713,37 @@ static const struct usb_action OV7620_50HZ[] = { | |||
3705 | {0xaa, 0x2b, 0x0096}, /* 00,2b,96,aa */ | 3713 | {0xaa, 0x2b, 0x0096}, /* 00,2b,96,aa */ |
3706 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ | 3714 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
3707 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ | 3715 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ |
3708 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3716 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3709 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3717 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3710 | {0xa0, 0x18, 0x0192}, /* 01,92,18,cc */ | 3718 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
3711 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3719 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3712 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3720 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3713 | {0xa0, 0x83, 0x0197}, /* 01,97,83,cc */ | 3721 | {0xa0, 0x83, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,83,cc */ |
3714 | {0xaa, 0x10, 0x0082}, /* 00,10,82,aa */ | 3722 | {0xaa, 0x10, 0x0082}, /* 00,10,82,aa */ |
3715 | {0xaa, 0x76, 0x0003}, /* 00,76,03,aa */ | 3723 | {0xaa, 0x76, 0x0003}, /* 00,76,03,aa */ |
3716 | /* {0xa0, 0x40, 0x0002}, * 00,02,40,cc - if mode0 (640x480) */ | 3724 | /* {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, * 00,02,40,cc |
3725 | if mode0 (640x480) */ | ||
3717 | {} | 3726 | {} |
3718 | }; | 3727 | }; |
3719 | 3728 | ||
3720 | /* from zs211.inf - HKR,%OV7620%\AE,60HZ */ | 3729 | /* from zs211.inf - HKR,%OV7620%\AE,60HZ */ |
3721 | static const struct usb_action OV7620_60HZ[] = { | 3730 | static const struct usb_action OV7620_60HZ[] = { |
3722 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ /* (bug in zs211.inf) */ | 3731 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
3723 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ | 3732 | /* (bug in zs211.inf) */ |
3724 | {0xaa, 0x2b, 0x0000}, /* 00,2b,00,aa */ | 3733 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
3725 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ | 3734 | {0xaa, 0x2b, 0x0000}, /* 00,2b,00,aa */ |
3726 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ | 3735 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
3727 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3736 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ |
3728 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3737 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3729 | {0xa0, 0x18, 0x0192}, /* 01,92,18,cc */ | 3738 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3730 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3739 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
3731 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3740 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3732 | {0xa0, 0x83, 0x0197}, /* 01,97,83,cc */ | 3741 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3733 | {0xaa, 0x10, 0x0020}, /* 00,10,20,aa */ | 3742 | {0xa0, 0x83, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,83,cc */ |
3734 | {0xaa, 0x76, 0x0003}, /* 00,76,03,aa */ | 3743 | {0xaa, 0x10, 0x0020}, /* 00,10,20,aa */ |
3735 | /* {0xa0, 0x40, 0x0002}, * 00,02,40,cc - if mode0 (640x480) */ | 3744 | {0xaa, 0x76, 0x0003}, /* 00,76,03,aa */ |
3745 | /* {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, * 00,02,40,cc | ||
3746 | * if mode0 (640x480) */ | ||
3736 | /* ?? in gspca v1, it was | 3747 | /* ?? in gspca v1, it was |
3737 | {0xa0, 0x00, 0x0039}, * 00,00,00,dd * | 3748 | {0xa0, 0x00, 0x0039}, * 00,00,00,dd * |
3738 | {0xa1, 0x01, 0x0037}, */ | 3749 | {0xa1, 0x01, 0x0037}, */ |
@@ -3741,18 +3752,20 @@ static const struct usb_action OV7620_60HZ[] = { | |||
3741 | 3752 | ||
3742 | /* from zs211.inf - HKR,%OV7620%\AE,NoFliker */ | 3753 | /* from zs211.inf - HKR,%OV7620%\AE,NoFliker */ |
3743 | static const struct usb_action OV7620_NoFliker[] = { | 3754 | static const struct usb_action OV7620_NoFliker[] = { |
3744 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ /* (bug in zs211.inf) */ | 3755 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
3745 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ | 3756 | /* (bug in zs211.inf) */ |
3746 | {0xaa, 0x2b, 0x0000}, /* 00,2b,00,aa */ | 3757 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
3747 | {0xaa, 0x75, 0x008e}, /* 00,75,8e,aa */ | 3758 | {0xaa, 0x2b, 0x0000}, /* 00,2b,00,aa */ |
3748 | {0xaa, 0x2d, 0x0001}, /* 00,2d,01,aa */ | 3759 | {0xaa, 0x75, 0x008e}, /* 00,75,8e,aa */ |
3749 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 3760 | {0xaa, 0x2d, 0x0001}, /* 00,2d,01,aa */ |
3750 | {0xa0, 0x04, 0x0191}, /* 01,91,04,cc */ | 3761 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
3751 | {0xa0, 0x18, 0x0192}, /* 01,92,18,cc */ | 3762 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
3752 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 3763 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
3753 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 3764 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
3754 | {0xa0, 0x01, 0x0197}, /* 01,97,01,cc */ | 3765 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
3755 | /* {0xa0, 0x44, 0x0002}, * 00,02,44,cc - if mode1 (320x240) */ | 3766 | {0xa0, 0x01, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,01,cc */ |
3767 | /* {0xa0, 0x44, ZC3XX_R002_CLOCKSELECT}, * 00,02,44,cc | ||
3768 | - if mode1 (320x240) */ | ||
3756 | /* ?? was | 3769 | /* ?? was |
3757 | {0xa0, 0x00, 0x0039}, * 00,00,00,dd * | 3770 | {0xa0, 0x00, 0x0039}, * 00,00,00,dd * |
3758 | {0xa1, 0x01, 0x0037}, */ | 3771 | {0xa1, 0x01, 0x0037}, */ |
@@ -3760,32 +3773,32 @@ static const struct usb_action OV7620_NoFliker[] = { | |||
3760 | }; | 3773 | }; |
3761 | 3774 | ||
3762 | static const struct usb_action ov7630c_Initial[] = { | 3775 | static const struct usb_action ov7630c_Initial[] = { |
3763 | {0xa0, 0x01, 0x0000}, | 3776 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
3764 | {0xa0, 0x10, 0x0002}, | 3777 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
3765 | {0xa0, 0x01, 0x0000}, | 3778 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
3766 | {0xa0, 0x10, 0x0002}, | 3779 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
3767 | {0xa0, 0x03, 0x0008}, | 3780 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
3768 | {0xa0, 0x01, 0x0001}, | 3781 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
3769 | {0xa0, 0x06, 0x0010}, | 3782 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, |
3770 | {0xa0, 0xa1, 0x008b}, | 3783 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
3771 | {0xa0, 0x08, 0x008d}, | 3784 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
3772 | {0xa0, 0x02, 0x0003}, | 3785 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
3773 | {0xa0, 0x80, 0x0004}, | 3786 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
3774 | {0xa0, 0x01, 0x0005}, | 3787 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
3775 | {0xa0, 0xe0, 0x0006}, | 3788 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
3776 | {0xa0, 0x01, 0x0012}, | 3789 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
3777 | {0xaa, 0x12, 0x0080}, | 3790 | {0xaa, 0x12, 0x0080}, |
3778 | {0xa0, 0x02, 0x0083}, | 3791 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, |
3779 | {0xa0, 0x01, 0x0085}, | 3792 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, |
3780 | {0xa0, 0x90, 0x0086}, | 3793 | {0xa0, 0x90, ZC3XX_R086_EXPTIMEHIGH}, |
3781 | {0xa0, 0x91, 0x0087}, | 3794 | {0xa0, 0x91, ZC3XX_R087_EXPTIMEMID}, |
3782 | {0xa0, 0x10, 0x0088}, | 3795 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, |
3783 | {0xa0, 0x00, 0x0098}, | 3796 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
3784 | {0xa0, 0x00, 0x009a}, | 3797 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
3785 | {0xa0, 0x00, 0x011a}, | 3798 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
3786 | {0xa0, 0x00, 0x011c}, | 3799 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
3787 | {0xa0, 0xd8, 0x009c}, | 3800 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, |
3788 | {0xa0, 0x88, 0x009e}, | 3801 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
3789 | {0xaa, 0x12, 0x0069}, | 3802 | {0xaa, 0x12, 0x0069}, |
3790 | {0xaa, 0x04, 0x0020}, | 3803 | {0xaa, 0x04, 0x0020}, |
3791 | {0xaa, 0x06, 0x0050}, | 3804 | {0xaa, 0x06, 0x0050}, |
@@ -3817,131 +3830,131 @@ static const struct usb_action ov7630c_Initial[] = { | |||
3817 | {0xaa, 0x77, 0x00b5}, | 3830 | {0xaa, 0x77, 0x00b5}, |
3818 | {0xaa, 0x01, 0x0060}, | 3831 | {0xaa, 0x01, 0x0060}, |
3819 | {0xaa, 0x02, 0x0060}, | 3832 | {0xaa, 0x02, 0x0060}, |
3820 | {0xa0, 0x05, 0x0012}, | 3833 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
3821 | {0xa0, 0x77, 0x0101}, | 3834 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
3822 | {0xa0, 0x0d, 0x0100}, | 3835 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
3823 | {0xa0, 0x06, 0x0189}, | 3836 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
3824 | {0xa0, 0x04, 0x01a7}, | 3837 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
3825 | {0xa0, 0x00, 0x01ad}, | 3838 | {0xa0, 0x00, 0x01ad}, |
3826 | {0xa0, 0x03, 0x01c5}, | 3839 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
3827 | {0xa0, 0x13, 0x01cb}, | 3840 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
3828 | {0xa0, 0x08, 0x0250}, | 3841 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
3829 | {0xa0, 0x08, 0x0301}, | 3842 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
3830 | {0xa0, 0x60, 0x0116}, | 3843 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
3831 | {0xa0, 0x46, 0x0118}, | 3844 | {0xa0, 0x46, ZC3XX_R118_BGAIN}, |
3832 | {0xa0, 0x04, 0x0113}, | 3845 | {0xa0, 0x04, ZC3XX_R113_RGB03}, |
3833 | /* 0x10, */ | 3846 | /* 0x10, */ |
3834 | {0xa1, 0x01, 0x0002}, | 3847 | {0xa1, 0x01, 0x0002}, |
3835 | {0xa0, 0x50, 0x010a}, /* matrix */ | 3848 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
3836 | {0xa0, 0xf8, 0x010b}, | 3849 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
3837 | {0xa0, 0xf8, 0x010c}, | 3850 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
3838 | {0xa0, 0xf8, 0x010d}, | 3851 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
3839 | {0xa0, 0x50, 0x010e}, | 3852 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
3840 | {0xa0, 0xf8, 0x010f}, | 3853 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
3841 | {0xa0, 0xf8, 0x0110}, | 3854 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
3842 | {0xa0, 0xf8, 0x0111}, | 3855 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
3843 | {0xa0, 0x50, 0x0112}, | 3856 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
3844 | /* 0x03, */ | 3857 | /* 0x03, */ |
3845 | {0xa1, 0x01, 0x0008}, | 3858 | {0xa1, 0x01, 0x0008}, |
3846 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 3859 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
3847 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 3860 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
3848 | {0xa1, 0x01, 0x01c8}, | 3861 | {0xa1, 0x01, 0x01c8}, |
3849 | {0xa1, 0x01, 0x01c9}, | 3862 | {0xa1, 0x01, 0x01c9}, |
3850 | {0xa1, 0x01, 0x01ca}, | 3863 | {0xa1, 0x01, 0x01ca}, |
3851 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 3864 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
3852 | {0xa0, 0x01, 0x0120}, /* gamma 2 ?*/ | 3865 | {0xa0, 0x01, ZC3XX_R120_GAMMA00}, /* gamma 2 ?*/ |
3853 | {0xa0, 0x0c, 0x0121}, | 3866 | {0xa0, 0x0c, ZC3XX_R121_GAMMA01}, |
3854 | {0xa0, 0x1f, 0x0122}, | 3867 | {0xa0, 0x1f, ZC3XX_R122_GAMMA02}, |
3855 | {0xa0, 0x3a, 0x0123}, | 3868 | {0xa0, 0x3a, ZC3XX_R123_GAMMA03}, |
3856 | {0xa0, 0x53, 0x0124}, | 3869 | {0xa0, 0x53, ZC3XX_R124_GAMMA04}, |
3857 | {0xa0, 0x6d, 0x0125}, | 3870 | {0xa0, 0x6d, ZC3XX_R125_GAMMA05}, |
3858 | {0xa0, 0x85, 0x0126}, | 3871 | {0xa0, 0x85, ZC3XX_R126_GAMMA06}, |
3859 | {0xa0, 0x9c, 0x0127}, | 3872 | {0xa0, 0x9c, ZC3XX_R127_GAMMA07}, |
3860 | {0xa0, 0xb0, 0x0128}, | 3873 | {0xa0, 0xb0, ZC3XX_R128_GAMMA08}, |
3861 | {0xa0, 0xc2, 0x0129}, | 3874 | {0xa0, 0xc2, ZC3XX_R129_GAMMA09}, |
3862 | {0xa0, 0xd1, 0x012a}, | 3875 | {0xa0, 0xd1, ZC3XX_R12A_GAMMA0A}, |
3863 | {0xa0, 0xde, 0x012b}, | 3876 | {0xa0, 0xde, ZC3XX_R12B_GAMMA0B}, |
3864 | {0xa0, 0xe9, 0x012c}, | 3877 | {0xa0, 0xe9, ZC3XX_R12C_GAMMA0C}, |
3865 | {0xa0, 0xf2, 0x012d}, | 3878 | {0xa0, 0xf2, ZC3XX_R12D_GAMMA0D}, |
3866 | {0xa0, 0xf9, 0x012e}, | 3879 | {0xa0, 0xf9, ZC3XX_R12E_GAMMA0E}, |
3867 | {0xa0, 0xff, 0x012f}, | 3880 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
3868 | {0xa0, 0x05, 0x0130}, | 3881 | {0xa0, 0x05, ZC3XX_R130_GAMMA10}, |
3869 | {0xa0, 0x0f, 0x0131}, | 3882 | {0xa0, 0x0f, ZC3XX_R131_GAMMA11}, |
3870 | {0xa0, 0x16, 0x0132}, | 3883 | {0xa0, 0x16, ZC3XX_R132_GAMMA12}, |
3871 | {0xa0, 0x1a, 0x0133}, | 3884 | {0xa0, 0x1a, ZC3XX_R133_GAMMA13}, |
3872 | {0xa0, 0x19, 0x0134}, | 3885 | {0xa0, 0x19, ZC3XX_R134_GAMMA14}, |
3873 | {0xa0, 0x19, 0x0135}, | 3886 | {0xa0, 0x19, ZC3XX_R135_GAMMA15}, |
3874 | {0xa0, 0x17, 0x0136}, | 3887 | {0xa0, 0x17, ZC3XX_R136_GAMMA16}, |
3875 | {0xa0, 0x15, 0x0137}, | 3888 | {0xa0, 0x15, ZC3XX_R137_GAMMA17}, |
3876 | {0xa0, 0x12, 0x0138}, | 3889 | {0xa0, 0x12, ZC3XX_R138_GAMMA18}, |
3877 | {0xa0, 0x10, 0x0139}, | 3890 | {0xa0, 0x10, ZC3XX_R139_GAMMA19}, |
3878 | {0xa0, 0x0e, 0x013a}, | 3891 | {0xa0, 0x0e, ZC3XX_R13A_GAMMA1A}, |
3879 | {0xa0, 0x0b, 0x013b}, | 3892 | {0xa0, 0x0b, ZC3XX_R13B_GAMMA1B}, |
3880 | {0xa0, 0x09, 0x013c}, | 3893 | {0xa0, 0x09, ZC3XX_R13C_GAMMA1C}, |
3881 | {0xa0, 0x08, 0x013d}, | 3894 | {0xa0, 0x08, ZC3XX_R13D_GAMMA1D}, |
3882 | {0xa0, 0x06, 0x013e}, | 3895 | {0xa0, 0x06, ZC3XX_R13E_GAMMA1E}, |
3883 | {0xa0, 0x03, 0x013f}, | 3896 | {0xa0, 0x03, ZC3XX_R13F_GAMMA1F}, |
3884 | {0xa0, 0x50, 0x010a}, /* matrix */ | 3897 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
3885 | {0xa0, 0xf8, 0x010b}, | 3898 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
3886 | {0xa0, 0xf8, 0x010c}, | 3899 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
3887 | {0xa0, 0xf8, 0x010d}, | 3900 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
3888 | {0xa0, 0x50, 0x010e}, | 3901 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
3889 | {0xa0, 0xf8, 0x010f}, | 3902 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
3890 | {0xa0, 0xf8, 0x0110}, | 3903 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
3891 | {0xa0, 0xf8, 0x0111}, | 3904 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
3892 | {0xa0, 0x50, 0x0112}, | 3905 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
3893 | 3906 | ||
3894 | {0xa1, 0x01, 0x0180}, | 3907 | {0xa1, 0x01, 0x0180}, |
3895 | {0xa0, 0x00, 0x0180}, | 3908 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
3896 | {0xaa, 0x10, 0x001b}, | 3909 | {0xaa, 0x10, 0x001b}, |
3897 | {0xaa, 0x76, 0x0002}, | 3910 | {0xaa, 0x76, 0x0002}, |
3898 | {0xaa, 0x2a, 0x0081}, | 3911 | {0xaa, 0x2a, 0x0081}, |
3899 | {0xaa, 0x2b, 0x0000}, | 3912 | {0xaa, 0x2b, 0x0000}, |
3900 | {0xa0, 0x00, 0x0190}, | 3913 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
3901 | {0xa0, 0x01, 0x0191}, | 3914 | {0xa0, 0x01, ZC3XX_R191_EXPOSURELIMITMID}, |
3902 | {0xa0, 0xb8, 0x0192}, | 3915 | {0xa0, 0xb8, ZC3XX_R192_EXPOSURELIMITLOW}, |
3903 | {0xa0, 0x00, 0x0195}, | 3916 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
3904 | {0xa0, 0x00, 0x0196}, | 3917 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
3905 | {0xa0, 0x37, 0x0197}, | 3918 | {0xa0, 0x37, ZC3XX_R197_ANTIFLICKERLOW}, |
3906 | {0xa0, 0x10, 0x018c}, | 3919 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
3907 | {0xa0, 0x20, 0x018f}, | 3920 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
3908 | {0xa0, 0x10, 0x01a9}, | 3921 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
3909 | {0xa0, 0x26, 0x01aa}, | 3922 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
3910 | {0xa0, 0x50, 0x011d}, | 3923 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, |
3911 | {0xa0, 0x02, 0x0180}, | 3924 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
3912 | {0xa0, 0x40, 0x0180}, | 3925 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
3913 | {0xaa, 0x13, 0x0083}, /* 40 */ | 3926 | {0xaa, 0x13, 0x0083}, /* 40 */ |
3914 | {0xa1, 0x01, 0x0180}, | 3927 | {0xa1, 0x01, 0x0180}, |
3915 | {0xa0, 0x42, 0x0180}, | 3928 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
3916 | {} | 3929 | {} |
3917 | }; | 3930 | }; |
3918 | 3931 | ||
3919 | static const struct usb_action ov7630c_InitialScale[] = { | 3932 | static const struct usb_action ov7630c_InitialScale[] = { |
3920 | {0xa0, 0x01, 0x0000}, | 3933 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
3921 | {0xa0, 0x00, 0x0002}, | 3934 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
3922 | {0xa0, 0x03, 0x0008}, | 3935 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
3923 | {0xa0, 0x01, 0x0001}, | 3936 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
3924 | {0xa0, 0x06, 0x0010}, | 3937 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, |
3925 | {0xa0, 0xa1, 0x008b}, | 3938 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
3926 | {0xa0, 0x08, 0x008d}, | 3939 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
3927 | {0xa0, 0x02, 0x0003}, | 3940 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
3928 | {0xa0, 0x80, 0x0004}, | 3941 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
3929 | {0xa0, 0x01, 0x0005}, | 3942 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
3930 | {0xa0, 0xe0, 0x0006}, | 3943 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
3931 | {0xa0, 0x01, 0x0012}, | 3944 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
3932 | 3945 | ||
3933 | {0xaa, 0x12, 0x0080}, | 3946 | {0xaa, 0x12, 0x0080}, |
3934 | {0xa0, 0x02, 0x0083}, | 3947 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, |
3935 | {0xa0, 0x01, 0x0085}, | 3948 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, |
3936 | {0xa0, 0x90, 0x0086}, | 3949 | {0xa0, 0x90, ZC3XX_R086_EXPTIMEHIGH}, |
3937 | {0xa0, 0x91, 0x0087}, | 3950 | {0xa0, 0x91, ZC3XX_R087_EXPTIMEMID}, |
3938 | {0xa0, 0x10, 0x0088}, | 3951 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, |
3939 | {0xa0, 0x00, 0x0098}, | 3952 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
3940 | {0xa0, 0x00, 0x009a}, | 3953 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
3941 | {0xa0, 0x00, 0x011a}, | 3954 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
3942 | {0xa0, 0x00, 0x011c}, | 3955 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
3943 | {0xa0, 0xe6, 0x009c}, | 3956 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
3944 | {0xa0, 0x86, 0x009e}, | 3957 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
3945 | {0xaa, 0x12, 0x0069}, /* i2c */ | 3958 | {0xaa, 0x12, 0x0069}, /* i2c */ |
3946 | {0xaa, 0x04, 0x0020}, | 3959 | {0xaa, 0x04, 0x0020}, |
3947 | {0xaa, 0x06, 0x0050}, | 3960 | {0xaa, 0x06, 0x0050}, |
@@ -3973,103 +3986,103 @@ static const struct usb_action ov7630c_InitialScale[] = { | |||
3973 | {0xaa, 0x02, 0x0060}, | 3986 | {0xaa, 0x02, 0x0060}, |
3974 | {0xaa, 0x17, 0x0018}, | 3987 | {0xaa, 0x17, 0x0018}, |
3975 | {0xaa, 0x18, 0x00ba}, | 3988 | {0xaa, 0x18, 0x00ba}, |
3976 | {0xa0, 0x05, 0x0012}, | 3989 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
3977 | {0xa0, 0x77, 0x0101}, | 3990 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
3978 | {0xa0, 0x0d, 0x0100}, | 3991 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
3979 | {0xa0, 0x06, 0x0189}, | 3992 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
3980 | {0xa0, 0x04, 0x01a7}, | 3993 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
3981 | {0xa0, 0x00, 0x01ad}, | 3994 | {0xa0, 0x00, 0x01ad}, |
3982 | {0xa0, 0x03, 0x01c5}, | 3995 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
3983 | {0xa0, 0x13, 0x01cb}, | 3996 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
3984 | {0xa0, 0x08, 0x0250}, | 3997 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
3985 | {0xa0, 0x08, 0x0301}, | 3998 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
3986 | {0xa0, 0x60, 0x0116}, | 3999 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
3987 | {0xa0, 0x46, 0x0118}, | 4000 | {0xa0, 0x46, ZC3XX_R118_BGAIN}, |
3988 | {0xa0, 0x04, 0x0113}, | 4001 | {0xa0, 0x04, ZC3XX_R113_RGB03}, |
3989 | 4002 | ||
3990 | {0xa1, 0x01, 0x0002}, | 4003 | {0xa1, 0x01, 0x0002}, |
3991 | {0xa0, 0x4e, 0x010a}, /* matrix */ | 4004 | {0xa0, 0x4e, ZC3XX_R10A_RGB00}, /* matrix */ |
3992 | {0xa0, 0xfe, 0x010b}, | 4005 | {0xa0, 0xfe, ZC3XX_R10B_RGB01}, |
3993 | {0xa0, 0xf4, 0x010c}, | 4006 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
3994 | {0xa0, 0xf7, 0x010d}, | 4007 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
3995 | {0xa0, 0x4d, 0x010e}, | 4008 | {0xa0, 0x4d, ZC3XX_R10E_RGB11}, |
3996 | {0xa0, 0xfc, 0x010f}, | 4009 | {0xa0, 0xfc, ZC3XX_R10F_RGB12}, |
3997 | {0xa0, 0x00, 0x0110}, | 4010 | {0xa0, 0x00, ZC3XX_R110_RGB20}, |
3998 | {0xa0, 0xf6, 0x0111}, | 4011 | {0xa0, 0xf6, ZC3XX_R111_RGB21}, |
3999 | {0xa0, 0x4a, 0x0112}, | 4012 | {0xa0, 0x4a, ZC3XX_R112_RGB22}, |
4000 | 4013 | ||
4001 | {0xa1, 0x01, 0x0008}, | 4014 | {0xa1, 0x01, 0x0008}, |
4002 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 4015 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
4003 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4016 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4004 | {0xa1, 0x01, 0x01c8}, | 4017 | {0xa1, 0x01, 0x01c8}, |
4005 | {0xa1, 0x01, 0x01c9}, | 4018 | {0xa1, 0x01, 0x01c9}, |
4006 | {0xa1, 0x01, 0x01ca}, | 4019 | {0xa1, 0x01, 0x01ca}, |
4007 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4020 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4008 | {0xa0, 0x16, 0x0120}, /* gamma ~4 */ | 4021 | {0xa0, 0x16, ZC3XX_R120_GAMMA00}, /* gamma ~4 */ |
4009 | {0xa0, 0x3a, 0x0121}, | 4022 | {0xa0, 0x3a, ZC3XX_R121_GAMMA01}, |
4010 | {0xa0, 0x5b, 0x0122}, | 4023 | {0xa0, 0x5b, ZC3XX_R122_GAMMA02}, |
4011 | {0xa0, 0x7c, 0x0123}, | 4024 | {0xa0, 0x7c, ZC3XX_R123_GAMMA03}, |
4012 | {0xa0, 0x94, 0x0124}, | 4025 | {0xa0, 0x94, ZC3XX_R124_GAMMA04}, |
4013 | {0xa0, 0xa9, 0x0125}, | 4026 | {0xa0, 0xa9, ZC3XX_R125_GAMMA05}, |
4014 | {0xa0, 0xbb, 0x0126}, | 4027 | {0xa0, 0xbb, ZC3XX_R126_GAMMA06}, |
4015 | {0xa0, 0xca, 0x0127}, | 4028 | {0xa0, 0xca, ZC3XX_R127_GAMMA07}, |
4016 | {0xa0, 0xd7, 0x0128}, | 4029 | {0xa0, 0xd7, ZC3XX_R128_GAMMA08}, |
4017 | {0xa0, 0xe1, 0x0129}, | 4030 | {0xa0, 0xe1, ZC3XX_R129_GAMMA09}, |
4018 | {0xa0, 0xea, 0x012a}, | 4031 | {0xa0, 0xea, ZC3XX_R12A_GAMMA0A}, |
4019 | {0xa0, 0xf1, 0x012b}, | 4032 | {0xa0, 0xf1, ZC3XX_R12B_GAMMA0B}, |
4020 | {0xa0, 0xf7, 0x012c}, | 4033 | {0xa0, 0xf7, ZC3XX_R12C_GAMMA0C}, |
4021 | {0xa0, 0xfc, 0x012d}, | 4034 | {0xa0, 0xfc, ZC3XX_R12D_GAMMA0D}, |
4022 | {0xa0, 0xff, 0x012e}, | 4035 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
4023 | {0xa0, 0xff, 0x012f}, | 4036 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
4024 | {0xa0, 0x20, 0x0130}, | 4037 | {0xa0, 0x20, ZC3XX_R130_GAMMA10}, |
4025 | {0xa0, 0x22, 0x0131}, | 4038 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
4026 | {0xa0, 0x20, 0x0132}, | 4039 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
4027 | {0xa0, 0x1c, 0x0133}, | 4040 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
4028 | {0xa0, 0x16, 0x0134}, | 4041 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
4029 | {0xa0, 0x13, 0x0135}, | 4042 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
4030 | {0xa0, 0x10, 0x0136}, | 4043 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
4031 | {0xa0, 0x0d, 0x0137}, | 4044 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
4032 | {0xa0, 0x0b, 0x0138}, | 4045 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
4033 | {0xa0, 0x09, 0x0139}, | 4046 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
4034 | {0xa0, 0x07, 0x013a}, | 4047 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
4035 | {0xa0, 0x06, 0x013b}, | 4048 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
4036 | {0xa0, 0x05, 0x013c}, | 4049 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
4037 | {0xa0, 0x04, 0x013d}, | 4050 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
4038 | {0xa0, 0x00, 0x013e}, | 4051 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
4039 | {0xa0, 0x01, 0x013f}, | 4052 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
4040 | {0xa0, 0x4e, 0x010a}, /* matrix */ | 4053 | {0xa0, 0x4e, ZC3XX_R10A_RGB00}, /* matrix */ |
4041 | {0xa0, 0xfe, 0x010b}, | 4054 | {0xa0, 0xfe, ZC3XX_R10B_RGB01}, |
4042 | {0xa0, 0xf4, 0x010c}, | 4055 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
4043 | {0xa0, 0xf7, 0x010d}, | 4056 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
4044 | {0xa0, 0x4d, 0x010e}, | 4057 | {0xa0, 0x4d, ZC3XX_R10E_RGB11}, |
4045 | {0xa0, 0xfc, 0x010f}, | 4058 | {0xa0, 0xfc, ZC3XX_R10F_RGB12}, |
4046 | {0xa0, 0x00, 0x0110}, | 4059 | {0xa0, 0x00, ZC3XX_R110_RGB20}, |
4047 | {0xa0, 0xf6, 0x0111}, | 4060 | {0xa0, 0xf6, ZC3XX_R111_RGB21}, |
4048 | {0xa0, 0x4a, 0x0112}, | 4061 | {0xa0, 0x4a, ZC3XX_R112_RGB22}, |
4049 | 4062 | ||
4050 | {0xa1, 0x01, 0x0180}, | 4063 | {0xa1, 0x01, 0x0180}, |
4051 | {0xa0, 0x00, 0x0180}, | 4064 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4052 | {0xaa, 0x10, 0x000d}, | 4065 | {0xaa, 0x10, 0x000d}, |
4053 | {0xaa, 0x76, 0x0002}, | 4066 | {0xaa, 0x76, 0x0002}, |
4054 | {0xaa, 0x2a, 0x0081}, | 4067 | {0xaa, 0x2a, 0x0081}, |
4055 | {0xaa, 0x2b, 0x0000}, | 4068 | {0xaa, 0x2b, 0x0000}, |
4056 | {0xa0, 0x00, 0x0190}, | 4069 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
4057 | {0xa0, 0x00, 0x0191}, | 4070 | {0xa0, 0x00, ZC3XX_R191_EXPOSURELIMITMID}, |
4058 | {0xa0, 0xd8, 0x0192}, | 4071 | {0xa0, 0xd8, ZC3XX_R192_EXPOSURELIMITLOW}, |
4059 | {0xa0, 0x00, 0x0195}, | 4072 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
4060 | {0xa0, 0x00, 0x0196}, | 4073 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
4061 | {0xa0, 0x1b, 0x0197}, | 4074 | {0xa0, 0x1b, ZC3XX_R197_ANTIFLICKERLOW}, |
4062 | {0xa0, 0x10, 0x018c}, | 4075 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
4063 | {0xa0, 0x20, 0x018f}, | 4076 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
4064 | {0xa0, 0x10, 0x01a9}, | 4077 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
4065 | {0xa0, 0x26, 0x01aa}, | 4078 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
4066 | {0xa0, 0x50, 0x011d}, | 4079 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, |
4067 | {0xa0, 0x02, 0x0180}, | 4080 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
4068 | {0xa0, 0x40, 0x0180}, | 4081 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
4069 | {0xaa, 0x13, 0x00c3}, | 4082 | {0xaa, 0x13, 0x00c3}, |
4070 | 4083 | ||
4071 | {0xa1, 0x01, 0x0180}, | 4084 | {0xa1, 0x01, 0x0180}, |
4072 | {0xa0, 0x42, 0x0180}, | 4085 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4073 | {} | 4086 | {} |
4074 | }; | 4087 | }; |
4075 | 4088 | ||
@@ -4077,10 +4090,10 @@ static const struct usb_action pas106b_Initial_com[] = { | |||
4077 | /* Sream and Sensor specific */ | 4090 | /* Sream and Sensor specific */ |
4078 | {0xa1, 0x01, 0x0010}, /* CMOSSensorSelect */ | 4091 | {0xa1, 0x01, 0x0010}, /* CMOSSensorSelect */ |
4079 | /* System */ | 4092 | /* System */ |
4080 | {0xa0, 0x01, 0x0000}, /* SystemControl */ | 4093 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* SystemControl */ |
4081 | {0xa0, 0x01, 0x0000}, /* SystemControl */ | 4094 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* SystemControl */ |
4082 | /* Picture size */ | 4095 | /* Picture size */ |
4083 | {0xa0, 0x00, 0x0002}, /* ClockSelect */ | 4096 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* ClockSelect */ |
4084 | {0xa0, 0x03, 0x003a}, | 4097 | {0xa0, 0x03, 0x003a}, |
4085 | {0xa0, 0x0c, 0x003b}, | 4098 | {0xa0, 0x0c, 0x003b}, |
4086 | {0xa0, 0x04, 0x0038}, | 4099 | {0xa0, 0x04, 0x0038}, |
@@ -4089,27 +4102,27 @@ static const struct usb_action pas106b_Initial_com[] = { | |||
4089 | 4102 | ||
4090 | static const struct usb_action pas106b_Initial[] = { /* 176x144 */ | 4103 | static const struct usb_action pas106b_Initial[] = { /* 176x144 */ |
4091 | /* JPEG control */ | 4104 | /* JPEG control */ |
4092 | {0xa0, 0x03, 0x0008}, /* ClockSetting */ | 4105 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* ClockSetting */ |
4093 | /* Sream and Sensor specific */ | 4106 | /* Sream and Sensor specific */ |
4094 | {0xa0, 0x0f, 0x0010}, /* CMOSSensorSelect */ | 4107 | {0xa0, 0x0f, ZC3XX_R010_CMOSSENSORSELECT}, /* CMOSSensorSelect */ |
4095 | /* Picture size */ | 4108 | /* Picture size */ |
4096 | {0xa0, 0x00, 0x0003}, /* FrameWidthHigh 00 */ | 4109 | {0xa0, 0x00, ZC3XX_R003_FRAMEWIDTHHIGH}, /* FrameWidthHigh 00 */ |
4097 | {0xa0, 0xb0, 0x0004}, /* FrameWidthLow B0 */ | 4110 | {0xa0, 0xb0, ZC3XX_R004_FRAMEWIDTHLOW}, /* FrameWidthLow B0 */ |
4098 | {0xa0, 0x00, 0x0005}, /* FrameHeightHigh 00 */ | 4111 | {0xa0, 0x00, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* FrameHeightHigh 00 */ |
4099 | {0xa0, 0x90, 0x0006}, /* FrameHightLow 90 */ | 4112 | {0xa0, 0x90, ZC3XX_R006_FRAMEHEIGHTLOW}, /* FrameHightLow 90 */ |
4100 | /* System */ | 4113 | /* System */ |
4101 | {0xa0, 0x01, 0x0001}, /* SystemOperating */ | 4114 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* SystemOperating */ |
4102 | /* Sream and Sensor specific */ | 4115 | /* Sream and Sensor specific */ |
4103 | {0xa0, 0x03, 0x0012}, /* VideoControlFunction */ | 4116 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* VideoControlFunction */ |
4104 | {0xa0, 0x01, 0x0012}, /* VideoControlFunction */ | 4117 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* VideoControlFunction */ |
4105 | /* Sensor Interface */ | 4118 | /* Sensor Interface */ |
4106 | {0xa0, 0x08, 0x008d}, /* Compatibily Mode */ | 4119 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* Compatibily Mode */ |
4107 | /* Window inside sensor array */ | 4120 | /* Window inside sensor array */ |
4108 | {0xa0, 0x03, 0x009a}, /* WinXStartLow */ | 4121 | {0xa0, 0x03, ZC3XX_R09A_WINXSTARTLOW}, /* WinXStartLow */ |
4109 | {0xa0, 0x00, 0x011a}, /* FirstYLow */ | 4122 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* FirstYLow */ |
4110 | {0xa0, 0x03, 0x011c}, /* FirstxLow */ | 4123 | {0xa0, 0x03, ZC3XX_R11C_FIRSTXLOW}, /* FirstxLow */ |
4111 | {0xa0, 0x28, 0x009c}, /* WinHeightLow */ | 4124 | {0xa0, 0x28, ZC3XX_R09C_WINHEIGHTLOW}, /* WinHeightLow */ |
4112 | {0xa0, 0x68, 0x009e}, /* WinWidthLow */ | 4125 | {0xa0, 0x68, ZC3XX_R09E_WINWIDTHLOW}, /* WinWidthLow */ |
4113 | /* Init the sensor */ | 4126 | /* Init the sensor */ |
4114 | {0xaa, 0x02, 0x0004}, | 4127 | {0xaa, 0x02, 0x0004}, |
4115 | {0xaa, 0x08, 0x0000}, | 4128 | {0xaa, 0x08, 0x0000}, |
@@ -4122,112 +4135,112 @@ static const struct usb_action pas106b_Initial[] = { /* 176x144 */ | |||
4122 | {0xaa, 0x14, 0x0081}, | 4135 | {0xaa, 0x14, 0x0081}, |
4123 | 4136 | ||
4124 | /* Other registors */ | 4137 | /* Other registors */ |
4125 | {0xa0, 0x37, 0x0101}, /* SensorCorrection */ | 4138 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* SensorCorrection */ |
4126 | /* Frame retreiving */ | 4139 | /* Frame retreiving */ |
4127 | {0xa0, 0x00, 0x0019}, /* AutoAdjustFPS */ | 4140 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* AutoAdjustFPS */ |
4128 | /* Gains */ | 4141 | /* Gains */ |
4129 | {0xa0, 0xa0, 0x01a8}, /* DigitalGain */ | 4142 | {0xa0, 0xa0, ZC3XX_R1A8_DIGITALGAIN}, /* DigitalGain */ |
4130 | /* Unknown */ | 4143 | /* Unknown */ |
4131 | {0xa0, 0x00, 0x01ad}, | 4144 | {0xa0, 0x00, 0x01ad}, |
4132 | /* Sharpness */ | 4145 | /* Sharpness */ |
4133 | {0xa0, 0x03, 0x01c5}, /* SharpnessMode */ | 4146 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* SharpnessMode */ |
4134 | {0xa0, 0x13, 0x01cb}, /* Sharpness05 */ | 4147 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* Sharpness05 */ |
4135 | /* Other registors */ | 4148 | /* Other registors */ |
4136 | {0xa0, 0x0d, 0x0100}, /* OperationMode */ | 4149 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* OperationMode */ |
4137 | /* Auto exposure and white balance */ | 4150 | /* Auto exposure and white balance */ |
4138 | {0xa0, 0x06, 0x0189}, /* AWBStatus */ | 4151 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* AWBStatus */ |
4139 | /*Dead pixels */ | 4152 | /*Dead pixels */ |
4140 | {0xa0, 0x08, 0x0250}, /* DeadPixelsMode */ | 4153 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* DeadPixelsMode */ |
4141 | /* EEPROM */ | 4154 | /* EEPROM */ |
4142 | {0xa0, 0x08, 0x0301}, /* EEPROMAccess */ | 4155 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* EEPROMAccess */ |
4143 | /* JPEG control */ | 4156 | /* JPEG control */ |
4144 | {0xa0, 0x03, 0x0008}, /* ClockSetting */ | 4157 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* ClockSetting */ |
4145 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4158 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4146 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4159 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4147 | /* Other registers */ | 4160 | /* Other registers */ |
4148 | {0xa0, 0x0d, 0x0100}, /* OperationMode */ | 4161 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* OperationMode */ |
4149 | /* Auto exposure and white balance */ | 4162 | /* Auto exposure and white balance */ |
4150 | {0xa0, 0x06, 0x0189}, /* AWBStatus */ | 4163 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* AWBStatus */ |
4151 | /*Dead pixels */ | 4164 | /*Dead pixels */ |
4152 | {0xa0, 0x08, 0x0250}, /* DeadPixelsMode */ | 4165 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* DeadPixelsMode */ |
4153 | /* EEPROM */ | 4166 | /* EEPROM */ |
4154 | {0xa0, 0x08, 0x0301}, /* EEPROMAccess */ | 4167 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* EEPROMAccess */ |
4155 | /* JPEG control */ | 4168 | /* JPEG control */ |
4156 | {0xa0, 0x03, 0x0008}, /* ClockSetting */ | 4169 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* ClockSetting */ |
4157 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4170 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4158 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4171 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4159 | 4172 | ||
4160 | {0xa0, 0x58, 0x010a}, /* matrix */ | 4173 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
4161 | {0xa0, 0xf4, 0x010b}, | 4174 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
4162 | {0xa0, 0xf4, 0x010c}, | 4175 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
4163 | {0xa0, 0xf4, 0x010d}, | 4176 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
4164 | {0xa0, 0x58, 0x010e}, | 4177 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
4165 | {0xa0, 0xf4, 0x010f}, | 4178 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
4166 | {0xa0, 0xf4, 0x0110}, | 4179 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
4167 | {0xa0, 0xf4, 0x0111}, | 4180 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
4168 | {0xa0, 0x58, 0x0112}, | 4181 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
4169 | /* Auto correction */ | 4182 | /* Auto correction */ |
4170 | {0xa0, 0x03, 0x0181}, /* WinXstart */ | 4183 | {0xa0, 0x03, ZC3XX_R181_WINXSTART}, /* WinXstart */ |
4171 | {0xa0, 0x08, 0x0182}, /* WinXWidth */ | 4184 | {0xa0, 0x08, ZC3XX_R182_WINXWIDTH}, /* WinXWidth */ |
4172 | {0xa0, 0x16, 0x0183}, /* WinXCenter */ | 4185 | {0xa0, 0x16, ZC3XX_R183_WINXCENTER}, /* WinXCenter */ |
4173 | {0xa0, 0x03, 0x0184}, /* WinYStart */ | 4186 | {0xa0, 0x03, ZC3XX_R184_WINYSTART}, /* WinYStart */ |
4174 | {0xa0, 0x05, 0x0185}, /* WinYWidth */ | 4187 | {0xa0, 0x05, ZC3XX_R185_WINYWIDTH}, /* WinYWidth */ |
4175 | {0xa0, 0x14, 0x0186}, /* WinYCenter */ | 4188 | {0xa0, 0x14, ZC3XX_R186_WINYCENTER}, /* WinYCenter */ |
4176 | {0xa0, 0x00, 0x0180}, /* AutoCorrectEnable */ | 4189 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, /* AutoCorrectEnable */ |
4177 | 4190 | ||
4178 | /* Auto exposure and white balance */ | 4191 | /* Auto exposure and white balance */ |
4179 | {0xa0, 0x00, 0x0190}, /* ExposureLimitHigh */ | 4192 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* ExposureLimitHigh */ |
4180 | {0xa0, 0x03, 0x0191}, /* ExposureLimitMid */ | 4193 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* ExposureLimitMid */ |
4181 | {0xa0, 0xb1, 0x0192}, /* ExposureLimitLow */ | 4194 | {0xa0, 0xb1, ZC3XX_R192_EXPOSURELIMITLOW}, /* ExposureLimitLow */ |
4182 | {0xa0, 0x00, 0x0195}, /* AntiFlickerHigh */ | 4195 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* AntiFlickerHigh */ |
4183 | {0xa0, 0x00, 0x0196}, /* AntiFlickerLow */ | 4196 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* AntiFlickerLow */ |
4184 | {0xa0, 0x87, 0x0197}, /* AntiFlickerLow */ | 4197 | {0xa0, 0x87, ZC3XX_R197_ANTIFLICKERLOW}, /* AntiFlickerLow */ |
4185 | {0xa0, 0x0c, 0x018c}, /* AEBFreeze */ | 4198 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* AEBFreeze */ |
4186 | {0xa0, 0x18, 0x018f}, /* AEBUnfreeze */ | 4199 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* AEBUnfreeze */ |
4187 | /* sensor on */ | 4200 | /* sensor on */ |
4188 | {0xaa, 0x07, 0x00b1}, | 4201 | {0xaa, 0x07, 0x00b1}, |
4189 | {0xaa, 0x05, 0x0003}, | 4202 | {0xaa, 0x05, 0x0003}, |
4190 | {0xaa, 0x04, 0x0001}, | 4203 | {0xaa, 0x04, 0x0001}, |
4191 | {0xaa, 0x03, 0x003b}, | 4204 | {0xaa, 0x03, 0x003b}, |
4192 | /* Gains */ | 4205 | /* Gains */ |
4193 | {0xa0, 0x20, 0x01a9}, /* DigitalLimitDiff */ | 4206 | {0xa0, 0x20, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* DigitalLimitDiff */ |
4194 | {0xa0, 0x26, 0x01aa}, /* DigitalGainStep */ | 4207 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* DigitalGainStep */ |
4195 | {0xa0, 0xa0, 0x011d}, /* GlobalGain */ | 4208 | {0xa0, 0xa0, ZC3XX_R11D_GLOBALGAIN}, /* GlobalGain */ |
4196 | {0xa0, 0x60, 0x011d}, /* GlobalGain */ | 4209 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* GlobalGain */ |
4197 | /* Auto correction */ | 4210 | /* Auto correction */ |
4198 | {0xa0, 0x40, 0x0180}, /* AutoCorrectEnable */ | 4211 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, /* AutoCorrectEnable */ |
4199 | {0xa1, 0x01, 0x0180}, /* AutoCorrectEnable */ | 4212 | {0xa1, 0x01, 0x0180}, /* AutoCorrectEnable */ |
4200 | {0xa0, 0x42, 0x0180}, /* AutoCorrectEnable */ | 4213 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* AutoCorrectEnable */ |
4201 | /* Gains */ | 4214 | /* Gains */ |
4202 | {0xa0, 0x40, 0x0116}, /* RGain */ | 4215 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, /* RGain */ |
4203 | {0xa0, 0x40, 0x0117}, /* GGain */ | 4216 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, /* GGain */ |
4204 | {0xa0, 0x40, 0x0118}, /* BGain */ | 4217 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, /* BGain */ |
4205 | {} | 4218 | {} |
4206 | }; | 4219 | }; |
4207 | 4220 | ||
4208 | static const struct usb_action pas106b_InitialScale[] = { /* 352x288 */ | 4221 | static const struct usb_action pas106b_InitialScale[] = { /* 352x288 */ |
4209 | /* JPEG control */ | 4222 | /* JPEG control */ |
4210 | {0xa0, 0x03, 0x0008}, /* ClockSetting */ | 4223 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* ClockSetting */ |
4211 | /* Sream and Sensor specific */ | 4224 | /* Sream and Sensor specific */ |
4212 | {0xa0, 0x0f, 0x0010}, /* CMOSSensorSelect */ | 4225 | {0xa0, 0x0f, ZC3XX_R010_CMOSSENSORSELECT}, /* CMOSSensorSelect */ |
4213 | /* Picture size */ | 4226 | /* Picture size */ |
4214 | {0xa0, 0x01, 0x0003}, /* FrameWidthHigh */ | 4227 | {0xa0, 0x01, ZC3XX_R003_FRAMEWIDTHHIGH}, /* FrameWidthHigh */ |
4215 | {0xa0, 0x60, 0x0004}, /* FrameWidthLow */ | 4228 | {0xa0, 0x60, ZC3XX_R004_FRAMEWIDTHLOW}, /* FrameWidthLow */ |
4216 | {0xa0, 0x01, 0x0005}, /* FrameHeightHigh */ | 4229 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* FrameHeightHigh */ |
4217 | {0xa0, 0x20, 0x0006}, /* FrameHightLow */ | 4230 | {0xa0, 0x20, ZC3XX_R006_FRAMEHEIGHTLOW}, /* FrameHightLow */ |
4218 | /* System */ | 4231 | /* System */ |
4219 | {0xa0, 0x01, 0x0001}, /* SystemOperating */ | 4232 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* SystemOperating */ |
4220 | /* Sream and Sensor specific */ | 4233 | /* Sream and Sensor specific */ |
4221 | {0xa0, 0x03, 0x0012}, /* VideoControlFunction */ | 4234 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* VideoControlFunction */ |
4222 | {0xa0, 0x01, 0x0012}, /* VideoControlFunction */ | 4235 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* VideoControlFunction */ |
4223 | /* Sensor Interface */ | 4236 | /* Sensor Interface */ |
4224 | {0xa0, 0x08, 0x008d}, /* Compatibily Mode */ | 4237 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* Compatibily Mode */ |
4225 | /* Window inside sensor array */ | 4238 | /* Window inside sensor array */ |
4226 | {0xa0, 0x03, 0x009a}, /* WinXStartLow */ | 4239 | {0xa0, 0x03, ZC3XX_R09A_WINXSTARTLOW}, /* WinXStartLow */ |
4227 | {0xa0, 0x00, 0x011a}, /* FirstYLow */ | 4240 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* FirstYLow */ |
4228 | {0xa0, 0x03, 0x011c}, /* FirstxLow */ | 4241 | {0xa0, 0x03, ZC3XX_R11C_FIRSTXLOW}, /* FirstxLow */ |
4229 | {0xa0, 0x28, 0x009c}, /* WinHeightLow */ | 4242 | {0xa0, 0x28, ZC3XX_R09C_WINHEIGHTLOW}, /* WinHeightLow */ |
4230 | {0xa0, 0x68, 0x009e}, /* WinWidthLow */ | 4243 | {0xa0, 0x68, ZC3XX_R09E_WINWIDTHLOW}, /* WinWidthLow */ |
4231 | /* Init the sensor */ | 4244 | /* Init the sensor */ |
4232 | {0xaa, 0x02, 0x0004}, | 4245 | {0xaa, 0x02, 0x0004}, |
4233 | {0xaa, 0x08, 0x0000}, | 4246 | {0xaa, 0x08, 0x0000}, |
@@ -4240,161 +4253,161 @@ static const struct usb_action pas106b_InitialScale[] = { /* 352x288 */ | |||
4240 | {0xaa, 0x14, 0x0081}, | 4253 | {0xaa, 0x14, 0x0081}, |
4241 | 4254 | ||
4242 | /* Other registors */ | 4255 | /* Other registors */ |
4243 | {0xa0, 0x37, 0x0101}, /* SensorCorrection */ | 4256 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* SensorCorrection */ |
4244 | /* Frame retreiving */ | 4257 | /* Frame retreiving */ |
4245 | {0xa0, 0x00, 0x0019}, /* AutoAdjustFPS */ | 4258 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* AutoAdjustFPS */ |
4246 | /* Gains */ | 4259 | /* Gains */ |
4247 | {0xa0, 0xa0, 0x01a8}, /* DigitalGain */ | 4260 | {0xa0, 0xa0, ZC3XX_R1A8_DIGITALGAIN}, /* DigitalGain */ |
4248 | /* Unknown */ | 4261 | /* Unknown */ |
4249 | {0xa0, 0x00, 0x01ad}, | 4262 | {0xa0, 0x00, 0x01ad}, |
4250 | /* Sharpness */ | 4263 | /* Sharpness */ |
4251 | {0xa0, 0x03, 0x01c5}, /* SharpnessMode */ | 4264 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* SharpnessMode */ |
4252 | {0xa0, 0x13, 0x01cb}, /* Sharpness05 */ | 4265 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* Sharpness05 */ |
4253 | /* Other registors */ | 4266 | /* Other registors */ |
4254 | {0xa0, 0x0d, 0x0100}, /* OperationMode */ | 4267 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* OperationMode */ |
4255 | /* Auto exposure and white balance */ | 4268 | /* Auto exposure and white balance */ |
4256 | {0xa0, 0x06, 0x0189}, /* AWBStatus */ | 4269 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* AWBStatus */ |
4257 | {0xa0, 0x80, 0x018d}, /* ????????? */ | 4270 | {0xa0, 0x80, ZC3XX_R18D_YTARGET}, /* ????????? */ |
4258 | /*Dead pixels */ | 4271 | /*Dead pixels */ |
4259 | {0xa0, 0x08, 0x0250}, /* DeadPixelsMode */ | 4272 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* DeadPixelsMode */ |
4260 | /* EEPROM */ | 4273 | /* EEPROM */ |
4261 | {0xa0, 0x08, 0x0301}, /* EEPROMAccess */ | 4274 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* EEPROMAccess */ |
4262 | /* JPEG control */ | 4275 | /* JPEG control */ |
4263 | {0xa0, 0x03, 0x0008}, /* ClockSetting */ | 4276 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* ClockSetting */ |
4264 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4277 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4265 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4278 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4266 | /* Other registers */ | 4279 | /* Other registers */ |
4267 | {0xa0, 0x0d, 0x0100}, /* OperationMode */ | 4280 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* OperationMode */ |
4268 | /* Auto exposure and white balance */ | 4281 | /* Auto exposure and white balance */ |
4269 | {0xa0, 0x06, 0x0189}, /* AWBStatus */ | 4282 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* AWBStatus */ |
4270 | /*Dead pixels */ | 4283 | /*Dead pixels */ |
4271 | {0xa0, 0x08, 0x0250}, /* DeadPixelsMode */ | 4284 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* DeadPixelsMode */ |
4272 | /* EEPROM */ | 4285 | /* EEPROM */ |
4273 | {0xa0, 0x08, 0x0301}, /* EEPROMAccess */ | 4286 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* EEPROMAccess */ |
4274 | /* JPEG control */ | 4287 | /* JPEG control */ |
4275 | {0xa0, 0x03, 0x0008}, /* ClockSetting */ | 4288 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* ClockSetting */ |
4276 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4289 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4277 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4290 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4278 | 4291 | ||
4279 | {0xa0, 0x58, 0x010a}, /* matrix */ | 4292 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
4280 | {0xa0, 0xf4, 0x010b}, | 4293 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
4281 | {0xa0, 0xf4, 0x010c}, | 4294 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
4282 | {0xa0, 0xf4, 0x010d}, | 4295 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
4283 | {0xa0, 0x58, 0x010e}, | 4296 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
4284 | {0xa0, 0xf4, 0x010f}, | 4297 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
4285 | {0xa0, 0xf4, 0x0110}, | 4298 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
4286 | {0xa0, 0xf4, 0x0111}, | 4299 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
4287 | {0xa0, 0x58, 0x0112}, | 4300 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
4288 | /* Auto correction */ | 4301 | /* Auto correction */ |
4289 | {0xa0, 0x03, 0x0181}, /* WinXstart */ | 4302 | {0xa0, 0x03, ZC3XX_R181_WINXSTART}, /* WinXstart */ |
4290 | {0xa0, 0x08, 0x0182}, /* WinXWidth */ | 4303 | {0xa0, 0x08, ZC3XX_R182_WINXWIDTH}, /* WinXWidth */ |
4291 | {0xa0, 0x16, 0x0183}, /* WinXCenter */ | 4304 | {0xa0, 0x16, ZC3XX_R183_WINXCENTER}, /* WinXCenter */ |
4292 | {0xa0, 0x03, 0x0184}, /* WinYStart */ | 4305 | {0xa0, 0x03, ZC3XX_R184_WINYSTART}, /* WinYStart */ |
4293 | {0xa0, 0x05, 0x0185}, /* WinYWidth */ | 4306 | {0xa0, 0x05, ZC3XX_R185_WINYWIDTH}, /* WinYWidth */ |
4294 | {0xa0, 0x14, 0x0186}, /* WinYCenter */ | 4307 | {0xa0, 0x14, ZC3XX_R186_WINYCENTER}, /* WinYCenter */ |
4295 | {0xa0, 0x00, 0x0180}, /* AutoCorrectEnable */ | 4308 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, /* AutoCorrectEnable */ |
4296 | 4309 | ||
4297 | /* Auto exposure and white balance */ | 4310 | /* Auto exposure and white balance */ |
4298 | {0xa0, 0x00, 0x0190}, /* ExposureLimitHigh 0 */ | 4311 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* ExposureLimitHigh 0 */ |
4299 | {0xa0, 0x03, 0x0191}, /* ExposureLimitMid */ | 4312 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* ExposureLimitMid */ |
4300 | {0xa0, 0xb1, 0x0192}, /* ExposureLimitLow 0xb1 */ | 4313 | {0xa0, 0xb1, ZC3XX_R192_EXPOSURELIMITLOW}, /* ExposureLimitLow 0xb1 */ |
4301 | 4314 | ||
4302 | {0xa0, 0x00, 0x0195}, /* AntiFlickerHigh 0x00 */ | 4315 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* AntiFlickerHigh 0x00 */ |
4303 | {0xa0, 0x00, 0x0196}, /* AntiFlickerLow 0x00 */ | 4316 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* AntiFlickerLow 0x00 */ |
4304 | {0xa0, 0x87, 0x0197}, /* AntiFlickerLow 0x87 */ | 4317 | {0xa0, 0x87, ZC3XX_R197_ANTIFLICKERLOW}, /* AntiFlickerLow 0x87 */ |
4305 | 4318 | ||
4306 | {0xa0, 0x10, 0x018c}, /* AEBFreeze 0x10 0x0c */ | 4319 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* AEBFreeze 0x10 0x0c */ |
4307 | {0xa0, 0x20, 0x018f}, /* AEBUnfreeze 0x30 0x18 */ | 4320 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* AEBUnfreeze 0x30 0x18 */ |
4308 | /* sensor on */ | 4321 | /* sensor on */ |
4309 | {0xaa, 0x07, 0x00b1}, | 4322 | {0xaa, 0x07, 0x00b1}, |
4310 | {0xaa, 0x05, 0x0003}, | 4323 | {0xaa, 0x05, 0x0003}, |
4311 | {0xaa, 0x04, 0x0001}, | 4324 | {0xaa, 0x04, 0x0001}, |
4312 | {0xaa, 0x03, 0x003b}, | 4325 | {0xaa, 0x03, 0x003b}, |
4313 | /* Gains */ | 4326 | /* Gains */ |
4314 | {0xa0, 0x20, 0x01a9}, /* DigitalLimitDiff */ | 4327 | {0xa0, 0x20, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* DigitalLimitDiff */ |
4315 | {0xa0, 0x26, 0x01aa}, /* DigitalGainStep */ | 4328 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* DigitalGainStep */ |
4316 | {0xa0, 0xa0, 0x011d}, /* GlobalGain */ | 4329 | {0xa0, 0xa0, ZC3XX_R11D_GLOBALGAIN}, /* GlobalGain */ |
4317 | {0xa0, 0x60, 0x011d}, /* GlobalGain */ | 4330 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* GlobalGain */ |
4318 | /* Auto correction */ | 4331 | /* Auto correction */ |
4319 | {0xa0, 0x40, 0x0180}, /* AutoCorrectEnable */ | 4332 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, /* AutoCorrectEnable */ |
4320 | {0xa1, 0x01, 0x0180}, /* AutoCorrectEnable */ | 4333 | {0xa1, 0x01, 0x0180}, /* AutoCorrectEnable */ |
4321 | {0xa0, 0x42, 0x0180}, /* AutoCorrectEnable */ | 4334 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* AutoCorrectEnable */ |
4322 | /* Gains */ | 4335 | /* Gains */ |
4323 | {0xa0, 0x40, 0x0116}, /* RGain */ | 4336 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, /* RGain */ |
4324 | {0xa0, 0x40, 0x0117}, /* GGain */ | 4337 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, /* GGain */ |
4325 | {0xa0, 0x40, 0x0118}, /* BGain */ | 4338 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, /* BGain */ |
4326 | 4339 | ||
4327 | {0xa0, 0x00, 0x0007}, /* AutoCorrectEnable */ | 4340 | {0xa0, 0x00, 0x0007}, /* AutoCorrectEnable */ |
4328 | {0xa0, 0xff, 0x0018}, /* Frame adjust */ | 4341 | {0xa0, 0xff, ZC3XX_R018_FRAMELOST}, /* Frame adjust */ |
4329 | {} | 4342 | {} |
4330 | }; | 4343 | }; |
4331 | static const struct usb_action pas106b_50HZ[] = { | 4344 | static const struct usb_action pas106b_50HZ[] = { |
4332 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4345 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4333 | {0xa0, 0x06, 0x0191}, /* 01,91,06,cc */ | 4346 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,06,cc */ |
4334 | {0xa0, 0x54, 0x0192}, /* 01,92,54,cc */ | 4347 | {0xa0, 0x54, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,54,cc */ |
4335 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4348 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4336 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4349 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4337 | {0xa0, 0x87, 0x0197}, /* 01,97,87,cc */ | 4350 | {0xa0, 0x87, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,87,cc */ |
4338 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4351 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4339 | {0xa0, 0x30, 0x018f}, /* 01,8f,30,cc */ | 4352 | {0xa0, 0x30, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,30,cc */ |
4340 | {0xaa, 0x03, 0x0021}, /* 00,03,21,aa */ | 4353 | {0xaa, 0x03, 0x0021}, /* 00,03,21,aa */ |
4341 | {0xaa, 0x04, 0x000c}, /* 00,04,0c,aa */ | 4354 | {0xaa, 0x04, 0x000c}, /* 00,04,0c,aa */ |
4342 | {0xaa, 0x05, 0x0002}, /* 00,05,02,aa */ | 4355 | {0xaa, 0x05, 0x0002}, /* 00,05,02,aa */ |
4343 | {0xaa, 0x07, 0x001c}, /* 00,07,1c,aa */ | 4356 | {0xaa, 0x07, 0x001c}, /* 00,07,1c,aa */ |
4344 | {0xa0, 0x04, 0x01a9}, /* 01,a9,04,cc */ | 4357 | {0xa0, 0x04, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,04,cc */ |
4345 | {} | 4358 | {} |
4346 | }; | 4359 | }; |
4347 | static const struct usb_action pas106b_60HZ[] = { | 4360 | static const struct usb_action pas106b_60HZ[] = { |
4348 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4361 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4349 | {0xa0, 0x06, 0x0191}, /* 01,91,06,cc */ | 4362 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,06,cc */ |
4350 | {0xa0, 0x2e, 0x0192}, /* 01,92,2e,cc */ | 4363 | {0xa0, 0x2e, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,2e,cc */ |
4351 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4364 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4352 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4365 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4353 | {0xa0, 0x71, 0x0197}, /* 01,97,71,cc */ | 4366 | {0xa0, 0x71, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,71,cc */ |
4354 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4367 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4355 | {0xa0, 0x30, 0x018f}, /* 01,8f,30,cc */ | 4368 | {0xa0, 0x30, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,30,cc */ |
4356 | {0xaa, 0x03, 0x001c}, /* 00,03,1c,aa */ | 4369 | {0xaa, 0x03, 0x001c}, /* 00,03,1c,aa */ |
4357 | {0xaa, 0x04, 0x0004}, /* 00,04,04,aa */ | 4370 | {0xaa, 0x04, 0x0004}, /* 00,04,04,aa */ |
4358 | {0xaa, 0x05, 0x0001}, /* 00,05,01,aa */ | 4371 | {0xaa, 0x05, 0x0001}, /* 00,05,01,aa */ |
4359 | {0xaa, 0x07, 0x00c4}, /* 00,07,c4,aa */ | 4372 | {0xaa, 0x07, 0x00c4}, /* 00,07,c4,aa */ |
4360 | {0xa0, 0x04, 0x01a9}, /* 01,a9,04,cc */ | 4373 | {0xa0, 0x04, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,04,cc */ |
4361 | {} | 4374 | {} |
4362 | }; | 4375 | }; |
4363 | static const struct usb_action pas106b_NoFliker[] = { | 4376 | static const struct usb_action pas106b_NoFliker[] = { |
4364 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4377 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4365 | {0xa0, 0x06, 0x0191}, /* 01,91,06,cc */ | 4378 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,06,cc */ |
4366 | {0xa0, 0x50, 0x0192}, /* 01,92,50,cc */ | 4379 | {0xa0, 0x50, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,50,cc */ |
4367 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4380 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4368 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4381 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4369 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 4382 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
4370 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4383 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4371 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 4384 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4372 | {0xaa, 0x03, 0x0013}, /* 00,03,13,aa */ | 4385 | {0xaa, 0x03, 0x0013}, /* 00,03,13,aa */ |
4373 | {0xaa, 0x04, 0x0000}, /* 00,04,00,aa */ | 4386 | {0xaa, 0x04, 0x0000}, /* 00,04,00,aa */ |
4374 | {0xaa, 0x05, 0x0001}, /* 00,05,01,aa */ | 4387 | {0xaa, 0x05, 0x0001}, /* 00,05,01,aa */ |
4375 | {0xaa, 0x07, 0x0030}, /* 00,07,30,aa */ | 4388 | {0xaa, 0x07, 0x0030}, /* 00,07,30,aa */ |
4376 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 4389 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
4377 | {} | 4390 | {} |
4378 | }; | 4391 | }; |
4379 | 4392 | ||
4380 | static const struct usb_action pb03303x_Initial[] = { | 4393 | static const struct usb_action pb03303x_Initial[] = { |
4381 | {0xa0, 0x01, 0x0000}, | 4394 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
4382 | {0xa0, 0x03, 0x0008}, | 4395 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
4383 | {0xa0, 0x0a, 0x0010}, | 4396 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
4384 | {0xa0, 0x10, 0x0002}, | 4397 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
4385 | {0xa0, 0x02, 0x0003}, | 4398 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
4386 | {0xa0, 0x80, 0x0004}, | 4399 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
4387 | {0xa0, 0x01, 0x0005}, | 4400 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
4388 | {0xa0, 0xe0, 0x0006}, | 4401 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
4389 | {0xa0, 0xdc, 0x008b}, /* 8b -> dc */ | 4402 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, /* 8b -> dc */ |
4390 | {0xa0, 0x01, 0x0001}, | 4403 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
4391 | {0xa0, 0x03, 0x0012}, | 4404 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4392 | {0xa0, 0x01, 0x0012}, | 4405 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4393 | {0xa0, 0x00, 0x0098}, | 4406 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
4394 | {0xa0, 0x00, 0x009a}, | 4407 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
4395 | {0xa0, 0x00, 0x011a}, | 4408 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
4396 | {0xa0, 0x00, 0x011c}, | 4409 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
4397 | {0xa0, 0xdc, 0x008b}, | 4410 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
4398 | {0xaa, 0x01, 0x0001}, | 4411 | {0xaa, 0x01, 0x0001}, |
4399 | {0xaa, 0x06, 0x0000}, | 4412 | {0xaa, 0x06, 0x0000}, |
4400 | {0xaa, 0x08, 0x0483}, | 4413 | {0xaa, 0x08, 0x0483}, |
@@ -4414,20 +4427,20 @@ static const struct usb_action pb03303x_Initial[] = { | |||
4414 | {0xaa, 0x2c, 0x0030}, | 4427 | {0xaa, 0x2c, 0x0030}, |
4415 | {0xaa, 0x2d, 0x0030}, | 4428 | {0xaa, 0x2d, 0x0030}, |
4416 | {0xaa, 0x2e, 0x0028}, | 4429 | {0xaa, 0x2e, 0x0028}, |
4417 | {0xa0, 0x10, 0x0087}, | 4430 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
4418 | {0xa0, 0x37, 0x0101}, | 4431 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
4419 | {0xa0, 0x05, 0x0012}, | 4432 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4420 | {0xa0, 0x0d, 0x0100}, | 4433 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
4421 | {0xa0, 0x06, 0x0189}, | 4434 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
4422 | {0xa0, 0x00, 0x01ad}, | 4435 | {0xa0, 0x00, 0x01ad}, |
4423 | {0xa0, 0x03, 0x01c5}, | 4436 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
4424 | {0xa0, 0x13, 0x01cb}, | 4437 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
4425 | {0xa0, 0x08, 0x0250}, | 4438 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
4426 | {0xa0, 0x08, 0x0301}, | 4439 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
4427 | {0xa0, 0x60, 0x01a8}, | 4440 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
4428 | {0xa0, 0x78, 0x018d}, | 4441 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
4429 | {0xa0, 0x61, 0x0116}, | 4442 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
4430 | {0xa0, 0x65, 0x0118}, | 4443 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
4431 | 4444 | ||
4432 | {0xa1, 0x01, 0x0002}, | 4445 | {0xa1, 0x01, 0x0002}, |
4433 | {0xa0, 0x09, 0x01ad}, | 4446 | {0xa0, 0x09, 0x01ad}, |
@@ -4435,112 +4448,112 @@ static const struct usb_action pb03303x_Initial[] = { | |||
4435 | {0xa0, 0x0d, 0x003a}, | 4448 | {0xa0, 0x0d, 0x003a}, |
4436 | {0xa0, 0x02, 0x003b}, | 4449 | {0xa0, 0x02, 0x003b}, |
4437 | {0xa0, 0x00, 0x0038}, | 4450 | {0xa0, 0x00, 0x0038}, |
4438 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4451 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4439 | {0xa0, 0xf8, 0x010b}, | 4452 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4440 | {0xa0, 0xf8, 0x010c}, | 4453 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4441 | {0xa0, 0xf8, 0x010d}, | 4454 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4442 | {0xa0, 0x50, 0x010e}, | 4455 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4443 | {0xa0, 0xf8, 0x010f}, | 4456 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4444 | {0xa0, 0xf8, 0x0110}, | 4457 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4445 | {0xa0, 0xf8, 0x0111}, | 4458 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4446 | {0xa0, 0x50, 0x0112}, | 4459 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4447 | 4460 | ||
4448 | {0xa1, 0x01, 0x0008}, | 4461 | {0xa1, 0x01, 0x0008}, |
4449 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 4462 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
4450 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4463 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4451 | {0xa1, 0x01, 0x01c8}, | 4464 | {0xa1, 0x01, 0x01c8}, |
4452 | {0xa1, 0x01, 0x01c9}, | 4465 | {0xa1, 0x01, 0x01c9}, |
4453 | {0xa1, 0x01, 0x01ca}, | 4466 | {0xa1, 0x01, 0x01ca}, |
4454 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4467 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4455 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 4468 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
4456 | {0xa0, 0x38, 0x0121}, | 4469 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
4457 | {0xa0, 0x59, 0x0122}, | 4470 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
4458 | {0xa0, 0x79, 0x0123}, | 4471 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
4459 | {0xa0, 0x92, 0x0124}, | 4472 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
4460 | {0xa0, 0xa7, 0x0125}, | 4473 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
4461 | {0xa0, 0xb9, 0x0126}, | 4474 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
4462 | {0xa0, 0xc8, 0x0127}, | 4475 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
4463 | {0xa0, 0xd4, 0x0128}, | 4476 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
4464 | {0xa0, 0xdf, 0x0129}, | 4477 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
4465 | {0xa0, 0xe7, 0x012a}, | 4478 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
4466 | {0xa0, 0xee, 0x012b}, | 4479 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
4467 | {0xa0, 0xf4, 0x012c}, | 4480 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
4468 | {0xa0, 0xf9, 0x012d}, | 4481 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
4469 | {0xa0, 0xfc, 0x012e}, | 4482 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
4470 | {0xa0, 0xff, 0x012f}, | 4483 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
4471 | {0xa0, 0x26, 0x0130}, | 4484 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
4472 | {0xa0, 0x22, 0x0131}, | 4485 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
4473 | {0xa0, 0x20, 0x0132}, | 4486 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
4474 | {0xa0, 0x1c, 0x0133}, | 4487 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
4475 | {0xa0, 0x16, 0x0134}, | 4488 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
4476 | {0xa0, 0x13, 0x0135}, | 4489 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
4477 | {0xa0, 0x10, 0x0136}, | 4490 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
4478 | {0xa0, 0x0d, 0x0137}, | 4491 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
4479 | {0xa0, 0x0b, 0x0138}, | 4492 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
4480 | {0xa0, 0x09, 0x0139}, | 4493 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
4481 | {0xa0, 0x07, 0x013a}, | 4494 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
4482 | {0xa0, 0x06, 0x013b}, | 4495 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
4483 | {0xa0, 0x05, 0x013c}, | 4496 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
4484 | {0xa0, 0x04, 0x013d}, | 4497 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
4485 | {0xa0, 0x03, 0x013e}, | 4498 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
4486 | {0xa0, 0x02, 0x013f}, | 4499 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
4487 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4500 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4488 | {0xa0, 0xf8, 0x010b}, | 4501 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4489 | {0xa0, 0xf8, 0x010c}, | 4502 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4490 | {0xa0, 0xf8, 0x010d}, | 4503 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4491 | {0xa0, 0x50, 0x010e}, | 4504 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4492 | {0xa0, 0xf8, 0x010f}, | 4505 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4493 | {0xa0, 0xf8, 0x0110}, | 4506 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4494 | {0xa0, 0xf8, 0x0111}, | 4507 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4495 | {0xa0, 0x50, 0x0112}, | 4508 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4496 | 4509 | ||
4497 | {0xa1, 0x01, 0x0180}, | 4510 | {0xa1, 0x01, 0x0180}, |
4498 | {0xa0, 0x00, 0x0180}, | 4511 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4499 | {0xa0, 0x00, 0x0180}, | 4512 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4500 | {0xa0, 0x00, 0x0019}, | 4513 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
4501 | {0xaa, 0x05, 0x0009}, | 4514 | {0xaa, 0x05, 0x0009}, |
4502 | {0xaa, 0x09, 0x0134}, | 4515 | {0xaa, 0x09, 0x0134}, |
4503 | {0xa0, 0x00, 0x0190}, | 4516 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
4504 | {0xa0, 0x07, 0x0191}, | 4517 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
4505 | {0xa0, 0xec, 0x0192}, | 4518 | {0xa0, 0xec, ZC3XX_R192_EXPOSURELIMITLOW}, |
4506 | {0xa0, 0x00, 0x0195}, | 4519 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
4507 | {0xa0, 0x00, 0x0196}, | 4520 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
4508 | {0xa0, 0x9c, 0x0197}, | 4521 | {0xa0, 0x9c, ZC3XX_R197_ANTIFLICKERLOW}, |
4509 | {0xa0, 0x0e, 0x018c}, | 4522 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
4510 | {0xa0, 0x1c, 0x018f}, | 4523 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
4511 | {0xa0, 0x14, 0x01a9}, | 4524 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
4512 | {0xa0, 0x24, 0x01aa}, | 4525 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
4513 | {0xa0, 0xd7, 0x001d}, | 4526 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
4514 | {0xa0, 0xf4, 0x001e}, | 4527 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
4515 | {0xa0, 0xf9, 0x001f}, | 4528 | {0xa0, 0xf9, ZC3XX_R01F_HSYNC_2}, |
4516 | {0xa0, 0xff, 0x0020}, | 4529 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
4517 | {0xa0, 0x42, 0x0180}, | 4530 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4518 | {0xa0, 0x09, 0x01ad}, | 4531 | {0xa0, 0x09, 0x01ad}, |
4519 | {0xa0, 0x15, 0x01ae}, | 4532 | {0xa0, 0x15, 0x01ae}, |
4520 | {0xa0, 0x40, 0x0180}, | 4533 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
4521 | {0xa1, 0x01, 0x0180}, | 4534 | {0xa1, 0x01, 0x0180}, |
4522 | {0xa0, 0x42, 0x0180}, | 4535 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4523 | {} | 4536 | {} |
4524 | }; | 4537 | }; |
4525 | 4538 | ||
4526 | static const struct usb_action pb03303x_InitialScale[] = { | 4539 | static const struct usb_action pb03303x_InitialScale[] = { |
4527 | {0xa0, 0x01, 0x0000}, | 4540 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
4528 | {0xa0, 0x03, 0x0008}, | 4541 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
4529 | {0xa0, 0x0a, 0x0010}, | 4542 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
4530 | {0xa0, 0x00, 0x0002}, | 4543 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
4531 | {0xa0, 0x02, 0x0003}, | 4544 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
4532 | {0xa0, 0x80, 0x0004}, | 4545 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
4533 | {0xa0, 0x01, 0x0005}, | 4546 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
4534 | {0xa0, 0xe0, 0x0006}, | 4547 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
4535 | {0xa0, 0xdc, 0x008b}, /* 8b -> dc */ | 4548 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, /* 8b -> dc */ |
4536 | {0xa0, 0x01, 0x0001}, | 4549 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
4537 | {0xa0, 0x03, 0x0012}, | 4550 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4538 | {0xa0, 0x01, 0x0012}, | 4551 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4539 | {0xa0, 0x00, 0x0098}, | 4552 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
4540 | {0xa0, 0x00, 0x009a}, | 4553 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
4541 | {0xa0, 0x00, 0x011a}, | 4554 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
4542 | {0xa0, 0x00, 0x011c}, | 4555 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
4543 | {0xa0, 0xdc, 0x008b}, | 4556 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
4544 | {0xaa, 0x01, 0x0001}, | 4557 | {0xaa, 0x01, 0x0001}, |
4545 | {0xaa, 0x06, 0x0000}, | 4558 | {0xaa, 0x06, 0x0000}, |
4546 | {0xaa, 0x08, 0x0483}, | 4559 | {0xaa, 0x08, 0x0483}, |
@@ -4560,20 +4573,20 @@ static const struct usb_action pb03303x_InitialScale[] = { | |||
4560 | {0xaa, 0x2c, 0x0030}, | 4573 | {0xaa, 0x2c, 0x0030}, |
4561 | {0xaa, 0x2d, 0x0030}, | 4574 | {0xaa, 0x2d, 0x0030}, |
4562 | {0xaa, 0x2e, 0x0028}, | 4575 | {0xaa, 0x2e, 0x0028}, |
4563 | {0xa0, 0x10, 0x0087}, | 4576 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
4564 | {0xa0, 0x37, 0x0101}, | 4577 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
4565 | {0xa0, 0x05, 0x0012}, | 4578 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4566 | {0xa0, 0x0d, 0x0100}, | 4579 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
4567 | {0xa0, 0x06, 0x0189}, | 4580 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
4568 | {0xa0, 0x00, 0x01ad}, | 4581 | {0xa0, 0x00, 0x01ad}, |
4569 | {0xa0, 0x03, 0x01c5}, | 4582 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
4570 | {0xa0, 0x13, 0x01cb}, | 4583 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
4571 | {0xa0, 0x08, 0x0250}, | 4584 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
4572 | {0xa0, 0x08, 0x0301}, | 4585 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
4573 | {0xa0, 0x60, 0x01a8}, | 4586 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
4574 | {0xa0, 0x78, 0x018d}, | 4587 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
4575 | {0xa0, 0x61, 0x0116}, | 4588 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
4576 | {0xa0, 0x65, 0x0118}, | 4589 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
4577 | 4590 | ||
4578 | {0xa1, 0x01, 0x0002}, | 4591 | {0xa1, 0x01, 0x0002}, |
4579 | 4592 | ||
@@ -4583,113 +4596,113 @@ static const struct usb_action pb03303x_InitialScale[] = { | |||
4583 | {0xa0, 0x0d, 0x003a}, | 4596 | {0xa0, 0x0d, 0x003a}, |
4584 | {0xa0, 0x02, 0x003b}, | 4597 | {0xa0, 0x02, 0x003b}, |
4585 | {0xa0, 0x00, 0x0038}, | 4598 | {0xa0, 0x00, 0x0038}, |
4586 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4599 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4587 | {0xa0, 0xf8, 0x010b}, | 4600 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4588 | {0xa0, 0xf8, 0x010c}, | 4601 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4589 | {0xa0, 0xf8, 0x010d}, | 4602 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4590 | {0xa0, 0x50, 0x010e}, | 4603 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4591 | {0xa0, 0xf8, 0x010f}, | 4604 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4592 | {0xa0, 0xf8, 0x0110}, | 4605 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4593 | {0xa0, 0xf8, 0x0111}, | 4606 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4594 | {0xa0, 0x50, 0x0112}, | 4607 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4595 | 4608 | ||
4596 | {0xa1, 0x01, 0x0008}, | 4609 | {0xa1, 0x01, 0x0008}, |
4597 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 4610 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
4598 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4611 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4599 | {0xa1, 0x01, 0x01c8}, | 4612 | {0xa1, 0x01, 0x01c8}, |
4600 | {0xa1, 0x01, 0x01c9}, | 4613 | {0xa1, 0x01, 0x01c9}, |
4601 | {0xa1, 0x01, 0x01ca}, | 4614 | {0xa1, 0x01, 0x01ca}, |
4602 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4615 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4603 | 4616 | ||
4604 | {0xa0, 0x13, 0x0120}, /* gamma 4 */ | 4617 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
4605 | {0xa0, 0x38, 0x0121}, | 4618 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
4606 | {0xa0, 0x59, 0x0122}, | 4619 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
4607 | {0xa0, 0x79, 0x0123}, | 4620 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
4608 | {0xa0, 0x92, 0x0124}, | 4621 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
4609 | {0xa0, 0xa7, 0x0125}, | 4622 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
4610 | {0xa0, 0xb9, 0x0126}, | 4623 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
4611 | {0xa0, 0xc8, 0x0127}, | 4624 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
4612 | {0xa0, 0xd4, 0x0128}, | 4625 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
4613 | {0xa0, 0xdf, 0x0129}, | 4626 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
4614 | {0xa0, 0xe7, 0x012a}, | 4627 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
4615 | {0xa0, 0xee, 0x012b}, | 4628 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
4616 | {0xa0, 0xf4, 0x012c}, | 4629 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
4617 | {0xa0, 0xf9, 0x012d}, | 4630 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
4618 | {0xa0, 0xfc, 0x012e}, | 4631 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
4619 | {0xa0, 0xff, 0x012f}, | 4632 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
4620 | {0xa0, 0x26, 0x0130}, | 4633 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
4621 | {0xa0, 0x22, 0x0131}, | 4634 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
4622 | {0xa0, 0x20, 0x0132}, | 4635 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
4623 | {0xa0, 0x1c, 0x0133}, | 4636 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
4624 | {0xa0, 0x16, 0x0134}, | 4637 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
4625 | {0xa0, 0x13, 0x0135}, | 4638 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
4626 | {0xa0, 0x10, 0x0136}, | 4639 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
4627 | {0xa0, 0x0d, 0x0137}, | 4640 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
4628 | {0xa0, 0x0b, 0x0138}, | 4641 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
4629 | {0xa0, 0x09, 0x0139}, | 4642 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
4630 | {0xa0, 0x07, 0x013a}, | 4643 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
4631 | {0xa0, 0x06, 0x013b}, | 4644 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
4632 | {0xa0, 0x05, 0x013c}, | 4645 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
4633 | {0xa0, 0x04, 0x013d}, | 4646 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
4634 | {0xa0, 0x03, 0x013e}, | 4647 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
4635 | {0xa0, 0x02, 0x013f}, | 4648 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
4636 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4649 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4637 | {0xa0, 0xf8, 0x010b}, | 4650 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4638 | {0xa0, 0xf8, 0x010c}, | 4651 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4639 | {0xa0, 0xf8, 0x010d}, | 4652 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4640 | {0xa0, 0x50, 0x010e}, | 4653 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4641 | {0xa0, 0xf8, 0x010f}, | 4654 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4642 | {0xa0, 0xf8, 0x0110}, | 4655 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4643 | {0xa0, 0xf8, 0x0111}, | 4656 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4644 | {0xa0, 0x50, 0x0112}, | 4657 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4645 | 4658 | ||
4646 | {0xa1, 0x01, 0x0180}, | 4659 | {0xa1, 0x01, 0x0180}, |
4647 | {0xa0, 0x00, 0x0180}, | 4660 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4648 | {0xa0, 0x00, 0x0180}, | 4661 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4649 | {0xa0, 0x00, 0x0019}, | 4662 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
4650 | {0xaa, 0x05, 0x0009}, | 4663 | {0xaa, 0x05, 0x0009}, |
4651 | {0xaa, 0x09, 0x0134}, | 4664 | {0xaa, 0x09, 0x0134}, |
4652 | {0xa0, 0x00, 0x0190}, | 4665 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
4653 | {0xa0, 0x07, 0x0191}, | 4666 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
4654 | {0xa0, 0xec, 0x0192}, | 4667 | {0xa0, 0xec, ZC3XX_R192_EXPOSURELIMITLOW}, |
4655 | {0xa0, 0x00, 0x0195}, | 4668 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
4656 | {0xa0, 0x00, 0x0196}, | 4669 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
4657 | {0xa0, 0x9c, 0x0197}, | 4670 | {0xa0, 0x9c, ZC3XX_R197_ANTIFLICKERLOW}, |
4658 | {0xa0, 0x0e, 0x018c}, | 4671 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
4659 | {0xa0, 0x1c, 0x018f}, | 4672 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
4660 | {0xa0, 0x14, 0x01a9}, | 4673 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
4661 | {0xa0, 0x24, 0x01aa}, | 4674 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
4662 | {0xa0, 0xd7, 0x001d}, | 4675 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
4663 | {0xa0, 0xf4, 0x001e}, | 4676 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
4664 | {0xa0, 0xf9, 0x001f}, | 4677 | {0xa0, 0xf9, ZC3XX_R01F_HSYNC_2}, |
4665 | {0xa0, 0xff, 0x0020}, | 4678 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
4666 | {0xa0, 0x42, 0x0180}, | 4679 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4667 | {0xa0, 0x09, 0x01ad}, | 4680 | {0xa0, 0x09, 0x01ad}, |
4668 | {0xa0, 0x15, 0x01ae}, | 4681 | {0xa0, 0x15, 0x01ae}, |
4669 | {0xa0, 0x40, 0x0180}, | 4682 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
4670 | {0xa1, 0x01, 0x0180}, | 4683 | {0xa1, 0x01, 0x0180}, |
4671 | {0xa0, 0x42, 0x0180}, | 4684 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4672 | {} | 4685 | {} |
4673 | }; | 4686 | }; |
4674 | static const struct usb_action pb0330xx_Initial[] = { | 4687 | static const struct usb_action pb0330xx_Initial[] = { |
4675 | {0xa1, 0x01, 0x0008}, | 4688 | {0xa1, 0x01, 0x0008}, |
4676 | {0xa1, 0x01, 0x0008}, | 4689 | {0xa1, 0x01, 0x0008}, |
4677 | {0xa0, 0x01, 0x0000}, | 4690 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
4678 | {0xa0, 0x03, 0x0008}, /* 00 */ | 4691 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
4679 | {0xa0, 0x0a, 0x0010}, | 4692 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
4680 | {0xa0, 0x10, 0x0002}, | 4693 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
4681 | {0xa0, 0x02, 0x0003}, | 4694 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
4682 | {0xa0, 0x80, 0x0004}, | 4695 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
4683 | {0xa0, 0x01, 0x0005}, | 4696 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
4684 | {0xa0, 0xe0, 0x0006}, | 4697 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
4685 | {0xa0, 0x01, 0x0001}, | 4698 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
4686 | {0xa0, 0x05, 0x0012}, | 4699 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4687 | {0xa0, 0x07, 0x0012}, | 4700 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4688 | {0xa0, 0x00, 0x0098}, | 4701 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
4689 | {0xa0, 0x00, 0x009a}, | 4702 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
4690 | {0xa0, 0x00, 0x011a}, | 4703 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
4691 | {0xa0, 0x00, 0x011c}, | 4704 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
4692 | {0xa0, 0x05, 0x0012}, | 4705 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4693 | {0xaa, 0x01, 0x0006}, | 4706 | {0xaa, 0x01, 0x0006}, |
4694 | {0xaa, 0x02, 0x0011}, | 4707 | {0xaa, 0x02, 0x0011}, |
4695 | {0xaa, 0x03, 0x01e7}, | 4708 | {0xaa, 0x03, 0x01e7}, |
@@ -4706,79 +4719,79 @@ static const struct usb_action pb0330xx_Initial[] = { | |||
4706 | {0xaa, 0x40, 0x01e0}, | 4719 | {0xaa, 0x40, 0x01e0}, |
4707 | {0xaa, 0x58, 0x0078}, | 4720 | {0xaa, 0x58, 0x0078}, |
4708 | {0xaa, 0x62, 0x0411}, | 4721 | {0xaa, 0x62, 0x0411}, |
4709 | {0xa0, 0x10, 0x0087}, | 4722 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
4710 | {0xa0, 0x37, 0x0101}, | 4723 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
4711 | {0xa0, 0x05, 0x0012}, | 4724 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4712 | {0xa0, 0x0d, 0x0100}, | 4725 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
4713 | {0xa0, 0x06, 0x0189}, | 4726 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
4714 | {0xa0, 0x00, 0x01ad}, | 4727 | {0xa0, 0x00, 0x01ad}, |
4715 | {0xa0, 0x03, 0x01c5}, | 4728 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
4716 | {0xa0, 0x13, 0x01cb}, | 4729 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
4717 | {0xa0, 0x08, 0x0250}, | 4730 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
4718 | {0xa0, 0x08, 0x0301}, | 4731 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
4719 | {0xa0, 0x60, 0x01a8}, | 4732 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
4720 | {0xa0, 0x6c, 0x018d}, | 4733 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
4721 | {0xa1, 0x01, 0x0002}, | 4734 | {0xa1, 0x01, 0x0002}, |
4722 | {0xa0, 0x09, 0x01ad}, | 4735 | {0xa0, 0x09, 0x01ad}, |
4723 | {0xa0, 0x15, 0x01ae}, | 4736 | {0xa0, 0x15, 0x01ae}, |
4724 | {0xa0, 0x00, 0x0092}, | 4737 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
4725 | {0xa0, 0x02, 0x0090}, | 4738 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
4726 | {0xa1, 0x01, 0x0091}, | 4739 | {0xa1, 0x01, 0x0091}, |
4727 | {0xa1, 0x01, 0x0095}, | 4740 | {0xa1, 0x01, 0x0095}, |
4728 | {0xa1, 0x01, 0x0096}, | 4741 | {0xa1, 0x01, 0x0096}, |
4729 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4742 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4730 | {0xa0, 0xf8, 0x010b}, | 4743 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4731 | {0xa0, 0xf8, 0x010c}, | 4744 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4732 | {0xa0, 0xf8, 0x010d}, | 4745 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4733 | {0xa0, 0x50, 0x010e}, | 4746 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4734 | {0xa0, 0xf8, 0x010f}, | 4747 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4735 | {0xa0, 0xf8, 0x0110}, | 4748 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4736 | {0xa0, 0xf8, 0x0111}, | 4749 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4737 | {0xa0, 0x50, 0x0112}, | 4750 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4738 | {0xa1, 0x01, 0x0008}, | 4751 | {0xa1, 0x01, 0x0008}, |
4739 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 4752 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
4740 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4753 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4741 | {0xa1, 0x01, 0x01c8}, | 4754 | {0xa1, 0x01, 0x01c8}, |
4742 | {0xa1, 0x01, 0x01c9}, | 4755 | {0xa1, 0x01, 0x01c9}, |
4743 | {0xa1, 0x01, 0x01ca}, | 4756 | {0xa1, 0x01, 0x01ca}, |
4744 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4757 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4745 | 4758 | ||
4746 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4759 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4747 | {0xa0, 0xf8, 0x010b}, | 4760 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4748 | {0xa0, 0xf8, 0x010c}, | 4761 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4749 | {0xa0, 0xf8, 0x010d}, | 4762 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4750 | {0xa0, 0x50, 0x010e}, | 4763 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4751 | {0xa0, 0xf8, 0x010f}, | 4764 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4752 | {0xa0, 0xf8, 0x0110}, | 4765 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4753 | {0xa0, 0xf8, 0x0111}, | 4766 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4754 | {0xa0, 0x50, 0x0112}, | 4767 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4755 | {0xa1, 0x01, 0x0180}, | 4768 | {0xa1, 0x01, 0x0180}, |
4756 | {0xa0, 0x00, 0x0180}, | 4769 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4757 | {0xa0, 0x00, 0x0019}, | 4770 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
4758 | {0xaa, 0x05, 0x0066}, | 4771 | {0xaa, 0x05, 0x0066}, |
4759 | {0xaa, 0x09, 0x02b2}, | 4772 | {0xaa, 0x09, 0x02b2}, |
4760 | {0xaa, 0x10, 0x0002}, | 4773 | {0xaa, 0x10, 0x0002}, |
4761 | 4774 | ||
4762 | {0xa0, 0x60, 0x011d}, | 4775 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
4763 | {0xa0, 0x00, 0x0190}, | 4776 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
4764 | {0xa0, 0x07, 0x0191}, | 4777 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
4765 | {0xa0, 0x8c, 0x0192}, | 4778 | {0xa0, 0x8c, ZC3XX_R192_EXPOSURELIMITLOW}, |
4766 | {0xa0, 0x00, 0x0195}, | 4779 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
4767 | {0xa0, 0x00, 0x0196}, | 4780 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
4768 | {0xa0, 0x8a, 0x0197}, | 4781 | {0xa0, 0x8a, ZC3XX_R197_ANTIFLICKERLOW}, |
4769 | {0xa0, 0x10, 0x018c}, | 4782 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
4770 | {0xa0, 0x20, 0x018f}, | 4783 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
4771 | {0xa0, 0x14, 0x01a9}, | 4784 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
4772 | {0xa0, 0x24, 0x01aa}, | 4785 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
4773 | {0xa0, 0xd7, 0x001d}, | 4786 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
4774 | {0xa0, 0xf0, 0x001e}, | 4787 | {0xa0, 0xf0, ZC3XX_R01E_HSYNC_1}, |
4775 | {0xa0, 0xf8, 0x001f}, | 4788 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, |
4776 | {0xa0, 0xff, 0x0020}, | 4789 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
4777 | {0xa0, 0x09, 0x01ad}, | 4790 | {0xa0, 0x09, 0x01ad}, |
4778 | {0xa0, 0x15, 0x01ae}, | 4791 | {0xa0, 0x15, 0x01ae}, |
4779 | {0xa0, 0x40, 0x0180}, | 4792 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
4780 | {0xa1, 0x01, 0x0180}, | 4793 | {0xa1, 0x01, 0x0180}, |
4781 | {0xa0, 0x42, 0x0180}, | 4794 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4782 | {0xa1, 0x01, 0x0008}, | 4795 | {0xa1, 0x01, 0x0008}, |
4783 | {0xa1, 0x01, 0x0007}, | 4796 | {0xa1, 0x01, 0x0007}, |
4784 | /* {0xa0, 0x30, 0x0007}, */ | 4797 | /* {0xa0, 0x30, 0x0007}, */ |
@@ -4789,22 +4802,22 @@ static const struct usb_action pb0330xx_Initial[] = { | |||
4789 | static const struct usb_action pb0330xx_InitialScale[] = { | 4802 | static const struct usb_action pb0330xx_InitialScale[] = { |
4790 | {0xa1, 0x01, 0x0008}, | 4803 | {0xa1, 0x01, 0x0008}, |
4791 | {0xa1, 0x01, 0x0008}, | 4804 | {0xa1, 0x01, 0x0008}, |
4792 | {0xa0, 0x01, 0x0000}, | 4805 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
4793 | {0xa0, 0x03, 0x0008}, /* 00 */ | 4806 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
4794 | {0xa0, 0x0a, 0x0010}, | 4807 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
4795 | {0xa0, 0x00, 0x0002}, /* 10 */ | 4808 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 10 */ |
4796 | {0xa0, 0x02, 0x0003}, | 4809 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
4797 | {0xa0, 0x80, 0x0004}, | 4810 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
4798 | {0xa0, 0x01, 0x0005}, | 4811 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
4799 | {0xa0, 0xe0, 0x0006}, | 4812 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
4800 | {0xa0, 0x01, 0x0001}, | 4813 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
4801 | {0xa0, 0x05, 0x0012}, | 4814 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4802 | {0xa0, 0x07, 0x0012}, | 4815 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4803 | {0xa0, 0x00, 0x0098}, | 4816 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
4804 | {0xa0, 0x00, 0x009a}, | 4817 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
4805 | {0xa0, 0x00, 0x011a}, | 4818 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
4806 | {0xa0, 0x00, 0x011c}, | 4819 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
4807 | {0xa0, 0x05, 0x0012}, | 4820 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4808 | {0xaa, 0x01, 0x0006}, | 4821 | {0xaa, 0x01, 0x0006}, |
4809 | {0xaa, 0x02, 0x0011}, | 4822 | {0xaa, 0x02, 0x0011}, |
4810 | {0xaa, 0x03, 0x01e7}, | 4823 | {0xaa, 0x03, 0x01e7}, |
@@ -4821,78 +4834,78 @@ static const struct usb_action pb0330xx_InitialScale[] = { | |||
4821 | {0xaa, 0x40, 0x01e0}, | 4834 | {0xaa, 0x40, 0x01e0}, |
4822 | {0xaa, 0x58, 0x0078}, | 4835 | {0xaa, 0x58, 0x0078}, |
4823 | {0xaa, 0x62, 0x0411}, | 4836 | {0xaa, 0x62, 0x0411}, |
4824 | {0xa0, 0x10, 0x0087}, | 4837 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
4825 | {0xa0, 0x37, 0x0101}, | 4838 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
4826 | {0xa0, 0x05, 0x0012}, | 4839 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
4827 | {0xa0, 0x0d, 0x0100}, | 4840 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
4828 | {0xa0, 0x06, 0x0189}, | 4841 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
4829 | {0xa0, 0x00, 0x01ad}, | 4842 | {0xa0, 0x00, 0x01ad}, |
4830 | {0xa0, 0x03, 0x01c5}, | 4843 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
4831 | {0xa0, 0x13, 0x01cb}, | 4844 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
4832 | {0xa0, 0x08, 0x0250}, | 4845 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
4833 | {0xa0, 0x08, 0x0301}, | 4846 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
4834 | {0xa0, 0x60, 0x01a8}, | 4847 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
4835 | {0xa0, 0x6c, 0x018d}, | 4848 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
4836 | {0xa1, 0x01, 0x0002}, | 4849 | {0xa1, 0x01, 0x0002}, |
4837 | {0xa0, 0x09, 0x01ad}, | 4850 | {0xa0, 0x09, 0x01ad}, |
4838 | {0xa0, 0x15, 0x01ae}, | 4851 | {0xa0, 0x15, 0x01ae}, |
4839 | {0xa0, 0x00, 0x0092}, | 4852 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
4840 | {0xa0, 0x02, 0x0090}, | 4853 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
4841 | {0xa1, 0x01, 0x0091}, | 4854 | {0xa1, 0x01, 0x0091}, |
4842 | {0xa1, 0x01, 0x0095}, | 4855 | {0xa1, 0x01, 0x0095}, |
4843 | {0xa1, 0x01, 0x0096}, | 4856 | {0xa1, 0x01, 0x0096}, |
4844 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4857 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4845 | {0xa0, 0xf8, 0x010b}, | 4858 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4846 | {0xa0, 0xf8, 0x010c}, | 4859 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4847 | {0xa0, 0xf8, 0x010d}, | 4860 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4848 | {0xa0, 0x50, 0x010e}, | 4861 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4849 | {0xa0, 0xf8, 0x010f}, | 4862 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4850 | {0xa0, 0xf8, 0x0110}, | 4863 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4851 | {0xa0, 0xf8, 0x0111}, | 4864 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4852 | {0xa0, 0x50, 0x0112}, | 4865 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4853 | {0xa1, 0x01, 0x0008}, | 4866 | {0xa1, 0x01, 0x0008}, |
4854 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 4867 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
4855 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 4868 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
4856 | {0xa1, 0x01, 0x01c8}, | 4869 | {0xa1, 0x01, 0x01c8}, |
4857 | {0xa1, 0x01, 0x01c9}, | 4870 | {0xa1, 0x01, 0x01c9}, |
4858 | {0xa1, 0x01, 0x01ca}, | 4871 | {0xa1, 0x01, 0x01ca}, |
4859 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 4872 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
4860 | 4873 | ||
4861 | {0xa0, 0x50, 0x010a}, /* matrix */ | 4874 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
4862 | {0xa0, 0xf8, 0x010b}, | 4875 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
4863 | {0xa0, 0xf8, 0x010c}, | 4876 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
4864 | {0xa0, 0xf8, 0x010d}, | 4877 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
4865 | {0xa0, 0x50, 0x010e}, | 4878 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
4866 | {0xa0, 0xf8, 0x010f}, | 4879 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
4867 | {0xa0, 0xf8, 0x0110}, | 4880 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
4868 | {0xa0, 0xf8, 0x0111}, | 4881 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
4869 | {0xa0, 0x50, 0x0112}, | 4882 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
4870 | {0xa1, 0x01, 0x0180}, | 4883 | {0xa1, 0x01, 0x0180}, |
4871 | {0xa0, 0x00, 0x0180}, | 4884 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
4872 | {0xa0, 0x00, 0x0019}, | 4885 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
4873 | {0xaa, 0x05, 0x0066}, | 4886 | {0xaa, 0x05, 0x0066}, |
4874 | {0xaa, 0x09, 0x02b2}, | 4887 | {0xaa, 0x09, 0x02b2}, |
4875 | {0xaa, 0x10, 0x0002}, | 4888 | {0xaa, 0x10, 0x0002}, |
4876 | {0xa0, 0x60, 0x011d}, | 4889 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
4877 | {0xa0, 0x00, 0x0190}, | 4890 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
4878 | {0xa0, 0x07, 0x0191}, | 4891 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
4879 | {0xa0, 0x8c, 0x0192}, | 4892 | {0xa0, 0x8c, ZC3XX_R192_EXPOSURELIMITLOW}, |
4880 | {0xa0, 0x00, 0x0195}, | 4893 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
4881 | {0xa0, 0x00, 0x0196}, | 4894 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
4882 | {0xa0, 0x8a, 0x0197}, | 4895 | {0xa0, 0x8a, ZC3XX_R197_ANTIFLICKERLOW}, |
4883 | {0xa0, 0x10, 0x018c}, | 4896 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
4884 | {0xa0, 0x20, 0x018f}, | 4897 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
4885 | {0xa0, 0x14, 0x01a9}, | 4898 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
4886 | {0xa0, 0x24, 0x01aa}, | 4899 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
4887 | {0xa0, 0xd7, 0x001d}, | 4900 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
4888 | {0xa0, 0xf0, 0x001e}, | 4901 | {0xa0, 0xf0, ZC3XX_R01E_HSYNC_1}, |
4889 | {0xa0, 0xf8, 0x001f}, | 4902 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, |
4890 | {0xa0, 0xff, 0x0020}, | 4903 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
4891 | {0xa0, 0x09, 0x01ad}, | 4904 | {0xa0, 0x09, 0x01ad}, |
4892 | {0xa0, 0x15, 0x01ae}, | 4905 | {0xa0, 0x15, 0x01ae}, |
4893 | {0xa0, 0x40, 0x0180}, | 4906 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
4894 | {0xa1, 0x01, 0x0180}, | 4907 | {0xa1, 0x01, 0x0180}, |
4895 | {0xa0, 0x42, 0x0180}, | 4908 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
4896 | {0xa1, 0x01, 0x0008}, | 4909 | {0xa1, 0x01, 0x0008}, |
4897 | {0xa1, 0x01, 0x0007}, | 4910 | {0xa1, 0x01, 0x0007}, |
4898 | /* {0xa0, 0x30, 0x0007}, */ | 4911 | /* {0xa0, 0x30, 0x0007}, */ |
@@ -4900,136 +4913,136 @@ static const struct usb_action pb0330xx_InitialScale[] = { | |||
4900 | {} | 4913 | {} |
4901 | }; | 4914 | }; |
4902 | static const struct usb_action pb0330_50HZ[] = { | 4915 | static const struct usb_action pb0330_50HZ[] = { |
4903 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4916 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4904 | {0xa0, 0x07, 0x0191}, /* 01,91,07,cc */ | 4917 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
4905 | {0xa0, 0xee, 0x0192}, /* 01,92,ee,cc */ | 4918 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,ee,cc */ |
4906 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4919 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4907 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4920 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4908 | {0xa0, 0x46, 0x0197}, /* 01,97,46,cc */ | 4921 | {0xa0, 0x46, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,46,cc */ |
4909 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4922 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4910 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 4923 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4911 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 4924 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
4912 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 4925 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
4913 | {0xa0, 0x68, 0x001d}, /* 00,1d,68,cc */ | 4926 | {0xa0, 0x68, ZC3XX_R01D_HSYNC_0}, /* 00,1d,68,cc */ |
4914 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc */ | 4927 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
4915 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc */ | 4928 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
4916 | {} | 4929 | {} |
4917 | }; | 4930 | }; |
4918 | static const struct usb_action pb0330_50HZScale[] = { | 4931 | static const struct usb_action pb0330_50HZScale[] = { |
4919 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 4932 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
4920 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4933 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4921 | {0xa0, 0x07, 0x0191}, /* 01,91,07,cc */ | 4934 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
4922 | {0xa0, 0xa0, 0x0192}, /* 01,92,a0,cc */ | 4935 | {0xa0, 0xa0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,a0,cc */ |
4923 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4936 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4924 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4937 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4925 | {0xa0, 0x7a, 0x0197}, /* 01,97,7a,cc */ | 4938 | {0xa0, 0x7a, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7a,cc */ |
4926 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4939 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4927 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 4940 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4928 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 4941 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
4929 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 4942 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
4930 | {0xa0, 0xe5, 0x001d}, /* 00,1d,e5,cc */ | 4943 | {0xa0, 0xe5, ZC3XX_R01D_HSYNC_0}, /* 00,1d,e5,cc */ |
4931 | {0xa0, 0xf0, 0x001e}, /* 00,1e,f0,cc */ | 4944 | {0xa0, 0xf0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,f0,cc */ |
4932 | {0xa0, 0xf8, 0x001f}, /* 00,1f,f8,cc */ | 4945 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,f8,cc */ |
4933 | {} | 4946 | {} |
4934 | }; | 4947 | }; |
4935 | static const struct usb_action pb0330_60HZ[] = { | 4948 | static const struct usb_action pb0330_60HZ[] = { |
4936 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 4949 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
4937 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4950 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4938 | {0xa0, 0x07, 0x0191}, /* 01,91,07,cc */ | 4951 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
4939 | {0xa0, 0xdd, 0x0192}, /* 01,92,dd,cc */ | 4952 | {0xa0, 0xdd, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,dd,cc */ |
4940 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4953 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4941 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4954 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4942 | {0xa0, 0x3d, 0x0197}, /* 01,97,3d,cc */ | 4955 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3d,cc */ |
4943 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4956 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4944 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 4957 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4945 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 4958 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
4946 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 4959 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
4947 | {0xa0, 0x43, 0x001d}, /* 00,1d,43,cc */ | 4960 | {0xa0, 0x43, ZC3XX_R01D_HSYNC_0}, /* 00,1d,43,cc */ |
4948 | {0xa0, 0x50, 0x001e}, /* 00,1e,50,cc */ | 4961 | {0xa0, 0x50, ZC3XX_R01E_HSYNC_1}, /* 00,1e,50,cc */ |
4949 | {0xa0, 0x90, 0x001f}, /* 00,1f,90,cc */ | 4962 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
4950 | {} | 4963 | {} |
4951 | }; | 4964 | }; |
4952 | static const struct usb_action pb0330_60HZScale[] = { | 4965 | static const struct usb_action pb0330_60HZScale[] = { |
4953 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 4966 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
4954 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4967 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4955 | {0xa0, 0x07, 0x0191}, /* 01,91,07,cc */ | 4968 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
4956 | {0xa0, 0xa0, 0x0192}, /* 01,92,a0,cc */ | 4969 | {0xa0, 0xa0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,a0,cc */ |
4957 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4970 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4958 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4971 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4959 | {0xa0, 0x7a, 0x0197}, /* 01,97,7a,cc */ | 4972 | {0xa0, 0x7a, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7a,cc */ |
4960 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4973 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4961 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 4974 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4962 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 4975 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
4963 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 4976 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
4964 | {0xa0, 0x41, 0x001d}, /* 00,1d,41,cc */ | 4977 | {0xa0, 0x41, ZC3XX_R01D_HSYNC_0}, /* 00,1d,41,cc */ |
4965 | {0xa0, 0x50, 0x001e}, /* 00,1e,50,cc */ | 4978 | {0xa0, 0x50, ZC3XX_R01E_HSYNC_1}, /* 00,1e,50,cc */ |
4966 | {0xa0, 0x90, 0x001f}, /* 00,1f,90,cc */ | 4979 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
4967 | {} | 4980 | {} |
4968 | }; | 4981 | }; |
4969 | static const struct usb_action pb0330_NoFliker[] = { | 4982 | static const struct usb_action pb0330_NoFliker[] = { |
4970 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 4983 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
4971 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 4984 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4972 | {0xa0, 0x07, 0x0191}, /* 01,91,07,cc */ | 4985 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
4973 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 4986 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
4974 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 4987 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4975 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 4988 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4976 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 4989 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
4977 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 4990 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4978 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 4991 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4979 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 4992 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
4980 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 4993 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
4981 | {0xa0, 0x09, 0x001d}, /* 00,1d,09,cc */ | 4994 | {0xa0, 0x09, ZC3XX_R01D_HSYNC_0}, /* 00,1d,09,cc */ |
4982 | {0xa0, 0x40, 0x001e}, /* 00,1e,40,cc */ | 4995 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, /* 00,1e,40,cc */ |
4983 | {0xa0, 0x90, 0x001f}, /* 00,1f,90,cc */ | 4996 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
4984 | {} | 4997 | {} |
4985 | }; | 4998 | }; |
4986 | static const struct usb_action pb0330_NoFlikerScale[] = { | 4999 | static const struct usb_action pb0330_NoFlikerScale[] = { |
4987 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5000 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
4988 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5001 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
4989 | {0xa0, 0x07, 0x0191}, /* 01,91,07,cc */ | 5002 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
4990 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 5003 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
4991 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5004 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
4992 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5005 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
4993 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 5006 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
4994 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 5007 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
4995 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5008 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
4996 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 5009 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
4997 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 5010 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
4998 | {0xa0, 0x09, 0x001d}, /* 00,1d,09,cc */ | 5011 | {0xa0, 0x09, ZC3XX_R01D_HSYNC_0}, /* 00,1d,09,cc */ |
4999 | {0xa0, 0x40, 0x001e}, /* 00,1e,40,cc */ | 5012 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, /* 00,1e,40,cc */ |
5000 | {0xa0, 0x90, 0x001f}, /* 00,1f,90,cc */ | 5013 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
5001 | {} | 5014 | {} |
5002 | }; | 5015 | }; |
5003 | 5016 | ||
5004 | /* from oem9.inf - HKR,%PO2030%,Initial - 640x480 - (close to CS2102) */ | 5017 | /* from oem9.inf - HKR,%PO2030%,Initial - 640x480 - (close to CS2102) */ |
5005 | static const struct usb_action PO2030_mode0[] = { | 5018 | static const struct usb_action PO2030_mode0[] = { |
5006 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 5019 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
5007 | {0xa0, 0x04, 0x0002}, /* 00,02,04,cc */ | 5020 | {0xa0, 0x04, ZC3XX_R002_CLOCKSELECT}, /* 00,02,04,cc */ |
5008 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc */ | 5021 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
5009 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 5022 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
5010 | {0xa0, 0x04, 0x0080}, /* 00,80,04,cc */ | 5023 | {0xa0, 0x04, ZC3XX_R080_HBLANKHIGH}, /* 00,80,04,cc */ |
5011 | {0xa0, 0x05, 0x0081}, /* 00,81,05,cc */ | 5024 | {0xa0, 0x05, ZC3XX_R081_HBLANKLOW}, /* 00,81,05,cc */ |
5012 | {0xa0, 0x16, 0x0083}, /* 00,83,16,cc */ | 5025 | {0xa0, 0x16, ZC3XX_R083_RGAINADDR}, /* 00,83,16,cc */ |
5013 | {0xa0, 0x18, 0x0085}, /* 00,85,18,cc */ | 5026 | {0xa0, 0x18, ZC3XX_R085_BGAINADDR}, /* 00,85,18,cc */ |
5014 | {0xa0, 0x1a, 0x0086}, /* 00,86,1a,cc */ | 5027 | {0xa0, 0x1a, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,1a,cc */ |
5015 | {0xa0, 0x1b, 0x0087}, /* 00,87,1b,cc */ | 5028 | {0xa0, 0x1b, ZC3XX_R087_EXPTIMEMID}, /* 00,87,1b,cc */ |
5016 | {0xa0, 0x1c, 0x0088}, /* 00,88,1c,cc */ | 5029 | {0xa0, 0x1c, ZC3XX_R088_EXPTIMELOW}, /* 00,88,1c,cc */ |
5017 | {0xa0, 0xee, 0x008b}, /* 00,8b,ee,cc */ | 5030 | {0xa0, 0xee, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,ee,cc */ |
5018 | {0xa0, 0x03, 0x0008}, /* 00,08,03,cc */ | 5031 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
5019 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc */ | 5032 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
5020 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 5033 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
5021 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 5034 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
5022 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 5035 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
5023 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 5036 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
5024 | {0xa0, 0xe0, 0x0006}, /* 00,06,e0,cc */ | 5037 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
5025 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc */ | 5038 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
5026 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ | 5039 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ |
5027 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 5040 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
5028 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 5041 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
5029 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 5042 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
5030 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 5043 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
5031 | {0xa0, 0xe6, 0x009c}, /* 00,9c,e6,cc */ | 5044 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc */ |
5032 | {0xa0, 0x86, 0x009e}, /* 00,9e,86,cc */ | 5045 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
5033 | {0xaa, 0x09, 0x00ce}, /* 00,09,ce,aa */ | 5046 | {0xaa, 0x09, 0x00ce}, /* 00,09,ce,aa */ |
5034 | {0xaa, 0x0b, 0x0005}, /* 00,0b,05,aa */ | 5047 | {0xaa, 0x0b, 0x0005}, /* 00,0b,05,aa */ |
5035 | {0xaa, 0x0d, 0x0054}, /* 00,0d,54,aa */ | 5048 | {0xaa, 0x0d, 0x0054}, /* 00,0d,54,aa */ |
@@ -5064,49 +5077,49 @@ static const struct usb_action PO2030_mode0[] = { | |||
5064 | {0xaa, 0x6b, 0x00a0}, /* 00,6b,a0,aa */ | 5077 | {0xaa, 0x6b, 0x00a0}, /* 00,6b,a0,aa */ |
5065 | {0xaa, 0x6c, 0x0054}, /* 00,6c,54,aa */ | 5078 | {0xaa, 0x6c, 0x0054}, /* 00,6c,54,aa */ |
5066 | {0xaa, 0xd6, 0x0007}, /* 00,d6,07,aa */ | 5079 | {0xaa, 0xd6, 0x0007}, /* 00,d6,07,aa */ |
5067 | {0xa0, 0xf7, 0x0101}, /* 01,01,f7,cc */ | 5080 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,f7,cc */ |
5068 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 5081 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
5069 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 5082 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
5070 | {0xa0, 0x06, 0x0189}, /* 01,89,06,cc */ | 5083 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
5071 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ | 5084 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
5072 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 5085 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
5073 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 5086 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
5074 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 5087 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
5075 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 5088 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
5076 | {0xa0, 0x7a, 0x0116}, /* 01,16,7a,cc */ | 5089 | {0xa0, 0x7a, ZC3XX_R116_RGAIN}, /* 01,16,7a,cc */ |
5077 | {0xa0, 0x4a, 0x0118}, /* 01,18,4a,cc */ | 5090 | {0xa0, 0x4a, ZC3XX_R118_BGAIN}, /* 01,18,4a,cc */ |
5078 | {} | 5091 | {} |
5079 | }; | 5092 | }; |
5080 | 5093 | ||
5081 | /* from oem9.inf - HKR,%PO2030%,InitialScale - 320x240 */ | 5094 | /* from oem9.inf - HKR,%PO2030%,InitialScale - 320x240 */ |
5082 | static const struct usb_action PO2030_mode1[] = { | 5095 | static const struct usb_action PO2030_mode1[] = { |
5083 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc */ | 5096 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
5084 | {0xa0, 0x10, 0x0002}, /* 00,02,10,cc */ | 5097 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
5085 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc */ | 5098 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
5086 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc */ | 5099 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
5087 | {0xa0, 0x04, 0x0080}, /* 00,80,04,cc */ | 5100 | {0xa0, 0x04, ZC3XX_R080_HBLANKHIGH}, /* 00,80,04,cc */ |
5088 | {0xa0, 0x05, 0x0081}, /* 00,81,05,cc */ | 5101 | {0xa0, 0x05, ZC3XX_R081_HBLANKLOW}, /* 00,81,05,cc */ |
5089 | {0xa0, 0x16, 0x0083}, /* 00,83,16,cc */ | 5102 | {0xa0, 0x16, ZC3XX_R083_RGAINADDR}, /* 00,83,16,cc */ |
5090 | {0xa0, 0x18, 0x0085}, /* 00,85,18,cc */ | 5103 | {0xa0, 0x18, ZC3XX_R085_BGAINADDR}, /* 00,85,18,cc */ |
5091 | {0xa0, 0x1a, 0x0086}, /* 00,86,1a,cc */ | 5104 | {0xa0, 0x1a, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,1a,cc */ |
5092 | {0xa0, 0x1b, 0x0087}, /* 00,87,1b,cc */ | 5105 | {0xa0, 0x1b, ZC3XX_R087_EXPTIMEMID}, /* 00,87,1b,cc */ |
5093 | {0xa0, 0x1c, 0x0088}, /* 00,88,1c,cc */ | 5106 | {0xa0, 0x1c, ZC3XX_R088_EXPTIMELOW}, /* 00,88,1c,cc */ |
5094 | {0xa0, 0xee, 0x008b}, /* 00,8b,ee,cc */ | 5107 | {0xa0, 0xee, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,ee,cc */ |
5095 | {0xa0, 0x03, 0x0008}, /* 00,08,03,cc */ | 5108 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
5096 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc */ | 5109 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
5097 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc */ | 5110 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
5098 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc */ | 5111 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
5099 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc */ | 5112 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
5100 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc */ | 5113 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
5101 | {0xa0, 0xe0, 0x0006}, /* 00,06,e0,cc */ | 5114 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
5102 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc */ | 5115 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
5103 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ | 5116 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ |
5104 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc */ | 5117 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
5105 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc */ | 5118 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
5106 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc */ | 5119 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
5107 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc */ | 5120 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
5108 | {0xa0, 0xe8, 0x009c}, /* 00,9c,e8,cc */ | 5121 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e8,cc */ |
5109 | {0xa0, 0x88, 0x009e}, /* 00,9e,88,cc */ | 5122 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
5110 | {0xaa, 0x09, 0x00cc}, /* 00,09,cc,aa */ | 5123 | {0xaa, 0x09, 0x00cc}, /* 00,09,cc,aa */ |
5111 | {0xaa, 0x0b, 0x0005}, /* 00,0b,05,aa */ | 5124 | {0xaa, 0x0b, 0x0005}, /* 00,0b,05,aa */ |
5112 | {0xaa, 0x0d, 0x0058}, /* 00,0d,58,aa */ | 5125 | {0xaa, 0x0d, 0x0058}, /* 00,0d,58,aa */ |
@@ -5141,17 +5154,17 @@ static const struct usb_action PO2030_mode1[] = { | |||
5141 | {0xaa, 0x6b, 0x00a0}, /* 00,6b,a0,aa */ | 5154 | {0xaa, 0x6b, 0x00a0}, /* 00,6b,a0,aa */ |
5142 | {0xaa, 0x6c, 0x0054}, /* 00,6c,54,aa */ | 5155 | {0xaa, 0x6c, 0x0054}, /* 00,6c,54,aa */ |
5143 | {0xaa, 0xd6, 0x0007}, /* 00,d6,07,aa */ | 5156 | {0xaa, 0xd6, 0x0007}, /* 00,d6,07,aa */ |
5144 | {0xa0, 0xf7, 0x0101}, /* 01,01,f7,cc */ | 5157 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,f7,cc */ |
5145 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc */ | 5158 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
5146 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc */ | 5159 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
5147 | {0xa0, 0x06, 0x0189}, /* 01,89,06,cc */ | 5160 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
5148 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ | 5161 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
5149 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc */ | 5162 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
5150 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc */ | 5163 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
5151 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc */ | 5164 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
5152 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc */ | 5165 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
5153 | {0xa0, 0x7a, 0x0116}, /* 01,16,7a,cc */ | 5166 | {0xa0, 0x7a, ZC3XX_R116_RGAIN}, /* 01,16,7a,cc */ |
5154 | {0xa0, 0x4a, 0x0118}, /* 01,18,4a,cc */ | 5167 | {0xa0, 0x4a, ZC3XX_R118_BGAIN}, /* 01,18,4a,cc */ |
5155 | {} | 5168 | {} |
5156 | }; | 5169 | }; |
5157 | 5170 | ||
@@ -5160,20 +5173,20 @@ static const struct usb_action PO2030_50HZ[] = { | |||
5160 | {0xaa, 0x1a, 0x0001}, /* 00,1a,01,aa */ | 5173 | {0xaa, 0x1a, 0x0001}, /* 00,1a,01,aa */ |
5161 | {0xaa, 0x1b, 0x000a}, /* 00,1b,0a,aa */ | 5174 | {0xaa, 0x1b, 0x000a}, /* 00,1b,0a,aa */ |
5162 | {0xaa, 0x1c, 0x00b0}, /* 00,1c,b0,aa */ | 5175 | {0xaa, 0x1c, 0x00b0}, /* 00,1c,b0,aa */ |
5163 | {0xa0, 0x05, 0x0190}, /* 01,90,05,cc */ | 5176 | {0xa0, 0x05, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,05,cc */ |
5164 | {0xa0, 0x35, 0x0191}, /* 01,91,35,cc */ | 5177 | {0xa0, 0x35, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,35,cc */ |
5165 | {0xa0, 0x70, 0x0192}, /* 01,92,70,cc */ | 5178 | {0xa0, 0x70, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,70,cc */ |
5166 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5179 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5167 | {0xa0, 0x85, 0x0196}, /* 01,96,85,cc */ | 5180 | {0xa0, 0x85, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,85,cc */ |
5168 | {0xa0, 0x58, 0x0197}, /* 01,97,58,cc */ | 5181 | {0xa0, 0x58, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,58,cc */ |
5169 | {0xa0, 0x0c, 0x018c}, /* 01,8c,0c,cc */ | 5182 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0c,cc */ |
5170 | {0xa0, 0x18, 0x018f}, /* 01,8f,18,cc */ | 5183 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,18,cc */ |
5171 | {0xa0, 0x60, 0x01a8}, /* 01,a8,60,cc */ | 5184 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
5172 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 5185 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
5173 | {0xa0, 0x22, 0x01aa}, /* 01,aa,22,cc */ | 5186 | {0xa0, 0x22, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,22,cc */ |
5174 | {0xa0, 0x88, 0x018d}, /* 01,8d,88,cc */ | 5187 | {0xa0, 0x88, ZC3XX_R18D_YTARGET}, /* 01,8d,88,cc */ |
5175 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc */ | 5188 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc */ |
5176 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc */ | 5189 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
5177 | {} | 5190 | {} |
5178 | }; | 5191 | }; |
5179 | 5192 | ||
@@ -5182,25 +5195,26 @@ static const struct usb_action PO2030_60HZ[] = { | |||
5182 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ | 5195 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ |
5183 | {0xaa, 0x1b, 0x00de}, /* 00,1b,de,aa */ | 5196 | {0xaa, 0x1b, 0x00de}, /* 00,1b,de,aa */ |
5184 | {0xaa, 0x1c, 0x0040}, /* 00,1c,40,aa */ | 5197 | {0xaa, 0x1c, 0x0040}, /* 00,1c,40,aa */ |
5185 | {0xa0, 0x08, 0x0190}, /* 01,90,08,cc */ | 5198 | {0xa0, 0x08, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,08,cc */ |
5186 | {0xa0, 0xae, 0x0191}, /* 01,91,ae,cc */ | 5199 | {0xa0, 0xae, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,ae,cc */ |
5187 | {0xa0, 0x80, 0x0192}, /* 01,92,80,cc */ | 5200 | {0xa0, 0x80, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,80,cc */ |
5188 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5201 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5189 | {0xa0, 0x6f, 0x0196}, /* 01,96,6f,cc */ | 5202 | {0xa0, 0x6f, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,6f,cc */ |
5190 | {0xa0, 0x20, 0x0197}, /* 01,97,20,cc */ | 5203 | {0xa0, 0x20, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,20,cc */ |
5191 | {0xa0, 0x0c, 0x018c}, /* 01,8c,0c,cc */ | 5204 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0c,cc */ |
5192 | {0xa0, 0x18, 0x018f}, /* 01,8f,18,cc */ | 5205 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,18,cc */ |
5193 | {0xa0, 0x60, 0x01a8}, /* 01,a8,60,cc */ | 5206 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
5194 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc */ | 5207 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
5195 | {0xa0, 0x22, 0x01aa}, /* 01,aa,22,cc */ | 5208 | {0xa0, 0x22, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,22,cc */ |
5196 | {0xa0, 0x88, 0x018d}, /* 01,8d,88,cc */ /* win: 01,8d,80 */ | 5209 | {0xa0, 0x88, ZC3XX_R18D_YTARGET}, /* 01,8d,88,cc */ |
5197 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc */ | 5210 | /* win: 01,8d,80 */ |
5198 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc */ | 5211 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc */ |
5212 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ | ||
5199 | {} | 5213 | {} |
5200 | }; | 5214 | }; |
5201 | 5215 | ||
5202 | static const struct usb_action PO2030_NoFliker[] = { | 5216 | static const struct usb_action PO2030_NoFliker[] = { |
5203 | {0xa0, 0x02, 0x0180}, /* 01,80,02,cc */ | 5217 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
5204 | {0xaa, 0x8d, 0x000d}, /* 00,8d,0d,aa */ | 5218 | {0xaa, 0x8d, 0x000d}, /* 00,8d,0d,aa */ |
5205 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ | 5219 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ |
5206 | {0xaa, 0x1b, 0x0002}, /* 00,1b,02,aa */ | 5220 | {0xaa, 0x1b, 0x0002}, /* 00,1b,02,aa */ |
@@ -5212,756 +5226,759 @@ static const struct usb_action PO2030_NoFliker[] = { | |||
5212 | 5226 | ||
5213 | /* TEST */ | 5227 | /* TEST */ |
5214 | static const struct usb_action tas5130CK_Initial[] = { | 5228 | static const struct usb_action tas5130CK_Initial[] = { |
5215 | {0xa0, 0x01, 0x0000}, | 5229 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5216 | {0xa0, 0x01, 0x003b}, | 5230 | {0xa0, 0x01, 0x003b}, |
5217 | {0xa0, 0x0e, 0x003a}, | 5231 | {0xa0, 0x0e, 0x003a}, |
5218 | {0xa0, 0x01, 0x0038}, | 5232 | {0xa0, 0x01, 0x0038}, |
5219 | {0xa0, 0x0b, 0x0039}, | 5233 | {0xa0, 0x0b, 0x0039}, |
5220 | {0xa0, 0x00, 0x0038}, | 5234 | {0xa0, 0x00, 0x0038}, |
5221 | {0xa0, 0x0b, 0x0039}, | 5235 | {0xa0, 0x0b, 0x0039}, |
5222 | {0xa0, 0x01, 0x0000}, | 5236 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5223 | {0xa0, 0x03, 0x0008}, | 5237 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5224 | {0xa0, 0x0a, 0x0010}, | 5238 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
5225 | {0xa0, 0x10, 0x0002}, | 5239 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
5226 | {0xa0, 0x02, 0x0003}, | 5240 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
5227 | {0xa0, 0x80, 0x0004}, | 5241 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
5228 | {0xa0, 0x01, 0x0005}, | 5242 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
5229 | {0xa0, 0xe0, 0x0006}, | 5243 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
5230 | {0xa0, 0xdc, 0x008b}, | 5244 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
5231 | {0xa0, 0x01, 0x0001}, | 5245 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
5232 | {0xa0, 0x07, 0x0012}, | 5246 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5233 | {0xa0, 0x00, 0x0098}, | 5247 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
5234 | {0xa0, 0x00, 0x009a}, | 5248 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
5235 | {0xa0, 0x00, 0x011a}, | 5249 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
5236 | {0xa0, 0x00, 0x011c}, | 5250 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
5237 | {0xa0, 0xdc, 0x008b}, | 5251 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
5238 | {0xa0, 0x05, 0x0012}, | 5252 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5239 | {0xa0, 0x01, 0x0092}, | 5253 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
5240 | {0xa0, 0x01, 0x0093}, | 5254 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
5241 | {0xa0, 0x00, 0x0094}, | 5255 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5242 | {0xa0, 0x01, 0x0090}, | 5256 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5243 | {0xa0, 0x06, 0x0092}, | 5257 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
5244 | {0xa0, 0x00, 0x0093}, | 5258 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
5245 | {0xa0, 0x00, 0x0094}, | 5259 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5246 | {0xa0, 0x01, 0x0090}, | 5260 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5247 | {0xa0, 0x08, 0x0092}, | 5261 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
5248 | {0xa0, 0x83, 0x0093}, | 5262 | {0xa0, 0x83, ZC3XX_R093_I2CSETVALUE}, |
5249 | {0xa0, 0x04, 0x0094}, | 5263 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
5250 | {0xa0, 0x01, 0x0090}, | 5264 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5251 | {0xa0, 0x01, 0x0092}, | 5265 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
5252 | {0xa0, 0x04, 0x0093}, | 5266 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
5253 | {0xa0, 0x00, 0x0094}, | 5267 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5254 | {0xa0, 0x01, 0x0090}, | 5268 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5255 | {0xa0, 0x08, 0x0092}, | 5269 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
5256 | {0xa0, 0x06, 0x0093}, | 5270 | {0xa0, 0x06, ZC3XX_R093_I2CSETVALUE}, |
5257 | {0xa0, 0x00, 0x0094}, | 5271 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5258 | {0xa0, 0x01, 0x0090}, | 5272 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5259 | {0xa0, 0x02, 0x0092}, | 5273 | {0xa0, 0x02, ZC3XX_R092_I2CADDRESSSELECT}, |
5260 | {0xa0, 0x11, 0x0093}, | 5274 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
5261 | {0xa0, 0x00, 0x0094}, | 5275 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5262 | {0xa0, 0x01, 0x0090}, | 5276 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5263 | {0xa0, 0x03, 0x0092}, | 5277 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
5264 | {0xa0, 0xE7, 0x0093}, | 5278 | {0xa0, 0xE7, ZC3XX_R093_I2CSETVALUE}, |
5265 | {0xa0, 0x01, 0x0094}, | 5279 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
5266 | {0xa0, 0x01, 0x0090}, | 5280 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5267 | {0xa0, 0x04, 0x0092}, | 5281 | {0xa0, 0x04, ZC3XX_R092_I2CADDRESSSELECT}, |
5268 | {0xa0, 0x87, 0x0093}, | 5282 | {0xa0, 0x87, ZC3XX_R093_I2CSETVALUE}, |
5269 | {0xa0, 0x02, 0x0094}, | 5283 | {0xa0, 0x02, ZC3XX_R094_I2CWRITEACK}, |
5270 | {0xa0, 0x01, 0x0090}, | 5284 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5271 | {0xa0, 0x07, 0x0092}, | 5285 | {0xa0, 0x07, ZC3XX_R092_I2CADDRESSSELECT}, |
5272 | {0xa0, 0x02, 0x0093}, | 5286 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
5273 | {0xa0, 0x30, 0x0094}, | 5287 | {0xa0, 0x30, ZC3XX_R094_I2CWRITEACK}, |
5274 | {0xa0, 0x01, 0x0090}, | 5288 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5275 | {0xa0, 0x20, 0x0092}, | 5289 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
5276 | {0xa0, 0x00, 0x0093}, | 5290 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
5277 | {0xa0, 0x51, 0x0094}, | 5291 | {0xa0, 0x51, ZC3XX_R094_I2CWRITEACK}, |
5278 | {0xa0, 0x01, 0x0090}, | 5292 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5279 | {0xa0, 0x35, 0x0092}, | 5293 | {0xa0, 0x35, ZC3XX_R092_I2CADDRESSSELECT}, |
5280 | {0xa0, 0x7F, 0x0093}, | 5294 | {0xa0, 0x7F, ZC3XX_R093_I2CSETVALUE}, |
5281 | {0xa0, 0x00, 0x0094}, | 5295 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5282 | {0xa0, 0x01, 0x0090}, | 5296 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5283 | {0xa0, 0x30, 0x0092}, | 5297 | {0xa0, 0x30, ZC3XX_R092_I2CADDRESSSELECT}, |
5284 | {0xa0, 0x05, 0x0093}, | 5298 | {0xa0, 0x05, ZC3XX_R093_I2CSETVALUE}, |
5285 | {0xa0, 0x00, 0x0094}, | 5299 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5286 | {0xa0, 0x01, 0x0090}, | 5300 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5287 | {0xa0, 0x31, 0x0092}, | 5301 | {0xa0, 0x31, ZC3XX_R092_I2CADDRESSSELECT}, |
5288 | {0xa0, 0x00, 0x0093}, | 5302 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
5289 | {0xa0, 0x00, 0x0094}, | 5303 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5290 | {0xa0, 0x01, 0x0090}, | 5304 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5291 | {0xa0, 0x58, 0x0092}, | 5305 | {0xa0, 0x58, ZC3XX_R092_I2CADDRESSSELECT}, |
5292 | {0xa0, 0x78, 0x0093}, | 5306 | {0xa0, 0x78, ZC3XX_R093_I2CSETVALUE}, |
5293 | {0xa0, 0x00, 0x0094}, | 5307 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5294 | {0xa0, 0x01, 0x0090}, | 5308 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5295 | {0xa0, 0x62, 0x0092}, | 5309 | {0xa0, 0x62, ZC3XX_R092_I2CADDRESSSELECT}, |
5296 | {0xa0, 0x11, 0x0093}, | 5310 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
5297 | {0xa0, 0x04, 0x0094}, | 5311 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
5298 | {0xa0, 0x01, 0x0090}, | 5312 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5299 | {0xa0, 0x2B, 0x0092}, | 5313 | {0xa0, 0x2B, ZC3XX_R092_I2CADDRESSSELECT}, |
5300 | {0xa0, 0x7f, 0x0093}, | 5314 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5301 | {0xa0, 0x00, 0x0094}, | 5315 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5302 | {0xa0, 0x01, 0x0090}, | 5316 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5303 | {0xa0, 0x2c, 0x0092}, | 5317 | {0xa0, 0x2c, ZC3XX_R092_I2CADDRESSSELECT}, |
5304 | {0xa0, 0x7f, 0x0093}, | 5318 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5305 | {0xa0, 0x00, 0x0094}, | 5319 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5306 | {0xa0, 0x01, 0x0090}, | 5320 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5307 | {0xa0, 0x2D, 0x0092}, | 5321 | {0xa0, 0x2D, ZC3XX_R092_I2CADDRESSSELECT}, |
5308 | {0xa0, 0x7f, 0x0093}, | 5322 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5309 | {0xa0, 0x00, 0x0094}, | 5323 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5310 | {0xa0, 0x01, 0x0090}, | 5324 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5311 | {0xa0, 0x2e, 0x0092}, | 5325 | {0xa0, 0x2e, ZC3XX_R092_I2CADDRESSSELECT}, |
5312 | {0xa0, 0x7f, 0x0093}, | 5326 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5313 | {0xa0, 0x00, 0x0094}, | 5327 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5314 | {0xa0, 0x01, 0x0090}, | 5328 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5315 | {0xa0, 0x10, 0x0087}, | 5329 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
5316 | {0xa0, 0xb7, 0x0101}, | 5330 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
5317 | {0xa0, 0x05, 0x0012}, | 5331 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5318 | {0xa0, 0x0d, 0x0100}, | 5332 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
5319 | {0xa0, 0x06, 0x0189}, | 5333 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
5320 | {0xa0, 0x09, 0x01ad}, | 5334 | {0xa0, 0x09, 0x01ad}, |
5321 | {0xa0, 0x03, 0x01c5}, | 5335 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
5322 | {0xa0, 0x13, 0x01cb}, | 5336 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
5323 | {0xa0, 0x08, 0x0250}, | 5337 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
5324 | {0xa0, 0x08, 0x0301}, | 5338 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
5325 | {0xa0, 0x60, 0x01a8}, | 5339 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
5326 | {0xa0, 0x6c, 0x018d}, | 5340 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
5327 | {0xa0, 0x61, 0x0116}, | 5341 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
5328 | {0xa0, 0x65, 0x0118}, | 5342 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
5329 | {0xa0, 0x09, 0x01ad}, | 5343 | {0xa0, 0x09, 0x01ad}, |
5330 | {0xa0, 0x15, 0x01ae}, | 5344 | {0xa0, 0x15, 0x01ae}, |
5331 | {0xa0, 0x4c, 0x010a}, /* matrix */ | 5345 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
5332 | {0xa0, 0xf1, 0x010b}, | 5346 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
5333 | {0xa0, 0x03, 0x010c}, | 5347 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
5334 | {0xa0, 0xfe, 0x010d}, | 5348 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
5335 | {0xa0, 0x51, 0x010e}, | 5349 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
5336 | {0xa0, 0xf1, 0x010f}, | 5350 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
5337 | {0xa0, 0xec, 0x0110}, | 5351 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
5338 | {0xa0, 0x03, 0x0111}, | 5352 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
5339 | {0xa0, 0x51, 0x0112}, | 5353 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
5340 | {0xa0, 0x03, 0x0008}, | 5354 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5341 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 5355 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
5342 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 5356 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
5343 | {0xa0, 0x38, 0x0120}, /* gamma > 5 */ | 5357 | {0xa0, 0x38, ZC3XX_R120_GAMMA00}, /* gamma > 5 */ |
5344 | {0xa0, 0x51, 0x0121}, | 5358 | {0xa0, 0x51, ZC3XX_R121_GAMMA01}, |
5345 | {0xa0, 0x6e, 0x0122}, | 5359 | {0xa0, 0x6e, ZC3XX_R122_GAMMA02}, |
5346 | {0xa0, 0x8c, 0x0123}, | 5360 | {0xa0, 0x8c, ZC3XX_R123_GAMMA03}, |
5347 | {0xa0, 0xa2, 0x0124}, | 5361 | {0xa0, 0xa2, ZC3XX_R124_GAMMA04}, |
5348 | {0xa0, 0xb6, 0x0125}, | 5362 | {0xa0, 0xb6, ZC3XX_R125_GAMMA05}, |
5349 | {0xa0, 0xc8, 0x0126}, | 5363 | {0xa0, 0xc8, ZC3XX_R126_GAMMA06}, |
5350 | {0xa0, 0xd6, 0x0127}, | 5364 | {0xa0, 0xd6, ZC3XX_R127_GAMMA07}, |
5351 | {0xa0, 0xe2, 0x0128}, | 5365 | {0xa0, 0xe2, ZC3XX_R128_GAMMA08}, |
5352 | {0xa0, 0xed, 0x0129}, | 5366 | {0xa0, 0xed, ZC3XX_R129_GAMMA09}, |
5353 | {0xa0, 0xf5, 0x012a}, | 5367 | {0xa0, 0xf5, ZC3XX_R12A_GAMMA0A}, |
5354 | {0xa0, 0xfc, 0x012b}, | 5368 | {0xa0, 0xfc, ZC3XX_R12B_GAMMA0B}, |
5355 | {0xa0, 0xff, 0x012c}, | 5369 | {0xa0, 0xff, ZC3XX_R12C_GAMMA0C}, |
5356 | {0xa0, 0xff, 0x012d}, | 5370 | {0xa0, 0xff, ZC3XX_R12D_GAMMA0D}, |
5357 | {0xa0, 0xff, 0x012e}, | 5371 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
5358 | {0xa0, 0xff, 0x012f}, | 5372 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
5359 | {0xa0, 0x12, 0x0130}, | 5373 | {0xa0, 0x12, ZC3XX_R130_GAMMA10}, |
5360 | {0xa0, 0x1b, 0x0131}, | 5374 | {0xa0, 0x1b, ZC3XX_R131_GAMMA11}, |
5361 | {0xa0, 0x1d, 0x0132}, | 5375 | {0xa0, 0x1d, ZC3XX_R132_GAMMA12}, |
5362 | {0xa0, 0x1a, 0x0133}, | 5376 | {0xa0, 0x1a, ZC3XX_R133_GAMMA13}, |
5363 | {0xa0, 0x15, 0x0134}, | 5377 | {0xa0, 0x15, ZC3XX_R134_GAMMA14}, |
5364 | {0xa0, 0x12, 0x0135}, | 5378 | {0xa0, 0x12, ZC3XX_R135_GAMMA15}, |
5365 | {0xa0, 0x0f, 0x0136}, | 5379 | {0xa0, 0x0f, ZC3XX_R136_GAMMA16}, |
5366 | {0xa0, 0x0d, 0x0137}, | 5380 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
5367 | {0xa0, 0x0b, 0x0138}, | 5381 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
5368 | {0xa0, 0x09, 0x0139}, | 5382 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
5369 | {0xa0, 0x07, 0x013a}, | 5383 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
5370 | {0xa0, 0x05, 0x013b}, | 5384 | {0xa0, 0x05, ZC3XX_R13B_GAMMA1B}, |
5371 | {0xa0, 0x00, 0x013c}, | 5385 | {0xa0, 0x00, ZC3XX_R13C_GAMMA1C}, |
5372 | {0xa0, 0x00, 0x013d}, | 5386 | {0xa0, 0x00, ZC3XX_R13D_GAMMA1D}, |
5373 | {0xa0, 0x00, 0x013e}, | 5387 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
5374 | {0xa0, 0x01, 0x013f}, | 5388 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
5375 | {0xa0, 0x4c, 0x010a}, /* matrix */ | 5389 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
5376 | {0xa0, 0xf1, 0x010b}, | 5390 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
5377 | {0xa0, 0x03, 0x010c}, | 5391 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
5378 | {0xa0, 0xfe, 0x010d}, | 5392 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
5379 | {0xa0, 0x51, 0x010e}, | 5393 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
5380 | {0xa0, 0xf1, 0x010f}, | 5394 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
5381 | {0xa0, 0xec, 0x0110}, | 5395 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
5382 | {0xa0, 0x03, 0x0111}, | 5396 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
5383 | {0xa0, 0x51, 0x0112}, | 5397 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
5384 | {0xa0, 0x10, 0x0180}, | 5398 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
5385 | {0xa0, 0x00, 0x0180}, | 5399 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
5386 | {0xa0, 0x00, 0x0019}, | 5400 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
5387 | {0xa0, 0x05, 0x0092}, | 5401 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
5388 | {0xa0, 0x09, 0x0093}, | 5402 | {0xa0, 0x09, ZC3XX_R093_I2CSETVALUE}, |
5389 | {0xa0, 0x00, 0x0094}, | 5403 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5390 | {0xa0, 0x01, 0x0090}, | 5404 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5391 | {0xa0, 0x09, 0x0092}, | 5405 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
5392 | {0xa0, 0x34, 0x0093}, | 5406 | {0xa0, 0x34, ZC3XX_R093_I2CSETVALUE}, |
5393 | {0xa0, 0x01, 0x0094}, | 5407 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
5394 | {0xa0, 0x01, 0x0090}, | 5408 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5395 | {0xa0, 0x00, 0x0190}, | 5409 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
5396 | {0xa0, 0x07, 0x0191}, | 5410 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
5397 | {0xa0, 0xd2, 0x0192}, | 5411 | {0xa0, 0xd2, ZC3XX_R192_EXPOSURELIMITLOW}, |
5398 | {0xa0, 0x00, 0x0195}, | 5412 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
5399 | {0xa0, 0x00, 0x0196}, | 5413 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
5400 | {0xa0, 0x9a, 0x0197}, | 5414 | {0xa0, 0x9a, ZC3XX_R197_ANTIFLICKERLOW}, |
5401 | {0xa0, 0x0e, 0x018c}, | 5415 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
5402 | {0xa0, 0x1c, 0x018f}, | 5416 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
5403 | {0xa0, 0x14, 0x01a9}, | 5417 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
5404 | {0xa0, 0x66, 0x01aa}, | 5418 | {0xa0, 0x66, ZC3XX_R1AA_DIGITALGAINSTEP}, |
5405 | {0xa0, 0xd7, 0x001d}, | 5419 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
5406 | {0xa0, 0xf4, 0x001e}, | 5420 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
5407 | {0xa0, 0xf9, 0x001f}, | 5421 | {0xa0, 0xf9, ZC3XX_R01F_HSYNC_2}, |
5408 | {0xa0, 0xff, 0x0020}, | 5422 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
5409 | {0xa0, 0x42, 0x0180}, | 5423 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
5410 | {0xa0, 0x09, 0x01ad}, | 5424 | {0xa0, 0x09, 0x01ad}, |
5411 | {0xa0, 0x15, 0x01ae}, | 5425 | {0xa0, 0x15, 0x01ae}, |
5412 | {0xa0, 0x40, 0x0180}, | 5426 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
5413 | {0xa0, 0x42, 0x0180}, | 5427 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
5414 | {} | 5428 | {} |
5415 | }; | 5429 | }; |
5416 | 5430 | ||
5417 | static const struct usb_action tas5130CK_InitialScale[] = { | 5431 | static const struct usb_action tas5130CK_InitialScale[] = { |
5418 | {0xa0, 0x01, 0x0000}, | 5432 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5419 | {0xa0, 0x01, 0x003b}, | 5433 | {0xa0, 0x01, 0x003b}, |
5420 | {0xa0, 0x0e, 0x003a}, | 5434 | {0xa0, 0x0e, 0x003a}, |
5421 | {0xa0, 0x01, 0x0038}, | 5435 | {0xa0, 0x01, 0x0038}, |
5422 | {0xa0, 0x0b, 0x0039}, | 5436 | {0xa0, 0x0b, 0x0039}, |
5423 | {0xa0, 0x00, 0x0038}, | 5437 | {0xa0, 0x00, 0x0038}, |
5424 | {0xa0, 0x0b, 0x0039}, | 5438 | {0xa0, 0x0b, 0x0039}, |
5425 | {0xa0, 0x01, 0x0000}, | 5439 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5426 | {0xa0, 0x03, 0x0008}, | 5440 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5427 | {0xa0, 0x0a, 0x0010}, | 5441 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
5428 | {0xa0, 0x00, 0x0002}, | 5442 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
5429 | {0xa0, 0x02, 0x0003}, | 5443 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
5430 | {0xa0, 0x80, 0x0004}, | 5444 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
5431 | {0xa0, 0x01, 0x0005}, | 5445 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
5432 | {0xa0, 0xe0, 0x0006}, | 5446 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
5433 | {0xa0, 0xdc, 0x008b}, | 5447 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
5434 | {0xa0, 0x01, 0x0001}, | 5448 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
5435 | {0xa0, 0x07, 0x0012}, | 5449 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5436 | {0xa0, 0x00, 0x0098}, | 5450 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
5437 | {0xa0, 0x00, 0x009a}, | 5451 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
5438 | {0xa0, 0x00, 0x011a}, | 5452 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
5439 | {0xa0, 0x00, 0x011c}, | 5453 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
5440 | {0xa0, 0xdc, 0x008b}, | 5454 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
5441 | {0xa0, 0x05, 0x0012}, | 5455 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5442 | {0xa0, 0x01, 0x0092}, | 5456 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
5443 | {0xa0, 0x01, 0x0093}, | 5457 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
5444 | {0xa0, 0x00, 0x0094}, | 5458 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5445 | {0xa0, 0x01, 0x0090}, | 5459 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5446 | {0xa0, 0x06, 0x0092}, | 5460 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
5447 | {0xa0, 0x00, 0x0093}, | 5461 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
5448 | {0xa0, 0x00, 0x0094}, | 5462 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5449 | {0xa0, 0x01, 0x0090}, | 5463 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5450 | {0xa0, 0x08, 0x0092}, | 5464 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
5451 | {0xa0, 0x83, 0x0093}, | 5465 | {0xa0, 0x83, ZC3XX_R093_I2CSETVALUE}, |
5452 | {0xa0, 0x04, 0x0094}, | 5466 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
5453 | {0xa0, 0x01, 0x0090}, | 5467 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5454 | {0xa0, 0x01, 0x0092}, | 5468 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
5455 | {0xa0, 0x04, 0x0093}, | 5469 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
5456 | {0xa0, 0x00, 0x0094}, | 5470 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5457 | {0xa0, 0x01, 0x0090}, | 5471 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5458 | {0xa0, 0x08, 0x0092}, | 5472 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
5459 | {0xa0, 0x06, 0x0093}, | 5473 | {0xa0, 0x06, ZC3XX_R093_I2CSETVALUE}, |
5460 | {0xa0, 0x00, 0x0094}, | 5474 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5461 | {0xa0, 0x01, 0x0090}, | 5475 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5462 | {0xa0, 0x02, 0x0092}, | 5476 | {0xa0, 0x02, ZC3XX_R092_I2CADDRESSSELECT}, |
5463 | {0xa0, 0x11, 0x0093}, | 5477 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
5464 | {0xa0, 0x00, 0x0094}, | 5478 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5465 | {0xa0, 0x01, 0x0090}, | 5479 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5466 | {0xa0, 0x03, 0x0092}, | 5480 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
5467 | {0xa0, 0xe5, 0x0093}, | 5481 | {0xa0, 0xe5, ZC3XX_R093_I2CSETVALUE}, |
5468 | {0xa0, 0x01, 0x0094}, | 5482 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
5469 | {0xa0, 0x01, 0x0090}, | 5483 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5470 | {0xa0, 0x04, 0x0092}, | 5484 | {0xa0, 0x04, ZC3XX_R092_I2CADDRESSSELECT}, |
5471 | {0xa0, 0x85, 0x0093}, | 5485 | {0xa0, 0x85, ZC3XX_R093_I2CSETVALUE}, |
5472 | {0xa0, 0x02, 0x0094}, | 5486 | {0xa0, 0x02, ZC3XX_R094_I2CWRITEACK}, |
5473 | {0xa0, 0x01, 0x0090}, | 5487 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5474 | {0xa0, 0x07, 0x0092}, | 5488 | {0xa0, 0x07, ZC3XX_R092_I2CADDRESSSELECT}, |
5475 | {0xa0, 0x02, 0x0093}, | 5489 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
5476 | {0xa0, 0x30, 0x0094}, | 5490 | {0xa0, 0x30, ZC3XX_R094_I2CWRITEACK}, |
5477 | {0xa0, 0x01, 0x0090}, | 5491 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5478 | {0xa0, 0x20, 0x0092}, | 5492 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
5479 | {0xa0, 0x00, 0x0093}, | 5493 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
5480 | {0xa0, 0x51, 0x0094}, | 5494 | {0xa0, 0x51, ZC3XX_R094_I2CWRITEACK}, |
5481 | {0xa0, 0x01, 0x0090}, | 5495 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5482 | {0xa0, 0x35, 0x0092}, | 5496 | {0xa0, 0x35, ZC3XX_R092_I2CADDRESSSELECT}, |
5483 | {0xa0, 0x7F, 0x0093}, | 5497 | {0xa0, 0x7F, ZC3XX_R093_I2CSETVALUE}, |
5484 | {0xa0, 0x50, 0x0094}, | 5498 | {0xa0, 0x50, ZC3XX_R094_I2CWRITEACK}, |
5485 | {0xa0, 0x01, 0x0090}, | 5499 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5486 | {0xa0, 0x30, 0x0092}, | 5500 | {0xa0, 0x30, ZC3XX_R092_I2CADDRESSSELECT}, |
5487 | {0xa0, 0x05, 0x0093}, | 5501 | {0xa0, 0x05, ZC3XX_R093_I2CSETVALUE}, |
5488 | {0xa0, 0x00, 0x0094}, | 5502 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5489 | {0xa0, 0x01, 0x0090}, | 5503 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5490 | {0xa0, 0x31, 0x0092}, | 5504 | {0xa0, 0x31, ZC3XX_R092_I2CADDRESSSELECT}, |
5491 | {0xa0, 0x00, 0x0093}, | 5505 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
5492 | {0xa0, 0x00, 0x0094}, | 5506 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5493 | {0xa0, 0x01, 0x0090}, | 5507 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5494 | {0xa0, 0x58, 0x0092}, | 5508 | {0xa0, 0x58, ZC3XX_R092_I2CADDRESSSELECT}, |
5495 | {0xa0, 0x78, 0x0093}, | 5509 | {0xa0, 0x78, ZC3XX_R093_I2CSETVALUE}, |
5496 | {0xa0, 0x00, 0x0094}, | 5510 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5497 | {0xa0, 0x01, 0x0090}, | 5511 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5498 | {0xa0, 0x62, 0x0092}, | 5512 | {0xa0, 0x62, ZC3XX_R092_I2CADDRESSSELECT}, |
5499 | {0xa0, 0x11, 0x0093}, | 5513 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
5500 | {0xa0, 0x04, 0x0094}, | 5514 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
5501 | {0xa0, 0x01, 0x0090}, | 5515 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5502 | {0xa0, 0x2B, 0x0092}, | 5516 | {0xa0, 0x2B, ZC3XX_R092_I2CADDRESSSELECT}, |
5503 | {0xa0, 0x7f, 0x0093}, | 5517 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5504 | {0xa0, 0x00, 0x0094}, | 5518 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5505 | {0xa0, 0x01, 0x0090}, | 5519 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5506 | {0xa0, 0x2C, 0x0092}, | 5520 | {0xa0, 0x2C, ZC3XX_R092_I2CADDRESSSELECT}, |
5507 | {0xa0, 0x7F, 0x0093}, | 5521 | {0xa0, 0x7F, ZC3XX_R093_I2CSETVALUE}, |
5508 | {0xa0, 0x00, 0x0094}, | 5522 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5509 | {0xa0, 0x01, 0x0090}, | 5523 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5510 | {0xa0, 0x2D, 0x0092}, | 5524 | {0xa0, 0x2D, ZC3XX_R092_I2CADDRESSSELECT}, |
5511 | {0xa0, 0x7f, 0x0093}, | 5525 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5512 | {0xa0, 0x00, 0x0094}, | 5526 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5513 | {0xa0, 0x01, 0x0090}, | 5527 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5514 | {0xa0, 0x2e, 0x0092}, | 5528 | {0xa0, 0x2e, ZC3XX_R092_I2CADDRESSSELECT}, |
5515 | {0xa0, 0x7f, 0x0093}, | 5529 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
5516 | {0xa0, 0x00, 0x0094}, | 5530 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5517 | {0xa0, 0x01, 0x0090}, | 5531 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5518 | {0xa0, 0x10, 0x0087}, | 5532 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
5519 | {0xa0, 0xb7, 0x0101}, | 5533 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
5520 | {0xa0, 0x05, 0x0012}, | 5534 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5521 | {0xa0, 0x0d, 0x0100}, | 5535 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
5522 | {0xa0, 0x06, 0x0189}, | 5536 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
5523 | {0xa0, 0x09, 0x01ad}, | 5537 | {0xa0, 0x09, 0x01ad}, |
5524 | {0xa0, 0x03, 0x01c5}, | 5538 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
5525 | {0xa0, 0x13, 0x01cb}, | 5539 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
5526 | {0xa0, 0x08, 0x0250}, | 5540 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
5527 | {0xa0, 0x08, 0x0301}, | 5541 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
5528 | {0xa0, 0x60, 0x01a8}, | 5542 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
5529 | {0xa0, 0x6c, 0x018d}, | 5543 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
5530 | {0xa0, 0x61, 0x0116}, | 5544 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
5531 | {0xa0, 0x65, 0x0118}, | 5545 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
5532 | {0xa0, 0x09, 0x01ad}, | 5546 | {0xa0, 0x09, 0x01ad}, |
5533 | {0xa0, 0x15, 0x01ae}, | 5547 | {0xa0, 0x15, 0x01ae}, |
5534 | {0xa0, 0x4c, 0x010a}, /* matrix */ | 5548 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
5535 | {0xa0, 0xf1, 0x010b}, | 5549 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
5536 | {0xa0, 0x03, 0x010c}, | 5550 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
5537 | {0xa0, 0xfe, 0x010d}, | 5551 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
5538 | {0xa0, 0x51, 0x010e}, | 5552 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
5539 | {0xa0, 0xf1, 0x010f}, | 5553 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
5540 | {0xa0, 0xec, 0x0110}, | 5554 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
5541 | {0xa0, 0x03, 0x0111}, | 5555 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
5542 | {0xa0, 0x51, 0x0112}, | 5556 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
5543 | {0xa0, 0x03, 0x0008}, | 5557 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5544 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 5558 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
5545 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 5559 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
5546 | {0xa0, 0x38, 0x0120}, /* gamma > 5 */ | 5560 | {0xa0, 0x38, ZC3XX_R120_GAMMA00}, /* gamma > 5 */ |
5547 | {0xa0, 0x51, 0x0121}, | 5561 | {0xa0, 0x51, ZC3XX_R121_GAMMA01}, |
5548 | {0xa0, 0x6e, 0x0122}, | 5562 | {0xa0, 0x6e, ZC3XX_R122_GAMMA02}, |
5549 | {0xa0, 0x8c, 0x0123}, | 5563 | {0xa0, 0x8c, ZC3XX_R123_GAMMA03}, |
5550 | {0xa0, 0xa2, 0x0124}, | 5564 | {0xa0, 0xa2, ZC3XX_R124_GAMMA04}, |
5551 | {0xa0, 0xb6, 0x0125}, | 5565 | {0xa0, 0xb6, ZC3XX_R125_GAMMA05}, |
5552 | {0xa0, 0xc8, 0x0126}, | 5566 | {0xa0, 0xc8, ZC3XX_R126_GAMMA06}, |
5553 | {0xa0, 0xd6, 0x0127}, | 5567 | {0xa0, 0xd6, ZC3XX_R127_GAMMA07}, |
5554 | {0xa0, 0xe2, 0x0128}, | 5568 | {0xa0, 0xe2, ZC3XX_R128_GAMMA08}, |
5555 | {0xa0, 0xed, 0x0129}, | 5569 | {0xa0, 0xed, ZC3XX_R129_GAMMA09}, |
5556 | {0xa0, 0xf5, 0x012a}, | 5570 | {0xa0, 0xf5, ZC3XX_R12A_GAMMA0A}, |
5557 | {0xa0, 0xfc, 0x012b}, | 5571 | {0xa0, 0xfc, ZC3XX_R12B_GAMMA0B}, |
5558 | {0xa0, 0xff, 0x012c}, | 5572 | {0xa0, 0xff, ZC3XX_R12C_GAMMA0C}, |
5559 | {0xa0, 0xff, 0x012d}, | 5573 | {0xa0, 0xff, ZC3XX_R12D_GAMMA0D}, |
5560 | {0xa0, 0xff, 0x012e}, | 5574 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
5561 | {0xa0, 0xff, 0x012f}, | 5575 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
5562 | {0xa0, 0x12, 0x0130}, | 5576 | {0xa0, 0x12, ZC3XX_R130_GAMMA10}, |
5563 | {0xa0, 0x1b, 0x0131}, | 5577 | {0xa0, 0x1b, ZC3XX_R131_GAMMA11}, |
5564 | {0xa0, 0x1d, 0x0132}, | 5578 | {0xa0, 0x1d, ZC3XX_R132_GAMMA12}, |
5565 | {0xa0, 0x1a, 0x0133}, | 5579 | {0xa0, 0x1a, ZC3XX_R133_GAMMA13}, |
5566 | {0xa0, 0x15, 0x0134}, | 5580 | {0xa0, 0x15, ZC3XX_R134_GAMMA14}, |
5567 | {0xa0, 0x12, 0x0135}, | 5581 | {0xa0, 0x12, ZC3XX_R135_GAMMA15}, |
5568 | {0xa0, 0x0f, 0x0136}, | 5582 | {0xa0, 0x0f, ZC3XX_R136_GAMMA16}, |
5569 | {0xa0, 0x0d, 0x0137}, | 5583 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
5570 | {0xa0, 0x0b, 0x0138}, | 5584 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
5571 | {0xa0, 0x09, 0x0139}, | 5585 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
5572 | {0xa0, 0x07, 0x013a}, | 5586 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
5573 | {0xa0, 0x05, 0x013b}, | 5587 | {0xa0, 0x05, ZC3XX_R13B_GAMMA1B}, |
5574 | {0xa0, 0x00, 0x013c}, | 5588 | {0xa0, 0x00, ZC3XX_R13C_GAMMA1C}, |
5575 | {0xa0, 0x00, 0x013d}, | 5589 | {0xa0, 0x00, ZC3XX_R13D_GAMMA1D}, |
5576 | {0xa0, 0x00, 0x013e}, | 5590 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
5577 | {0xa0, 0x01, 0x013f}, | 5591 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
5578 | {0xa0, 0x4c, 0x010a}, /* matrix */ | 5592 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
5579 | {0xa0, 0xf1, 0x010b}, | 5593 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
5580 | {0xa0, 0x03, 0x010c}, | 5594 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
5581 | {0xa0, 0xfe, 0x010d}, | 5595 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
5582 | {0xa0, 0x51, 0x010e}, | 5596 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
5583 | {0xa0, 0xf1, 0x010f}, | 5597 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
5584 | {0xa0, 0xec, 0x0110}, | 5598 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
5585 | {0xa0, 0x03, 0x0111}, | 5599 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
5586 | {0xa0, 0x51, 0x0112}, | 5600 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
5587 | {0xa0, 0x10, 0x0180}, | 5601 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
5588 | {0xa0, 0x00, 0x0180}, | 5602 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
5589 | {0xa0, 0x00, 0x0019}, | 5603 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
5590 | {0xa0, 0x05, 0x0092}, | 5604 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
5591 | {0xa0, 0x62, 0x0093}, | 5605 | {0xa0, 0x62, ZC3XX_R093_I2CSETVALUE}, |
5592 | {0xa0, 0x00, 0x0094}, | 5606 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
5593 | {0xa0, 0x01, 0x0090}, | 5607 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5594 | {0xa0, 0x09, 0x0092}, | 5608 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
5595 | {0xa0, 0xaa, 0x0093}, | 5609 | {0xa0, 0xaa, ZC3XX_R093_I2CSETVALUE}, |
5596 | {0xa0, 0x01, 0x0094}, | 5610 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
5597 | {0xa0, 0x01, 0x0090}, | 5611 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
5598 | {0xa0, 0x00, 0x0190}, | 5612 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
5599 | {0xa0, 0x03, 0x0191}, | 5613 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, |
5600 | {0xa0, 0x9b, 0x0192}, | 5614 | {0xa0, 0x9b, ZC3XX_R192_EXPOSURELIMITLOW}, |
5601 | {0xa0, 0x00, 0x0195}, | 5615 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
5602 | {0xa0, 0x00, 0x0196}, | 5616 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
5603 | {0xa0, 0x47, 0x0197}, | 5617 | {0xa0, 0x47, ZC3XX_R197_ANTIFLICKERLOW}, |
5604 | {0xa0, 0x0e, 0x018c}, | 5618 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
5605 | {0xa0, 0x1c, 0x018f}, | 5619 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
5606 | {0xa0, 0x14, 0x01a9}, | 5620 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
5607 | {0xa0, 0x66, 0x01aa}, | 5621 | {0xa0, 0x66, ZC3XX_R1AA_DIGITALGAINSTEP}, |
5608 | {0xa0, 0x62, 0x001d}, | 5622 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, |
5609 | {0xa0, 0x90, 0x001e}, | 5623 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, |
5610 | {0xa0, 0xc8, 0x001f}, | 5624 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, |
5611 | {0xa0, 0xff, 0x0020}, | 5625 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
5612 | {0xa0, 0x60, 0x011d}, | 5626 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
5613 | {0xa0, 0x42, 0x0180}, | 5627 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
5614 | {0xa0, 0x09, 0x01ad}, | 5628 | {0xa0, 0x09, 0x01ad}, |
5615 | {0xa0, 0x15, 0x01ae}, | 5629 | {0xa0, 0x15, 0x01ae}, |
5616 | {0xa0, 0x40, 0x0180}, | 5630 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
5617 | {0xa0, 0x42, 0x0180}, | 5631 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
5618 | {0xa0, 0x30, 0x0007}, | 5632 | {0xa0, 0x30, 0x0007}, |
5619 | {0xa0, 0x02, 0x0008}, | 5633 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, |
5620 | {0xa0, 0x00, 0x0007}, | 5634 | {0xa0, 0x00, 0x0007}, |
5621 | {0xa0, 0x03, 0x0008}, | 5635 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5622 | {} | 5636 | {} |
5623 | }; | 5637 | }; |
5624 | 5638 | ||
5625 | static const struct usb_action tas5130cxx_Initial[] = { | 5639 | static const struct usb_action tas5130cxx_Initial[] = { |
5626 | {0xa0, 0x01, 0x0000}, | 5640 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5627 | {0xa0, 0x50, 0x0002}, | 5641 | {0xa0, 0x50, ZC3XX_R002_CLOCKSELECT}, |
5628 | {0xa0, 0x03, 0x0008}, | 5642 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5629 | {0xa0, 0x02, 0x0010}, | 5643 | {0xa0, 0x02, ZC3XX_R010_CMOSSENSORSELECT}, |
5630 | {0xa0, 0x01, 0x0001}, | 5644 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
5631 | {0xa0, 0x00, 0x0001}, | 5645 | {0xa0, 0x00, ZC3XX_R001_SYSTEMOPERATING}, |
5632 | {0xa0, 0x01, 0x0012}, | 5646 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5633 | {0xa0, 0x01, 0x0001}, | 5647 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
5634 | {0xa0, 0x05, 0x0012}, | 5648 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5635 | {0xa0, 0x07, 0x00a5}, | 5649 | {0xa0, 0x07, ZC3XX_R0A5_EXPOSUREGAIN}, |
5636 | {0xa0, 0x02, 0x00a6}, | 5650 | {0xa0, 0x02, ZC3XX_R0A6_EXPOSUREBLACKLVL}, |
5637 | 5651 | ||
5638 | {0xa0, 0x02, 0x0003}, | 5652 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
5639 | {0xa0, 0x80, 0x0004}, | 5653 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
5640 | {0xa0, 0x01, 0x0005}, | 5654 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
5641 | {0xa0, 0xe0, 0x0006}, | 5655 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
5642 | 5656 | ||
5643 | {0xa0, 0x04, 0x0098}, | 5657 | {0xa0, 0x04, ZC3XX_R098_WINYSTARTLOW}, |
5644 | {0xa0, 0x0f, 0x009a}, | 5658 | {0xa0, 0x0f, ZC3XX_R09A_WINXSTARTLOW}, |
5645 | {0xa0, 0x04, 0x011a}, | 5659 | {0xa0, 0x04, ZC3XX_R11A_FIRSTYLOW}, |
5646 | {0xa0, 0x0f, 0x011c}, | 5660 | {0xa0, 0x0f, ZC3XX_R11C_FIRSTXLOW}, |
5647 | {0xa0, 0xe8, 0x009c}, | 5661 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
5648 | {0xa0, 0x02, 0x009d}, | 5662 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
5649 | {0xa0, 0x88, 0x009e}, | 5663 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
5650 | {0xa0, 0x06, 0x008d}, | 5664 | {0xa0, 0x06, ZC3XX_R08D_COMPABILITYMODE}, |
5651 | {0xa0, 0xf7, 0x0101}, | 5665 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
5652 | {0xa0, 0x0d, 0x0100}, | 5666 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
5653 | {0xa0, 0x06, 0x0189}, | 5667 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
5654 | {0xa0, 0x68, 0x018d}, | 5668 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
5655 | {0xa0, 0x60, 0x01a8}, | 5669 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
5656 | {0xa0, 0x00, 0x01ad}, | 5670 | {0xa0, 0x00, 0x01ad}, |
5657 | {0xa0, 0x03, 0x01c5}, | 5671 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
5658 | {0xa0, 0x13, 0x01cb}, | 5672 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
5659 | {0xa0, 0x08, 0x0250}, | 5673 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
5660 | {0xa0, 0x08, 0x0301}, | 5674 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
5661 | {0xa1, 0x01, 0x0002}, | 5675 | {0xa1, 0x01, 0x0002}, |
5662 | {0xa1, 0x01, 0x0008}, | 5676 | {0xa1, 0x01, 0x0008}, |
5663 | {0xa0, 0x03, 0x0008}, /* clock ? */ | 5677 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
5664 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 5678 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
5665 | {0xa1, 0x01, 0x01c8}, | 5679 | {0xa1, 0x01, 0x01c8}, |
5666 | {0xa1, 0x01, 0x01c9}, | 5680 | {0xa1, 0x01, 0x01c9}, |
5667 | {0xa1, 0x01, 0x01ca}, | 5681 | {0xa1, 0x01, 0x01ca}, |
5668 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 5682 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
5669 | 5683 | ||
5670 | {0xa0, 0x68, 0x010a}, /* matrix */ | 5684 | {0xa0, 0x68, ZC3XX_R10A_RGB00}, /* matrix */ |
5671 | {0xa0, 0xec, 0x010b}, | 5685 | {0xa0, 0xec, ZC3XX_R10B_RGB01}, |
5672 | {0xa0, 0xec, 0x010c}, | 5686 | {0xa0, 0xec, ZC3XX_R10C_RGB02}, |
5673 | {0xa0, 0xec, 0x010d}, | 5687 | {0xa0, 0xec, ZC3XX_R10D_RGB10}, |
5674 | {0xa0, 0x68, 0x010e}, | 5688 | {0xa0, 0x68, ZC3XX_R10E_RGB11}, |
5675 | {0xa0, 0xec, 0x010f}, | 5689 | {0xa0, 0xec, ZC3XX_R10F_RGB12}, |
5676 | {0xa0, 0xec, 0x0110}, | 5690 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
5677 | {0xa0, 0xec, 0x0111}, | 5691 | {0xa0, 0xec, ZC3XX_R111_RGB21}, |
5678 | {0xa0, 0x68, 0x0112}, | 5692 | {0xa0, 0x68, ZC3XX_R112_RGB22}, |
5679 | 5693 | ||
5680 | {0xa1, 0x01, 0x018d}, | 5694 | {0xa1, 0x01, 0x018d}, |
5681 | {0xa0, 0x90, 0x018d}, /* 90 */ | 5695 | {0xa0, 0x90, ZC3XX_R18D_YTARGET}, /* 90 */ |
5682 | {0xa1, 0x01, 0x0180}, | 5696 | {0xa1, 0x01, 0x0180}, |
5683 | {0xa0, 0x00, 0x0180}, | 5697 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
5684 | {0xa0, 0x00, 0x0019}, | 5698 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
5685 | 5699 | ||
5686 | {0xaa, 0xa3, 0x0001}, | 5700 | {0xaa, 0xa3, 0x0001}, |
5687 | {0xaa, 0xa4, 0x0077}, | 5701 | {0xaa, 0xa4, 0x0077}, |
5688 | {0xa0, 0x01, 0x00a3}, | 5702 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
5689 | {0xa0, 0x77, 0x00a4}, | 5703 | {0xa0, 0x77, ZC3XX_R0A4_EXPOSURETIMELOW}, |
5690 | 5704 | ||
5691 | {0xa0, 0x00, 0x0190}, /* 00 */ | 5705 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 00 */ |
5692 | {0xa0, 0x03, 0x0191}, /* 03 */ | 5706 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 03 */ |
5693 | {0xa0, 0xe8, 0x0192}, /* e8 */ | 5707 | {0xa0, 0xe8, ZC3XX_R192_EXPOSURELIMITLOW}, /* e8 */ |
5694 | {0xa0, 0x00, 0x0195}, /* 0 */ | 5708 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 0 */ |
5695 | {0xa0, 0x00, 0x0196}, /* 0 */ | 5709 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 0 */ |
5696 | {0xa0, 0x7d, 0x0197}, /* 7d */ | 5710 | {0xa0, 0x7d, ZC3XX_R197_ANTIFLICKERLOW}, /* 7d */ |
5697 | 5711 | ||
5698 | {0xa0, 0x0c, 0x018c}, | 5712 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, |
5699 | {0xa0, 0x18, 0x018f}, | 5713 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, |
5700 | {0xa0, 0x08, 0x01a9}, /* 08 */ | 5714 | {0xa0, 0x08, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 08 */ |
5701 | {0xa0, 0x24, 0x01aa}, /* 24 */ | 5715 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 24 */ |
5702 | {0xa0, 0xf0, 0x001d}, | 5716 | {0xa0, 0xf0, ZC3XX_R01D_HSYNC_0}, |
5703 | {0xa0, 0xf4, 0x001e}, | 5717 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
5704 | {0xa0, 0xf8, 0x001f}, | 5718 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, |
5705 | {0xa0, 0xff, 0x0020}, | 5719 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
5706 | {0xa0, 0x03, 0x009f}, | 5720 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, |
5707 | {0xa0, 0xc0, 0x00a0}, | 5721 | {0xa0, 0xc0, ZC3XX_R0A0_MAXXLOW}, |
5708 | {0xa0, 0x50, 0x011d}, /* 50 */ | 5722 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, /* 50 */ |
5709 | {0xa0, 0x40, 0x0180}, | 5723 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
5710 | {0xa1, 0x01, 0x0180}, | 5724 | {0xa1, 0x01, 0x0180}, |
5711 | {0xa0, 0x42, 0x0180}, | 5725 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
5712 | {} | 5726 | {} |
5713 | }; | 5727 | }; |
5714 | static const struct usb_action tas5130cxx_InitialScale[] = { | 5728 | static const struct usb_action tas5130cxx_InitialScale[] = { |
5715 | {0xa0, 0x01, 0x0000}, | 5729 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5716 | {0xa0, 0x01, 0x0000}, | 5730 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
5717 | {0xa0, 0x40, 0x0002}, | 5731 | {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, |
5718 | 5732 | ||
5719 | {0xa0, 0x03, 0x0008}, | 5733 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5720 | {0xa1, 0x01, 0x0008}, | 5734 | {0xa1, 0x01, 0x0008}, |
5721 | 5735 | ||
5722 | {0xa0, 0x02, 0x0010}, | 5736 | {0xa0, 0x02, ZC3XX_R010_CMOSSENSORSELECT}, |
5723 | {0xa0, 0x01, 0x0001}, | 5737 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
5724 | {0xa0, 0x00, 0x0001}, | 5738 | {0xa0, 0x00, ZC3XX_R001_SYSTEMOPERATING}, |
5725 | {0xa0, 0x01, 0x0012}, | 5739 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5726 | {0xa0, 0x01, 0x0001}, | 5740 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
5727 | {0xa0, 0x05, 0x0012}, | 5741 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
5728 | {0xa0, 0x07, 0x00a5}, | 5742 | {0xa0, 0x07, ZC3XX_R0A5_EXPOSUREGAIN}, |
5729 | {0xa0, 0x02, 0x00a6}, | 5743 | {0xa0, 0x02, ZC3XX_R0A6_EXPOSUREBLACKLVL}, |
5730 | {0xa0, 0x02, 0x0003}, | 5744 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
5731 | {0xa0, 0x80, 0x0004}, | 5745 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
5732 | {0xa0, 0x01, 0x0005}, | 5746 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
5733 | {0xa0, 0xe0, 0x0006}, | 5747 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
5734 | {0xa0, 0x05, 0x0098}, | 5748 | {0xa0, 0x05, ZC3XX_R098_WINYSTARTLOW}, |
5735 | {0xa0, 0x0f, 0x009a}, | 5749 | {0xa0, 0x0f, ZC3XX_R09A_WINXSTARTLOW}, |
5736 | {0xa0, 0x05, 0x011a}, | 5750 | {0xa0, 0x05, ZC3XX_R11A_FIRSTYLOW}, |
5737 | {0xa0, 0x0f, 0x011c}, | 5751 | {0xa0, 0x0f, ZC3XX_R11C_FIRSTXLOW}, |
5738 | {0xa0, 0xe6, 0x009c}, | 5752 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
5739 | {0xa0, 0x02, 0x009d}, | 5753 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
5740 | {0xa0, 0x86, 0x009e}, | 5754 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
5741 | {0xa0, 0x06, 0x008d}, | 5755 | {0xa0, 0x06, ZC3XX_R08D_COMPABILITYMODE}, |
5742 | {0xa0, 0x37, 0x0101}, | 5756 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
5743 | {0xa0, 0x0d, 0x0100}, | 5757 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
5744 | {0xa0, 0x06, 0x0189}, | 5758 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
5745 | {0xa0, 0x68, 0x018d}, | 5759 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
5746 | {0xa0, 0x60, 0x01a8}, | 5760 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
5747 | {0xa0, 0x00, 0x01ad}, | 5761 | {0xa0, 0x00, 0x01ad}, |
5748 | {0xa0, 0x03, 0x01c5}, | 5762 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
5749 | {0xa0, 0x13, 0x01cb}, | 5763 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
5750 | {0xa0, 0x08, 0x0250}, | 5764 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
5751 | {0xa0, 0x08, 0x0301}, | 5765 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
5752 | {0xa1, 0x01, 0x0002}, | 5766 | {0xa1, 0x01, 0x0002}, |
5753 | {0xa1, 0x01, 0x0008}, | 5767 | {0xa1, 0x01, 0x0008}, |
5754 | 5768 | ||
5755 | {0xa0, 0x03, 0x0008}, | 5769 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
5756 | {0xa1, 0x01, 0x0008}, /* clock ? */ | 5770 | {0xa1, 0x01, 0x0008}, /* clock ? */ |
5757 | {0xa0, 0x08, 0x01c6}, /* sharpness+ */ | 5771 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
5758 | {0xa1, 0x01, 0x01c8}, | 5772 | {0xa1, 0x01, 0x01c8}, |
5759 | {0xa1, 0x01, 0x01c9}, | 5773 | {0xa1, 0x01, 0x01c9}, |
5760 | {0xa1, 0x01, 0x01ca}, | 5774 | {0xa1, 0x01, 0x01ca}, |
5761 | {0xa0, 0x0f, 0x01cb}, /* sharpness- */ | 5775 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
5762 | 5776 | ||
5763 | {0xa0, 0x68, 0x010a}, /* matrix */ | 5777 | {0xa0, 0x68, ZC3XX_R10A_RGB00}, /* matrix */ |
5764 | {0xa0, 0xec, 0x010b}, | 5778 | {0xa0, 0xec, ZC3XX_R10B_RGB01}, |
5765 | {0xa0, 0xec, 0x010c}, | 5779 | {0xa0, 0xec, ZC3XX_R10C_RGB02}, |
5766 | {0xa0, 0xec, 0x010d}, | 5780 | {0xa0, 0xec, ZC3XX_R10D_RGB10}, |
5767 | {0xa0, 0x68, 0x010e}, | 5781 | {0xa0, 0x68, ZC3XX_R10E_RGB11}, |
5768 | {0xa0, 0xec, 0x010f}, | 5782 | {0xa0, 0xec, ZC3XX_R10F_RGB12}, |
5769 | {0xa0, 0xec, 0x0110}, | 5783 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
5770 | {0xa0, 0xec, 0x0111}, | 5784 | {0xa0, 0xec, ZC3XX_R111_RGB21}, |
5771 | {0xa0, 0x68, 0x0112}, | 5785 | {0xa0, 0x68, ZC3XX_R112_RGB22}, |
5772 | 5786 | ||
5773 | {0xa1, 0x01, 0x018d}, | 5787 | {0xa1, 0x01, 0x018d}, |
5774 | {0xa0, 0x90, 0x018d}, | 5788 | {0xa0, 0x90, ZC3XX_R18D_YTARGET}, |
5775 | {0xa1, 0x01, 0x0180}, | 5789 | {0xa1, 0x01, 0x0180}, |
5776 | {0xa0, 0x00, 0x0180}, | 5790 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
5777 | {0xa0, 0x00, 0x0019}, | 5791 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
5778 | {0xaa, 0xa3, 0x0001}, | 5792 | {0xaa, 0xa3, 0x0001}, |
5779 | {0xaa, 0xa4, 0x0063}, | 5793 | {0xaa, 0xa4, 0x0063}, |
5780 | {0xa0, 0x01, 0x00a3}, | 5794 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
5781 | {0xa0, 0x63, 0x00a4}, | 5795 | {0xa0, 0x63, ZC3XX_R0A4_EXPOSURETIMELOW}, |
5782 | {0xa0, 0x00, 0x0190}, | 5796 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
5783 | {0xa0, 0x02, 0x0191}, | 5797 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
5784 | {0xa0, 0x38, 0x0192}, | 5798 | {0xa0, 0x38, ZC3XX_R192_EXPOSURELIMITLOW}, |
5785 | {0xa0, 0x00, 0x0195}, | 5799 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
5786 | {0xa0, 0x00, 0x0196}, | 5800 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
5787 | {0xa0, 0x47, 0x0197}, | 5801 | {0xa0, 0x47, ZC3XX_R197_ANTIFLICKERLOW}, |
5788 | {0xa0, 0x0c, 0x018c}, | 5802 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, |
5789 | {0xa0, 0x18, 0x018f}, | 5803 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, |
5790 | {0xa0, 0x08, 0x01a9}, | 5804 | {0xa0, 0x08, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
5791 | {0xa0, 0x24, 0x01aa}, | 5805 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
5792 | {0xa0, 0xd3, 0x001d}, | 5806 | {0xa0, 0xd3, ZC3XX_R01D_HSYNC_0}, |
5793 | {0xa0, 0xda, 0x001e}, | 5807 | {0xa0, 0xda, ZC3XX_R01E_HSYNC_1}, |
5794 | {0xa0, 0xea, 0x001f}, | 5808 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, |
5795 | {0xa0, 0xff, 0x0020}, | 5809 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
5796 | {0xa0, 0x03, 0x009f}, | 5810 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, |
5797 | {0xa0, 0x4c, 0x00a0}, | 5811 | {0xa0, 0x4c, ZC3XX_R0A0_MAXXLOW}, |
5798 | {0xa0, 0x50, 0x011d}, | 5812 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, |
5799 | {0xa0, 0x40, 0x0180}, | 5813 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
5800 | {0xa1, 0x01, 0x0180}, | 5814 | {0xa1, 0x01, 0x0180}, |
5801 | {0xa0, 0x42, 0x0180}, | 5815 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
5802 | {} | 5816 | {} |
5803 | }; | 5817 | }; |
5804 | static const struct usb_action tas5130cxx_50HZ[] = { | 5818 | static const struct usb_action tas5130cxx_50HZ[] = { |
5805 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5819 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
5806 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ | 5820 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
5807 | {0xaa, 0xa4, 0x0063}, /* 00,a4,63,aa */ | 5821 | {0xaa, 0xa4, 0x0063}, /* 00,a4,63,aa */ |
5808 | {0xa0, 0x01, 0x00a3}, /* 00,a3,01,cc */ | 5822 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
5809 | {0xa0, 0x63, 0x00a4}, /* 00,a4,63,cc */ | 5823 | {0xa0, 0x63, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,63,cc */ |
5810 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5824 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
5811 | {0xa0, 0x02, 0x0191}, /* 01,91,02,cc */ | 5825 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
5812 | {0xa0, 0x38, 0x0192}, /* 01,92,38,cc */ | 5826 | {0xa0, 0x38, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,38,cc */ |
5813 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5827 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5814 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5828 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
5815 | {0xa0, 0x47, 0x0197}, /* 01,97,47,cc */ | 5829 | {0xa0, 0x47, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,47,cc */ |
5816 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 5830 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
5817 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5831 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
5818 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 5832 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
5819 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 5833 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
5820 | {0xa0, 0xd3, 0x001d}, /* 00,1d,d3,cc */ | 5834 | {0xa0, 0xd3, ZC3XX_R01D_HSYNC_0}, /* 00,1d,d3,cc */ |
5821 | {0xa0, 0xda, 0x001e}, /* 00,1e,da,cc */ | 5835 | {0xa0, 0xda, ZC3XX_R01E_HSYNC_1}, /* 00,1e,da,cc */ |
5822 | {0xa0, 0xea, 0x001f}, /* 00,1f,ea,cc */ | 5836 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ea,cc */ |
5823 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 5837 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
5824 | {0xa0, 0x03, 0x009f}, /* 00,9f,03,cc */ | 5838 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
5825 | {} | 5839 | {} |
5826 | }; | 5840 | }; |
5827 | static const struct usb_action tas5130cxx_50HZScale[] = { | 5841 | static const struct usb_action tas5130cxx_50HZScale[] = { |
5828 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5842 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
5829 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ | 5843 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
5830 | {0xaa, 0xa4, 0x0077}, /* 00,a4,77,aa */ | 5844 | {0xaa, 0xa4, 0x0077}, /* 00,a4,77,aa */ |
5831 | {0xa0, 0x01, 0x00a3}, /* 00,a3,01,cc */ | 5845 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
5832 | {0xa0, 0x77, 0x00a4}, /* 00,a4,77,cc */ | 5846 | {0xa0, 0x77, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,77,cc */ |
5833 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5847 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
5834 | {0xa0, 0x03, 0x0191}, /* 01,91,03,cc */ | 5848 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,03,cc */ |
5835 | {0xa0, 0xe8, 0x0192}, /* 01,92,e8,cc */ | 5849 | {0xa0, 0xe8, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,e8,cc */ |
5836 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5850 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5837 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5851 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
5838 | {0xa0, 0x7d, 0x0197}, /* 01,97,7d,cc */ | 5852 | {0xa0, 0x7d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7d,cc */ |
5839 | {0xa0, 0x14, 0x018c}, /* 01,8c,14,cc */ | 5853 | {0xa0, 0x14, ZC3XX_R18C_AEFREEZE}, /* 01,8c,14,cc */ |
5840 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5854 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
5841 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 5855 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
5842 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 5856 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
5843 | {0xa0, 0xf0, 0x001d}, /* 00,1d,f0,cc */ | 5857 | {0xa0, 0xf0, ZC3XX_R01D_HSYNC_0}, /* 00,1d,f0,cc */ |
5844 | {0xa0, 0xf4, 0x001e}, /* 00,1e,f4,cc */ | 5858 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,f4,cc */ |
5845 | {0xa0, 0xf8, 0x001f}, /* 00,1f,f8,cc */ | 5859 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,f8,cc */ |
5846 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 5860 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
5847 | {0xa0, 0x03, 0x009f}, /* 00,9f,03,cc */ | 5861 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
5848 | {} | 5862 | {} |
5849 | }; | 5863 | }; |
5850 | static const struct usb_action tas5130cxx_60HZ[] = { | 5864 | static const struct usb_action tas5130cxx_60HZ[] = { |
5851 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5865 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
5852 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ | 5866 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
5853 | {0xaa, 0xa4, 0x0036}, /* 00,a4,36,aa */ | 5867 | {0xaa, 0xa4, 0x0036}, /* 00,a4,36,aa */ |
5854 | {0xa0, 0x01, 0x00a3}, /* 00,a3,01,cc */ | 5868 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
5855 | {0xa0, 0x36, 0x00a4}, /* 00,a4,36,cc */ | 5869 | {0xa0, 0x36, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,36,cc */ |
5856 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5870 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
5857 | {0xa0, 0x01, 0x0191}, /* 01,91,01,cc */ | 5871 | {0xa0, 0x01, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,01,cc */ |
5858 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 5872 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
5859 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5873 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5860 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5874 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
5861 | {0xa0, 0x3e, 0x0197}, /* 01,97,3e,cc */ | 5875 | {0xa0, 0x3e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3e,cc */ |
5862 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 5876 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
5863 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5877 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
5864 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 5878 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
5865 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 5879 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
5866 | {0xa0, 0xca, 0x001d}, /* 00,1d,ca,cc */ | 5880 | {0xa0, 0xca, ZC3XX_R01D_HSYNC_0}, /* 00,1d,ca,cc */ |
5867 | {0xa0, 0xd0, 0x001e}, /* 00,1e,d0,cc */ | 5881 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
5868 | {0xa0, 0xe0, 0x001f}, /* 00,1f,e0,cc */ | 5882 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
5869 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 5883 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
5870 | {0xa0, 0x03, 0x009f}, /* 00,9f,03,cc */ | 5884 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
5871 | {} | 5885 | {} |
5872 | }; | 5886 | }; |
5873 | static const struct usb_action tas5130cxx_60HZScale[] = { | 5887 | static const struct usb_action tas5130cxx_60HZScale[] = { |
5874 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5888 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
5875 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ | 5889 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
5876 | {0xaa, 0xa4, 0x0077}, /* 00,a4,77,aa */ | 5890 | {0xaa, 0xa4, 0x0077}, /* 00,a4,77,aa */ |
5877 | {0xa0, 0x01, 0x00a3}, /* 00,a3,01,cc */ | 5891 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
5878 | {0xa0, 0x77, 0x00a4}, /* 00,a4,77,cc */ | 5892 | {0xa0, 0x77, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,77,cc */ |
5879 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5893 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
5880 | {0xa0, 0x03, 0x0191}, /* 01,91,03,cc */ | 5894 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,03,cc */ |
5881 | {0xa0, 0xe8, 0x0192}, /* 01,92,e8,cc */ | 5895 | {0xa0, 0xe8, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,e8,cc */ |
5882 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5896 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5883 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5897 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
5884 | {0xa0, 0x7d, 0x0197}, /* 01,97,7d,cc */ | 5898 | {0xa0, 0x7d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7d,cc */ |
5885 | {0xa0, 0x14, 0x018c}, /* 01,8c,14,cc */ | 5899 | {0xa0, 0x14, ZC3XX_R18C_AEFREEZE}, /* 01,8c,14,cc */ |
5886 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5900 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
5887 | {0xa0, 0x0c, 0x01a9}, /* 01,a9,0c,cc */ | 5901 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
5888 | {0xa0, 0x26, 0x01aa}, /* 01,aa,26,cc */ | 5902 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
5889 | {0xa0, 0xc8, 0x001d}, /* 00,1d,c8,cc */ | 5903 | {0xa0, 0xc8, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c8,cc */ |
5890 | {0xa0, 0xd0, 0x001e}, /* 00,1e,d0,cc */ | 5904 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
5891 | {0xa0, 0xe0, 0x001f}, /* 00,1f,e0,cc */ | 5905 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
5892 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 5906 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
5893 | {0xa0, 0x03, 0x009f}, /* 00,9f,03,cc */ | 5907 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
5894 | {} | 5908 | {} |
5895 | }; | 5909 | }; |
5896 | static const struct usb_action tas5130cxx_NoFliker[] = { | 5910 | static const struct usb_action tas5130cxx_NoFliker[] = { |
5897 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5911 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
5898 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ | 5912 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
5899 | {0xaa, 0xa4, 0x0040}, /* 00,a4,40,aa */ | 5913 | {0xaa, 0xa4, 0x0040}, /* 00,a4,40,aa */ |
5900 | {0xa0, 0x01, 0x00a3}, /* 00,a3,01,cc */ | 5914 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
5901 | {0xa0, 0x40, 0x00a4}, /* 00,a4,40,cc */ | 5915 | {0xa0, 0x40, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,40,cc */ |
5902 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5916 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
5903 | {0xa0, 0x01, 0x0191}, /* 01,91,01,cc */ | 5917 | {0xa0, 0x01, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,01,cc */ |
5904 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 5918 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
5905 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5919 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5906 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5920 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
5907 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 5921 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
5908 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 5922 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
5909 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5923 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
5910 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 5924 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
5911 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 5925 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
5912 | {0xa0, 0xbc, 0x001d}, /* 00,1d,bc,cc */ | 5926 | {0xa0, 0xbc, ZC3XX_R01D_HSYNC_0}, /* 00,1d,bc,cc */ |
5913 | {0xa0, 0xd0, 0x001e}, /* 00,1e,d0,cc */ | 5927 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
5914 | {0xa0, 0xe0, 0x001f}, /* 00,1f,e0,cc */ | 5928 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
5915 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 5929 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
5916 | {0xa0, 0x02, 0x009f}, /* 00,9f,02,cc */ | 5930 | {0xa0, 0x02, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,02,cc */ |
5917 | {} | 5931 | {} |
5918 | }; | 5932 | }; |
5919 | 5933 | ||
5920 | static const struct usb_action tas5130cxx_NoFlikerScale[] = { | 5934 | static const struct usb_action tas5130cxx_NoFlikerScale[] = { |
5921 | {0xa0, 0x00, 0x0019}, /* 00,19,00,cc */ | 5935 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
5922 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ | 5936 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
5923 | {0xaa, 0xa4, 0x0090}, /* 00,a4,90,aa */ | 5937 | {0xaa, 0xa4, 0x0090}, /* 00,a4,90,aa */ |
5924 | {0xa0, 0x01, 0x00a3}, /* 00,a3,01,cc */ | 5938 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
5925 | {0xa0, 0x90, 0x00a4}, /* 00,a4,90,cc */ | 5939 | {0xa0, 0x90, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,90,cc */ |
5926 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc */ | 5940 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
5927 | {0xa0, 0x03, 0x0191}, /* 01,91,03,cc */ | 5941 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,03,cc */ |
5928 | {0xa0, 0xf0, 0x0192}, /* 01,92,f0,cc */ | 5942 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
5929 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc */ | 5943 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
5930 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc */ | 5944 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
5931 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc */ | 5945 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
5932 | {0xa0, 0x10, 0x018c}, /* 01,8c,10,cc */ | 5946 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
5933 | {0xa0, 0x20, 0x018f}, /* 01,8f,20,cc */ | 5947 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
5934 | {0xa0, 0x00, 0x01a9}, /* 01,a9,00,cc */ | 5948 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
5935 | {0xa0, 0x00, 0x01aa}, /* 01,aa,00,cc */ | 5949 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
5936 | {0xa0, 0xbc, 0x001d}, /* 00,1d,bc,cc */ | 5950 | {0xa0, 0xbc, ZC3XX_R01D_HSYNC_0}, /* 00,1d,bc,cc */ |
5937 | {0xa0, 0xd0, 0x001e}, /* 00,1e,d0,cc */ | 5951 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
5938 | {0xa0, 0xe0, 0x001f}, /* 00,1f,e0,cc */ | 5952 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
5939 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc */ | 5953 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
5940 | {0xa0, 0x02, 0x009f}, /* 00,9f,02,cc */ | 5954 | {0xa0, 0x02, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,02,cc */ |
5941 | {} | 5955 | {} |
5942 | }; | 5956 | }; |
5943 | 5957 | ||
5944 | static const struct usb_action tas5130c_vf0250_Initial[] = { | 5958 | static const struct usb_action tas5130c_vf0250_Initial[] = { |
5945 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc, */ | 5959 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc, */ |
5946 | {0xa0, 0x02, 0x0008}, /* 00,08,02,cc, */ | 5960 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, /* 00,08,02,cc, */ |
5947 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc, */ | 5961 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc, */ |
5948 | {0xa0, 0x10, 0x0002}, /* 00,02,00,cc, 0<->10 */ | 5962 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,00,cc, |
5949 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc, */ | 5963 | * 0<->10 */ |
5950 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc, */ | 5964 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc, */ |
5951 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc, */ | 5965 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc, */ |
5952 | {0xa0, 0xe0, 0x0006}, /* 00,06,e0,cc, */ | 5966 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc, */ |
5953 | {0xa0, 0x98, 0x008b}, /* 00,8b,98,cc, */ | 5967 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc, */ |
5954 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc, */ | 5968 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ |
5955 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc, */ | 5969 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc, */ |
5956 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc, */ | 5970 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc, */ |
5957 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc, */ | 5971 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc, */ |
5958 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc, */ | 5972 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc, */ |
5959 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc, */ | 5973 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc, */ |
5960 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc, */ | 5974 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc, */ |
5961 | {0xa0, 0xe8, 0x009c}, /* 00,9c,e6,cc, 6<->8 */ | 5975 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc, */ |
5962 | {0xa0, 0x88, 0x009e}, /* 00,9e,86,cc, 6<->8 */ | 5976 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc, |
5963 | {0xa0, 0x10, 0x0087}, /* 00,87,10,cc, */ | 5977 | * 6<->8 */ |
5964 | {0xa0, 0x98, 0x008b}, /* 00,8b,98,cc, */ | 5978 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc, |
5979 | * 6<->8 */ | ||
5980 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, /* 00,87,10,cc, */ | ||
5981 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ | ||
5965 | {0xaa, 0x1b, 0x0024}, /* 00,1b,24,aa, */ | 5982 | {0xaa, 0x1b, 0x0024}, /* 00,1b,24,aa, */ |
5966 | {0xdd, 0x00, 0x0080}, /* 00,00,80,dd, */ | 5983 | {0xdd, 0x00, 0x0080}, /* 00,00,80,dd, */ |
5967 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa, */ | 5984 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa, */ |
@@ -5971,9 +5988,9 @@ static const struct usb_action tas5130c_vf0250_Initial[] = { | |||
5971 | {0xaa, 0x01, 0x0000}, | 5988 | {0xaa, 0x01, 0x0000}, |
5972 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa, */ | 5989 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa, */ |
5973 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa, */ | 5990 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa, */ |
5974 | {0xa0, 0x82, 0x0086}, /* 00,86,82,cc, */ | 5991 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc, */ |
5975 | {0xa0, 0x83, 0x0087}, /* 00,87,83,cc, */ | 5992 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc, */ |
5976 | {0xa0, 0x84, 0x0088}, /* 00,88,84,cc, */ | 5993 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc, */ |
5977 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa, */ | 5994 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa, */ |
5978 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa, */ | 5995 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa, */ |
5979 | {0xaa, 0x0b, 0x00a0}, /* 00,0b,a0,aa, */ | 5996 | {0xaa, 0x0b, 0x00a0}, /* 00,0b,a0,aa, */ |
@@ -5990,42 +6007,44 @@ static const struct usb_action tas5130c_vf0250_Initial[] = { | |||
5990 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa, */ | 6007 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa, */ |
5991 | {0xaa, 0x19, 0x0088}, /* 00,19,86,aa, */ | 6008 | {0xaa, 0x19, 0x0088}, /* 00,19,86,aa, */ |
5992 | {0xaa, 0x20, 0x0020}, /* 00,20,20,aa, */ | 6009 | {0xaa, 0x20, 0x0020}, /* 00,20,20,aa, */ |
5993 | {0xa0, 0xb7, 0x0101}, /* 01,01,b7,cc, */ | 6010 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc, */ |
5994 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc, */ | 6011 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc, */ |
5995 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc, */ | 6012 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc, */ |
5996 | {0xa0, 0x76, 0x0189}, /* 01,89,76,cc, */ | 6013 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc, */ |
5997 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc, */ | 6014 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc, */ |
5998 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc, */ | 6015 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc, */ |
5999 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc, */ | 6016 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc, */ |
6000 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc, */ | 6017 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc, */ |
6001 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc, */ | 6018 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc, */ |
6002 | {0xa0, 0x60, 0x01a8}, /* 01,a8,60,cc, */ | 6019 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc, */ |
6003 | {0xa0, 0x61, 0x0116}, /* 01,16,61,cc, */ | 6020 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, /* 01,16,61,cc, */ |
6004 | {0xa0, 0x65, 0x0118}, /* 01,18,65,cc */ | 6021 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, /* 01,18,65,cc */ |
6005 | {} | 6022 | {} |
6006 | }; | 6023 | }; |
6007 | 6024 | ||
6008 | static const struct usb_action tas5130c_vf0250_InitialScale[] = { | 6025 | static const struct usb_action tas5130c_vf0250_InitialScale[] = { |
6009 | {0xa0, 0x01, 0x0000}, /* 00,00,01,cc, */ | 6026 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc, */ |
6010 | {0xa0, 0x02, 0x0008}, /* 00,08,02,cc, */ | 6027 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, /* 00,08,02,cc, */ |
6011 | {0xa0, 0x01, 0x0010}, /* 00,10,01,cc, */ | 6028 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc, */ |
6012 | {0xa0, 0x00, 0x0002}, /* 00,02,10,cc, */ | 6029 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc, */ |
6013 | {0xa0, 0x02, 0x0003}, /* 00,03,02,cc, */ | 6030 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc, */ |
6014 | {0xa0, 0x80, 0x0004}, /* 00,04,80,cc, */ | 6031 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc, */ |
6015 | {0xa0, 0x01, 0x0005}, /* 00,05,01,cc, */ | 6032 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc, */ |
6016 | {0xa0, 0xe0, 0x0006}, /* 00,06,e0,cc, */ | 6033 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc, */ |
6017 | {0xa0, 0x98, 0x008b}, /* 00,8b,98,cc, */ | 6034 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ |
6018 | {0xa0, 0x01, 0x0001}, /* 00,01,01,cc, */ | 6035 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc, */ |
6019 | {0xa0, 0x03, 0x0012}, /* 00,12,03,cc, */ | 6036 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc, */ |
6020 | {0xa0, 0x01, 0x0012}, /* 00,12,01,cc, */ | 6037 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc, */ |
6021 | {0xa0, 0x00, 0x0098}, /* 00,98,00,cc, */ | 6038 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc, */ |
6022 | {0xa0, 0x00, 0x009a}, /* 00,9a,00,cc, */ | 6039 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc, */ |
6023 | {0xa0, 0x00, 0x011a}, /* 01,1a,00,cc, */ | 6040 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc, */ |
6024 | {0xa0, 0x00, 0x011c}, /* 01,1c,00,cc, */ | 6041 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc, */ |
6025 | {0xa0, 0xe8, 0x009c}, /* 00,9c,e8,cc, 8<->6 */ | 6042 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e8,cc, |
6026 | {0xa0, 0x88, 0x009e}, /* 00,9e,88,cc, 8<->6 */ | 6043 | * 8<->6 */ |
6027 | {0xa0, 0x10, 0x0087}, /* 00,87,10,cc, */ | 6044 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc, |
6028 | {0xa0, 0x98, 0x008b}, /* 00,8b,98,cc, */ | 6045 | * 8<->6 */ |
6046 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, /* 00,87,10,cc, */ | ||
6047 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ | ||
6029 | {0xaa, 0x1b, 0x0024}, /* 00,1b,24,aa, */ | 6048 | {0xaa, 0x1b, 0x0024}, /* 00,1b,24,aa, */ |
6030 | {0xdd, 0x00, 0x0080}, /* 00,00,80,dd, */ | 6049 | {0xdd, 0x00, 0x0080}, /* 00,00,80,dd, */ |
6031 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa, */ | 6050 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa, */ |
@@ -6035,9 +6054,9 @@ static const struct usb_action tas5130c_vf0250_InitialScale[] = { | |||
6035 | {0xaa, 0x01, 0x0000}, | 6054 | {0xaa, 0x01, 0x0000}, |
6036 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa, */ | 6055 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa, */ |
6037 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa, */ | 6056 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa, */ |
6038 | {0xa0, 0x82, 0x0086}, /* 00,86,82,cc, */ | 6057 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc, */ |
6039 | {0xa0, 0x83, 0x0087}, /* 00,87,83,cc, */ | 6058 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc, */ |
6040 | {0xa0, 0x84, 0x0088}, /* 00,88,84,cc, */ | 6059 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc, */ |
6041 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa, */ | 6060 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa, */ |
6042 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa, */ | 6061 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa, */ |
6043 | {0xaa, 0x0b, 0x00a0}, /* 00,0b,a0,aa, */ | 6062 | {0xaa, 0x0b, 0x00a0}, /* 00,0b,a0,aa, */ |
@@ -6054,18 +6073,18 @@ static const struct usb_action tas5130c_vf0250_InitialScale[] = { | |||
6054 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa, */ | 6073 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa, */ |
6055 | {0xaa, 0x19, 0x0088}, /* 00,19,88,aa, */ | 6074 | {0xaa, 0x19, 0x0088}, /* 00,19,88,aa, */ |
6056 | {0xaa, 0x20, 0x0020}, /* 00,20,20,aa, */ | 6075 | {0xaa, 0x20, 0x0020}, /* 00,20,20,aa, */ |
6057 | {0xa0, 0xb7, 0x0101}, /* 01,01,b7,cc, */ | 6076 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc, */ |
6058 | {0xa0, 0x05, 0x0012}, /* 00,12,05,cc, */ | 6077 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc, */ |
6059 | {0xa0, 0x0d, 0x0100}, /* 01,00,0d,cc, */ | 6078 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc, */ |
6060 | {0xa0, 0x76, 0x0189}, /* 01,89,76,cc, */ | 6079 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc, */ |
6061 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc, */ | 6080 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc, */ |
6062 | {0xa0, 0x03, 0x01c5}, /* 01,c5,03,cc, */ | 6081 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc, */ |
6063 | {0xa0, 0x13, 0x01cb}, /* 01,cb,13,cc, */ | 6082 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc, */ |
6064 | {0xa0, 0x08, 0x0250}, /* 02,50,08,cc, */ | 6083 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc, */ |
6065 | {0xa0, 0x08, 0x0301}, /* 03,01,08,cc, */ | 6084 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc, */ |
6066 | {0xa0, 0x60, 0x01a8}, /* 01,a8,60,cc, */ | 6085 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc, */ |
6067 | {0xa0, 0x61, 0x0116}, /* 01,16,61,cc, */ | 6086 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, /* 01,16,61,cc, */ |
6068 | {0xa0, 0x65, 0x0118}, /* 01,18,65,cc */ | 6087 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, /* 01,18,65,cc */ |
6069 | {} | 6088 | {} |
6070 | }; | 6089 | }; |
6071 | /* "50HZ" light frequency banding filter */ | 6090 | /* "50HZ" light frequency banding filter */ |
@@ -6073,23 +6092,23 @@ static const struct usb_action tas5130c_vf0250_50HZ[] = { | |||
6073 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 6092 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
6074 | {0xaa, 0x83, 0x0001}, /* 00,83,01,aa */ | 6093 | {0xaa, 0x83, 0x0001}, /* 00,83,01,aa */ |
6075 | {0xaa, 0x84, 0x00aa}, /* 00,84,aa,aa */ | 6094 | {0xaa, 0x84, 0x00aa}, /* 00,84,aa,aa */ |
6076 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc, */ | 6095 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
6077 | {0xa0, 0x06, 0x0191}, /* 01,91,0d,cc, */ | 6096 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0d,cc, */ |
6078 | {0xa0, 0xa8, 0x0192}, /* 01,92,50,cc, */ | 6097 | {0xa0, 0xa8, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,50,cc, */ |
6079 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc, */ | 6098 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
6080 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc, */ | 6099 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
6081 | {0xa0, 0x8e, 0x0197}, /* 01,97,47,cc, */ | 6100 | {0xa0, 0x8e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,47,cc, */ |
6082 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc, */ | 6101 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
6083 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc, */ | 6102 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
6084 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc, */ | 6103 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc, */ |
6085 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc, */ | 6104 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc, */ |
6086 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc, */ | 6105 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
6087 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc, */ | 6106 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
6088 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc, */ | 6107 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
6089 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc, */ | 6108 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
6090 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc, */ | 6109 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
6091 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc, */ | 6110 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
6092 | {0xa0, 0x78, 0x018d}, /* 01,8d,78,cc */ | 6111 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,8d,78,cc */ |
6093 | {} | 6112 | {} |
6094 | }; | 6113 | }; |
6095 | 6114 | ||
@@ -6098,23 +6117,23 @@ static const struct usb_action tas5130c_vf0250_50HZScale[] = { | |||
6098 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 6117 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
6099 | {0xaa, 0x83, 0x0003}, /* 00,83,03,aa */ | 6118 | {0xaa, 0x83, 0x0003}, /* 00,83,03,aa */ |
6100 | {0xaa, 0x84, 0x0054}, /* 00,84,54,aa */ | 6119 | {0xaa, 0x84, 0x0054}, /* 00,84,54,aa */ |
6101 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc, */ | 6120 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
6102 | {0xa0, 0x0d, 0x0191}, /* 01,91,0d,cc, */ | 6121 | {0xa0, 0x0d, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0d,cc, */ |
6103 | {0xa0, 0x50, 0x0192}, /* 01,92,50,cc, */ | 6122 | {0xa0, 0x50, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,50,cc, */ |
6104 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc, */ | 6123 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
6105 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc, */ | 6124 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
6106 | {0xa0, 0x8e, 0x0197}, /* 01,97,8e,cc, */ | 6125 | {0xa0, 0x8e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,8e,cc, */ |
6107 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc, */ | 6126 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
6108 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc, */ | 6127 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
6109 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc, */ | 6128 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc, */ |
6110 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc, */ | 6129 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc, */ |
6111 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc, */ | 6130 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
6112 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc, */ | 6131 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
6113 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc, */ | 6132 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
6114 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc, */ | 6133 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
6115 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc, */ | 6134 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
6116 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc, */ | 6135 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
6117 | {0xa0, 0x78, 0x018d}, /* 01,8d,78,cc */ | 6136 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,8d,78,cc */ |
6118 | {} | 6137 | {} |
6119 | }; | 6138 | }; |
6120 | 6139 | ||
@@ -6123,23 +6142,23 @@ static const struct usb_action tas5130c_vf0250_60HZ[] = { | |||
6123 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 6142 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
6124 | {0xaa, 0x83, 0x0001}, /* 00,83,01,aa */ | 6143 | {0xaa, 0x83, 0x0001}, /* 00,83,01,aa */ |
6125 | {0xaa, 0x84, 0x0062}, /* 00,84,62,aa */ | 6144 | {0xaa, 0x84, 0x0062}, /* 00,84,62,aa */ |
6126 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc, */ | 6145 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
6127 | {0xa0, 0x05, 0x0191}, /* 01,91,05,cc, */ | 6146 | {0xa0, 0x05, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,05,cc, */ |
6128 | {0xa0, 0x88, 0x0192}, /* 01,92,88,cc, */ | 6147 | {0xa0, 0x88, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,88,cc, */ |
6129 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc, */ | 6148 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
6130 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc, */ | 6149 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
6131 | {0xa0, 0x3b, 0x0197}, /* 01,97,3b,cc, */ | 6150 | {0xa0, 0x3b, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3b,cc, */ |
6132 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc, */ | 6151 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
6133 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc, */ | 6152 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
6134 | {0xa0, 0x10, 0x01a9}, /* 01,a9,10,cc, */ | 6153 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc, */ |
6135 | {0xa0, 0x24, 0x01aa}, /* 01,aa,24,cc, */ | 6154 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc, */ |
6136 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc, */ | 6155 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
6137 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc, */ | 6156 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
6138 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc, */ | 6157 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
6139 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc, */ | 6158 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
6140 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc, */ | 6159 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
6141 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc, */ | 6160 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
6142 | {0xa0, 0x78, 0x018d}, /* 01,8d,78,cc */ | 6161 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,8d,78,cc */ |
6143 | {} | 6162 | {} |
6144 | }; | 6163 | }; |
6145 | 6164 | ||
@@ -6148,69 +6167,69 @@ static const struct usb_action tas5130c_vf0250_60HZScale[] = { | |||
6148 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 6167 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
6149 | {0xaa, 0x83, 0x0002}, /* 00,83,02,aa */ | 6168 | {0xaa, 0x83, 0x0002}, /* 00,83,02,aa */ |
6150 | {0xaa, 0x84, 0x00c4}, /* 00,84,c4,aa */ | 6169 | {0xaa, 0x84, 0x00c4}, /* 00,84,c4,aa */ |
6151 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc, */ | 6170 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
6152 | {0xa0, 0x0b, 0x0191}, /* 01,1,0b,cc, */ | 6171 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,1,0b,cc, */ |
6153 | {0xa0, 0x10, 0x0192}, /* 01,2,10,cc, */ | 6172 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,2,10,cc, */ |
6154 | {0xa0, 0x00, 0x0195}, /* 01,5,00,cc, */ | 6173 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,5,00,cc, */ |
6155 | {0xa0, 0x00, 0x0196}, /* 01,6,00,cc, */ | 6174 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,6,00,cc, */ |
6156 | {0xa0, 0x76, 0x0197}, /* 01,7,76,cc, */ | 6175 | {0xa0, 0x76, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,7,76,cc, */ |
6157 | {0xa0, 0x0e, 0x018c}, /* 01,c,0e,cc, */ | 6176 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,c,0e,cc, */ |
6158 | {0xa0, 0x15, 0x018f}, /* 01,f,15,cc, */ | 6177 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,f,15,cc, */ |
6159 | {0xa0, 0x10, 0x01a9}, /* 01,9,10,cc, */ | 6178 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,9,10,cc, */ |
6160 | {0xa0, 0x24, 0x01aa}, /* 01,a,24,cc, */ | 6179 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,a,24,cc, */ |
6161 | {0xa0, 0x62, 0x001d}, /* 00,d,62,cc, */ | 6180 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,d,62,cc, */ |
6162 | {0xa0, 0x90, 0x001e}, /* 00,e,90,cc, */ | 6181 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,e,90,cc, */ |
6163 | {0xa0, 0xc8, 0x001f}, /* 00,f,c8,cc, */ | 6182 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,f,c8,cc, */ |
6164 | {0xa0, 0xff, 0x0020}, /* 00,0,ff,cc, */ | 6183 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,0,ff,cc, */ |
6165 | {0xa0, 0x58, 0x011d}, /* 01,d,58,cc, */ | 6184 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,d,58,cc, */ |
6166 | {0xa0, 0x42, 0x0180}, /* 01,80,42,cc, */ | 6185 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
6167 | {0xa0, 0x78, 0x018d}, /* 01,d,78,cc */ | 6186 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,d,78,cc */ |
6168 | {} | 6187 | {} |
6169 | }; | 6188 | }; |
6170 | 6189 | ||
6171 | /* "NoFliker" light frequency banding flter */ | 6190 | /* "NoFliker" light frequency banding flter */ |
6172 | static const struct usb_action tas5130c_vf0250_NoFliker[] = { | 6191 | static const struct usb_action tas5130c_vf0250_NoFliker[] = { |
6173 | {0xa0, 0x0c, 0x0100}, /* 01,00,0c,cc, */ | 6192 | {0xa0, 0x0c, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0c,cc, */ |
6174 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 6193 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
6175 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ | 6194 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
6176 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ | 6195 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ |
6177 | {0xa0, 0x00, 0x0190}, /* 01,0,00,cc, */ | 6196 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,0,00,cc, */ |
6178 | {0xa0, 0x05, 0x0191}, /* 01,91,05,cc, */ | 6197 | {0xa0, 0x05, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,05,cc, */ |
6179 | {0xa0, 0x88, 0x0192}, /* 01,92,88,cc, */ | 6198 | {0xa0, 0x88, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,88,cc, */ |
6180 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc, */ | 6199 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
6181 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc, */ | 6200 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
6182 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc, */ | 6201 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc, */ |
6183 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc, */ | 6202 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
6184 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc, */ | 6203 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
6185 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc, */ | 6204 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
6186 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc, */ | 6205 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
6187 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc, */ | 6206 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
6188 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc, */ | 6207 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
6189 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc, */ | 6208 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
6190 | {0xa0, 0x03, 0x0180}, /* 01,80,03,cc */ | 6209 | {0xa0, 0x03, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,03,cc */ |
6191 | {} | 6210 | {} |
6192 | }; | 6211 | }; |
6193 | 6212 | ||
6194 | /* "NoFlikerScale" light frequency banding filter */ | 6213 | /* "NoFlikerScale" light frequency banding filter */ |
6195 | static const struct usb_action tas5130c_vf0250_NoFlikerScale[] = { | 6214 | static const struct usb_action tas5130c_vf0250_NoFlikerScale[] = { |
6196 | {0xa0, 0x0c, 0x0100}, /* 01,00,0c,cc, */ | 6215 | {0xa0, 0x0c, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0c,cc, */ |
6197 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ | 6216 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
6198 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ | 6217 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
6199 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ | 6218 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ |
6200 | {0xa0, 0x00, 0x0190}, /* 01,90,00,cc, */ | 6219 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
6201 | {0xa0, 0x0b, 0x0191}, /* 01,91,0b,cc, */ | 6220 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0b,cc, */ |
6202 | {0xa0, 0x10, 0x0192}, /* 01,92,10,cc, */ | 6221 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,10,cc, */ |
6203 | {0xa0, 0x00, 0x0195}, /* 01,95,00,cc, */ | 6222 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
6204 | {0xa0, 0x00, 0x0196}, /* 01,96,00,cc, */ | 6223 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
6205 | {0xa0, 0x10, 0x0197}, /* 01,97,10,cc, */ | 6224 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc, */ |
6206 | {0xa0, 0x0e, 0x018c}, /* 01,8c,0e,cc, */ | 6225 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
6207 | {0xa0, 0x15, 0x018f}, /* 01,8f,15,cc, */ | 6226 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
6208 | {0xa0, 0x62, 0x001d}, /* 00,1d,62,cc, */ | 6227 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
6209 | {0xa0, 0x90, 0x001e}, /* 00,1e,90,cc, */ | 6228 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
6210 | {0xa0, 0xc8, 0x001f}, /* 00,1f,c8,cc, */ | 6229 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
6211 | {0xa0, 0xff, 0x0020}, /* 00,20,ff,cc, */ | 6230 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
6212 | {0xa0, 0x58, 0x011d}, /* 01,1d,58,cc, */ | 6231 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
6213 | {0xa0, 0x03, 0x0180}, /* 01,80,03,cc */ | 6232 | {0xa0, 0x03, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,03,cc */ |
6214 | {} | 6233 | {} |
6215 | }; | 6234 | }; |
6216 | 6235 | ||