Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1 | /* |
| 2 | * Z-Star/Vimicro zc301/zc302p/vc30x library |
| 3 | * Copyright (C) 2004 2005 2006 Michel Xhaard |
| 4 | * mxhaard@magic.fr |
| 5 | * |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6 | * V4L2 by Jean-Francois Moine <http://moinejf.free.fr> |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 21 | */ |
| 22 | |
| 23 | #define MODULE_NAME "zc3xx" |
| 24 | |
| 25 | #include "gspca.h" |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 26 | #include "jpeg.h" |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 27 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 28 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>, " |
| 29 | "Serge A. Suchkov <Serge.A.S@tochka.ru>"); |
| 30 | MODULE_DESCRIPTION("GSPCA ZC03xx/VC3xx USB Camera Driver"); |
| 31 | MODULE_LICENSE("GPL"); |
| 32 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 33 | static int force_sensor = -1; |
| 34 | |
Jean-Francois Moine | 36e819d | 2009-01-07 16:49:57 -0300 | [diff] [blame] | 35 | #define QUANT_VAL 1 /* quantization table */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 36 | #include "zc3xx-reg.h" |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 37 | |
| 38 | /* specific webcam descriptor */ |
| 39 | struct sd { |
| 40 | struct gspca_dev gspca_dev; /* !! must be the first item */ |
| 41 | |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 42 | __u8 brightness; |
| 43 | __u8 contrast; |
| 44 | __u8 gamma; |
| 45 | __u8 autogain; |
| 46 | __u8 lightfreq; |
| 47 | __u8 sharpness; |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 48 | u8 quality; /* image quality */ |
Jean-Francois Moine | 77ac0ba | 2009-03-02 06:40:52 -0300 | [diff] [blame] | 49 | #define QUALITY_MIN 40 |
| 50 | #define QUALITY_MAX 60 |
| 51 | #define QUALITY_DEF 50 |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 52 | |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 53 | signed char sensor; /* Type of image sensor chip */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 54 | /* !! values used in different tables */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 55 | #define SENSOR_ADCM2700 0 |
| 56 | #define SENSOR_CS2102 1 |
| 57 | #define SENSOR_CS2102K 2 |
| 58 | #define SENSOR_GC0305 3 |
| 59 | #define SENSOR_HDCS2020b 4 |
| 60 | #define SENSOR_HV7131B 5 |
| 61 | #define SENSOR_HV7131C 6 |
| 62 | #define SENSOR_ICM105A 7 |
| 63 | #define SENSOR_MC501CB 8 |
| 64 | #define SENSOR_OV7620 9 |
| 65 | /*#define SENSOR_OV7648 9 - same values */ |
| 66 | #define SENSOR_OV7630C 10 |
| 67 | #define SENSOR_PAS106 11 |
| 68 | #define SENSOR_PAS202B 12 |
| 69 | #define SENSOR_PB0330 13 |
| 70 | #define SENSOR_PO2030 14 |
| 71 | #define SENSOR_TAS5130CK 15 |
| 72 | #define SENSOR_TAS5130CXX 16 |
| 73 | #define SENSOR_TAS5130C_VF0250 17 |
| 74 | #define SENSOR_MAX 18 |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 75 | unsigned short chip_revision; |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 76 | |
| 77 | u8 *jpeg_hdr; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | /* V4L2 controls supported by the driver */ |
| 81 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); |
| 82 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); |
| 83 | static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val); |
| 84 | static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val); |
| 85 | static int sd_setautogain(struct gspca_dev *gspca_dev, __s32 val); |
| 86 | static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 87 | static int sd_setgamma(struct gspca_dev *gspca_dev, __s32 val); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 88 | static int sd_getgamma(struct gspca_dev *gspca_dev, __s32 *val); |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 89 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); |
| 90 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); |
| 91 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); |
| 92 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 93 | |
| 94 | static struct ctrl sd_ctrls[] = { |
Jean-Francois Moine | f50ba1b | 2008-09-03 17:12:14 -0300 | [diff] [blame] | 95 | #define BRIGHTNESS_IDX 0 |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 96 | #define SD_BRIGHTNESS 0 |
| 97 | { |
| 98 | { |
| 99 | .id = V4L2_CID_BRIGHTNESS, |
| 100 | .type = V4L2_CTRL_TYPE_INTEGER, |
| 101 | .name = "Brightness", |
| 102 | .minimum = 0, |
| 103 | .maximum = 255, |
| 104 | .step = 1, |
| 105 | .default_value = 128, |
| 106 | }, |
| 107 | .set = sd_setbrightness, |
| 108 | .get = sd_getbrightness, |
| 109 | }, |
| 110 | #define SD_CONTRAST 1 |
| 111 | { |
| 112 | { |
| 113 | .id = V4L2_CID_CONTRAST, |
| 114 | .type = V4L2_CTRL_TYPE_INTEGER, |
| 115 | .name = "Contrast", |
| 116 | .minimum = 0, |
| 117 | .maximum = 256, |
| 118 | .step = 1, |
| 119 | .default_value = 128, |
| 120 | }, |
| 121 | .set = sd_setcontrast, |
| 122 | .get = sd_getcontrast, |
| 123 | }, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 124 | #define SD_GAMMA 2 |
| 125 | { |
| 126 | { |
| 127 | .id = V4L2_CID_GAMMA, |
| 128 | .type = V4L2_CTRL_TYPE_INTEGER, |
| 129 | .name = "Gamma", |
| 130 | .minimum = 1, |
| 131 | .maximum = 6, |
| 132 | .step = 1, |
| 133 | .default_value = 4, |
| 134 | }, |
| 135 | .set = sd_setgamma, |
| 136 | .get = sd_getgamma, |
| 137 | }, |
| 138 | #define SD_AUTOGAIN 3 |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 139 | { |
| 140 | { |
| 141 | .id = V4L2_CID_AUTOGAIN, |
| 142 | .type = V4L2_CTRL_TYPE_BOOLEAN, |
| 143 | .name = "Auto Gain", |
| 144 | .minimum = 0, |
| 145 | .maximum = 1, |
| 146 | .step = 1, |
| 147 | .default_value = 1, |
| 148 | }, |
| 149 | .set = sd_setautogain, |
| 150 | .get = sd_getautogain, |
| 151 | }, |
Jean-Francois Moine | f50ba1b | 2008-09-03 17:12:14 -0300 | [diff] [blame] | 152 | #define LIGHTFREQ_IDX 4 |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 153 | #define SD_FREQ 4 |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 154 | { |
| 155 | { |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 156 | .id = V4L2_CID_POWER_LINE_FREQUENCY, |
| 157 | .type = V4L2_CTRL_TYPE_MENU, |
| 158 | .name = "Light frequency filter", |
| 159 | .minimum = 0, |
| 160 | .maximum = 2, /* 0: 0, 1: 50Hz, 2:60Hz */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 161 | .step = 1, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 162 | .default_value = 1, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 163 | }, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 164 | .set = sd_setfreq, |
| 165 | .get = sd_getfreq, |
| 166 | }, |
| 167 | #define SD_SHARPNESS 5 |
| 168 | { |
| 169 | { |
| 170 | .id = V4L2_CID_SHARPNESS, |
| 171 | .type = V4L2_CTRL_TYPE_INTEGER, |
| 172 | .name = "Sharpness", |
| 173 | .minimum = 0, |
| 174 | .maximum = 3, |
| 175 | .step = 1, |
| 176 | .default_value = 2, |
| 177 | }, |
| 178 | .set = sd_setsharpness, |
| 179 | .get = sd_getsharpness, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 180 | }, |
| 181 | }; |
| 182 | |
Jean-Francois Moine | cc611b8 | 2008-12-29 07:49:41 -0300 | [diff] [blame] | 183 | static const struct v4l2_pix_format vga_mode[] = { |
Jean-Francois Moine | c2446b3 | 2008-07-05 11:49:20 -0300 | [diff] [blame] | 184 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
| 185 | .bytesperline = 320, |
| 186 | .sizeimage = 320 * 240 * 3 / 8 + 590, |
| 187 | .colorspace = V4L2_COLORSPACE_JPEG, |
| 188 | .priv = 1}, |
| 189 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
| 190 | .bytesperline = 640, |
| 191 | .sizeimage = 640 * 480 * 3 / 8 + 590, |
| 192 | .colorspace = V4L2_COLORSPACE_JPEG, |
| 193 | .priv = 0}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 194 | }; |
| 195 | |
Jean-Francois Moine | cc611b8 | 2008-12-29 07:49:41 -0300 | [diff] [blame] | 196 | static const struct v4l2_pix_format sif_mode[] = { |
Jean-Francois Moine | c2446b3 | 2008-07-05 11:49:20 -0300 | [diff] [blame] | 197 | {176, 144, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
| 198 | .bytesperline = 176, |
| 199 | .sizeimage = 176 * 144 * 3 / 8 + 590, |
| 200 | .colorspace = V4L2_COLORSPACE_JPEG, |
| 201 | .priv = 1}, |
| 202 | {352, 288, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
| 203 | .bytesperline = 352, |
| 204 | .sizeimage = 352 * 288 * 3 / 8 + 590, |
| 205 | .colorspace = V4L2_COLORSPACE_JPEG, |
| 206 | .priv = 0}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 207 | }; |
| 208 | |
| 209 | /* usb exchanges */ |
| 210 | struct usb_action { |
| 211 | __u8 req; |
| 212 | __u8 val; |
| 213 | __u16 idx; |
| 214 | }; |
| 215 | |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 216 | static const struct usb_action adcm2700_Initial[] = { |
| 217 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 218 | {0xa0, 0x04, ZC3XX_R002_CLOCKSELECT}, /* 00,02,04,cc */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 219 | {0xa0, 0x00, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 220 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 221 | {0xa0, 0xd3, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,d3,cc */ |
| 222 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 223 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 224 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 225 | {0xa0, 0xd8, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d8,cc */ |
| 226 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 227 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 228 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 229 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 230 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 231 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 232 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 233 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 234 | {0xa0, 0xde, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,de,cc */ |
| 235 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
| 236 | {0xbb, 0x00, 0x0400}, /* 04,00,00,bb */ |
| 237 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 238 | {0xbb, 0x0f, 0x140f}, /* 14,0f,0f,bb */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 239 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 240 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 241 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 242 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 243 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 244 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 245 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 246 | {0xa0, 0x58, ZC3XX_R116_RGAIN}, /* 01,16,58,cc */ |
| 247 | {0xa0, 0x5a, ZC3XX_R118_BGAIN}, /* 01,18,5a,cc */ |
| 248 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
| 249 | {0xa0, 0xd3, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,d3,cc */ |
| 250 | {0xbb, 0x00, 0x0408}, /* 04,00,08,bb */ |
| 251 | {0xdd, 0x00, 0x0200}, /* 00,02,00,dd */ |
| 252 | {0xbb, 0x00, 0x0400}, /* 04,00,00,bb */ |
| 253 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 254 | {0xbb, 0x0f, 0x140f}, /* 14,0f,0f,bb */ |
| 255 | {0xbb, 0xe0, 0x0c2e}, /* 0c,e0,2e,bb */ |
| 256 | {0xbb, 0x01, 0x2000}, /* 20,01,00,bb */ |
| 257 | {0xbb, 0x96, 0x2400}, /* 24,96,00,bb */ |
| 258 | {0xbb, 0x06, 0x1006}, /* 10,06,06,bb */ |
| 259 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 260 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 261 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 262 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 263 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 264 | {0xbb, 0x5f, 0x2090}, /* 20,5f,90,bb */ |
| 265 | {0xbb, 0x01, 0x8000}, /* 80,01,00,bb */ |
| 266 | {0xbb, 0x09, 0x8400}, /* 84,09,00,bb */ |
| 267 | {0xbb, 0x86, 0x0002}, /* 00,86,02,bb */ |
| 268 | {0xbb, 0xe6, 0x0401}, /* 04,e6,01,bb */ |
| 269 | {0xbb, 0x86, 0x0802}, /* 08,86,02,bb */ |
| 270 | {0xbb, 0xe6, 0x0c01}, /* 0c,e6,01,bb */ |
| 271 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 272 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 273 | {0xaa, 0xfe, 0x0000}, /* 00,fe,00,aa */ |
| 274 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 275 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 276 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 277 | {0xaa, 0xfe, 0x0020}, /* 00,fe,20,aa */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 278 | /*mswin+*/ |
| 279 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, |
| 280 | {0xaa, 0xfe, 0x0002}, |
| 281 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 282 | {0xaa, 0xb4, 0xcd37}, |
| 283 | {0xaa, 0xa4, 0x0004}, |
| 284 | {0xaa, 0xa8, 0x0007}, |
| 285 | {0xaa, 0xac, 0x0004}, |
| 286 | /*mswin-*/ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 287 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 288 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 289 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 290 | {0xaa, 0xfe, 0x0000}, /* 00,fe,00,aa */ |
| 291 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 292 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 293 | {0xbb, 0x04, 0x0400}, /* 04,04,00,bb */ |
| 294 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
| 295 | {0xbb, 0x01, 0x0400}, /* 04,01,00,bb */ |
| 296 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 297 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 298 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 299 | {0xbb, 0x41, 0x2803}, /* 28,41,03,bb */ |
| 300 | {0xbb, 0x40, 0x2c03}, /* 2c,40,03,bb */ |
| 301 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 302 | {0xaa, 0xfe, 0x0010}, /* 00,fe,10,aa */ |
| 303 | {} |
| 304 | }; |
| 305 | static const struct usb_action adcm2700_InitialScale[] = { |
| 306 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 307 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 308 | {0xa0, 0x00, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 309 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 310 | {0xa0, 0xd3, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,d3,cc */ |
| 311 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 312 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 313 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 314 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d0,cc */ |
| 315 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 316 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 317 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 318 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 319 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 320 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 321 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 322 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 323 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,d8,cc */ |
| 324 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
| 325 | {0xbb, 0x00, 0x0400}, /* 04,00,00,bb */ |
| 326 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 327 | {0xbb, 0x0f, 0x140f}, /* 14,0f,0f,bb */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 328 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 329 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 330 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 331 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 332 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 333 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 334 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 335 | {0xa0, 0x58, ZC3XX_R116_RGAIN}, /* 01,16,58,cc */ |
| 336 | {0xa0, 0x5a, ZC3XX_R118_BGAIN}, /* 01,18,5a,cc */ |
| 337 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
| 338 | {0xa0, 0xd3, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,d3,cc */ |
| 339 | {0xbb, 0x00, 0x0408}, /* 04,00,08,bb */ |
| 340 | {0xdd, 0x00, 0x0200}, /* 00,02,00,dd */ |
| 341 | {0xbb, 0x00, 0x0400}, /* 04,00,00,bb */ |
| 342 | {0xdd, 0x00, 0x0050}, /* 00,00,50,dd */ |
| 343 | {0xbb, 0x0f, 0x140f}, /* 14,0f,0f,bb */ |
| 344 | {0xbb, 0xe0, 0x0c2e}, /* 0c,e0,2e,bb */ |
| 345 | {0xbb, 0x01, 0x2000}, /* 20,01,00,bb */ |
| 346 | {0xbb, 0x96, 0x2400}, /* 24,96,00,bb */ |
| 347 | {0xbb, 0x06, 0x1006}, /* 10,06,06,bb */ |
| 348 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 349 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 350 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 351 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 352 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 353 | {0xbb, 0x5f, 0x2090}, /* 20,5f,90,bb */ |
| 354 | {0xbb, 0x01, 0x8000}, /* 80,01,00,bb */ |
| 355 | {0xbb, 0x09, 0x8400}, /* 84,09,00,bb */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 356 | {0xbb, 0x86, 0x0002}, /* 00,88,02,bb */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 357 | {0xbb, 0xe6, 0x0401}, /* 04,e6,01,bb */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 358 | {0xbb, 0x86, 0x0802}, /* 08,88,02,bb */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 359 | {0xbb, 0xe6, 0x0c01}, /* 0c,e6,01,bb */ |
| 360 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 361 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 362 | {0xaa, 0xfe, 0x0000}, /* 00,fe,00,aa */ |
| 363 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 364 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 365 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 366 | {0xaa, 0xfe, 0x0020}, /* 00,fe,20,aa */ |
| 367 | /*******/ |
| 368 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 369 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 370 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 371 | {0xaa, 0xfe, 0x0000}, /* 00,fe,00,aa */ |
| 372 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 373 | {0xdd, 0x00, 0x0010}, /* 00,00,10,dd */ |
| 374 | {0xbb, 0x04, 0x0400}, /* 04,04,00,bb */ |
| 375 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
| 376 | {0xbb, 0x01, 0x0400}, /* 04,01,00,bb */ |
| 377 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 378 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 379 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 380 | {0xbb, 0x41, 0x2803}, /* 28,41,03,bb */ |
| 381 | {0xbb, 0x40, 0x2c03}, /* 2c,40,03,bb */ |
| 382 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 383 | {0xaa, 0xfe, 0x0010}, /* 00,fe,10,aa */ |
| 384 | {} |
| 385 | }; |
| 386 | static const struct usb_action adcm2700_50HZ[] = { |
| 387 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 388 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 389 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 390 | {0xbb, 0x05, 0x8400}, /* 84,05,00,bb */ |
| 391 | {0xbb, 0xd0, 0xb007}, /* b0,d0,07,bb */ |
| 392 | {0xbb, 0xa0, 0xb80f}, /* b8,a0,0f,bb */ |
| 393 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 394 | {0xaa, 0xfe, 0x0010}, /* 00,fe,10,aa */ |
| 395 | {0xaa, 0x26, 0x00d0}, /* 00,26,d0,aa */ |
| 396 | {0xaa, 0x28, 0x0002}, /* 00,28,02,aa */ |
| 397 | {} |
| 398 | }; |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 399 | static const struct usb_action adcm2700_60HZ[] = { |
| 400 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 401 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 402 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 403 | {0xbb, 0x07, 0x8400}, /* 84,07,00,bb */ |
| 404 | {0xbb, 0x82, 0xb006}, /* b0,82,06,bb */ |
| 405 | {0xbb, 0x04, 0xb80d}, /* b8,04,0d,bb */ |
| 406 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 407 | {0xaa, 0xfe, 0x0010}, /* 00,fe,10,aa */ |
| 408 | {0xaa, 0x26, 0x0057}, /* 00,26,57,aa */ |
| 409 | {0xaa, 0x28, 0x0002}, /* 00,28,02,aa */ |
| 410 | {} |
| 411 | }; |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 412 | static const struct usb_action adcm2700_NoFliker[] = { |
| 413 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 414 | {0xaa, 0xfe, 0x0002}, /* 00,fe,02,aa */ |
| 415 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0a,cc */ |
| 416 | {0xbb, 0x07, 0x8400}, /* 84,07,00,bb */ |
| 417 | {0xbb, 0x05, 0xb000}, /* b0,05,00,bb */ |
| 418 | {0xbb, 0xa0, 0xb801}, /* b8,a0,01,bb */ |
| 419 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 420 | {0xaa, 0xfe, 0x0010}, /* 00,fe,10,aa */ |
| 421 | {} |
| 422 | }; |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 423 | static const struct usb_action cs2102_Initial[] = { /* 320x240 */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 424 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 425 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 426 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
| 427 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 428 | {0xa0, 0x20, ZC3XX_R080_HBLANKHIGH}, |
| 429 | {0xa0, 0x21, ZC3XX_R081_HBLANKLOW}, |
| 430 | {0xa0, 0x30, ZC3XX_R083_RGAINADDR}, |
| 431 | {0xa0, 0x31, ZC3XX_R084_GGAINADDR}, |
| 432 | {0xa0, 0x32, ZC3XX_R085_BGAINADDR}, |
| 433 | {0xa0, 0x23, ZC3XX_R086_EXPTIMEHIGH}, |
| 434 | {0xa0, 0x24, ZC3XX_R087_EXPTIMEMID}, |
| 435 | {0xa0, 0x25, ZC3XX_R088_EXPTIMELOW}, |
| 436 | {0xa0, 0xb3, ZC3XX_R08B_I2CDEVICEADDR}, |
| 437 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
| 438 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 439 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 440 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 441 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 442 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 443 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 444 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 445 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 446 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 447 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 448 | {0xaa, 0x02, 0x0008}, |
| 449 | {0xaa, 0x03, 0x0000}, |
| 450 | {0xaa, 0x11, 0x0000}, |
| 451 | {0xaa, 0x12, 0x0089}, |
| 452 | {0xaa, 0x13, 0x0000}, |
| 453 | {0xaa, 0x14, 0x00e9}, |
| 454 | {0xaa, 0x20, 0x0000}, |
| 455 | {0xaa, 0x22, 0x0000}, |
| 456 | {0xaa, 0x0b, 0x0004}, |
| 457 | {0xaa, 0x30, 0x0030}, |
| 458 | {0xaa, 0x31, 0x0030}, |
| 459 | {0xaa, 0x32, 0x0030}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 460 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 461 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 462 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 463 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 464 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 465 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 466 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 467 | {0xa0, 0x10, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 468 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 469 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 470 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 471 | {0xa0, 0x00, 0x01ad}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 472 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 473 | }; |
| 474 | |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 475 | static const struct usb_action cs2102_InitialScale[] = { /* 640x480 */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 476 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 477 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 478 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
| 479 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 480 | {0xa0, 0x20, ZC3XX_R080_HBLANKHIGH}, |
| 481 | {0xa0, 0x21, ZC3XX_R081_HBLANKLOW}, |
| 482 | {0xa0, 0x30, ZC3XX_R083_RGAINADDR}, |
| 483 | {0xa0, 0x31, ZC3XX_R084_GGAINADDR}, |
| 484 | {0xa0, 0x32, ZC3XX_R085_BGAINADDR}, |
| 485 | {0xa0, 0x23, ZC3XX_R086_EXPTIMEHIGH}, |
| 486 | {0xa0, 0x24, ZC3XX_R087_EXPTIMEMID}, |
| 487 | {0xa0, 0x25, ZC3XX_R088_EXPTIMELOW}, |
| 488 | {0xa0, 0xb3, ZC3XX_R08B_I2CDEVICEADDR}, |
| 489 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
| 490 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 491 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 492 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 493 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 494 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 495 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 496 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 497 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 498 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 499 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 500 | {0xaa, 0x02, 0x0008}, |
| 501 | {0xaa, 0x03, 0x0000}, |
| 502 | {0xaa, 0x11, 0x0001}, |
| 503 | {0xaa, 0x12, 0x0087}, |
| 504 | {0xaa, 0x13, 0x0001}, |
| 505 | {0xaa, 0x14, 0x00e7}, |
| 506 | {0xaa, 0x20, 0x0000}, |
| 507 | {0xaa, 0x22, 0x0000}, |
| 508 | {0xaa, 0x0b, 0x0004}, |
| 509 | {0xaa, 0x30, 0x0030}, |
| 510 | {0xaa, 0x31, 0x0030}, |
| 511 | {0xaa, 0x32, 0x0030}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 512 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 513 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 514 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 515 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 516 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 517 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 518 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 519 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 520 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 521 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 522 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 523 | {0xa0, 0x00, 0x01ad}, |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 524 | {} |
| 525 | }; |
| 526 | static const struct usb_action cs2102_50HZ[] = { |
| 527 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 528 | {0xaa, 0x23, 0x0001}, |
| 529 | {0xaa, 0x24, 0x005f}, |
| 530 | {0xaa, 0x25, 0x0090}, |
| 531 | {0xaa, 0x21, 0x00dd}, |
| 532 | {0xa0, 0x02, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 533 | {0xa0, 0xbf, ZC3XX_R191_EXPOSURELIMITMID}, |
| 534 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 535 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 536 | {0xa0, 0x3a, ZC3XX_R196_ANTIFLICKERMID}, |
| 537 | {0xa0, 0x98, ZC3XX_R197_ANTIFLICKERLOW}, |
| 538 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 539 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 540 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 541 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 542 | {0xa0, 0xdd, ZC3XX_R01D_HSYNC_0}, |
| 543 | {0xa0, 0xe4, ZC3XX_R01E_HSYNC_1}, |
| 544 | {0xa0, 0xf0, ZC3XX_R01F_HSYNC_2}, |
| 545 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 546 | {} |
| 547 | }; |
| 548 | static const struct usb_action cs2102_50HZScale[] = { |
| 549 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 550 | {0xaa, 0x23, 0x0000}, |
| 551 | {0xaa, 0x24, 0x00af}, |
| 552 | {0xaa, 0x25, 0x00c8}, |
| 553 | {0xaa, 0x21, 0x0068}, |
| 554 | {0xa0, 0x01, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 555 | {0xa0, 0x5f, ZC3XX_R191_EXPOSURELIMITMID}, |
| 556 | {0xa0, 0x90, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 557 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 558 | {0xa0, 0x1d, ZC3XX_R196_ANTIFLICKERMID}, |
| 559 | {0xa0, 0x4c, ZC3XX_R197_ANTIFLICKERLOW}, |
| 560 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 561 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 562 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 563 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 564 | {0xa0, 0x68, ZC3XX_R01D_HSYNC_0}, |
| 565 | {0xa0, 0xe3, ZC3XX_R01E_HSYNC_1}, |
| 566 | {0xa0, 0xf0, ZC3XX_R01F_HSYNC_2}, |
| 567 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 568 | {} |
| 569 | }; |
| 570 | static const struct usb_action cs2102_60HZ[] = { |
| 571 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 572 | {0xaa, 0x23, 0x0001}, |
| 573 | {0xaa, 0x24, 0x0055}, |
| 574 | {0xaa, 0x25, 0x00cc}, |
| 575 | {0xaa, 0x21, 0x003f}, |
| 576 | {0xa0, 0x02, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 577 | {0xa0, 0xab, ZC3XX_R191_EXPOSURELIMITMID}, |
| 578 | {0xa0, 0x98, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 579 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 580 | {0xa0, 0x30, ZC3XX_R196_ANTIFLICKERMID}, |
| 581 | {0xa0, 0xd4, ZC3XX_R197_ANTIFLICKERLOW}, |
| 582 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 583 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 584 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 585 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 586 | {0xa0, 0x39, ZC3XX_R01D_HSYNC_0}, |
| 587 | {0xa0, 0x70, ZC3XX_R01E_HSYNC_1}, |
| 588 | {0xa0, 0xb0, ZC3XX_R01F_HSYNC_2}, |
| 589 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 590 | {} |
| 591 | }; |
| 592 | static const struct usb_action cs2102_60HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 593 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 594 | {0xaa, 0x23, 0x0000}, |
| 595 | {0xaa, 0x24, 0x00aa}, |
| 596 | {0xaa, 0x25, 0x00e6}, |
| 597 | {0xaa, 0x21, 0x003f}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 598 | {0xa0, 0x01, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 599 | {0xa0, 0x55, ZC3XX_R191_EXPOSURELIMITMID}, |
| 600 | {0xa0, 0xcc, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 601 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 602 | {0xa0, 0x18, ZC3XX_R196_ANTIFLICKERMID}, |
| 603 | {0xa0, 0x6a, ZC3XX_R197_ANTIFLICKERLOW}, |
| 604 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 605 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 606 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 607 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 608 | {0xa0, 0x3f, ZC3XX_R01D_HSYNC_0}, |
| 609 | {0xa0, 0xa5, ZC3XX_R01E_HSYNC_1}, |
| 610 | {0xa0, 0xf0, ZC3XX_R01F_HSYNC_2}, |
| 611 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 612 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 613 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 614 | static const struct usb_action cs2102_NoFliker[] = { |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 615 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 616 | {0xaa, 0x23, 0x0001}, |
| 617 | {0xaa, 0x24, 0x005f}, |
| 618 | {0xaa, 0x25, 0x0000}, |
| 619 | {0xaa, 0x21, 0x0001}, |
| 620 | {0xa0, 0x02, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 621 | {0xa0, 0xbf, ZC3XX_R191_EXPOSURELIMITMID}, |
| 622 | {0xa0, 0x00, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 623 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 624 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 625 | {0xa0, 0x80, ZC3XX_R197_ANTIFLICKERLOW}, |
| 626 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 627 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 628 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 629 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 630 | {0xa0, 0x01, ZC3XX_R01D_HSYNC_0}, |
| 631 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, |
| 632 | {0xa0, 0xa0, ZC3XX_R01F_HSYNC_2}, |
| 633 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 634 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 635 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 636 | static const struct usb_action cs2102_NoFlikerScale[] = { |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 637 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 638 | {0xaa, 0x23, 0x0000}, |
| 639 | {0xaa, 0x24, 0x00af}, |
| 640 | {0xaa, 0x25, 0x0080}, |
| 641 | {0xaa, 0x21, 0x0001}, |
| 642 | {0xa0, 0x01, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 643 | {0xa0, 0x5f, ZC3XX_R191_EXPOSURELIMITMID}, |
| 644 | {0xa0, 0x80, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 645 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 646 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 647 | {0xa0, 0x80, ZC3XX_R197_ANTIFLICKERLOW}, |
| 648 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 649 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 650 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 651 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 652 | {0xa0, 0x01, ZC3XX_R01D_HSYNC_0}, |
| 653 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, |
| 654 | {0xa0, 0xa0, ZC3XX_R01F_HSYNC_2}, |
| 655 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 656 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 657 | }; |
| 658 | |
| 659 | /* CS2102_KOCOM */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 660 | static const struct usb_action cs2102K_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 661 | {0xa0, 0x11, ZC3XX_R002_CLOCKSELECT}, |
| 662 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 663 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
| 664 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 665 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 666 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 667 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 668 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 669 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 670 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 671 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 672 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 673 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 674 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 675 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 676 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
| 677 | {0xa0, 0x55, ZC3XX_R08B_I2CDEVICEADDR}, |
| 678 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 679 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 680 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 681 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 682 | {0xa0, 0x0a, ZC3XX_R092_I2CADDRESSSELECT}, |
| 683 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 684 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 685 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 686 | {0xa0, 0x0b, ZC3XX_R092_I2CADDRESSSELECT}, |
| 687 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 688 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 689 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 690 | {0xa0, 0x0c, ZC3XX_R092_I2CADDRESSSELECT}, |
| 691 | {0xa0, 0x7c, ZC3XX_R093_I2CSETVALUE}, |
| 692 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 693 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 694 | {0xa0, 0x0d, ZC3XX_R092_I2CADDRESSSELECT}, |
| 695 | {0xa0, 0xa3, ZC3XX_R093_I2CSETVALUE}, |
| 696 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 697 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 698 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
| 699 | {0xa0, 0xfb, ZC3XX_R093_I2CSETVALUE}, |
| 700 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 701 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 702 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
| 703 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 704 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 705 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 706 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
| 707 | {0xa0, 0x03, ZC3XX_R093_I2CSETVALUE}, |
| 708 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 709 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 710 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
| 711 | {0xa0, 0x08, ZC3XX_R093_I2CSETVALUE}, |
| 712 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 713 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 714 | {0xa0, 0x0e, ZC3XX_R092_I2CADDRESSSELECT}, |
| 715 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 716 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 717 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 718 | {0xa0, 0x0f, ZC3XX_R092_I2CADDRESSSELECT}, |
| 719 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 720 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 721 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 722 | {0xa0, 0x10, ZC3XX_R092_I2CADDRESSSELECT}, |
| 723 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 724 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 725 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 726 | {0xa0, 0x11, ZC3XX_R092_I2CADDRESSSELECT}, |
| 727 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 728 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 729 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 730 | {0xa0, 0x12, ZC3XX_R092_I2CADDRESSSELECT}, |
| 731 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 732 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 733 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 734 | {0xa0, 0x15, ZC3XX_R092_I2CADDRESSSELECT}, |
| 735 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 736 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 737 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 738 | {0xa0, 0x16, ZC3XX_R092_I2CADDRESSSELECT}, |
| 739 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
| 740 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 741 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 742 | {0xa0, 0x17, ZC3XX_R092_I2CADDRESSSELECT}, |
| 743 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
| 744 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 745 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 746 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 747 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 748 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 749 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 750 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
| 751 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 752 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
| 753 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 754 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 755 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 756 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 757 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
| 758 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
| 759 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 760 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 761 | {0xa0, 0x00, 0x01ad}, |
| 762 | {0xa0, 0x01, 0x01b1}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 763 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 764 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
| 765 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 766 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
| 767 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 768 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
| 769 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 770 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
| 771 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
| 772 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
| 773 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
| 774 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
| 775 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
| 776 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
| 777 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
| 778 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
| 779 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
| 780 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
| 781 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
| 782 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
| 783 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
| 784 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
| 785 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 786 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
| 787 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 788 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 789 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 790 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 791 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 792 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 793 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 794 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 795 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 796 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 797 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 798 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 799 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 800 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
| 801 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
| 802 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
| 803 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
| 804 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
| 805 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
| 806 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
| 807 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
| 808 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
| 809 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
| 810 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
| 811 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 812 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 813 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 814 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 815 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 816 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 817 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 818 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
| 819 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 820 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 821 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 822 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 823 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 824 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 825 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 826 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 827 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 828 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 829 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 830 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
| 831 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 832 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 833 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 834 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 835 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 836 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 837 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
| 838 | {0xa0, 0x22, ZC3XX_R0A4_EXPOSURETIMELOW}, |
| 839 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 840 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 841 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 842 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 843 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 844 | {0xa0, 0x3a, ZC3XX_R197_ANTIFLICKERLOW}, |
| 845 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 846 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 847 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 848 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 849 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
| 850 | {0xa0, 0x0f, ZC3XX_R01E_HSYNC_1}, |
| 851 | {0xa0, 0x19, ZC3XX_R01F_HSYNC_2}, |
| 852 | {0xa0, 0x1f, ZC3XX_R020_HSYNC_3}, |
| 853 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 854 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 855 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 856 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 857 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
| 858 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 859 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
| 860 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 861 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 862 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 863 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 864 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 865 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 866 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
| 867 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 868 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 869 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 870 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 871 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 872 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 873 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 874 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
| 875 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 876 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 877 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 878 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 879 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 880 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 881 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 882 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 883 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 884 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 885 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 886 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 887 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 888 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 889 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 890 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 891 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 892 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 893 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 894 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
| 895 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 896 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 897 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 898 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 899 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 900 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 901 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 902 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
| 903 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 904 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 905 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 906 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 907 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 908 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 909 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 910 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 911 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 912 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 913 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 914 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 915 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 916 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 917 | }; |
| 918 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 919 | static const struct usb_action cs2102K_InitialScale[] = { |
Jean-Francois Moine | f1ee8e8 | 2009-01-20 08:14:17 -0300 | [diff] [blame] | 920 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 921 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 922 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 923 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
| 924 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 925 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 926 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 927 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 928 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 929 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 930 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 931 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 932 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 933 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 934 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 935 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 936 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | f1ee8e8 | 2009-01-20 08:14:17 -0300 | [diff] [blame] | 937 | /*fixme: next sequence = i2c exchanges*/ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 938 | {0xa0, 0x55, ZC3XX_R08B_I2CDEVICEADDR}, |
| 939 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 940 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 941 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 942 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 943 | {0xa0, 0x0a, ZC3XX_R092_I2CADDRESSSELECT}, |
| 944 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 945 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 946 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 947 | {0xa0, 0x0b, ZC3XX_R092_I2CADDRESSSELECT}, |
| 948 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 949 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 950 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 951 | {0xa0, 0x0c, ZC3XX_R092_I2CADDRESSSELECT}, |
| 952 | {0xa0, 0x7b, ZC3XX_R093_I2CSETVALUE}, |
| 953 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 954 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 955 | {0xa0, 0x0d, ZC3XX_R092_I2CADDRESSSELECT}, |
| 956 | {0xa0, 0xa3, ZC3XX_R093_I2CSETVALUE}, |
| 957 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 958 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 959 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
| 960 | {0xa0, 0xfb, ZC3XX_R093_I2CSETVALUE}, |
| 961 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 962 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 963 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
| 964 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 965 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 966 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 967 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
| 968 | {0xa0, 0x03, ZC3XX_R093_I2CSETVALUE}, |
| 969 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 970 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 971 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
| 972 | {0xa0, 0x08, ZC3XX_R093_I2CSETVALUE}, |
| 973 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 974 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 975 | {0xa0, 0x0e, ZC3XX_R092_I2CADDRESSSELECT}, |
| 976 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 977 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 978 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 979 | {0xa0, 0x0f, ZC3XX_R092_I2CADDRESSSELECT}, |
| 980 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 981 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 982 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 983 | {0xa0, 0x10, ZC3XX_R092_I2CADDRESSSELECT}, |
| 984 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 985 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 986 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 987 | {0xa0, 0x11, ZC3XX_R092_I2CADDRESSSELECT}, |
| 988 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 989 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 990 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 991 | {0xa0, 0x12, ZC3XX_R092_I2CADDRESSSELECT}, |
| 992 | {0xa0, 0x18, ZC3XX_R093_I2CSETVALUE}, |
| 993 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 994 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 995 | {0xa0, 0x15, ZC3XX_R092_I2CADDRESSSELECT}, |
| 996 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 997 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 998 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 999 | {0xa0, 0x16, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1000 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
| 1001 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1002 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1003 | {0xa0, 0x17, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1004 | {0xa0, 0x0c, ZC3XX_R093_I2CSETVALUE}, |
| 1005 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1006 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1007 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1008 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1009 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1010 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1011 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
| 1012 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1013 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
| 1014 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 1015 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 1016 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 1017 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 1018 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, |
| 1019 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, |
| 1020 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 1021 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1022 | {0xa0, 0x00, 0x01ad}, |
| 1023 | {0xa0, 0x01, 0x01b1}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1024 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1025 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
| 1026 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 1027 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
| 1028 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 1029 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
| 1030 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 1031 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
| 1032 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
| 1033 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
| 1034 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
| 1035 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
| 1036 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
| 1037 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
| 1038 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
| 1039 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
| 1040 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
| 1041 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
| 1042 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
| 1043 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
| 1044 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
| 1045 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
| 1046 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 1047 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
| 1048 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 1049 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 1050 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 1051 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 1052 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 1053 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 1054 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 1055 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 1056 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 1057 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 1058 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 1059 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 1060 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 1061 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
| 1062 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
| 1063 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
| 1064 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
| 1065 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
| 1066 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
| 1067 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
| 1068 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
| 1069 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
| 1070 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
| 1071 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
| 1072 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1073 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 1074 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1075 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1076 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1077 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1078 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1079 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
| 1080 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1081 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1082 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1083 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1084 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1085 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1086 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1087 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1088 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1089 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1090 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1091 | {0xa0, 0x22, ZC3XX_R093_I2CSETVALUE}, |
| 1092 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1093 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1094 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1095 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1096 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1097 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1098 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
| 1099 | {0xa0, 0x22, ZC3XX_R0A4_EXPOSURETIMELOW}, |
| 1100 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 1101 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 1102 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 1103 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 1104 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 1105 | {0xa0, 0x3a, ZC3XX_R197_ANTIFLICKERLOW}, |
| 1106 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 1107 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 1108 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 1109 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 1110 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
| 1111 | {0xa0, 0x0f, ZC3XX_R01E_HSYNC_1}, |
| 1112 | {0xa0, 0x19, ZC3XX_R01F_HSYNC_2}, |
| 1113 | {0xa0, 0x1f, ZC3XX_R020_HSYNC_3}, |
| 1114 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 1115 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 1116 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1117 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1118 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
| 1119 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 1120 | {0xa0, 0x4c, ZC3XX_R118_BGAIN}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1121 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1122 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1123 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1124 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1125 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1126 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1127 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
| 1128 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1129 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1130 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1131 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1132 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1133 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1134 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1135 | {0xa0, 0x5c, ZC3XX_R093_I2CSETVALUE}, |
| 1136 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1137 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1138 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1139 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1140 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1141 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1142 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1143 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1144 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1145 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1146 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1147 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1148 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1149 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1150 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1151 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1152 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1153 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1154 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1155 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
| 1156 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1157 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1158 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1159 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1160 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1161 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1162 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1163 | {0xa0, 0x96, ZC3XX_R093_I2CSETVALUE}, |
| 1164 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1165 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1166 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1167 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1168 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1169 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1170 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1171 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1172 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1173 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1174 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1175 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1176 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
Jean-Francois Moine | f1ee8e8 | 2009-01-20 08:14:17 -0300 | [diff] [blame] | 1177 | /*fixme:what does the next sequence?*/ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1178 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1179 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1180 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1181 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1182 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1183 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1184 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1185 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1186 | {0xa0, 0xd0, ZC3XX_R093_I2CSETVALUE}, |
| 1187 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1188 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1189 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1190 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1191 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1192 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1193 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1194 | {0xa0, 0xd0, ZC3XX_R093_I2CSETVALUE}, |
| 1195 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1196 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1197 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1198 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 1199 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1200 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1201 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1202 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1203 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1204 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1205 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1206 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, |
| 1207 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1208 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1209 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1210 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1211 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 1212 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1213 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1214 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1215 | {0xa0, 0x0a, ZC3XX_R093_I2CSETVALUE}, |
| 1216 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1217 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1218 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1219 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1220 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1221 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1222 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1223 | {0xa0, 0x0a, ZC3XX_R093_I2CSETVALUE}, |
| 1224 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1225 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1226 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1227 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 1228 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1229 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1230 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1231 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1232 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1233 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1234 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1235 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1236 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1237 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1238 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1239 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 1240 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1241 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1242 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1243 | {0xa0, 0x44, ZC3XX_R093_I2CSETVALUE}, |
| 1244 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1245 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1246 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1247 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1248 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1249 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1250 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1251 | {0xa0, 0x44, ZC3XX_R093_I2CSETVALUE}, |
| 1252 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1253 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1254 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1255 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 1256 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1257 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1258 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1259 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1260 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1261 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1262 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1263 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1264 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1265 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1266 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1267 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 1268 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1269 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1270 | {0xa0, 0x21, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1271 | {0xa0, 0x7e, ZC3XX_R093_I2CSETVALUE}, |
| 1272 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1273 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1274 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1275 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 1276 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1277 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1278 | {0xa0, 0x13, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1279 | {0xa0, 0x7e, ZC3XX_R093_I2CSETVALUE}, |
| 1280 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1281 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1282 | {0xa0, 0x14, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1283 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 1284 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1285 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1286 | {0xa0, 0x18, ZC3XX_R092_I2CADDRESSSELECT}, |
| 1287 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 1288 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 1289 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 1290 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1291 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1292 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 1293 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1294 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1295 | }; |
| 1296 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1297 | static const struct usb_action gc0305_Initial[] = { /* 640x480 */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1298 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 1299 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
| 1300 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 1301 | {0xa0, 0x04, ZC3XX_R002_CLOCKSELECT}, /* 00,02,04,cc */ |
| 1302 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 1303 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 1304 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 1305 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
| 1306 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 1307 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 1308 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 1309 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 1310 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 1311 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 1312 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 1313 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc */ |
| 1314 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
| 1315 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1316 | {0xaa, 0x13, 0x0002}, /* 00,13,02,aa */ |
| 1317 | {0xaa, 0x15, 0x0003}, /* 00,15,03,aa */ |
| 1318 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
| 1319 | {0xaa, 0x02, 0x0000}, /* 00,02,00,aa */ |
| 1320 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ |
| 1321 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa */ |
| 1322 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ |
| 1323 | {0xaa, 0x1f, 0x0008}, /* 00,1f,08,aa */ |
| 1324 | {0xaa, 0x21, 0x0012}, /* 00,21,12,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1325 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc */ |
| 1326 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc */ |
| 1327 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1328 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
| 1329 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa */ |
| 1330 | {0xaa, 0x0b, 0x00b0}, /* 00,0b,b0,aa */ |
| 1331 | {0xaa, 0x0c, 0x0000}, /* 00,0c,00,aa */ |
| 1332 | {0xaa, 0x0d, 0x00b0}, /* 00,0d,b0,aa */ |
| 1333 | {0xaa, 0x0e, 0x0000}, /* 00,0e,00,aa */ |
| 1334 | {0xaa, 0x0f, 0x00b0}, /* 00,0f,b0,aa */ |
| 1335 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 1336 | {0xaa, 0x11, 0x00b0}, /* 00,11,b0,aa */ |
| 1337 | {0xaa, 0x16, 0x0001}, /* 00,16,01,aa */ |
| 1338 | {0xaa, 0x17, 0x00e6}, /* 00,17,e6,aa */ |
| 1339 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa */ |
| 1340 | {0xaa, 0x19, 0x0086}, /* 00,19,86,aa */ |
| 1341 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 1342 | {0xaa, 0x1b, 0x0020}, /* 00,1b,20,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1343 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc */ |
| 1344 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 1345 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 1346 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1347 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1348 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 1349 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 1350 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 1351 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 1352 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
| 1353 | {0xa0, 0x85, ZC3XX_R18D_YTARGET}, /* 01,8d,85,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1354 | {0xa0, 0x00, 0x011e}, /* 01,1e,00,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1355 | {0xa0, 0x52, ZC3XX_R116_RGAIN}, /* 01,16,52,cc */ |
| 1356 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, /* 01,17,40,cc */ |
| 1357 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
| 1358 | {0xa0, 0x03, ZC3XX_R113_RGB03}, /* 01,13,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1359 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1360 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1361 | static const struct usb_action gc0305_InitialScale[] = { /* 320x240 */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1362 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 1363 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
| 1364 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 1365 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
| 1366 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 1367 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 1368 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 1369 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
| 1370 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 1371 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 1372 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 1373 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 1374 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 1375 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 1376 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 1377 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e8,cc */ |
| 1378 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
| 1379 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1380 | {0xaa, 0x13, 0x0000}, /* 00,13,00,aa */ |
| 1381 | {0xaa, 0x15, 0x0001}, /* 00,15,01,aa */ |
| 1382 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
| 1383 | {0xaa, 0x02, 0x0000}, /* 00,02,00,aa */ |
| 1384 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ |
| 1385 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa */ |
| 1386 | {0xaa, 0x1d, 0x0080}, /* 00,1d,80,aa */ |
| 1387 | {0xaa, 0x1f, 0x0008}, /* 00,1f,08,aa */ |
| 1388 | {0xaa, 0x21, 0x0012}, /* 00,21,12,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1389 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc */ |
| 1390 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc */ |
| 1391 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1392 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
| 1393 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa */ |
| 1394 | {0xaa, 0x0b, 0x00b0}, /* 00,0b,b0,aa */ |
| 1395 | {0xaa, 0x0c, 0x0000}, /* 00,0c,00,aa */ |
| 1396 | {0xaa, 0x0d, 0x00b0}, /* 00,0d,b0,aa */ |
| 1397 | {0xaa, 0x0e, 0x0000}, /* 00,0e,00,aa */ |
| 1398 | {0xaa, 0x0f, 0x00b0}, /* 00,0f,b0,aa */ |
| 1399 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 1400 | {0xaa, 0x11, 0x00b0}, /* 00,11,b0,aa */ |
| 1401 | {0xaa, 0x16, 0x0001}, /* 00,16,01,aa */ |
| 1402 | {0xaa, 0x17, 0x00e8}, /* 00,17,e8,aa */ |
| 1403 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa */ |
| 1404 | {0xaa, 0x19, 0x0088}, /* 00,19,88,aa */ |
| 1405 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 1406 | {0xaa, 0x1b, 0x0020}, /* 00,1b,20,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1407 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc */ |
| 1408 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 1409 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 1410 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1411 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1412 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 1413 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 1414 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 1415 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 1416 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1417 | {0xa0, 0x00, 0x011e}, /* 01,1e,00,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1418 | {0xa0, 0x52, ZC3XX_R116_RGAIN}, /* 01,16,52,cc */ |
| 1419 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, /* 01,17,40,cc */ |
| 1420 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
| 1421 | {0xa0, 0x03, ZC3XX_R113_RGB03}, /* 01,13,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1422 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1423 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1424 | static const struct usb_action gc0305_50HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1425 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 1426 | {0xaa, 0x83, 0x0002}, /* 00,83,02,aa */ |
| 1427 | {0xaa, 0x84, 0x0038}, /* 00,84,38,aa */ /* win: 00,84,ec */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1428 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 1429 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0b,cc */ |
| 1430 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
| 1431 | /* win: 01,92,10 */ |
| 1432 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1433 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 1434 | {0xa0, 0x8e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,8e,cc */ |
| 1435 | /* win: 01,97,ec */ |
| 1436 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc */ |
| 1437 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc */ |
| 1438 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 1439 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 1440 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc */ |
| 1441 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
| 1442 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
| 1443 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 1444 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,60,cc */ |
| 1445 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
| 1446 | /* {0xa0, 0x85, ZC3XX_R18D_YTARGET}, * 01,8d,85,cc * |
| 1447 | * if 640x480 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1448 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1449 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1450 | static const struct usb_action gc0305_60HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1451 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 1452 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
| 1453 | {0xaa, 0x84, 0x00ec}, /* 00,84,ec,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1454 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 1455 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0b,cc */ |
| 1456 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,10,cc */ |
| 1457 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1458 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 1459 | {0xa0, 0xec, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,ec,cc */ |
| 1460 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc */ |
| 1461 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc */ |
| 1462 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 1463 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 1464 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc */ |
| 1465 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
| 1466 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
| 1467 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 1468 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,60,cc */ |
| 1469 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
| 1470 | {0xa0, 0x80, ZC3XX_R18D_YTARGET}, /* 01,8d,80,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1471 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1472 | }; |
| 1473 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1474 | static const struct usb_action gc0305_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1475 | {0xa0, 0x0c, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0c,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1476 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 1477 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
| 1478 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1479 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 1480 | {0xa0, 0x00, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,00,cc */ |
| 1481 | {0xa0, 0x48, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,48,cc */ |
| 1482 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1483 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 1484 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 1485 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc */ |
| 1486 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc */ |
| 1487 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc */ |
| 1488 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
| 1489 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
| 1490 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 1491 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,60,cc */ |
| 1492 | {0xa0, 0x03, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,03,cc */ |
| 1493 | {0xa0, 0x80, ZC3XX_R18D_YTARGET}, /* 01,8d,80,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1494 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1495 | }; |
| 1496 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1497 | static const struct usb_action hdcs2020xb_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1498 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 1499 | {0xa0, 0x11, ZC3XX_R002_CLOCKSELECT}, |
| 1500 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* qtable 0x05 */ |
| 1501 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
| 1502 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 1503 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 1504 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 1505 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 1506 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 1507 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1508 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1509 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 1510 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 1511 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 1512 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 1513 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 1514 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1515 | {0xaa, 0x1c, 0x0000}, |
| 1516 | {0xaa, 0x0a, 0x0001}, |
| 1517 | {0xaa, 0x0b, 0x0006}, |
| 1518 | {0xaa, 0x0c, 0x007b}, |
| 1519 | {0xaa, 0x0d, 0x00a7}, |
| 1520 | {0xaa, 0x03, 0x00fb}, |
| 1521 | {0xaa, 0x05, 0x0000}, |
| 1522 | {0xaa, 0x06, 0x0003}, |
| 1523 | {0xaa, 0x09, 0x0008}, |
| 1524 | |
| 1525 | {0xaa, 0x0f, 0x0018}, /* set sensor gain */ |
| 1526 | {0xaa, 0x10, 0x0018}, |
| 1527 | {0xaa, 0x11, 0x0018}, |
| 1528 | {0xaa, 0x12, 0x0018}, |
| 1529 | |
| 1530 | {0xaa, 0x15, 0x004e}, |
| 1531 | {0xaa, 0x1c, 0x0004}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1532 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
| 1533 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1534 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
| 1535 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 1536 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 1537 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 1538 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 1539 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 1540 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1541 | {0xa1, 0x01, 0x0002}, |
| 1542 | {0xa1, 0x01, 0x0008}, |
| 1543 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1544 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1545 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 1546 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 1547 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1548 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1549 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 1550 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1551 | {0xa1, 0x01, 0x01c8}, |
| 1552 | {0xa1, 0x01, 0x01c9}, |
| 1553 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1554 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 1555 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
| 1556 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
| 1557 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
| 1558 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
| 1559 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
| 1560 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
| 1561 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
| 1562 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
| 1563 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
| 1564 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
| 1565 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
| 1566 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
| 1567 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
| 1568 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
| 1569 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
| 1570 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 1571 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
| 1572 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 1573 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 1574 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 1575 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 1576 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 1577 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 1578 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 1579 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 1580 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 1581 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 1582 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 1583 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 1584 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 1585 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
| 1586 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1587 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1588 | {0xa0, 0x66, ZC3XX_R10A_RGB00}, /* matrix */ |
| 1589 | {0xa0, 0xed, ZC3XX_R10B_RGB01}, |
| 1590 | {0xa0, 0xed, ZC3XX_R10C_RGB02}, |
| 1591 | {0xa0, 0xed, ZC3XX_R10D_RGB10}, |
| 1592 | {0xa0, 0x66, ZC3XX_R10E_RGB11}, |
| 1593 | {0xa0, 0xed, ZC3XX_R10F_RGB12}, |
| 1594 | {0xa0, 0xed, ZC3XX_R110_RGB20}, |
| 1595 | {0xa0, 0xed, ZC3XX_R111_RGB21}, |
| 1596 | {0xa0, 0x66, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1597 | |
| 1598 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1599 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1600 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1601 | {0xaa, 0x13, 0x0031}, |
| 1602 | {0xaa, 0x14, 0x0001}, |
| 1603 | {0xaa, 0x0e, 0x0004}, |
| 1604 | {0xaa, 0x19, 0x00cd}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1605 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 1606 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
| 1607 | {0xa0, 0x62, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 1608 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 1609 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 1610 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, |
| 1611 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 1612 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1613 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1614 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 0x14 */ |
| 1615 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 1616 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
| 1617 | {0xa0, 0x18, ZC3XX_R01E_HSYNC_1}, |
| 1618 | {0xa0, 0x2c, ZC3XX_R01F_HSYNC_2}, |
| 1619 | {0xa0, 0x41, ZC3XX_R020_HSYNC_3}, |
| 1620 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 1621 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1622 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1623 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1624 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 1625 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 1626 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1627 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1628 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1629 | static const struct usb_action hdcs2020xb_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1630 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 1631 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 1632 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 1633 | {0xa0, 0x08, ZC3XX_R010_CMOSSENSORSELECT}, |
| 1634 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 1635 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 1636 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 1637 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 1638 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 1639 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1640 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1641 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 1642 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 1643 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 1644 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 1645 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 1646 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1647 | {0xaa, 0x1c, 0x0000}, |
| 1648 | {0xaa, 0x0a, 0x0001}, |
| 1649 | {0xaa, 0x0b, 0x0006}, |
| 1650 | {0xaa, 0x0c, 0x007a}, |
| 1651 | {0xaa, 0x0d, 0x00a7}, |
| 1652 | {0xaa, 0x03, 0x00fb}, |
| 1653 | {0xaa, 0x05, 0x0000}, |
| 1654 | {0xaa, 0x06, 0x0003}, |
| 1655 | {0xaa, 0x09, 0x0008}, |
| 1656 | {0xaa, 0x0f, 0x0018}, /* original setting */ |
| 1657 | {0xaa, 0x10, 0x0018}, |
| 1658 | {0xaa, 0x11, 0x0018}, |
| 1659 | {0xaa, 0x12, 0x0018}, |
| 1660 | {0xaa, 0x15, 0x004e}, |
| 1661 | {0xaa, 0x1c, 0x0004}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1662 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
| 1663 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1664 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
| 1665 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 1666 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 1667 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 1668 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 1669 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 1670 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1671 | {0xa1, 0x01, 0x0002}, |
| 1672 | {0xa1, 0x01, 0x0008}, |
| 1673 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1674 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1675 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 1676 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 1677 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1678 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1679 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 1680 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1681 | {0xa1, 0x01, 0x01c8}, |
| 1682 | {0xa1, 0x01, 0x01c9}, |
| 1683 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1684 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 1685 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
| 1686 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
| 1687 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
| 1688 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
| 1689 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
| 1690 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
| 1691 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
| 1692 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
| 1693 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
| 1694 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
| 1695 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
| 1696 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
| 1697 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
| 1698 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
| 1699 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
| 1700 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 1701 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
| 1702 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 1703 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 1704 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 1705 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 1706 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 1707 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 1708 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 1709 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 1710 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 1711 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 1712 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 1713 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 1714 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 1715 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
| 1716 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
| 1717 | {0xa0, 0x66, ZC3XX_R10A_RGB00}, /* matrix */ |
| 1718 | {0xa0, 0xed, ZC3XX_R10B_RGB01}, |
| 1719 | {0xa0, 0xed, ZC3XX_R10C_RGB02}, |
| 1720 | {0xa0, 0xed, ZC3XX_R10D_RGB10}, |
| 1721 | {0xa0, 0x66, ZC3XX_R10E_RGB11}, |
| 1722 | {0xa0, 0xed, ZC3XX_R10F_RGB12}, |
| 1723 | {0xa0, 0xed, ZC3XX_R110_RGB20}, |
| 1724 | {0xa0, 0xed, ZC3XX_R111_RGB21}, |
| 1725 | {0xa0, 0x66, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1726 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1727 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1728 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1729 | /**** set exposure ***/ |
| 1730 | {0xaa, 0x13, 0x0031}, |
| 1731 | {0xaa, 0x14, 0x0001}, |
| 1732 | {0xaa, 0x0e, 0x0004}, |
| 1733 | {0xaa, 0x19, 0x00cd}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1734 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 1735 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
| 1736 | {0xa0, 0x62, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 1737 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 1738 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 1739 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, |
| 1740 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 1741 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 1742 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 1743 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 1744 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, |
| 1745 | {0xa0, 0x18, ZC3XX_R01E_HSYNC_1}, |
| 1746 | {0xa0, 0x2c, ZC3XX_R01F_HSYNC_2}, |
| 1747 | {0xa0, 0x41, ZC3XX_R020_HSYNC_3}, |
| 1748 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 1749 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1750 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1751 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 1752 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 1753 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 1754 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1755 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1756 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1757 | static const struct usb_action hdcs2020b_50HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1758 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 1759 | {0xaa, 0x13, 0x0018}, /* 00,13,18,aa */ |
| 1760 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ |
| 1761 | {0xaa, 0x0e, 0x0005}, /* 00,0e,05,aa */ |
| 1762 | {0xaa, 0x19, 0x001f}, /* 00,19,1f,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1763 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 1764 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
| 1765 | {0xa0, 0x76, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,76,cc */ |
| 1766 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1767 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 1768 | {0xa0, 0x46, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,46,cc */ |
| 1769 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 1770 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 1771 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 1772 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,28,cc */ |
| 1773 | {0xa0, 0x05, ZC3XX_R01D_HSYNC_0}, /* 00,1d,05,cc */ |
| 1774 | {0xa0, 0x1a, ZC3XX_R01E_HSYNC_1}, /* 00,1e,1a,cc */ |
| 1775 | {0xa0, 0x2f, ZC3XX_R01F_HSYNC_2}, /* 00,1f,2f,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1776 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1777 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1778 | static const struct usb_action hdcs2020b_60HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1779 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 1780 | {0xaa, 0x13, 0x0031}, /* 00,13,31,aa */ |
| 1781 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ |
| 1782 | {0xaa, 0x0e, 0x0004}, /* 00,0e,04,aa */ |
| 1783 | {0xaa, 0x19, 0x00cd}, /* 00,19,cd,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1784 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 1785 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
| 1786 | {0xa0, 0x62, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,62,cc */ |
| 1787 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1788 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 1789 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3d,cc */ |
| 1790 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 1791 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 1792 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 1793 | {0xa0, 0x28, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,28,cc */ |
| 1794 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, /* 00,1d,04,cc */ |
| 1795 | {0xa0, 0x18, ZC3XX_R01E_HSYNC_1}, /* 00,1e,18,cc */ |
| 1796 | {0xa0, 0x2c, ZC3XX_R01F_HSYNC_2}, /* 00,1f,2c,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1797 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1798 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 1799 | static const struct usb_action hdcs2020b_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1800 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 1801 | {0xaa, 0x13, 0x0010}, /* 00,13,10,aa */ |
| 1802 | {0xaa, 0x14, 0x0001}, /* 00,14,01,aa */ |
| 1803 | {0xaa, 0x0e, 0x0004}, /* 00,0e,04,aa */ |
| 1804 | {0xaa, 0x19, 0x0000}, /* 00,19,00,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1805 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 1806 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
| 1807 | {0xa0, 0x70, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,70,cc */ |
| 1808 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1809 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 1810 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 1811 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 1812 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 1813 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 1814 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 1815 | {0xa0, 0x04, ZC3XX_R01D_HSYNC_0}, /* 00,1d,04,cc */ |
| 1816 | {0xa0, 0x17, ZC3XX_R01E_HSYNC_1}, /* 00,1e,17,cc */ |
| 1817 | {0xa0, 0x2a, ZC3XX_R01F_HSYNC_2}, /* 00,1f,2a,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1818 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1819 | }; |
| 1820 | |
Jean-Francois Moine | 03bf7565 | 2008-11-06 14:47:13 -0300 | [diff] [blame] | 1821 | static const struct usb_action hv7131bxx_Initial[] = { /* 320x240 */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1822 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 1823 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 1824 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
| 1825 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 1826 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 1827 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
| 1828 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1829 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1830 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 1831 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 1832 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 1833 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 1834 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 1835 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 1836 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 1837 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1838 | {0xaa, 0x30, 0x002d}, |
| 1839 | {0xaa, 0x01, 0x0005}, |
| 1840 | {0xaa, 0x11, 0x0000}, |
| 1841 | {0xaa, 0x13, 0x0001}, /* {0xaa, 0x13, 0x0000}, */ |
| 1842 | {0xaa, 0x14, 0x0001}, |
| 1843 | {0xaa, 0x15, 0x00e8}, |
| 1844 | {0xaa, 0x16, 0x0002}, |
Jean-Francois Moine | c9ff1b6 | 2008-11-06 15:29:47 -0300 | [diff] [blame] | 1845 | {0xaa, 0x17, 0x0086}, /* 00,17,88,aa */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1846 | {0xaa, 0x31, 0x0038}, |
| 1847 | {0xaa, 0x32, 0x0038}, |
| 1848 | {0xaa, 0x33, 0x0038}, |
| 1849 | {0xaa, 0x5b, 0x0001}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1850 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 1851 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1852 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 1853 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
| 1854 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1855 | {0xa0, 0x00, 0x01ad}, |
| 1856 | {0xa0, 0xc0, 0x019b}, |
| 1857 | {0xa0, 0xa0, 0x019c}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1858 | {0xa0, 0x02, ZC3XX_R188_MINGAIN}, |
| 1859 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 1860 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 1861 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 1862 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 1863 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | c9ff1b6 | 2008-11-06 15:29:47 -0300 | [diff] [blame] | 1864 | {0xaa, 0x02, 0x0090}, /* 00,02,80,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 1865 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1866 | }; |
| 1867 | |
Jean-Francois Moine | 03bf7565 | 2008-11-06 14:47:13 -0300 | [diff] [blame] | 1868 | static const struct usb_action hv7131bxx_InitialScale[] = { /* 640x480*/ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1869 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 1870 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 1871 | {0xa0, 0x00, ZC3XX_R010_CMOSSENSORSELECT}, |
| 1872 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 1873 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 1874 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
| 1875 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1876 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1877 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 1878 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 1879 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 1880 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 1881 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 1882 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 1883 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 1884 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1885 | {0xaa, 0x30, 0x002d}, |
| 1886 | {0xaa, 0x01, 0x0005}, |
| 1887 | {0xaa, 0x11, 0x0001}, |
| 1888 | {0xaa, 0x13, 0x0000}, /* {0xaa, 0x13, 0x0001}; */ |
| 1889 | {0xaa, 0x14, 0x0001}, |
| 1890 | {0xaa, 0x15, 0x00e6}, |
| 1891 | {0xaa, 0x16, 0x0002}, |
| 1892 | {0xaa, 0x17, 0x0086}, |
| 1893 | {0xaa, 0x31, 0x0038}, |
| 1894 | {0xaa, 0x32, 0x0038}, |
| 1895 | {0xaa, 0x33, 0x0038}, |
| 1896 | {0xaa, 0x5b, 0x0001}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1897 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 1898 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 1899 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 1900 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, |
| 1901 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1902 | {0xa0, 0x00, 0x01ad}, |
| 1903 | {0xa0, 0xc0, 0x019b}, |
| 1904 | {0xa0, 0xa0, 0x019c}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 1905 | {0xa0, 0x02, ZC3XX_R188_MINGAIN}, |
| 1906 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 1907 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 1908 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 1909 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 1910 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 1911 | {0xaa, 0x02, 0x0090}, /* {0xaa, 0x02, 0x0080}, */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 1912 | {} |
| 1913 | }; |
| 1914 | static const struct usb_action hv7131b_50HZ[] = { /* 640x480*/ |
| 1915 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 1916 | {0xaa, 0x25, 0x0007}, /* 00,25,07,aa */ |
| 1917 | {0xaa, 0x26, 0x0053}, /* 00,26,53,aa */ |
| 1918 | {0xaa, 0x27, 0x0000}, /* 00,27,00,aa */ |
| 1919 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 1920 | {0xaa, 0x21, 0x0050}, /* 00,21,50,aa */ |
| 1921 | {0xaa, 0x22, 0x001b}, /* 00,22,1b,aa */ |
| 1922 | {0xaa, 0x23, 0x00fc}, /* 00,23,fc,aa */ |
Jean-Francois Moine | f4f4ef7 | 2008-12-08 06:25:40 -0300 | [diff] [blame] | 1923 | {0xa0, 0x2f, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,2f,cc */ |
| 1924 | {0xa0, 0x9b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,9b,cc */ |
| 1925 | {0xa0, 0x80, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,80,cc */ |
| 1926 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1927 | {0xa0, 0xea, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,ea,cc */ |
| 1928 | {0xa0, 0x60, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,60,cc */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 1929 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0c,cc */ |
| 1930 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,18,cc */ |
| 1931 | {0xa0, 0x18, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,18,cc */ |
| 1932 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 1933 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, /* 00,1d,00,cc */ |
| 1934 | {0xa0, 0x50, ZC3XX_R01E_HSYNC_1}, /* 00,1e,50,cc */ |
| 1935 | {0xa0, 0x1b, ZC3XX_R01F_HSYNC_2}, /* 00,1f,1b,cc */ |
| 1936 | {0xa0, 0xfc, ZC3XX_R020_HSYNC_3}, /* 00,20,fc,cc */ |
| 1937 | {} |
| 1938 | }; |
| 1939 | static const struct usb_action hv7131b_50HZScale[] = { /* 320x240 */ |
| 1940 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 1941 | {0xaa, 0x25, 0x0007}, /* 00,25,07,aa */ |
| 1942 | {0xaa, 0x26, 0x0053}, /* 00,26,53,aa */ |
| 1943 | {0xaa, 0x27, 0x0000}, /* 00,27,00,aa */ |
| 1944 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 1945 | {0xaa, 0x21, 0x0050}, /* 00,21,50,aa */ |
| 1946 | {0xaa, 0x22, 0x0012}, /* 00,22,12,aa */ |
| 1947 | {0xaa, 0x23, 0x0080}, /* 00,23,80,aa */ |
Jean-Francois Moine | f4f4ef7 | 2008-12-08 06:25:40 -0300 | [diff] [blame] | 1948 | {0xa0, 0x2f, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,2f,cc */ |
| 1949 | {0xa0, 0x9b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,9b,cc */ |
| 1950 | {0xa0, 0x80, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,80,cc */ |
| 1951 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,01,cc */ |
| 1952 | {0xa0, 0xd4, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,d4,cc */ |
| 1953 | {0xa0, 0xc0, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,c0,cc */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 1954 | {0xa0, 0x07, ZC3XX_R18C_AEFREEZE}, /* 01,8c,07,cc */ |
| 1955 | {0xa0, 0x0f, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,0f,cc */ |
| 1956 | {0xa0, 0x18, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,18,cc */ |
| 1957 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 1958 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, /* 00,1d,00,cc */ |
| 1959 | {0xa0, 0x50, ZC3XX_R01E_HSYNC_1}, /* 00,1e,50,cc */ |
| 1960 | {0xa0, 0x12, ZC3XX_R01F_HSYNC_2}, /* 00,1f,12,cc */ |
| 1961 | {0xa0, 0x80, ZC3XX_R020_HSYNC_3}, /* 00,20,80,cc */ |
| 1962 | {} |
| 1963 | }; |
| 1964 | static const struct usb_action hv7131b_60HZ[] = { /* 640x480*/ |
| 1965 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 1966 | {0xaa, 0x25, 0x0007}, /* 00,25,07,aa */ |
| 1967 | {0xaa, 0x26, 0x00a1}, /* 00,26,a1,aa */ |
| 1968 | {0xaa, 0x27, 0x0020}, /* 00,27,20,aa */ |
| 1969 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 1970 | {0xaa, 0x21, 0x0040}, /* 00,21,40,aa */ |
| 1971 | {0xaa, 0x22, 0x0013}, /* 00,22,13,aa */ |
| 1972 | {0xaa, 0x23, 0x004c}, /* 00,23,4c,aa */ |
Jean-Francois Moine | f4f4ef7 | 2008-12-08 06:25:40 -0300 | [diff] [blame] | 1973 | {0xa0, 0x2f, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,2f,cc */ |
| 1974 | {0xa0, 0x4d, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,4d,cc */ |
| 1975 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,60,cc */ |
| 1976 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 1977 | {0xa0, 0xc3, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,c3,cc */ |
| 1978 | {0xa0, 0x50, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,50,cc */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 1979 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0c,cc */ |
| 1980 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,18,cc */ |
| 1981 | {0xa0, 0x18, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,18,cc */ |
| 1982 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 1983 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, /* 00,1d,00,cc */ |
| 1984 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, /* 00,1e,40,cc */ |
| 1985 | {0xa0, 0x13, ZC3XX_R01F_HSYNC_2}, /* 00,1f,13,cc */ |
| 1986 | {0xa0, 0x4c, ZC3XX_R020_HSYNC_3}, /* 00,20,4c,cc */ |
| 1987 | {} |
| 1988 | }; |
| 1989 | static const struct usb_action hv7131b_60HZScale[] = { /* 320x240 */ |
| 1990 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 1991 | {0xaa, 0x25, 0x0007}, /* 00,25,07,aa */ |
| 1992 | {0xaa, 0x26, 0x00a1}, /* 00,26,a1,aa */ |
| 1993 | {0xaa, 0x27, 0x0020}, /* 00,27,20,aa */ |
| 1994 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 1995 | {0xaa, 0x21, 0x00a0}, /* 00,21,a0,aa */ |
| 1996 | {0xaa, 0x22, 0x0016}, /* 00,22,16,aa */ |
| 1997 | {0xaa, 0x23, 0x0040}, /* 00,23,40,aa */ |
Jean-Francois Moine | f4f4ef7 | 2008-12-08 06:25:40 -0300 | [diff] [blame] | 1998 | {0xa0, 0x2f, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,2f,cc */ |
| 1999 | {0xa0, 0x4d, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,4d,cc */ |
| 2000 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,60,cc */ |
| 2001 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,01,cc */ |
| 2002 | {0xa0, 0x86, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,86,cc */ |
| 2003 | {0xa0, 0xa0, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,a0,cc */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 2004 | {0xa0, 0x07, ZC3XX_R18C_AEFREEZE}, /* 01,8c,07,cc */ |
| 2005 | {0xa0, 0x0f, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,0f,cc */ |
| 2006 | {0xa0, 0x18, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,18,cc */ |
| 2007 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 2008 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, /* 00,1d,00,cc */ |
| 2009 | {0xa0, 0xa0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,a0,cc */ |
| 2010 | {0xa0, 0x16, ZC3XX_R01F_HSYNC_2}, /* 00,1f,16,cc */ |
| 2011 | {0xa0, 0x40, ZC3XX_R020_HSYNC_3}, /* 00,20,40,cc */ |
| 2012 | {} |
| 2013 | }; |
| 2014 | static const struct usb_action hv7131b_NoFliker[] = { /* 640x480*/ |
| 2015 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 2016 | {0xaa, 0x25, 0x0003}, /* 00,25,03,aa */ |
| 2017 | {0xaa, 0x26, 0x0000}, /* 00,26,00,aa */ |
| 2018 | {0xaa, 0x27, 0x0000}, /* 00,27,00,aa */ |
| 2019 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 2020 | {0xaa, 0x21, 0x0010}, /* 00,21,10,aa */ |
| 2021 | {0xaa, 0x22, 0x0000}, /* 00,22,00,aa */ |
| 2022 | {0xaa, 0x23, 0x0003}, /* 00,23,03,aa */ |
Jean-Francois Moine | f4f4ef7 | 2008-12-08 06:25:40 -0300 | [diff] [blame] | 2023 | {0xa0, 0x2f, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,2f,cc */ |
| 2024 | {0xa0, 0xf8, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,f8,cc */ |
| 2025 | {0xa0, 0x00, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,00,cc */ |
| 2026 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2027 | {0xa0, 0x02, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,02,cc */ |
| 2028 | {0xa0, 0x00, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,00,cc */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 2029 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2030 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2031 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 2032 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 2033 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, /* 00,1d,00,cc */ |
| 2034 | {0xa0, 0x10, ZC3XX_R01E_HSYNC_1}, /* 00,1e,10,cc */ |
| 2035 | {0xa0, 0x00, ZC3XX_R01F_HSYNC_2}, /* 00,1f,00,cc */ |
| 2036 | {0xa0, 0x03, ZC3XX_R020_HSYNC_3}, /* 00,20,03,cc */ |
| 2037 | {} |
| 2038 | }; |
| 2039 | static const struct usb_action hv7131b_NoFlikerScale[] = { /* 320x240 */ |
| 2040 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 2041 | {0xaa, 0x25, 0x0003}, /* 00,25,03,aa */ |
| 2042 | {0xaa, 0x26, 0x0000}, /* 00,26,00,aa */ |
| 2043 | {0xaa, 0x27, 0x0000}, /* 00,27,00,aa */ |
| 2044 | {0xaa, 0x20, 0x0000}, /* 00,20,00,aa */ |
| 2045 | {0xaa, 0x21, 0x00a0}, /* 00,21,a0,aa */ |
| 2046 | {0xaa, 0x22, 0x0016}, /* 00,22,16,aa */ |
| 2047 | {0xaa, 0x23, 0x0040}, /* 00,23,40,aa */ |
Jean-Francois Moine | f4f4ef7 | 2008-12-08 06:25:40 -0300 | [diff] [blame] | 2048 | {0xa0, 0x2f, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,2f,cc */ |
| 2049 | {0xa0, 0xf8, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,f8,cc */ |
| 2050 | {0xa0, 0x00, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,00,cc */ |
| 2051 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2052 | {0xa0, 0x02, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,02,cc */ |
| 2053 | {0xa0, 0x00, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,00,cc */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 2054 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2055 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2056 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 2057 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 2058 | {0xa0, 0x00, ZC3XX_R01D_HSYNC_0}, /* 00,1d,00,cc */ |
| 2059 | {0xa0, 0xa0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,a0,cc */ |
| 2060 | {0xa0, 0x16, ZC3XX_R01F_HSYNC_2}, /* 00,1f,16,cc */ |
| 2061 | {0xa0, 0x40, ZC3XX_R020_HSYNC_3}, /* 00,20,40,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2062 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2063 | }; |
| 2064 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2065 | static const struct usb_action hv7131cxx_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2066 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 2067 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 2068 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, |
| 2069 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 2070 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 2071 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 2072 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2073 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2074 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 2075 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 2076 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 2077 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 2078 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 2079 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 2080 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
| 2081 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 2082 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
| 2083 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
| 2084 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 2085 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 2086 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2087 | {0xaa, 0x01, 0x000c}, |
| 2088 | {0xaa, 0x11, 0x0000}, |
| 2089 | {0xaa, 0x13, 0x0000}, |
| 2090 | {0xaa, 0x14, 0x0001}, |
| 2091 | {0xaa, 0x15, 0x00e8}, |
| 2092 | {0xaa, 0x16, 0x0002}, |
| 2093 | {0xaa, 0x17, 0x0088}, |
| 2094 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2095 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 2096 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 2097 | {0xa0, 0x89, ZC3XX_R18D_YTARGET}, |
| 2098 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2099 | {0xa0, 0x00, 0x01ad}, |
| 2100 | {0xa0, 0xc0, 0x019b}, |
| 2101 | {0xa0, 0xa0, 0x019c}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2102 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 2103 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 2104 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 2105 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 2106 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2107 | {0xa1, 0x01, 0x0002}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2108 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
| 2109 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2110 | {0xa1, 0x01, 0x0091}, |
| 2111 | {0xa1, 0x01, 0x0095}, |
| 2112 | {0xa1, 0x01, 0x0096}, |
| 2113 | |
| 2114 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2115 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 2116 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2117 | {0xa1, 0x01, 0x01c8}, |
| 2118 | {0xa1, 0x01, 0x01c9}, |
| 2119 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2120 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2121 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2122 | {0xa0, 0x60, ZC3XX_R10A_RGB00}, /* matrix */ |
| 2123 | {0xa0, 0xf0, ZC3XX_R10B_RGB01}, |
| 2124 | {0xa0, 0xf0, ZC3XX_R10C_RGB02}, |
| 2125 | {0xa0, 0xf0, ZC3XX_R10D_RGB10}, |
| 2126 | {0xa0, 0x60, ZC3XX_R10E_RGB11}, |
| 2127 | {0xa0, 0xf0, ZC3XX_R10F_RGB12}, |
| 2128 | {0xa0, 0xf0, ZC3XX_R110_RGB20}, |
| 2129 | {0xa0, 0xf0, ZC3XX_R111_RGB21}, |
| 2130 | {0xa0, 0x60, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2131 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2132 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2133 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2134 | {0xaa, 0x25, 0x0007}, |
| 2135 | {0xaa, 0x26, 0x0053}, |
| 2136 | {0xaa, 0x27, 0x0000}, |
| 2137 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2138 | {0xa0, 0x10, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 2f */ |
| 2139 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 9b */ |
| 2140 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 80 */ |
| 2141 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 2142 | {0xa0, 0xd4, ZC3XX_R196_ANTIFLICKERMID}, |
| 2143 | {0xa0, 0xc0, ZC3XX_R197_ANTIFLICKERLOW}, |
| 2144 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 2145 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 2146 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 2147 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 2148 | {0xa0, 0x13, ZC3XX_R1AA_DIGITALGAINSTEP}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2149 | {0xa1, 0x01, 0x001d}, |
| 2150 | {0xa1, 0x01, 0x001e}, |
| 2151 | {0xa1, 0x01, 0x001f}, |
| 2152 | {0xa1, 0x01, 0x0020}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2153 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2154 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2155 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2156 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2157 | }; |
| 2158 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2159 | static const struct usb_action hv7131cxx_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2160 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2161 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2162 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* diff */ |
| 2163 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, |
| 2164 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 2165 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 2166 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2167 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2168 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2169 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2170 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2171 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 2172 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 2173 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 2174 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 1e0 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2175 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2176 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 2177 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 2178 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
| 2179 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 2180 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
| 2181 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
| 2182 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 2183 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 2184 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2185 | {0xaa, 0x01, 0x000c}, |
| 2186 | {0xaa, 0x11, 0x0000}, |
| 2187 | {0xaa, 0x13, 0x0000}, |
| 2188 | {0xaa, 0x14, 0x0001}, |
| 2189 | {0xaa, 0x15, 0x00e8}, |
| 2190 | {0xaa, 0x16, 0x0002}, |
| 2191 | {0xaa, 0x17, 0x0088}, |
| 2192 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2193 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2194 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2195 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 2196 | {0xa0, 0x89, ZC3XX_R18D_YTARGET}, |
| 2197 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2198 | {0xa0, 0x00, 0x01ad}, |
| 2199 | {0xa0, 0xc0, 0x019b}, |
| 2200 | {0xa0, 0xa0, 0x019c}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2201 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 2202 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 2203 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 2204 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 2205 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2206 | {0xa1, 0x01, 0x0002}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2207 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
| 2208 | /* read the i2c chips ident */ |
| 2209 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2210 | {0xa1, 0x01, 0x0091}, |
| 2211 | {0xa1, 0x01, 0x0095}, |
| 2212 | {0xa1, 0x01, 0x0096}, |
| 2213 | |
| 2214 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2215 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 2216 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2217 | {0xa1, 0x01, 0x01c8}, |
| 2218 | {0xa1, 0x01, 0x01c9}, |
| 2219 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2220 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2221 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2222 | {0xa0, 0x60, ZC3XX_R10A_RGB00}, /* matrix */ |
| 2223 | {0xa0, 0xf0, ZC3XX_R10B_RGB01}, |
| 2224 | {0xa0, 0xf0, ZC3XX_R10C_RGB02}, |
| 2225 | {0xa0, 0xf0, ZC3XX_R10D_RGB10}, |
| 2226 | {0xa0, 0x60, ZC3XX_R10E_RGB11}, |
| 2227 | {0xa0, 0xf0, ZC3XX_R10F_RGB12}, |
| 2228 | {0xa0, 0xf0, ZC3XX_R110_RGB20}, |
| 2229 | {0xa0, 0xf0, ZC3XX_R111_RGB21}, |
| 2230 | {0xa0, 0x60, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2231 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2232 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2233 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2234 | {0xaa, 0x25, 0x0007}, |
| 2235 | {0xaa, 0x26, 0x0053}, |
| 2236 | {0xaa, 0x27, 0x0000}, |
| 2237 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2238 | {0xa0, 0x10, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 2f */ |
| 2239 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 9b */ |
| 2240 | {0xa0, 0x60, ZC3XX_R192_EXPOSURELIMITLOW}, /* 80 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2241 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2242 | {0xa0, 0x01, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 2243 | {0xa0, 0xd4, ZC3XX_R196_ANTIFLICKERMID}, |
| 2244 | {0xa0, 0xc0, ZC3XX_R197_ANTIFLICKERLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2245 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2246 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 2247 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 2248 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 2249 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 2250 | {0xa0, 0x13, ZC3XX_R1AA_DIGITALGAINSTEP}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2251 | {0xa1, 0x01, 0x001d}, |
| 2252 | {0xa1, 0x01, 0x001e}, |
| 2253 | {0xa1, 0x01, 0x001f}, |
| 2254 | {0xa1, 0x01, 0x0020}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2255 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2256 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2257 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2258 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2259 | }; |
| 2260 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2261 | static const struct usb_action icm105axx_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2262 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 2263 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 2264 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 2265 | {0xa0, 0x0c, ZC3XX_R010_CMOSSENSORSELECT}, |
| 2266 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 2267 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 2268 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 2269 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 2270 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 2271 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2272 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2273 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
| 2274 | {0xa0, 0x00, ZC3XX_R097_WINYSTARTHIGH}, |
| 2275 | {0xa0, 0x01, ZC3XX_R098_WINYSTARTLOW}, |
| 2276 | {0xa0, 0x00, ZC3XX_R099_WINXSTARTHIGH}, |
| 2277 | {0xa0, 0x01, ZC3XX_R09A_WINXSTARTLOW}, |
| 2278 | {0xa0, 0x01, ZC3XX_R11A_FIRSTYLOW}, |
| 2279 | {0xa0, 0x01, ZC3XX_R11C_FIRSTXLOW}, |
| 2280 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
| 2281 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 2282 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
| 2283 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
| 2284 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 2285 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 2286 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 2287 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 2288 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2289 | {0xaa, 0x01, 0x0010}, |
| 2290 | {0xaa, 0x03, 0x0000}, |
| 2291 | {0xaa, 0x04, 0x0001}, |
| 2292 | {0xaa, 0x05, 0x0020}, |
| 2293 | {0xaa, 0x06, 0x0001}, |
| 2294 | {0xaa, 0x08, 0x0000}, |
| 2295 | {0xaa, 0x03, 0x0001}, |
| 2296 | {0xaa, 0x04, 0x0011}, |
| 2297 | {0xaa, 0x05, 0x00a0}, |
| 2298 | {0xaa, 0x06, 0x0001}, |
| 2299 | {0xaa, 0x08, 0x0000}, |
| 2300 | {0xaa, 0x03, 0x0002}, |
| 2301 | {0xaa, 0x04, 0x0013}, |
| 2302 | {0xaa, 0x05, 0x0020}, |
| 2303 | {0xaa, 0x06, 0x0001}, |
| 2304 | {0xaa, 0x08, 0x0000}, |
| 2305 | {0xaa, 0x03, 0x0003}, |
| 2306 | {0xaa, 0x04, 0x0015}, |
| 2307 | {0xaa, 0x05, 0x0020}, |
| 2308 | {0xaa, 0x06, 0x0005}, |
| 2309 | {0xaa, 0x08, 0x0000}, |
| 2310 | {0xaa, 0x03, 0x0004}, |
| 2311 | {0xaa, 0x04, 0x0017}, |
| 2312 | {0xaa, 0x05, 0x0020}, |
| 2313 | {0xaa, 0x06, 0x000d}, |
| 2314 | {0xaa, 0x08, 0x0000}, |
| 2315 | {0xaa, 0x03, 0x0005}, |
| 2316 | {0xaa, 0x04, 0x0019}, |
| 2317 | {0xaa, 0x05, 0x0020}, |
| 2318 | {0xaa, 0x06, 0x0005}, |
| 2319 | {0xaa, 0x08, 0x0000}, |
| 2320 | {0xaa, 0x03, 0x0006}, |
| 2321 | {0xaa, 0x04, 0x0017}, |
| 2322 | {0xaa, 0x05, 0x0026}, |
| 2323 | {0xaa, 0x06, 0x0005}, |
| 2324 | {0xaa, 0x08, 0x0000}, |
| 2325 | {0xaa, 0x03, 0x0007}, |
| 2326 | {0xaa, 0x04, 0x0019}, |
| 2327 | {0xaa, 0x05, 0x0022}, |
| 2328 | {0xaa, 0x06, 0x0005}, |
| 2329 | {0xaa, 0x08, 0x0000}, |
| 2330 | {0xaa, 0x03, 0x0008}, |
| 2331 | {0xaa, 0x04, 0x0021}, |
| 2332 | {0xaa, 0x05, 0x00aa}, |
| 2333 | {0xaa, 0x06, 0x0005}, |
| 2334 | {0xaa, 0x08, 0x0000}, |
| 2335 | {0xaa, 0x03, 0x0009}, |
| 2336 | {0xaa, 0x04, 0x0023}, |
| 2337 | {0xaa, 0x05, 0x00aa}, |
| 2338 | {0xaa, 0x06, 0x000d}, |
| 2339 | {0xaa, 0x08, 0x0000}, |
| 2340 | {0xaa, 0x03, 0x000a}, |
| 2341 | {0xaa, 0x04, 0x0025}, |
| 2342 | {0xaa, 0x05, 0x00aa}, |
| 2343 | {0xaa, 0x06, 0x0005}, |
| 2344 | {0xaa, 0x08, 0x0000}, |
| 2345 | {0xaa, 0x03, 0x000b}, |
| 2346 | {0xaa, 0x04, 0x00ec}, |
| 2347 | {0xaa, 0x05, 0x002e}, |
| 2348 | {0xaa, 0x06, 0x0005}, |
| 2349 | {0xaa, 0x08, 0x0000}, |
| 2350 | {0xaa, 0x03, 0x000c}, |
| 2351 | {0xaa, 0x04, 0x00fa}, |
| 2352 | {0xaa, 0x05, 0x002a}, |
| 2353 | {0xaa, 0x06, 0x0005}, |
| 2354 | {0xaa, 0x08, 0x0000}, |
| 2355 | {0xaa, 0x07, 0x000d}, |
| 2356 | {0xaa, 0x01, 0x0005}, |
| 2357 | {0xaa, 0x94, 0x0002}, |
| 2358 | {0xaa, 0x90, 0x0000}, |
| 2359 | {0xaa, 0x91, 0x001f}, |
| 2360 | {0xaa, 0x10, 0x0064}, |
| 2361 | {0xaa, 0x9b, 0x00f0}, |
| 2362 | {0xaa, 0x9c, 0x0002}, |
| 2363 | {0xaa, 0x14, 0x001a}, |
| 2364 | {0xaa, 0x20, 0x0080}, |
| 2365 | {0xaa, 0x22, 0x0080}, |
| 2366 | {0xaa, 0x24, 0x0080}, |
| 2367 | {0xaa, 0x26, 0x0080}, |
| 2368 | {0xaa, 0x00, 0x0084}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2369 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 2370 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2371 | {0xaa, 0xa8, 0x00c0}, |
| 2372 | {0xa1, 0x01, 0x0002}, |
| 2373 | {0xa1, 0x01, 0x0008}, |
| 2374 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2375 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2376 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 2377 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 2378 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2379 | {0xa1, 0x01, 0x0008}, |
| 2380 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2381 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 2382 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2383 | {0xa1, 0x01, 0x01c8}, |
| 2384 | {0xa1, 0x01, 0x01c9}, |
| 2385 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2386 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 2387 | {0xa0, 0x52, ZC3XX_R10A_RGB00}, /* matrix */ |
| 2388 | {0xa0, 0xf7, ZC3XX_R10B_RGB01}, |
| 2389 | {0xa0, 0xf7, ZC3XX_R10C_RGB02}, |
| 2390 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
| 2391 | {0xa0, 0x52, ZC3XX_R10E_RGB11}, |
| 2392 | {0xa0, 0xf7, ZC3XX_R10F_RGB12}, |
| 2393 | {0xa0, 0xf7, ZC3XX_R110_RGB20}, |
| 2394 | {0xa0, 0xf7, ZC3XX_R111_RGB21}, |
| 2395 | {0xa0, 0x52, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2396 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2397 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2398 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2399 | {0xaa, 0x0d, 0x0003}, |
| 2400 | {0xaa, 0x0c, 0x008c}, |
| 2401 | {0xaa, 0x0e, 0x0095}, |
| 2402 | {0xaa, 0x0f, 0x0002}, |
| 2403 | {0xaa, 0x1c, 0x0094}, |
| 2404 | {0xaa, 0x1d, 0x0002}, |
| 2405 | {0xaa, 0x20, 0x0080}, |
| 2406 | {0xaa, 0x22, 0x0080}, |
| 2407 | {0xaa, 0x24, 0x0080}, |
| 2408 | {0xaa, 0x26, 0x0080}, |
| 2409 | {0xaa, 0x00, 0x0084}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2410 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
| 2411 | {0xa0, 0x94, ZC3XX_R0A4_EXPOSURETIMELOW}, |
| 2412 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 2413 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, |
| 2414 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 2415 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 2416 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 2417 | {0xa0, 0x84, ZC3XX_R197_ANTIFLICKERLOW}, |
| 2418 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 2419 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 2420 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 2421 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 2422 | {0xa0, 0xe3, ZC3XX_R01D_HSYNC_0}, |
| 2423 | {0xa0, 0xec, ZC3XX_R01E_HSYNC_1}, |
| 2424 | {0xa0, 0xf5, ZC3XX_R01F_HSYNC_2}, |
| 2425 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 2426 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 2427 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, |
| 2428 | {0xa0, 0xc0, ZC3XX_R11D_GLOBALGAIN}, |
| 2429 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2430 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2431 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2432 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 2433 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 2434 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2435 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2436 | }; |
| 2437 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2438 | static const struct usb_action icm105axx_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2439 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 2440 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 2441 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 2442 | {0xa0, 0x0c, ZC3XX_R010_CMOSSENSORSELECT}, |
| 2443 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 2444 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 2445 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 2446 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 2447 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 2448 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2449 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 2450 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
| 2451 | {0xa0, 0x00, ZC3XX_R097_WINYSTARTHIGH}, |
| 2452 | {0xa0, 0x02, ZC3XX_R098_WINYSTARTLOW}, |
| 2453 | {0xa0, 0x00, ZC3XX_R099_WINXSTARTHIGH}, |
| 2454 | {0xa0, 0x02, ZC3XX_R09A_WINXSTARTLOW}, |
| 2455 | {0xa0, 0x02, ZC3XX_R11A_FIRSTYLOW}, |
| 2456 | {0xa0, 0x02, ZC3XX_R11C_FIRSTXLOW}, |
| 2457 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, |
| 2458 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
| 2459 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
| 2460 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
| 2461 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 2462 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 2463 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 2464 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 2465 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2466 | {0xaa, 0x01, 0x0010}, |
| 2467 | {0xaa, 0x03, 0x0000}, |
| 2468 | {0xaa, 0x04, 0x0001}, |
| 2469 | {0xaa, 0x05, 0x0020}, |
| 2470 | {0xaa, 0x06, 0x0001}, |
| 2471 | {0xaa, 0x08, 0x0000}, |
| 2472 | {0xaa, 0x03, 0x0001}, |
| 2473 | {0xaa, 0x04, 0x0011}, |
| 2474 | {0xaa, 0x05, 0x00a0}, |
| 2475 | {0xaa, 0x06, 0x0001}, |
| 2476 | {0xaa, 0x08, 0x0000}, |
| 2477 | {0xaa, 0x03, 0x0002}, |
| 2478 | {0xaa, 0x04, 0x0013}, |
| 2479 | {0xaa, 0x05, 0x0020}, |
| 2480 | {0xaa, 0x06, 0x0001}, |
| 2481 | {0xaa, 0x08, 0x0000}, |
| 2482 | {0xaa, 0x03, 0x0003}, |
| 2483 | {0xaa, 0x04, 0x0015}, |
| 2484 | {0xaa, 0x05, 0x0020}, |
| 2485 | {0xaa, 0x06, 0x0005}, |
| 2486 | {0xaa, 0x08, 0x0000}, |
| 2487 | {0xaa, 0x03, 0x0004}, |
| 2488 | {0xaa, 0x04, 0x0017}, |
| 2489 | {0xaa, 0x05, 0x0020}, |
| 2490 | {0xaa, 0x06, 0x000d}, |
| 2491 | {0xaa, 0x08, 0x0000}, |
| 2492 | {0xaa, 0x03, 0x0005}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2493 | {0xa0, 0x04, ZC3XX_R092_I2CADDRESSSELECT}, |
| 2494 | {0xa0, 0x19, ZC3XX_R093_I2CSETVALUE}, |
| 2495 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2496 | {0xa1, 0x01, 0x0091}, |
| 2497 | {0xaa, 0x05, 0x0020}, |
| 2498 | {0xaa, 0x06, 0x0005}, |
| 2499 | {0xaa, 0x08, 0x0000}, |
| 2500 | {0xaa, 0x03, 0x0006}, |
| 2501 | {0xaa, 0x04, 0x0017}, |
| 2502 | {0xaa, 0x05, 0x0026}, |
| 2503 | {0xaa, 0x06, 0x0005}, |
| 2504 | {0xaa, 0x08, 0x0000}, |
| 2505 | {0xaa, 0x03, 0x0007}, |
| 2506 | {0xaa, 0x04, 0x0019}, |
| 2507 | {0xaa, 0x05, 0x0022}, |
| 2508 | {0xaa, 0x06, 0x0005}, |
| 2509 | {0xaa, 0x08, 0x0000}, |
| 2510 | {0xaa, 0x03, 0x0008}, |
| 2511 | {0xaa, 0x04, 0x0021}, |
| 2512 | {0xaa, 0x05, 0x00aa}, |
| 2513 | {0xaa, 0x06, 0x0005}, |
| 2514 | {0xaa, 0x08, 0x0000}, |
| 2515 | {0xaa, 0x03, 0x0009}, |
| 2516 | {0xaa, 0x04, 0x0023}, |
| 2517 | {0xaa, 0x05, 0x00aa}, |
| 2518 | {0xaa, 0x06, 0x000d}, |
| 2519 | {0xaa, 0x08, 0x0000}, |
| 2520 | {0xaa, 0x03, 0x000a}, |
| 2521 | {0xaa, 0x04, 0x0025}, |
| 2522 | {0xaa, 0x05, 0x00aa}, |
| 2523 | {0xaa, 0x06, 0x0005}, |
| 2524 | {0xaa, 0x08, 0x0000}, |
| 2525 | {0xaa, 0x03, 0x000b}, |
| 2526 | {0xaa, 0x04, 0x00ec}, |
| 2527 | {0xaa, 0x05, 0x002e}, |
| 2528 | {0xaa, 0x06, 0x0005}, |
| 2529 | {0xaa, 0x08, 0x0000}, |
| 2530 | {0xaa, 0x03, 0x000c}, |
| 2531 | {0xaa, 0x04, 0x00fa}, |
| 2532 | {0xaa, 0x05, 0x002a}, |
| 2533 | {0xaa, 0x06, 0x0005}, |
| 2534 | {0xaa, 0x08, 0x0000}, |
| 2535 | {0xaa, 0x07, 0x000d}, |
| 2536 | {0xaa, 0x01, 0x0005}, |
| 2537 | {0xaa, 0x94, 0x0002}, |
| 2538 | {0xaa, 0x90, 0x0000}, |
| 2539 | {0xaa, 0x91, 0x0010}, |
| 2540 | {0xaa, 0x10, 0x0064}, |
| 2541 | {0xaa, 0x9b, 0x00f0}, |
| 2542 | {0xaa, 0x9c, 0x0002}, |
| 2543 | {0xaa, 0x14, 0x001a}, |
| 2544 | {0xaa, 0x20, 0x0080}, |
| 2545 | {0xaa, 0x22, 0x0080}, |
| 2546 | {0xaa, 0x24, 0x0080}, |
| 2547 | {0xaa, 0x26, 0x0080}, |
| 2548 | {0xaa, 0x00, 0x0084}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2549 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 2550 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2551 | {0xaa, 0xa8, 0x0080}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2552 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2553 | {0xa1, 0x01, 0x0002}, |
| 2554 | {0xa1, 0x01, 0x0008}, |
| 2555 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2556 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2557 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 2558 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 2559 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2560 | {0xa1, 0x01, 0x0008}, |
| 2561 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2562 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 2563 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2564 | {0xa1, 0x01, 0x01c8}, |
| 2565 | {0xa1, 0x01, 0x01c9}, |
| 2566 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2567 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2568 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2569 | {0xa0, 0x52, ZC3XX_R10A_RGB00}, /* matrix */ |
| 2570 | {0xa0, 0xf7, ZC3XX_R10B_RGB01}, |
| 2571 | {0xa0, 0xf7, ZC3XX_R10C_RGB02}, |
| 2572 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
| 2573 | {0xa0, 0x52, ZC3XX_R10E_RGB11}, |
| 2574 | {0xa0, 0xf7, ZC3XX_R10F_RGB12}, |
| 2575 | {0xa0, 0xf7, ZC3XX_R110_RGB20}, |
| 2576 | {0xa0, 0xf7, ZC3XX_R111_RGB21}, |
| 2577 | {0xa0, 0x52, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2578 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2579 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2580 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2581 | {0xaa, 0x0d, 0x0003}, |
| 2582 | {0xaa, 0x0c, 0x0020}, |
| 2583 | {0xaa, 0x0e, 0x000e}, |
| 2584 | {0xaa, 0x0f, 0x0002}, |
| 2585 | {0xaa, 0x1c, 0x000d}, |
| 2586 | {0xaa, 0x1d, 0x0002}, |
| 2587 | {0xaa, 0x20, 0x0080}, |
| 2588 | {0xaa, 0x22, 0x0080}, |
| 2589 | {0xaa, 0x24, 0x0080}, |
| 2590 | {0xaa, 0x26, 0x0080}, |
| 2591 | {0xaa, 0x00, 0x0084}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2592 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
| 2593 | {0xa0, 0x0d, ZC3XX_R0A4_EXPOSURETIMELOW}, |
| 2594 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 2595 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, |
| 2596 | {0xa0, 0x1a, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 2597 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 2598 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 2599 | {0xa0, 0x4b, ZC3XX_R197_ANTIFLICKERLOW}, |
| 2600 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 2601 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 2602 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 2603 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 2604 | {0xa0, 0xc8, ZC3XX_R01D_HSYNC_0}, |
| 2605 | {0xa0, 0xd8, ZC3XX_R01E_HSYNC_1}, |
| 2606 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, |
| 2607 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 2608 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, |
| 2609 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2610 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2611 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 2612 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 2613 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 2614 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2615 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2616 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2617 | static const struct usb_action icm105a_50HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2618 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2619 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
| 2620 | {0xaa, 0x0c, 0x0020}, /* 00,0c,20,aa */ |
| 2621 | {0xaa, 0x0e, 0x000e}, /* 00,0e,0e,aa */ |
| 2622 | {0xaa, 0x0f, 0x0002}, /* 00,0f,02,aa */ |
| 2623 | {0xaa, 0x1c, 0x000d}, /* 00,1c,0d,aa */ |
| 2624 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 2625 | {0xaa, 0x20, 0x0080}, /* 00,20,80,aa */ |
| 2626 | {0xaa, 0x22, 0x0080}, /* 00,22,80,aa */ |
| 2627 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
| 2628 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
| 2629 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2630 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
| 2631 | {0xa0, 0x0d, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,0d,cc */ |
| 2632 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 2633 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 2634 | {0xa0, 0x1a, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,1a,cc */ |
| 2635 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2636 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 2637 | {0xa0, 0x4b, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,4b,cc */ |
| 2638 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2639 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2640 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 2641 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
| 2642 | {0xa0, 0xc8, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c8,cc */ |
| 2643 | {0xa0, 0xd8, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d8,cc */ |
| 2644 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ea,cc */ |
| 2645 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2646 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2647 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2648 | static const struct usb_action icm105a_50HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2649 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2650 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
| 2651 | {0xaa, 0x0c, 0x008c}, /* 00,0c,8c,aa */ |
| 2652 | {0xaa, 0x0e, 0x0095}, /* 00,0e,95,aa */ |
| 2653 | {0xaa, 0x0f, 0x0002}, /* 00,0f,02,aa */ |
| 2654 | {0xaa, 0x1c, 0x0094}, /* 00,1c,94,aa */ |
| 2655 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 2656 | {0xaa, 0x20, 0x0080}, /* 00,20,80,aa */ |
| 2657 | {0xaa, 0x22, 0x0080}, /* 00,22,80,aa */ |
| 2658 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
| 2659 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
| 2660 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2661 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
| 2662 | {0xa0, 0x94, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,94,cc */ |
| 2663 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 2664 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 2665 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,20,cc */ |
| 2666 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2667 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 2668 | {0xa0, 0x84, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,84,cc */ |
| 2669 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2670 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2671 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 2672 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
| 2673 | {0xa0, 0xe3, ZC3XX_R01D_HSYNC_0}, /* 00,1d,e3,cc */ |
| 2674 | {0xa0, 0xec, ZC3XX_R01E_HSYNC_1}, /* 00,1e,ec,cc */ |
| 2675 | {0xa0, 0xf5, ZC3XX_R01F_HSYNC_2}, /* 00,1f,f5,cc */ |
| 2676 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 2677 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, /* 01,a7,00,cc */ |
| 2678 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,c0,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2679 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2680 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2681 | static const struct usb_action icm105a_60HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2682 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2683 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
| 2684 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ |
| 2685 | {0xaa, 0x0e, 0x000d}, /* 00,0e,0d,aa */ |
| 2686 | {0xaa, 0x0f, 0x0002}, /* 00,0f,02,aa */ |
| 2687 | {0xaa, 0x1c, 0x0008}, /* 00,1c,08,aa */ |
| 2688 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 2689 | {0xaa, 0x20, 0x0080}, /* 00,20,80,aa */ |
| 2690 | {0xaa, 0x22, 0x0080}, /* 00,22,80,aa */ |
| 2691 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
| 2692 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
| 2693 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2694 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
| 2695 | {0xa0, 0x08, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,08,cc */ |
| 2696 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 2697 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 2698 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,10,cc */ |
| 2699 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2700 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 2701 | {0xa0, 0x41, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,41,cc */ |
| 2702 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2703 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2704 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 2705 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
| 2706 | {0xa0, 0xc1, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c1,cc */ |
| 2707 | {0xa0, 0xd4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d4,cc */ |
| 2708 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
| 2709 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2710 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2711 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2712 | static const struct usb_action icm105a_60HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2713 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2714 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
| 2715 | {0xaa, 0x0c, 0x0008}, /* 00,0c,08,aa */ |
| 2716 | {0xaa, 0x0e, 0x0086}, /* 00,0e,86,aa */ |
| 2717 | {0xaa, 0x0f, 0x0002}, /* 00,0f,02,aa */ |
| 2718 | {0xaa, 0x1c, 0x0085}, /* 00,1c,85,aa */ |
| 2719 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 2720 | {0xaa, 0x20, 0x0080}, /* 00,20,80,aa */ |
| 2721 | {0xaa, 0x22, 0x0080}, /* 00,22,80,aa */ |
| 2722 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
| 2723 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
| 2724 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2725 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
| 2726 | {0xa0, 0x85, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,85,cc */ |
| 2727 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 2728 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 2729 | {0xa0, 0x08, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,08,cc */ |
| 2730 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2731 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 2732 | {0xa0, 0x81, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,81,cc */ |
| 2733 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2734 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2735 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 2736 | {0xa0, 0x12, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,12,cc */ |
| 2737 | {0xa0, 0xc2, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c2,cc */ |
| 2738 | {0xa0, 0xd6, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d6,cc */ |
| 2739 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ea,cc */ |
| 2740 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 2741 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, /* 01,a7,00,cc */ |
| 2742 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,c0,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2743 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2744 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2745 | static const struct usb_action icm105a_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2746 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2747 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
| 2748 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ |
| 2749 | {0xaa, 0x0e, 0x000d}, /* 00,0e,0d,aa */ |
| 2750 | {0xaa, 0x0f, 0x0002}, /* 00,0f,02,aa */ |
| 2751 | {0xaa, 0x1c, 0x0000}, /* 00,1c,00,aa */ |
| 2752 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 2753 | {0xaa, 0x20, 0x0080}, /* 00,20,80,aa */ |
| 2754 | {0xaa, 0x22, 0x0080}, /* 00,22,80,aa */ |
| 2755 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
| 2756 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
| 2757 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2758 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
| 2759 | {0xa0, 0x00, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,00,cc */ |
| 2760 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 2761 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 2762 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,20,cc */ |
| 2763 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2764 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 2765 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 2766 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2767 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2768 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 2769 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 2770 | {0xa0, 0xc1, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c1,cc */ |
| 2771 | {0xa0, 0xd4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d4,cc */ |
| 2772 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
| 2773 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2774 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2775 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2776 | static const struct usb_action icm105a_NoFlikerScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2777 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2778 | {0xaa, 0x0d, 0x0003}, /* 00,0d,03,aa */ |
| 2779 | {0xaa, 0x0c, 0x0004}, /* 00,0c,04,aa */ |
| 2780 | {0xaa, 0x0e, 0x0081}, /* 00,0e,81,aa */ |
| 2781 | {0xaa, 0x0f, 0x0002}, /* 00,0f,02,aa */ |
| 2782 | {0xaa, 0x1c, 0x0080}, /* 00,1c,80,aa */ |
| 2783 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 2784 | {0xaa, 0x20, 0x0080}, /* 00,20,80,aa */ |
| 2785 | {0xaa, 0x22, 0x0080}, /* 00,22,80,aa */ |
| 2786 | {0xaa, 0x24, 0x0080}, /* 00,24,80,aa */ |
| 2787 | {0xaa, 0x26, 0x0080}, /* 00,26,80,aa */ |
| 2788 | {0xaa, 0x00, 0x0084}, /* 00,00,84,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2789 | {0xa0, 0x02, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,02,cc */ |
| 2790 | {0xa0, 0x80, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,80,cc */ |
| 2791 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 2792 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 2793 | {0xa0, 0x20, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,20,cc */ |
| 2794 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 2795 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 2796 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 2797 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 2798 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 2799 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 2800 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 2801 | {0xa0, 0xc1, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c1,cc */ |
| 2802 | {0xa0, 0xd4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d4,cc */ |
| 2803 | {0xa0, 0xe8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e8,cc */ |
| 2804 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 2805 | {0xa0, 0x00, ZC3XX_R1A7_CALCGLOBALMEAN}, /* 01,a7,00,cc */ |
| 2806 | {0xa0, 0xc0, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,c0,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2807 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2808 | }; |
| 2809 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2810 | static const struct usb_action MC501CB_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2811 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 2812 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 00,02,00,cc */ |
| 2813 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 2814 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 2815 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
| 2816 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 2817 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 2818 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 2819 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 2820 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 2821 | {0xa0, 0xd8, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d8,cc */ |
| 2822 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 2823 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 2824 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 2825 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 2826 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, /* 00,9b,01,cc */ |
| 2827 | {0xa0, 0xde, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,de,cc */ |
| 2828 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, /* 00,9d,02,cc */ |
| 2829 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
| 2830 | {0xa0, 0x33, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,33,cc */ |
| 2831 | {0xa0, 0x34, ZC3XX_R087_EXPTIMEMID}, /* 00,87,34,cc */ |
| 2832 | {0xa0, 0x35, ZC3XX_R088_EXPTIMELOW}, /* 00,88,35,cc */ |
| 2833 | {0xa0, 0xb0, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,b0,cc */ |
| 2834 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2835 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
| 2836 | {0xaa, 0x01, 0x0003}, /* 00,01,03,aa */ |
| 2837 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
| 2838 | {0xaa, 0x03, 0x0000}, /* 00,03,00,aa */ |
| 2839 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 2840 | {0xaa, 0x11, 0x0080}, /* 00,11,80,aa */ |
| 2841 | {0xaa, 0x12, 0x0000}, /* 00,12,00,aa */ |
| 2842 | {0xaa, 0x13, 0x0000}, /* 00,13,00,aa */ |
| 2843 | {0xaa, 0x14, 0x0000}, /* 00,14,00,aa */ |
| 2844 | {0xaa, 0x15, 0x0000}, /* 00,15,00,aa */ |
| 2845 | {0xaa, 0x16, 0x0000}, /* 00,16,00,aa */ |
| 2846 | {0xaa, 0x17, 0x0001}, /* 00,17,01,aa */ |
| 2847 | {0xaa, 0x18, 0x00de}, /* 00,18,de,aa */ |
| 2848 | {0xaa, 0x19, 0x0002}, /* 00,19,02,aa */ |
| 2849 | {0xaa, 0x1a, 0x0086}, /* 00,1a,86,aa */ |
| 2850 | {0xaa, 0x20, 0x00a8}, /* 00,20,a8,aa */ |
| 2851 | {0xaa, 0x22, 0x0000}, /* 00,22,00,aa */ |
| 2852 | {0xaa, 0x23, 0x0000}, /* 00,23,00,aa */ |
| 2853 | {0xaa, 0x24, 0x0000}, /* 00,24,00,aa */ |
| 2854 | {0xaa, 0x40, 0x0033}, /* 00,40,33,aa */ |
| 2855 | {0xaa, 0x41, 0x0077}, /* 00,41,77,aa */ |
| 2856 | {0xaa, 0x42, 0x0053}, /* 00,42,53,aa */ |
| 2857 | {0xaa, 0x43, 0x00b0}, /* 00,43,b0,aa */ |
| 2858 | {0xaa, 0x4b, 0x0001}, /* 00,4b,01,aa */ |
| 2859 | {0xaa, 0x72, 0x0020}, /* 00,72,20,aa */ |
| 2860 | {0xaa, 0x73, 0x0000}, /* 00,73,00,aa */ |
| 2861 | {0xaa, 0x80, 0x0000}, /* 00,80,00,aa */ |
| 2862 | {0xaa, 0x85, 0x0050}, /* 00,85,50,aa */ |
| 2863 | {0xaa, 0x91, 0x0070}, /* 00,91,70,aa */ |
| 2864 | {0xaa, 0x92, 0x0072}, /* 00,92,72,aa */ |
| 2865 | {0xaa, 0x03, 0x0001}, /* 00,03,01,aa */ |
| 2866 | {0xaa, 0x10, 0x00a0}, /* 00,10,a0,aa */ |
| 2867 | {0xaa, 0x11, 0x0001}, /* 00,11,01,aa */ |
| 2868 | {0xaa, 0x30, 0x0000}, /* 00,30,00,aa */ |
| 2869 | {0xaa, 0x60, 0x0000}, /* 00,60,00,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2870 | {0xaa, 0xa0, ZC3XX_R01A_LASTFRAMESTATE}, /* 00,a0,1a,aa */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2871 | {0xaa, 0xa1, 0x0000}, /* 00,a1,00,aa */ |
| 2872 | {0xaa, 0xa2, 0x003f}, /* 00,a2,3f,aa */ |
| 2873 | {0xaa, 0xa3, 0x0028}, /* 00,a3,28,aa */ |
| 2874 | {0xaa, 0xa4, 0x0010}, /* 00,a4,10,aa */ |
| 2875 | {0xaa, 0xa5, 0x0020}, /* 00,a5,20,aa */ |
| 2876 | {0xaa, 0xb1, 0x0044}, /* 00,b1,44,aa */ |
| 2877 | {0xaa, 0xd0, 0x0001}, /* 00,d0,01,aa */ |
| 2878 | {0xaa, 0xd1, 0x0085}, /* 00,d1,85,aa */ |
| 2879 | {0xaa, 0xd2, 0x0080}, /* 00,d2,80,aa */ |
| 2880 | {0xaa, 0xd3, 0x0080}, /* 00,d3,80,aa */ |
| 2881 | {0xaa, 0xd4, 0x0080}, /* 00,d4,80,aa */ |
| 2882 | {0xaa, 0xd5, 0x0080}, /* 00,d5,80,aa */ |
| 2883 | {0xaa, 0xc0, 0x00c3}, /* 00,c0,c3,aa */ |
| 2884 | {0xaa, 0xc2, 0x0044}, /* 00,c2,44,aa */ |
| 2885 | {0xaa, 0xc4, 0x0040}, /* 00,c4,40,aa */ |
| 2886 | {0xaa, 0xc5, 0x0020}, /* 00,c5,20,aa */ |
| 2887 | {0xaa, 0xc6, 0x0008}, /* 00,c6,08,aa */ |
| 2888 | {0xaa, 0x03, 0x0004}, /* 00,03,04,aa */ |
| 2889 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 2890 | {0xaa, 0x40, 0x0030}, /* 00,40,30,aa */ |
| 2891 | {0xaa, 0x41, 0x0020}, /* 00,41,20,aa */ |
| 2892 | {0xaa, 0x42, 0x002d}, /* 00,42,2d,aa */ |
| 2893 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 2894 | {0xaa, 0x1c, 0x0050}, /* 00,1C,50,aa */ |
| 2895 | {0xaa, 0x11, 0x0081}, /* 00,11,81,aa */ |
| 2896 | {0xaa, 0x3b, 0x001d}, /* 00,3b,1D,aa */ |
| 2897 | {0xaa, 0x3c, 0x004c}, /* 00,3c,4C,aa */ |
| 2898 | {0xaa, 0x3d, 0x0018}, /* 00,3d,18,aa */ |
| 2899 | {0xaa, 0x3e, 0x006a}, /* 00,3e,6A,aa */ |
| 2900 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
| 2901 | {0xaa, 0x52, 0x00ff}, /* 00,52,FF,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2902 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 2903 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 2904 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
| 2905 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 2906 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 2907 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 2908 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 2909 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 2910 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2911 | {0xaa, 0x03, 0x0002}, /* 00,03,02,aa */ |
| 2912 | {0xaa, 0x51, 0x0027}, /* 00,51,27,aa */ |
| 2913 | {0xaa, 0x52, 0x0020}, /* 00,52,20,aa */ |
| 2914 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 2915 | {0xaa, 0x50, 0x0010}, /* 00,50,10,aa */ |
| 2916 | {0xaa, 0x51, 0x0010}, /* 00,51,10,aa */ |
| 2917 | {0xaa, 0x54, 0x0010}, /* 00,54,10,aa */ |
| 2918 | {0xaa, 0x55, 0x0010}, /* 00,55,10,aa */ |
| 2919 | {0xa0, 0xf0, 0x0199}, /* 01,99,F0,cc */ |
| 2920 | {0xa0, 0x80, 0x019a}, /* 01,9A,80,cc */ |
| 2921 | |
| 2922 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 2923 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 2924 | {0xaa, 0x36, 0x001d}, /* 00,36,1D,aa */ |
| 2925 | {0xaa, 0x37, 0x004c}, /* 00,37,4C,aa */ |
| 2926 | {0xaa, 0x3b, 0x001d}, /* 00,3B,1D,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 2927 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2928 | }; |
| 2929 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 2930 | static const struct usb_action MC501CB_Initial[] = { /* 320x240 */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2931 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 2932 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
| 2933 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 2934 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 2935 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
| 2936 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 2937 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 2938 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 2939 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 2940 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 2941 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d0,cc */ |
| 2942 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 2943 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 2944 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 2945 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 2946 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, /* 00,9b,01,cc */ |
| 2947 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,d8,cc */ |
| 2948 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, /* 00,9d,02,cc */ |
| 2949 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
| 2950 | {0xa0, 0x33, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,33,cc */ |
| 2951 | {0xa0, 0x34, ZC3XX_R087_EXPTIMEMID}, /* 00,87,34,cc */ |
| 2952 | {0xa0, 0x35, ZC3XX_R088_EXPTIMELOW}, /* 00,88,35,cc */ |
| 2953 | {0xa0, 0xb0, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,b0,cc */ |
| 2954 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2955 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
| 2956 | {0xaa, 0x01, 0x0003}, /* 00,01,03,aa */ |
| 2957 | {0xaa, 0x01, 0x0001}, /* 00,01,01,aa */ |
| 2958 | {0xaa, 0x03, 0x0000}, /* 00,03,00,aa */ |
| 2959 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 2960 | {0xaa, 0x11, 0x0080}, /* 00,11,80,aa */ |
| 2961 | {0xaa, 0x12, 0x0000}, /* 00,12,00,aa */ |
| 2962 | {0xaa, 0x13, 0x0000}, /* 00,13,00,aa */ |
| 2963 | {0xaa, 0x14, 0x0000}, /* 00,14,00,aa */ |
| 2964 | {0xaa, 0x15, 0x0000}, /* 00,15,00,aa */ |
| 2965 | {0xaa, 0x16, 0x0000}, /* 00,16,00,aa */ |
| 2966 | {0xaa, 0x17, 0x0001}, /* 00,17,01,aa */ |
| 2967 | {0xaa, 0x18, 0x00d8}, /* 00,18,d8,aa */ |
| 2968 | {0xaa, 0x19, 0x0002}, /* 00,19,02,aa */ |
| 2969 | {0xaa, 0x1a, 0x0088}, /* 00,1a,88,aa */ |
| 2970 | {0xaa, 0x20, 0x00a8}, /* 00,20,a8,aa */ |
| 2971 | {0xaa, 0x22, 0x0000}, /* 00,22,00,aa */ |
| 2972 | {0xaa, 0x23, 0x0000}, /* 00,23,00,aa */ |
| 2973 | {0xaa, 0x24, 0x0000}, /* 00,24,00,aa */ |
| 2974 | {0xaa, 0x40, 0x0033}, /* 00,40,33,aa */ |
| 2975 | {0xaa, 0x41, 0x0077}, /* 00,41,77,aa */ |
| 2976 | {0xaa, 0x42, 0x0053}, /* 00,42,53,aa */ |
| 2977 | {0xaa, 0x43, 0x00b0}, /* 00,43,b0,aa */ |
| 2978 | {0xaa, 0x4b, 0x0001}, /* 00,4b,01,aa */ |
| 2979 | {0xaa, 0x72, 0x0020}, /* 00,72,20,aa */ |
| 2980 | {0xaa, 0x73, 0x0000}, /* 00,73,00,aa */ |
| 2981 | {0xaa, 0x80, 0x0000}, /* 00,80,00,aa */ |
| 2982 | {0xaa, 0x85, 0x0050}, /* 00,85,50,aa */ |
| 2983 | {0xaa, 0x91, 0x0070}, /* 00,91,70,aa */ |
| 2984 | {0xaa, 0x92, 0x0072}, /* 00,92,72,aa */ |
| 2985 | {0xaa, 0x03, 0x0001}, /* 00,03,01,aa */ |
| 2986 | {0xaa, 0x10, 0x00a0}, /* 00,10,a0,aa */ |
| 2987 | {0xaa, 0x11, 0x0001}, /* 00,11,01,aa */ |
| 2988 | {0xaa, 0x30, 0x0000}, /* 00,30,00,aa */ |
| 2989 | {0xaa, 0x60, 0x0000}, /* 00,60,00,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 2990 | {0xaa, 0xa0, ZC3XX_R01A_LASTFRAMESTATE}, /* 00,a0,1a,aa */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 2991 | {0xaa, 0xa1, 0x0000}, /* 00,a1,00,aa */ |
| 2992 | {0xaa, 0xa2, 0x003f}, /* 00,a2,3f,aa */ |
| 2993 | {0xaa, 0xa3, 0x0028}, /* 00,a3,28,aa */ |
| 2994 | {0xaa, 0xa4, 0x0010}, /* 00,a4,10,aa */ |
| 2995 | {0xaa, 0xa5, 0x0020}, /* 00,a5,20,aa */ |
| 2996 | {0xaa, 0xb1, 0x0044}, /* 00,b1,44,aa */ |
| 2997 | {0xaa, 0xd0, 0x0001}, /* 00,d0,01,aa */ |
| 2998 | {0xaa, 0xd1, 0x0085}, /* 00,d1,85,aa */ |
| 2999 | {0xaa, 0xd2, 0x0080}, /* 00,d2,80,aa */ |
| 3000 | {0xaa, 0xd3, 0x0080}, /* 00,d3,80,aa */ |
| 3001 | {0xaa, 0xd4, 0x0080}, /* 00,d4,80,aa */ |
| 3002 | {0xaa, 0xd5, 0x0080}, /* 00,d5,80,aa */ |
| 3003 | {0xaa, 0xc0, 0x00c3}, /* 00,c0,c3,aa */ |
| 3004 | {0xaa, 0xc2, 0x0044}, /* 00,c2,44,aa */ |
| 3005 | {0xaa, 0xc4, 0x0040}, /* 00,c4,40,aa */ |
| 3006 | {0xaa, 0xc5, 0x0020}, /* 00,c5,20,aa */ |
| 3007 | {0xaa, 0xc6, 0x0008}, /* 00,c6,08,aa */ |
| 3008 | {0xaa, 0x03, 0x0004}, /* 00,03,04,aa */ |
| 3009 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 3010 | {0xaa, 0x40, 0x0030}, /* 00,40,30,aa */ |
| 3011 | {0xaa, 0x41, 0x0020}, /* 00,41,20,aa */ |
| 3012 | {0xaa, 0x42, 0x002d}, /* 00,42,2d,aa */ |
| 3013 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3014 | {0xaa, 0x1c, 0x0050}, /* 00,1c,50,aa */ |
| 3015 | {0xaa, 0x11, 0x0081}, /* 00,11,81,aa */ |
| 3016 | {0xaa, 0x3b, 0x003a}, /* 00,3b,3A,aa */ |
| 3017 | {0xaa, 0x3c, 0x0098}, /* 00,3c,98,aa */ |
| 3018 | {0xaa, 0x3d, 0x0030}, /* 00,3d,30,aa */ |
| 3019 | {0xaa, 0x3e, 0x00d4}, /* 00,3E,D4,aa */ |
| 3020 | {0xaa, 0x01, 0x0000}, /* 00,01,00,aa */ |
| 3021 | {0xaa, 0x52, 0x00ff}, /* 00,52,FF,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3022 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 3023 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 3024 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
| 3025 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 3026 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 3027 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 3028 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 3029 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 3030 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3031 | {0xaa, 0x03, 0x0002}, /* 00,03,02,aa */ |
| 3032 | {0xaa, 0x51, 0x004e}, /* 00,51,4E,aa */ |
| 3033 | {0xaa, 0x52, 0x0041}, /* 00,52,41,aa */ |
| 3034 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3035 | {0xaa, 0x50, 0x0010}, /* 00,50,10,aa */ |
| 3036 | {0xaa, 0x51, 0x0010}, /* 00,51,10,aa */ |
| 3037 | {0xaa, 0x54, 0x0010}, /* 00,54,10,aa */ |
| 3038 | {0xaa, 0x55, 0x0010}, /* 00,55,10,aa */ |
| 3039 | {0xa0, 0xf0, 0x0199}, /* 01,99,F0,cc */ |
| 3040 | {0xa0, 0x80, 0x019a}, /* 01,9A,80,cc */ |
| 3041 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3042 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3043 | {0xaa, 0x36, 0x001d}, /* 00,36,1D,aa */ |
| 3044 | {0xaa, 0x37, 0x004c}, /* 00,37,4C,aa */ |
| 3045 | {0xaa, 0x3b, 0x001d}, /* 00,3B,1D,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3046 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3047 | }; |
| 3048 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3049 | static const struct usb_action MC501CB_50HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3050 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3051 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3052 | {0xaa, 0x36, 0x001d}, /* 00,36,1D,aa */ |
| 3053 | {0xaa, 0x37, 0x004c}, /* 00,37,4C,aa */ |
| 3054 | {0xaa, 0x3b, 0x001d}, /* 00,3B,1D,aa */ |
| 3055 | {0xaa, 0x3c, 0x004c}, /* 00,3C,4C,aa */ |
| 3056 | {0xaa, 0x3d, 0x001d}, /* 00,3D,1D,aa */ |
| 3057 | {0xaa, 0x3e, 0x004c}, /* 00,3E,4C,aa */ |
| 3058 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3059 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3060 | {0xaa, 0x36, 0x003a}, /* 00,36,3A,aa */ |
| 3061 | {0xaa, 0x37, 0x0098}, /* 00,37,98,aa */ |
| 3062 | {0xaa, 0x3b, 0x003a}, /* 00,3B,3A,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3063 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3064 | }; |
| 3065 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3066 | static const struct usb_action MC501CB_50HZScale[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3067 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3068 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3069 | {0xaa, 0x36, 0x003a}, /* 00,36,3A,aa */ |
| 3070 | {0xaa, 0x37, 0x0098}, /* 00,37,98,aa */ |
| 3071 | {0xaa, 0x3b, 0x003a}, /* 00,3B,3A,aa */ |
| 3072 | {0xaa, 0x3c, 0x0098}, /* 00,3C,98,aa */ |
| 3073 | {0xaa, 0x3d, 0x003a}, /* 00,3D,3A,aa */ |
| 3074 | {0xaa, 0x3e, 0x0098}, /* 00,3E,98,aa */ |
| 3075 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3076 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3077 | {0xaa, 0x36, 0x0018}, /* 00,36,18,aa */ |
| 3078 | {0xaa, 0x37, 0x006a}, /* 00,37,6A,aa */ |
| 3079 | {0xaa, 0x3d, 0x0018}, /* 00,3D,18,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3080 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3081 | }; |
| 3082 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3083 | static const struct usb_action MC501CB_60HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3084 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3085 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3086 | {0xaa, 0x36, 0x0018}, /* 00,36,18,aa */ |
| 3087 | {0xaa, 0x37, 0x006a}, /* 00,37,6A,aa */ |
| 3088 | {0xaa, 0x3d, 0x0018}, /* 00,3D,18,aa */ |
| 3089 | {0xaa, 0x3e, 0x006a}, /* 00,3E,6A,aa */ |
| 3090 | {0xaa, 0x3b, 0x0018}, /* 00,3B,18,aa */ |
| 3091 | {0xaa, 0x3c, 0x006a}, /* 00,3C,6A,aa */ |
| 3092 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3093 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3094 | {0xaa, 0x36, 0x0030}, /* 00,36,30,aa */ |
| 3095 | {0xaa, 0x37, 0x00d4}, /* 00,37,D4,aa */ |
| 3096 | {0xaa, 0x3d, 0x0030}, /* 00,3D,30,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3097 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3098 | }; |
| 3099 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3100 | static const struct usb_action MC501CB_60HZScale[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3101 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3102 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3103 | {0xaa, 0x36, 0x0030}, /* 00,36,30,aa */ |
| 3104 | {0xaa, 0x37, 0x00d4}, /* 00,37,D4,aa */ |
| 3105 | {0xaa, 0x3d, 0x0030}, /* 00,3D,30,aa */ |
| 3106 | {0xaa, 0x3e, 0x00d4}, /* 00,3E,D4,aa */ |
| 3107 | {0xaa, 0x3b, 0x0030}, /* 00,3B,30,aa */ |
| 3108 | {0xaa, 0x3c, 0x00d4}, /* 00,3C,D4,aa */ |
| 3109 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3110 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3111 | {0xaa, 0x36, 0x0018}, /* 00,36,18,aa */ |
| 3112 | {0xaa, 0x37, 0x006a}, /* 00,37,6A,aa */ |
| 3113 | {0xaa, 0x3d, 0x0018}, /* 00,3D,18,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3114 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3115 | }; |
| 3116 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3117 | static const struct usb_action MC501CB_NoFliker[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3118 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3119 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3120 | {0xaa, 0x36, 0x0018}, /* 00,36,18,aa */ |
| 3121 | {0xaa, 0x37, 0x006a}, /* 00,37,6A,aa */ |
| 3122 | {0xaa, 0x3d, 0x0018}, /* 00,3D,18,aa */ |
| 3123 | {0xaa, 0x3e, 0x006a}, /* 00,3E,6A,aa */ |
| 3124 | {0xaa, 0x3b, 0x0018}, /* 00,3B,18,aa */ |
| 3125 | {0xaa, 0x3c, 0x006a}, /* 00,3C,6A,aa */ |
| 3126 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3127 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3128 | {0xaa, 0x36, 0x0030}, /* 00,36,30,aa */ |
| 3129 | {0xaa, 0x37, 0x00d4}, /* 00,37,D4,aa */ |
| 3130 | {0xaa, 0x3d, 0x0030}, /* 00,3D,30,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3131 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3132 | }; |
| 3133 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3134 | static const struct usb_action MC501CB_NoFlikerScale[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3135 | {0xaa, 0x03, 0x0003}, /* 00,03,03,aa */ |
| 3136 | {0xaa, 0x10, 0x00fc}, /* 00,10,fc,aa */ |
| 3137 | {0xaa, 0x36, 0x0030}, /* 00,36,30,aa */ |
| 3138 | {0xaa, 0x37, 0x00d4}, /* 00,37,D4,aa */ |
| 3139 | {0xaa, 0x3d, 0x0030}, /* 00,3D,30,aa */ |
| 3140 | {0xaa, 0x3e, 0x00d4}, /* 00,3E,D4,aa */ |
| 3141 | {0xaa, 0x3b, 0x0030}, /* 00,3B,30,aa */ |
| 3142 | {0xaa, 0x3c, 0x00d4}, /* 00,3C,D4,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3143 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3144 | }; |
| 3145 | |
| 3146 | /* from zs211.inf - HKR,%OV7620%,Initial - 640x480 */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3147 | static const struct usb_action OV7620_mode0[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3148 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 3149 | {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, /* 00,02,40,cc */ |
| 3150 | {0xa0, 0x00, ZC3XX_R008_CLOCKSETTING}, /* 00,08,00,cc */ |
| 3151 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 3152 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,06,cc */ |
| 3153 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, /* 00,83,02,cc */ |
| 3154 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, /* 00,85,01,cc */ |
| 3155 | {0xa0, 0x80, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,80,cc */ |
| 3156 | {0xa0, 0x81, ZC3XX_R087_EXPTIMEMID}, /* 00,87,81,cc */ |
| 3157 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, /* 00,88,10,cc */ |
| 3158 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,a1,cc */ |
| 3159 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* 00,8d,08,cc */ |
| 3160 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 3161 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 3162 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 3163 | {0xa0, 0xd8, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d8,cc */ |
| 3164 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 3165 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 3166 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 3167 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 3168 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 3169 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 3170 | {0xa0, 0xde, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,de,cc */ |
| 3171 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3172 | {0xaa, 0x12, 0x0088}, /* 00,12,88,aa */ |
| 3173 | {0xaa, 0x12, 0x0048}, /* 00,12,48,aa */ |
| 3174 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
| 3175 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
| 3176 | {0xaa, 0x04, 0x0000}, /* 00,04,00,aa */ |
| 3177 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
| 3178 | {0xaa, 0x14, 0x0000}, /* 00,14,00,aa */ |
| 3179 | {0xaa, 0x15, 0x0004}, /* 00,15,04,aa */ |
| 3180 | {0xaa, 0x17, 0x0018}, /* 00,17,18,aa */ |
| 3181 | {0xaa, 0x18, 0x00ba}, /* 00,18,ba,aa */ |
| 3182 | {0xaa, 0x19, 0x0002}, /* 00,19,02,aa */ |
| 3183 | {0xaa, 0x1a, 0x00f1}, /* 00,1a,f1,aa */ |
| 3184 | {0xaa, 0x20, 0x0040}, /* 00,20,40,aa */ |
| 3185 | {0xaa, 0x24, 0x0088}, /* 00,24,88,aa */ |
| 3186 | {0xaa, 0x25, 0x0078}, /* 00,25,78,aa */ |
| 3187 | {0xaa, 0x27, 0x00f6}, /* 00,27,f6,aa */ |
| 3188 | {0xaa, 0x28, 0x00a0}, /* 00,28,a0,aa */ |
| 3189 | {0xaa, 0x21, 0x0000}, /* 00,21,00,aa */ |
| 3190 | {0xaa, 0x2a, 0x0083}, /* 00,2a,83,aa */ |
| 3191 | {0xaa, 0x2b, 0x0096}, /* 00,2b,96,aa */ |
| 3192 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ |
| 3193 | {0xaa, 0x74, 0x0020}, /* 00,74,20,aa */ |
| 3194 | {0xaa, 0x61, 0x0068}, /* 00,61,68,aa */ |
| 3195 | {0xaa, 0x64, 0x0088}, /* 00,64,88,aa */ |
| 3196 | {0xaa, 0x00, 0x0000}, /* 00,00,00,aa */ |
| 3197 | {0xaa, 0x06, 0x0080}, /* 00,06,80,aa */ |
| 3198 | {0xaa, 0x01, 0x0090}, /* 00,01,90,aa */ |
| 3199 | {0xaa, 0x02, 0x0030}, /* 00,02,30,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3200 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,77,cc */ |
| 3201 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 3202 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 3203 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3204 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3205 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 3206 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 3207 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 3208 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 3209 | {0xa0, 0x68, ZC3XX_R116_RGAIN}, /* 01,16,68,cc */ |
| 3210 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
| 3211 | {0xa0, 0x40, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,40,cc */ |
| 3212 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
| 3213 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,50,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3214 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3215 | }; |
| 3216 | |
| 3217 | /* from zs211.inf - HKR,%OV7620%,InitialScale - 320x240 */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3218 | static const struct usb_action OV7620_mode1[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3219 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 3220 | {0xa0, 0x50, ZC3XX_R002_CLOCKSELECT}, /* 00,02,50,cc */ |
| 3221 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,00,cc */ |
| 3222 | /* mx change? */ |
| 3223 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 3224 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,06,cc */ |
| 3225 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, /* 00,83,02,cc */ |
| 3226 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, /* 00,85,01,cc */ |
| 3227 | {0xa0, 0x80, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,80,cc */ |
| 3228 | {0xa0, 0x81, ZC3XX_R087_EXPTIMEMID}, /* 00,87,81,cc */ |
| 3229 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, /* 00,88,10,cc */ |
| 3230 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,a1,cc */ |
| 3231 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* 00,8d,08,cc */ |
| 3232 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 3233 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 3234 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 3235 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d0,cc */ |
| 3236 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 3237 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 3238 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 3239 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 3240 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 3241 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 3242 | {0xa0, 0xd6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,d6,cc */ |
| 3243 | /* OV7648 00,9c,d8,cc */ |
| 3244 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3245 | {0xaa, 0x12, 0x0088}, /* 00,12,88,aa */ |
| 3246 | {0xaa, 0x12, 0x0048}, /* 00,12,48,aa */ |
| 3247 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
| 3248 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
| 3249 | {0xaa, 0x04, 0x0000}, /* 00,04,00,aa */ |
| 3250 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
| 3251 | {0xaa, 0x14, 0x0000}, /* 00,14,00,aa */ |
| 3252 | {0xaa, 0x15, 0x0004}, /* 00,15,04,aa */ |
| 3253 | {0xaa, 0x24, 0x0088}, /* 00,24,88,aa */ |
| 3254 | {0xaa, 0x25, 0x0078}, /* 00,25,78,aa */ |
| 3255 | {0xaa, 0x17, 0x0018}, /* 00,17,18,aa */ |
| 3256 | {0xaa, 0x18, 0x00ba}, /* 00,18,ba,aa */ |
| 3257 | {0xaa, 0x19, 0x0002}, /* 00,19,02,aa */ |
| 3258 | {0xaa, 0x1a, 0x00f2}, /* 00,1a,f2,aa */ |
| 3259 | {0xaa, 0x20, 0x0040}, /* 00,20,40,aa */ |
| 3260 | {0xaa, 0x27, 0x00f6}, /* 00,27,f6,aa */ |
| 3261 | {0xaa, 0x28, 0x00a0}, /* 00,28,a0,aa */ |
| 3262 | {0xaa, 0x21, 0x0000}, /* 00,21,00,aa */ |
| 3263 | {0xaa, 0x2a, 0x0083}, /* 00,2a,83,aa */ |
| 3264 | {0xaa, 0x2b, 0x0096}, /* 00,2b,96,aa */ |
| 3265 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ |
| 3266 | {0xaa, 0x74, 0x0020}, /* 00,74,20,aa */ |
| 3267 | {0xaa, 0x61, 0x0068}, /* 00,61,68,aa */ |
| 3268 | {0xaa, 0x64, 0x0088}, /* 00,64,88,aa */ |
| 3269 | {0xaa, 0x00, 0x0000}, /* 00,00,00,aa */ |
| 3270 | {0xaa, 0x06, 0x0080}, /* 00,06,80,aa */ |
| 3271 | {0xaa, 0x01, 0x0090}, /* 00,01,90,aa */ |
| 3272 | {0xaa, 0x02, 0x0030}, /* 00,02,30,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3273 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,77,cc */ |
| 3274 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 3275 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 3276 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 3277 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
| 3278 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 3279 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 3280 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 3281 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 3282 | {0xa0, 0x68, ZC3XX_R116_RGAIN}, /* 01,16,68,cc */ |
| 3283 | {0xa0, 0x52, ZC3XX_R118_BGAIN}, /* 01,18,52,cc */ |
| 3284 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,50,cc */ |
| 3285 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
| 3286 | {0xa0, 0x50, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,50,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3287 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3288 | }; |
| 3289 | |
| 3290 | /* from zs211.inf - HKR,%OV7620%\AE,50HZ */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3291 | static const struct usb_action OV7620_50HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3292 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
| 3293 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
| 3294 | {0xaa, 0x2b, 0x0096}, /* 00,2b,96,aa */ |
| 3295 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
| 3296 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3297 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 3298 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 3299 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
| 3300 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 3301 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 3302 | {0xa0, 0x83, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,83,cc */ |
| 3303 | {0xaa, 0x10, 0x0082}, /* 00,10,82,aa */ |
| 3304 | {0xaa, 0x76, 0x0003}, /* 00,76,03,aa */ |
| 3305 | /* {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, * 00,02,40,cc |
| 3306 | if mode0 (640x480) */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3307 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3308 | }; |
| 3309 | |
| 3310 | /* from zs211.inf - HKR,%OV7620%\AE,60HZ */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3311 | static const struct usb_action OV7620_60HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3312 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
| 3313 | /* (bug in zs211.inf) */ |
| 3314 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
| 3315 | {0xaa, 0x2b, 0x0000}, /* 00,2b,00,aa */ |
| 3316 | {0xaa, 0x75, 0x008a}, /* 00,75,8a,aa */ |
| 3317 | {0xaa, 0x2d, 0x0005}, /* 00,2d,05,aa */ |
| 3318 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 3319 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 3320 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
| 3321 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 3322 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 3323 | {0xa0, 0x83, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,83,cc */ |
| 3324 | {0xaa, 0x10, 0x0020}, /* 00,10,20,aa */ |
| 3325 | {0xaa, 0x76, 0x0003}, /* 00,76,03,aa */ |
| 3326 | /* {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, * 00,02,40,cc |
| 3327 | * if mode0 (640x480) */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3328 | /* ?? in gspca v1, it was |
| 3329 | {0xa0, 0x00, 0x0039}, * 00,00,00,dd * |
| 3330 | {0xa1, 0x01, 0x0037}, */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3331 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3332 | }; |
| 3333 | |
| 3334 | /* from zs211.inf - HKR,%OV7620%\AE,NoFliker */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3335 | static const struct usb_action OV7620_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3336 | {0xaa, 0x13, 0x00a3}, /* 00,13,a3,aa */ |
| 3337 | /* (bug in zs211.inf) */ |
| 3338 | {0xdd, 0x00, 0x0100}, /* 00,01,00,dd */ |
| 3339 | {0xaa, 0x2b, 0x0000}, /* 00,2b,00,aa */ |
| 3340 | {0xaa, 0x75, 0x008e}, /* 00,75,8e,aa */ |
| 3341 | {0xaa, 0x2d, 0x0001}, /* 00,2d,01,aa */ |
| 3342 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 3343 | {0xa0, 0x04, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,04,cc */ |
| 3344 | {0xa0, 0x18, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,18,cc */ |
| 3345 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 3346 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 3347 | {0xa0, 0x01, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,01,cc */ |
| 3348 | /* {0xa0, 0x44, ZC3XX_R002_CLOCKSELECT}, * 00,02,44,cc |
| 3349 | - if mode1 (320x240) */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3350 | /* ?? was |
| 3351 | {0xa0, 0x00, 0x0039}, * 00,00,00,dd * |
| 3352 | {0xa1, 0x01, 0x0037}, */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3353 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3354 | }; |
| 3355 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3356 | static const struct usb_action ov7630c_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3357 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 3358 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 3359 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 3360 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 3361 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 3362 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 3363 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, |
| 3364 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
| 3365 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
| 3366 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 3367 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 3368 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 3369 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 3370 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3371 | {0xaa, 0x12, 0x0080}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3372 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, |
| 3373 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, |
| 3374 | {0xa0, 0x90, ZC3XX_R086_EXPTIMEHIGH}, |
| 3375 | {0xa0, 0x91, ZC3XX_R087_EXPTIMEMID}, |
| 3376 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, |
| 3377 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 3378 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 3379 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 3380 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 3381 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 3382 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3383 | {0xaa, 0x12, 0x0069}, |
| 3384 | {0xaa, 0x04, 0x0020}, |
| 3385 | {0xaa, 0x06, 0x0050}, |
| 3386 | {0xaa, 0x13, 0x0083}, |
| 3387 | {0xaa, 0x14, 0x0000}, |
| 3388 | {0xaa, 0x15, 0x0024}, |
| 3389 | {0xaa, 0x17, 0x0018}, |
| 3390 | {0xaa, 0x18, 0x00ba}, |
| 3391 | {0xaa, 0x19, 0x0002}, |
| 3392 | {0xaa, 0x1a, 0x00f6}, |
| 3393 | {0xaa, 0x1b, 0x0002}, |
| 3394 | {0xaa, 0x20, 0x00c2}, |
| 3395 | {0xaa, 0x24, 0x0060}, |
| 3396 | {0xaa, 0x25, 0x0040}, |
| 3397 | {0xaa, 0x26, 0x0030}, |
| 3398 | {0xaa, 0x27, 0x00ea}, |
| 3399 | {0xaa, 0x28, 0x00a0}, |
| 3400 | {0xaa, 0x21, 0x0000}, |
| 3401 | {0xaa, 0x2a, 0x0081}, |
| 3402 | {0xaa, 0x2b, 0x0096}, |
| 3403 | {0xaa, 0x2d, 0x0094}, |
| 3404 | {0xaa, 0x2f, 0x003d}, |
| 3405 | {0xaa, 0x30, 0x0024}, |
| 3406 | {0xaa, 0x60, 0x0000}, |
| 3407 | {0xaa, 0x61, 0x0040}, |
| 3408 | {0xaa, 0x68, 0x007c}, |
| 3409 | {0xaa, 0x6f, 0x0015}, |
| 3410 | {0xaa, 0x75, 0x0088}, |
| 3411 | {0xaa, 0x77, 0x00b5}, |
| 3412 | {0xaa, 0x01, 0x0060}, |
| 3413 | {0xaa, 0x02, 0x0060}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3414 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 3415 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 3416 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 3417 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 3418 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3419 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3420 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 3421 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 3422 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 3423 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 3424 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
| 3425 | {0xa0, 0x46, ZC3XX_R118_BGAIN}, |
| 3426 | {0xa0, 0x04, ZC3XX_R113_RGB03}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3427 | /* 0x10, */ |
| 3428 | {0xa1, 0x01, 0x0002}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3429 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 3430 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 3431 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 3432 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 3433 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 3434 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 3435 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 3436 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 3437 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3438 | /* 0x03, */ |
| 3439 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3440 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 3441 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3442 | {0xa1, 0x01, 0x01c8}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3443 | {0xa1, 0x01, 0x01c9}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3444 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3445 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 3446 | {0xa0, 0x01, ZC3XX_R120_GAMMA00}, /* gamma 2 ?*/ |
| 3447 | {0xa0, 0x0c, ZC3XX_R121_GAMMA01}, |
| 3448 | {0xa0, 0x1f, ZC3XX_R122_GAMMA02}, |
| 3449 | {0xa0, 0x3a, ZC3XX_R123_GAMMA03}, |
| 3450 | {0xa0, 0x53, ZC3XX_R124_GAMMA04}, |
| 3451 | {0xa0, 0x6d, ZC3XX_R125_GAMMA05}, |
| 3452 | {0xa0, 0x85, ZC3XX_R126_GAMMA06}, |
| 3453 | {0xa0, 0x9c, ZC3XX_R127_GAMMA07}, |
| 3454 | {0xa0, 0xb0, ZC3XX_R128_GAMMA08}, |
| 3455 | {0xa0, 0xc2, ZC3XX_R129_GAMMA09}, |
| 3456 | {0xa0, 0xd1, ZC3XX_R12A_GAMMA0A}, |
| 3457 | {0xa0, 0xde, ZC3XX_R12B_GAMMA0B}, |
| 3458 | {0xa0, 0xe9, ZC3XX_R12C_GAMMA0C}, |
| 3459 | {0xa0, 0xf2, ZC3XX_R12D_GAMMA0D}, |
| 3460 | {0xa0, 0xf9, ZC3XX_R12E_GAMMA0E}, |
| 3461 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 3462 | {0xa0, 0x05, ZC3XX_R130_GAMMA10}, |
| 3463 | {0xa0, 0x0f, ZC3XX_R131_GAMMA11}, |
| 3464 | {0xa0, 0x16, ZC3XX_R132_GAMMA12}, |
| 3465 | {0xa0, 0x1a, ZC3XX_R133_GAMMA13}, |
| 3466 | {0xa0, 0x19, ZC3XX_R134_GAMMA14}, |
| 3467 | {0xa0, 0x19, ZC3XX_R135_GAMMA15}, |
| 3468 | {0xa0, 0x17, ZC3XX_R136_GAMMA16}, |
| 3469 | {0xa0, 0x15, ZC3XX_R137_GAMMA17}, |
| 3470 | {0xa0, 0x12, ZC3XX_R138_GAMMA18}, |
| 3471 | {0xa0, 0x10, ZC3XX_R139_GAMMA19}, |
| 3472 | {0xa0, 0x0e, ZC3XX_R13A_GAMMA1A}, |
| 3473 | {0xa0, 0x0b, ZC3XX_R13B_GAMMA1B}, |
| 3474 | {0xa0, 0x09, ZC3XX_R13C_GAMMA1C}, |
| 3475 | {0xa0, 0x08, ZC3XX_R13D_GAMMA1D}, |
| 3476 | {0xa0, 0x06, ZC3XX_R13E_GAMMA1E}, |
| 3477 | {0xa0, 0x03, ZC3XX_R13F_GAMMA1F}, |
| 3478 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 3479 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 3480 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 3481 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 3482 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 3483 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 3484 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 3485 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 3486 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3487 | |
| 3488 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3489 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3490 | {0xaa, 0x10, 0x001b}, |
| 3491 | {0xaa, 0x76, 0x0002}, |
| 3492 | {0xaa, 0x2a, 0x0081}, |
| 3493 | {0xaa, 0x2b, 0x0000}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3494 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 3495 | {0xa0, 0x01, ZC3XX_R191_EXPOSURELIMITMID}, |
| 3496 | {0xa0, 0xb8, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 3497 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 3498 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 3499 | {0xa0, 0x37, ZC3XX_R197_ANTIFLICKERLOW}, |
| 3500 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 3501 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 3502 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 3503 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 3504 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, |
| 3505 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 3506 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3507 | {0xaa, 0x13, 0x0083}, /* 40 */ |
| 3508 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3509 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3510 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3511 | }; |
| 3512 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3513 | static const struct usb_action ov7630c_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3514 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 3515 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 3516 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 3517 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 3518 | {0xa0, 0x06, ZC3XX_R010_CMOSSENSORSELECT}, |
| 3519 | {0xa0, 0xa1, ZC3XX_R08B_I2CDEVICEADDR}, |
| 3520 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
| 3521 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 3522 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 3523 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 3524 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 3525 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3526 | |
| 3527 | {0xaa, 0x12, 0x0080}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3528 | {0xa0, 0x02, ZC3XX_R083_RGAINADDR}, |
| 3529 | {0xa0, 0x01, ZC3XX_R085_BGAINADDR}, |
| 3530 | {0xa0, 0x90, ZC3XX_R086_EXPTIMEHIGH}, |
| 3531 | {0xa0, 0x91, ZC3XX_R087_EXPTIMEMID}, |
| 3532 | {0xa0, 0x10, ZC3XX_R088_EXPTIMELOW}, |
| 3533 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 3534 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 3535 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 3536 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 3537 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
| 3538 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3539 | {0xaa, 0x12, 0x0069}, /* i2c */ |
| 3540 | {0xaa, 0x04, 0x0020}, |
| 3541 | {0xaa, 0x06, 0x0050}, |
| 3542 | {0xaa, 0x13, 0x00c3}, |
| 3543 | {0xaa, 0x14, 0x0000}, |
| 3544 | {0xaa, 0x15, 0x0024}, |
| 3545 | {0xaa, 0x19, 0x0003}, |
| 3546 | {0xaa, 0x1a, 0x00f6}, |
| 3547 | {0xaa, 0x1b, 0x0002}, |
| 3548 | {0xaa, 0x20, 0x00c2}, |
| 3549 | {0xaa, 0x24, 0x0060}, |
| 3550 | {0xaa, 0x25, 0x0040}, |
| 3551 | {0xaa, 0x26, 0x0030}, |
| 3552 | {0xaa, 0x27, 0x00ea}, |
| 3553 | {0xaa, 0x28, 0x00a0}, |
| 3554 | {0xaa, 0x21, 0x0000}, |
| 3555 | {0xaa, 0x2a, 0x0081}, |
| 3556 | {0xaa, 0x2b, 0x0096}, |
| 3557 | {0xaa, 0x2d, 0x0084}, |
| 3558 | {0xaa, 0x2f, 0x003d}, |
| 3559 | {0xaa, 0x30, 0x0024}, |
| 3560 | {0xaa, 0x60, 0x0000}, |
| 3561 | {0xaa, 0x61, 0x0040}, |
| 3562 | {0xaa, 0x68, 0x007c}, |
| 3563 | {0xaa, 0x6f, 0x0015}, |
| 3564 | {0xaa, 0x75, 0x0088}, |
| 3565 | {0xaa, 0x77, 0x00b5}, |
| 3566 | {0xaa, 0x01, 0x0060}, |
| 3567 | {0xaa, 0x02, 0x0060}, |
| 3568 | {0xaa, 0x17, 0x0018}, |
| 3569 | {0xaa, 0x18, 0x00ba}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3570 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 3571 | {0xa0, 0x77, ZC3XX_R101_SENSORCORRECTION}, |
| 3572 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 3573 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 3574 | {0xa0, 0x04, ZC3XX_R1A7_CALCGLOBALMEAN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3575 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3576 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 3577 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 3578 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 3579 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 3580 | {0xa0, 0x60, ZC3XX_R116_RGAIN}, |
| 3581 | {0xa0, 0x46, ZC3XX_R118_BGAIN}, |
| 3582 | {0xa0, 0x04, ZC3XX_R113_RGB03}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3583 | |
| 3584 | {0xa1, 0x01, 0x0002}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3585 | {0xa0, 0x4e, ZC3XX_R10A_RGB00}, /* matrix */ |
| 3586 | {0xa0, 0xfe, ZC3XX_R10B_RGB01}, |
| 3587 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
| 3588 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
| 3589 | {0xa0, 0x4d, ZC3XX_R10E_RGB11}, |
| 3590 | {0xa0, 0xfc, ZC3XX_R10F_RGB12}, |
| 3591 | {0xa0, 0x00, ZC3XX_R110_RGB20}, |
| 3592 | {0xa0, 0xf6, ZC3XX_R111_RGB21}, |
| 3593 | {0xa0, 0x4a, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3594 | |
| 3595 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3596 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 3597 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3598 | {0xa1, 0x01, 0x01c8}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3599 | {0xa1, 0x01, 0x01c9}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3600 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3601 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 3602 | {0xa0, 0x16, ZC3XX_R120_GAMMA00}, /* gamma ~4 */ |
| 3603 | {0xa0, 0x3a, ZC3XX_R121_GAMMA01}, |
| 3604 | {0xa0, 0x5b, ZC3XX_R122_GAMMA02}, |
| 3605 | {0xa0, 0x7c, ZC3XX_R123_GAMMA03}, |
| 3606 | {0xa0, 0x94, ZC3XX_R124_GAMMA04}, |
| 3607 | {0xa0, 0xa9, ZC3XX_R125_GAMMA05}, |
| 3608 | {0xa0, 0xbb, ZC3XX_R126_GAMMA06}, |
| 3609 | {0xa0, 0xca, ZC3XX_R127_GAMMA07}, |
| 3610 | {0xa0, 0xd7, ZC3XX_R128_GAMMA08}, |
| 3611 | {0xa0, 0xe1, ZC3XX_R129_GAMMA09}, |
| 3612 | {0xa0, 0xea, ZC3XX_R12A_GAMMA0A}, |
| 3613 | {0xa0, 0xf1, ZC3XX_R12B_GAMMA0B}, |
| 3614 | {0xa0, 0xf7, ZC3XX_R12C_GAMMA0C}, |
| 3615 | {0xa0, 0xfc, ZC3XX_R12D_GAMMA0D}, |
| 3616 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
| 3617 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 3618 | {0xa0, 0x20, ZC3XX_R130_GAMMA10}, |
| 3619 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 3620 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 3621 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 3622 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 3623 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 3624 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 3625 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 3626 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 3627 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 3628 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 3629 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 3630 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 3631 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 3632 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
| 3633 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
| 3634 | {0xa0, 0x4e, ZC3XX_R10A_RGB00}, /* matrix */ |
| 3635 | {0xa0, 0xfe, ZC3XX_R10B_RGB01}, |
| 3636 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
| 3637 | {0xa0, 0xf7, ZC3XX_R10D_RGB10}, |
| 3638 | {0xa0, 0x4d, ZC3XX_R10E_RGB11}, |
| 3639 | {0xa0, 0xfc, ZC3XX_R10F_RGB12}, |
| 3640 | {0xa0, 0x00, ZC3XX_R110_RGB20}, |
| 3641 | {0xa0, 0xf6, ZC3XX_R111_RGB21}, |
| 3642 | {0xa0, 0x4a, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3643 | |
| 3644 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3645 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3646 | {0xaa, 0x10, 0x000d}, |
| 3647 | {0xaa, 0x76, 0x0002}, |
| 3648 | {0xaa, 0x2a, 0x0081}, |
| 3649 | {0xaa, 0x2b, 0x0000}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3650 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 3651 | {0xa0, 0x00, ZC3XX_R191_EXPOSURELIMITMID}, |
| 3652 | {0xa0, 0xd8, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 3653 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 3654 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 3655 | {0xa0, 0x1b, ZC3XX_R197_ANTIFLICKERLOW}, |
| 3656 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 3657 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 3658 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 3659 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 3660 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, |
| 3661 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 3662 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3663 | {0xaa, 0x13, 0x00c3}, |
| 3664 | |
| 3665 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3666 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3667 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3668 | }; |
| 3669 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3670 | static const struct usb_action pas106b_Initial_com[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3671 | /* Sream and Sensor specific */ |
| 3672 | {0xa1, 0x01, 0x0010}, /* CMOSSensorSelect */ |
| 3673 | /* System */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3674 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* SystemControl */ |
| 3675 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* SystemControl */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3676 | /* Picture size */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3677 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* ClockSelect */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3678 | {0xa0, 0x03, 0x003a}, |
| 3679 | {0xa0, 0x0c, 0x003b}, |
| 3680 | {0xa0, 0x04, 0x0038}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3681 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3682 | }; |
| 3683 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3684 | static const struct usb_action pas106b_Initial[] = { /* 176x144 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3685 | /* JPEG control */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3686 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3687 | /* Sream and Sensor specific */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3688 | {0xa0, 0x0f, ZC3XX_R010_CMOSSENSORSELECT}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3689 | /* Picture size */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3690 | {0xa0, 0x00, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 3691 | {0xa0, 0xb0, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 3692 | {0xa0, 0x00, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 3693 | {0xa0, 0x90, ZC3XX_R006_FRAMEHEIGHTLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3694 | /* System */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3695 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3696 | /* Sream and Sensor specific */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3697 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 3698 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3699 | /* Sensor Interface */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3700 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3701 | /* Window inside sensor array */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3702 | {0xa0, 0x03, ZC3XX_R09A_WINXSTARTLOW}, |
| 3703 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 3704 | {0xa0, 0x03, ZC3XX_R11C_FIRSTXLOW}, |
| 3705 | {0xa0, 0x28, ZC3XX_R09C_WINHEIGHTLOW}, |
| 3706 | {0xa0, 0x68, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3707 | /* Init the sensor */ |
| 3708 | {0xaa, 0x02, 0x0004}, |
| 3709 | {0xaa, 0x08, 0x0000}, |
| 3710 | {0xaa, 0x09, 0x0005}, |
| 3711 | {0xaa, 0x0a, 0x0002}, |
| 3712 | {0xaa, 0x0b, 0x0002}, |
| 3713 | {0xaa, 0x0c, 0x0005}, |
| 3714 | {0xaa, 0x0d, 0x0000}, |
| 3715 | {0xaa, 0x0e, 0x0002}, |
| 3716 | {0xaa, 0x14, 0x0081}, |
| 3717 | |
| 3718 | /* Other registors */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3719 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3720 | /* Frame retreiving */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3721 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3722 | /* Gains */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3723 | {0xa0, 0xa0, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3724 | /* Unknown */ |
| 3725 | {0xa0, 0x00, 0x01ad}, |
| 3726 | /* Sharpness */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3727 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 3728 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3729 | /* Other registors */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3730 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3731 | /* Auto exposure and white balance */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3732 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3733 | /*Dead pixels */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3734 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3735 | /* EEPROM */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3736 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3737 | /* JPEG control */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3738 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 3739 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, |
| 3740 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3741 | /* Other registers */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3742 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3743 | /* Auto exposure and white balance */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3744 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3745 | /*Dead pixels */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3746 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3747 | /* EEPROM */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3748 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3749 | /* JPEG control */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3750 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 3751 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, |
| 3752 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3753 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3754 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
| 3755 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
| 3756 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
| 3757 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
| 3758 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
| 3759 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
| 3760 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
| 3761 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
| 3762 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3763 | /* Auto correction */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3764 | {0xa0, 0x03, ZC3XX_R181_WINXSTART}, |
| 3765 | {0xa0, 0x08, ZC3XX_R182_WINXWIDTH}, |
| 3766 | {0xa0, 0x16, ZC3XX_R183_WINXCENTER}, |
| 3767 | {0xa0, 0x03, ZC3XX_R184_WINYSTART}, |
| 3768 | {0xa0, 0x05, ZC3XX_R185_WINYWIDTH}, |
| 3769 | {0xa0, 0x14, ZC3XX_R186_WINYCENTER}, |
| 3770 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3771 | |
| 3772 | /* Auto exposure and white balance */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3773 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 3774 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, |
| 3775 | {0xa0, 0xb1, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 3776 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 3777 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 3778 | {0xa0, 0x87, ZC3XX_R197_ANTIFLICKERLOW}, |
| 3779 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, |
| 3780 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3781 | /* sensor on */ |
| 3782 | {0xaa, 0x07, 0x00b1}, |
| 3783 | {0xaa, 0x05, 0x0003}, |
| 3784 | {0xaa, 0x04, 0x0001}, |
| 3785 | {0xaa, 0x03, 0x003b}, |
| 3786 | /* Gains */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3787 | {0xa0, 0x20, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 3788 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 3789 | {0xa0, 0xa0, ZC3XX_R11D_GLOBALGAIN}, |
| 3790 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3791 | /* Auto correction */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3792 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3793 | {0xa1, 0x01, 0x0180}, /* AutoCorrectEnable */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3794 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3795 | /* Gains */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3796 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 3797 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 3798 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3799 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3800 | }; |
| 3801 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3802 | static const struct usb_action pas106b_InitialScale[] = { /* 352x288 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3803 | /* JPEG control */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3804 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3805 | /* Sream and Sensor specific */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3806 | {0xa0, 0x0f, ZC3XX_R010_CMOSSENSORSELECT}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3807 | /* Picture size */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3808 | {0xa0, 0x01, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 3809 | {0xa0, 0x60, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 3810 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 3811 | {0xa0, 0x20, ZC3XX_R006_FRAMEHEIGHTLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3812 | /* System */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3813 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3814 | /* Sream and Sensor specific */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3815 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 3816 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3817 | /* Sensor Interface */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3818 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3819 | /* Window inside sensor array */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3820 | {0xa0, 0x03, ZC3XX_R09A_WINXSTARTLOW}, |
| 3821 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 3822 | {0xa0, 0x03, ZC3XX_R11C_FIRSTXLOW}, |
| 3823 | {0xa0, 0x28, ZC3XX_R09C_WINHEIGHTLOW}, |
| 3824 | {0xa0, 0x68, ZC3XX_R09E_WINWIDTHLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3825 | /* Init the sensor */ |
| 3826 | {0xaa, 0x02, 0x0004}, |
| 3827 | {0xaa, 0x08, 0x0000}, |
| 3828 | {0xaa, 0x09, 0x0005}, |
| 3829 | {0xaa, 0x0a, 0x0002}, |
| 3830 | {0xaa, 0x0b, 0x0002}, |
| 3831 | {0xaa, 0x0c, 0x0005}, |
| 3832 | {0xaa, 0x0d, 0x0000}, |
| 3833 | {0xaa, 0x0e, 0x0002}, |
| 3834 | {0xaa, 0x14, 0x0081}, |
| 3835 | |
| 3836 | /* Other registors */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3837 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3838 | /* Frame retreiving */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3839 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3840 | /* Gains */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3841 | {0xa0, 0xa0, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3842 | /* Unknown */ |
| 3843 | {0xa0, 0x00, 0x01ad}, |
| 3844 | /* Sharpness */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3845 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 3846 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3847 | /* Other registors */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3848 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3849 | /* Auto exposure and white balance */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3850 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 3851 | {0xa0, 0x80, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3852 | /*Dead pixels */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3853 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3854 | /* EEPROM */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3855 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3856 | /* JPEG control */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3857 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 3858 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, |
| 3859 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3860 | /* Other registers */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3861 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3862 | /* Auto exposure and white balance */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3863 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3864 | /*Dead pixels */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3865 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3866 | /* EEPROM */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3867 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3868 | /* JPEG control */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3869 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 3870 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, |
| 3871 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3872 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3873 | {0xa0, 0x58, ZC3XX_R10A_RGB00}, /* matrix */ |
| 3874 | {0xa0, 0xf4, ZC3XX_R10B_RGB01}, |
| 3875 | {0xa0, 0xf4, ZC3XX_R10C_RGB02}, |
| 3876 | {0xa0, 0xf4, ZC3XX_R10D_RGB10}, |
| 3877 | {0xa0, 0x58, ZC3XX_R10E_RGB11}, |
| 3878 | {0xa0, 0xf4, ZC3XX_R10F_RGB12}, |
| 3879 | {0xa0, 0xf4, ZC3XX_R110_RGB20}, |
| 3880 | {0xa0, 0xf4, ZC3XX_R111_RGB21}, |
| 3881 | {0xa0, 0x58, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3882 | /* Auto correction */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3883 | {0xa0, 0x03, ZC3XX_R181_WINXSTART}, |
| 3884 | {0xa0, 0x08, ZC3XX_R182_WINXWIDTH}, |
| 3885 | {0xa0, 0x16, ZC3XX_R183_WINXCENTER}, |
| 3886 | {0xa0, 0x03, ZC3XX_R184_WINYSTART}, |
| 3887 | {0xa0, 0x05, ZC3XX_R185_WINYWIDTH}, |
| 3888 | {0xa0, 0x14, ZC3XX_R186_WINYCENTER}, |
| 3889 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3890 | |
| 3891 | /* Auto exposure and white balance */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3892 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 3893 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, |
| 3894 | {0xa0, 0xb1, ZC3XX_R192_EXPOSURELIMITLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3895 | |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3896 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 3897 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 3898 | {0xa0, 0x87, ZC3XX_R197_ANTIFLICKERLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3899 | |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3900 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 3901 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3902 | /* sensor on */ |
| 3903 | {0xaa, 0x07, 0x00b1}, |
| 3904 | {0xaa, 0x05, 0x0003}, |
| 3905 | {0xaa, 0x04, 0x0001}, |
| 3906 | {0xaa, 0x03, 0x003b}, |
| 3907 | /* Gains */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3908 | {0xa0, 0x20, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 3909 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 3910 | {0xa0, 0xa0, ZC3XX_R11D_GLOBALGAIN}, |
| 3911 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3912 | /* Auto correction */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3913 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3914 | {0xa1, 0x01, 0x0180}, /* AutoCorrectEnable */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3915 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3916 | /* Gains */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 3917 | {0xa0, 0x40, ZC3XX_R116_RGAIN}, |
| 3918 | {0xa0, 0x40, ZC3XX_R117_GGAIN}, |
| 3919 | {0xa0, 0x40, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3920 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3921 | {0xa0, 0x00, 0x0007}, /* AutoCorrectEnable */ |
| 3922 | {0xa0, 0xff, ZC3XX_R018_FRAMELOST}, /* Frame adjust */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3923 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3924 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3925 | static const struct usb_action pas106b_50HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3926 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 3927 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,06,cc */ |
| 3928 | {0xa0, 0x54, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,54,cc */ |
| 3929 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 3930 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 3931 | {0xa0, 0x87, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,87,cc */ |
| 3932 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 3933 | {0xa0, 0x30, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,30,cc */ |
| 3934 | {0xaa, 0x03, 0x0021}, /* 00,03,21,aa */ |
| 3935 | {0xaa, 0x04, 0x000c}, /* 00,04,0c,aa */ |
| 3936 | {0xaa, 0x05, 0x0002}, /* 00,05,02,aa */ |
| 3937 | {0xaa, 0x07, 0x001c}, /* 00,07,1c,aa */ |
| 3938 | {0xa0, 0x04, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,04,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3939 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3940 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3941 | static const struct usb_action pas106b_60HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3942 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 3943 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,06,cc */ |
| 3944 | {0xa0, 0x2e, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,2e,cc */ |
| 3945 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 3946 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 3947 | {0xa0, 0x71, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,71,cc */ |
| 3948 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 3949 | {0xa0, 0x30, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,30,cc */ |
| 3950 | {0xaa, 0x03, 0x001c}, /* 00,03,1c,aa */ |
| 3951 | {0xaa, 0x04, 0x0004}, /* 00,04,04,aa */ |
| 3952 | {0xaa, 0x05, 0x0001}, /* 00,05,01,aa */ |
| 3953 | {0xaa, 0x07, 0x00c4}, /* 00,07,c4,aa */ |
| 3954 | {0xa0, 0x04, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,04,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3955 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3956 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 3957 | static const struct usb_action pas106b_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 3958 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 3959 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,06,cc */ |
| 3960 | {0xa0, 0x50, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,50,cc */ |
| 3961 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 3962 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 3963 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 3964 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 3965 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 3966 | {0xaa, 0x03, 0x0013}, /* 00,03,13,aa */ |
| 3967 | {0xaa, 0x04, 0x0000}, /* 00,04,00,aa */ |
| 3968 | {0xaa, 0x05, 0x0001}, /* 00,05,01,aa */ |
| 3969 | {0xaa, 0x07, 0x0030}, /* 00,07,30,aa */ |
| 3970 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 3971 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 3972 | }; |
| 3973 | |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 3974 | /* from usbvm31b.inf */ |
| 3975 | static const struct usb_action pas202b_Initial[] = { /* 640x480 */ |
| 3976 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 3977 | {0xa0, 0x00, ZC3XX_R008_CLOCKSETTING}, /* 00,08,00,cc */ |
| 3978 | {0xa0, 0x0e, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0e,cc */ |
| 3979 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 00,02,00,cc */ |
| 3980 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 3981 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 3982 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 3983 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
| 3984 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 3985 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 3986 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 3987 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* 00,8d,08,cc */ |
| 3988 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 3989 | {0xa0, 0x03, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,03,cc */ |
| 3990 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 3991 | {0xa0, 0x03, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,03,cc */ |
| 3992 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, /* 00,9b,01,cc */ |
| 3993 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc */ |
| 3994 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, /* 00,9d,02,cc */ |
| 3995 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
| 3996 | {0xaa, 0x02, 0x0002}, /* 00,02,04,aa --> 02 */ |
| 3997 | {0xaa, 0x07, 0x0006}, /* 00,07,06,aa */ |
| 3998 | {0xaa, 0x08, 0x0002}, /* 00,08,02,aa */ |
| 3999 | {0xaa, 0x09, 0x0006}, /* 00,09,06,aa */ |
| 4000 | {0xaa, 0x0a, 0x0001}, /* 00,0a,01,aa */ |
| 4001 | {0xaa, 0x0b, 0x0001}, /* 00,0b,01,aa */ |
| 4002 | {0xaa, 0x0c, 0x0008}, /* 00,0c,08,aa */ |
| 4003 | {0xaa, 0x0d, 0x0000}, /* 00,0d,00,aa */ |
| 4004 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 4005 | {0xaa, 0x12, 0x0005}, /* 00,12,05,aa */ |
| 4006 | {0xaa, 0x13, 0x0063}, /* 00,13,63,aa */ |
| 4007 | {0xaa, 0x15, 0x0070}, /* 00,15,70,aa */ |
| 4008 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc */ |
| 4009 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 4010 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 4011 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
| 4012 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 4013 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 4014 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 4015 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 4016 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, /* 01,8d,70,cc */ |
| 4017 | {} |
| 4018 | }; |
| 4019 | static const struct usb_action pas202b_InitialScale[] = { /* 320x240 */ |
| 4020 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 4021 | {0xa0, 0x00, ZC3XX_R008_CLOCKSETTING}, /* 00,08,00,cc */ |
| 4022 | {0xa0, 0x0e, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,0e,cc */ |
| 4023 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
| 4024 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 4025 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 4026 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 4027 | {0xa0, 0xd0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,d0,cc */ |
| 4028 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 4029 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 4030 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 4031 | {0xa0, 0x08, ZC3XX_R08D_COMPABILITYMODE}, /* 00,8d,08,cc */ |
| 4032 | {0xa0, 0x08, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,08,cc */ |
| 4033 | {0xa0, 0x02, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,02,cc */ |
| 4034 | {0xa0, 0x08, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,08,cc */ |
| 4035 | {0xa0, 0x02, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,02,cc */ |
| 4036 | {0xa0, 0x01, ZC3XX_R09B_WINHEIGHTHIGH}, /* 00,9b,01,cc */ |
| 4037 | {0xa0, 0xd8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,d8,cc */ |
| 4038 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, /* 00,9d,02,cc */ |
| 4039 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
| 4040 | {0xaa, 0x02, 0x0002}, /* 00,02,02,aa */ |
| 4041 | {0xaa, 0x07, 0x0006}, /* 00,07,06,aa */ |
| 4042 | {0xaa, 0x08, 0x0002}, /* 00,08,02,aa */ |
| 4043 | {0xaa, 0x09, 0x0006}, /* 00,09,06,aa */ |
| 4044 | {0xaa, 0x0a, 0x0001}, /* 00,0a,01,aa */ |
| 4045 | {0xaa, 0x0b, 0x0001}, /* 00,0b,01,aa */ |
| 4046 | {0xaa, 0x0c, 0x0008}, /* 00,0c,08,aa */ |
| 4047 | {0xaa, 0x0d, 0x0000}, /* 00,0d,00,aa */ |
| 4048 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa */ |
| 4049 | {0xaa, 0x12, 0x0005}, /* 00,12,05,aa */ |
| 4050 | {0xaa, 0x13, 0x0063}, /* 00,13,63,aa */ |
| 4051 | {0xaa, 0x15, 0x0070}, /* 00,15,70,aa */ |
| 4052 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,37,cc */ |
| 4053 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 4054 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
| 4055 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
| 4056 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 4057 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 4058 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 4059 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 4060 | {0xa0, 0x70, ZC3XX_R18D_YTARGET}, /* 01,8d,70,cc */ |
| 4061 | {} |
| 4062 | }; |
| 4063 | static const struct usb_action pas202b_50HZ[] = { |
| 4064 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4065 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, /* 00,87,20,cc */ |
| 4066 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, /* 00,88,21,cc */ |
| 4067 | {0xaa, 0x20, 0x0002}, /* 00,20,02,aa */ |
| 4068 | {0xaa, 0x21, 0x0068}, /* 00,21,68,aa */ |
| 4069 | {0xaa, 0x03, 0x0044}, /* 00,03,44,aa */ |
| 4070 | {0xaa, 0x04, 0x0009}, /* 00,04,09,aa */ |
| 4071 | {0xaa, 0x05, 0x0028}, /* 00,05,28,aa */ |
| 4072 | {0xaa, 0x0e, 0x0001}, /* 00,0e,01,aa */ |
| 4073 | {0xaa, 0x0f, 0x0000}, /* 00,0f,00,aa */ |
| 4074 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,14,cc */ |
| 4075 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 4076 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4077 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4078 | {0xa0, 0xd2, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,d2,cc */ |
| 4079 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4080 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4081 | {0xa0, 0x4d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,4d,cc */ |
| 4082 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4083 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4084 | {0xa0, 0x44, ZC3XX_R01D_HSYNC_0}, /* 00,1d,44,cc */ |
| 4085 | {0xa0, 0x6f, ZC3XX_R01E_HSYNC_1}, /* 00,1e,6f,cc */ |
| 4086 | {0xa0, 0xad, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ad,cc */ |
| 4087 | {0xa0, 0xeb, ZC3XX_R020_HSYNC_3}, /* 00,20,eb,cc */ |
| 4088 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, /* 00,87,0f,cc */ |
| 4089 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, /* 00,88,0e,cc */ |
| 4090 | {} |
| 4091 | }; |
| 4092 | static const struct usb_action pas202b_50HZScale[] = { |
| 4093 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4094 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, /* 00,87,20,cc */ |
| 4095 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, /* 00,88,21,cc */ |
| 4096 | {0xaa, 0x20, 0x0002}, /* 00,20,02,aa */ |
| 4097 | {0xaa, 0x21, 0x006c}, /* 00,21,6c,aa */ |
| 4098 | {0xaa, 0x03, 0x0041}, /* 00,03,41,aa */ |
| 4099 | {0xaa, 0x04, 0x0009}, /* 00,04,09,aa */ |
| 4100 | {0xaa, 0x05, 0x002c}, /* 00,05,2c,aa */ |
| 4101 | {0xaa, 0x0e, 0x0001}, /* 00,0e,01,aa */ |
| 4102 | {0xaa, 0x0f, 0x0000}, /* 00,0f,00,aa */ |
| 4103 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,14,cc */ |
| 4104 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 4105 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4106 | {0xa0, 0x0f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0f,cc */ |
| 4107 | {0xa0, 0xbe, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,be,cc */ |
| 4108 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4109 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4110 | {0xa0, 0x9b, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,9b,cc */ |
| 4111 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4112 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4113 | {0xa0, 0x41, ZC3XX_R01D_HSYNC_0}, /* 00,1d,41,cc */ |
| 4114 | {0xa0, 0x6f, ZC3XX_R01E_HSYNC_1}, /* 00,1e,6f,cc */ |
| 4115 | {0xa0, 0xad, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ad,cc */ |
| 4116 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 4117 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, /* 00,87,0f,cc */ |
| 4118 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, /* 00,88,0e,cc */ |
| 4119 | {} |
| 4120 | }; |
| 4121 | static const struct usb_action pas202b_60HZ[] = { |
| 4122 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4123 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, /* 00,87,20,cc */ |
| 4124 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, /* 00,88,21,cc */ |
| 4125 | {0xaa, 0x20, 0x0002}, /* 00,20,02,aa */ |
| 4126 | {0xaa, 0x21, 0x0000}, /* 00,21,00,aa */ |
| 4127 | {0xaa, 0x03, 0x0045}, /* 00,03,45,aa */ |
| 4128 | {0xaa, 0x04, 0x0008}, /* 00,04,08,aa */ |
| 4129 | {0xaa, 0x05, 0x0000}, /* 00,05,00,aa */ |
| 4130 | {0xaa, 0x0e, 0x0001}, /* 00,0e,01,aa */ |
| 4131 | {0xaa, 0x0f, 0x0000}, /* 00,0f,00,aa */ |
| 4132 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,14,cc */ |
| 4133 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 4134 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4135 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4136 | {0xa0, 0xc0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,c0,cc */ |
| 4137 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4138 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4139 | {0xa0, 0x40, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,40,cc */ |
| 4140 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4141 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4142 | {0xa0, 0x45, ZC3XX_R01D_HSYNC_0}, /* 00,1d,45,cc */ |
| 4143 | {0xa0, 0x8e, ZC3XX_R01E_HSYNC_1}, /* 00,1e,8e,cc */ |
| 4144 | {0xa0, 0xc1, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c1,cc */ |
| 4145 | {0xa0, 0xf5, ZC3XX_R020_HSYNC_3}, /* 00,20,f5,cc */ |
| 4146 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, /* 00,87,0f,cc */ |
| 4147 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, /* 00,88,0e,cc */ |
| 4148 | {} |
| 4149 | }; |
| 4150 | static const struct usb_action pas202b_60HZScale[] = { |
| 4151 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4152 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, /* 00,87,20,cc */ |
| 4153 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, /* 00,88,21,cc */ |
| 4154 | {0xaa, 0x20, 0x0002}, /* 00,20,02,aa */ |
| 4155 | {0xaa, 0x21, 0x0004}, /* 00,21,04,aa */ |
| 4156 | {0xaa, 0x03, 0x0042}, /* 00,03,42,aa */ |
| 4157 | {0xaa, 0x04, 0x0008}, /* 00,04,08,aa */ |
| 4158 | {0xaa, 0x05, 0x0004}, /* 00,05,04,aa */ |
| 4159 | {0xaa, 0x0e, 0x0001}, /* 00,0e,01,aa */ |
| 4160 | {0xaa, 0x0f, 0x0000}, /* 00,0f,00,aa */ |
| 4161 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,14,cc */ |
| 4162 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc */ |
| 4163 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4164 | {0xa0, 0x0f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0f,cc */ |
| 4165 | {0xa0, 0x9f, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,9f,cc */ |
| 4166 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4167 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4168 | {0xa0, 0x81, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,81,cc */ |
| 4169 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4170 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4171 | {0xa0, 0x42, ZC3XX_R01D_HSYNC_0}, /* 00,1d,42,cc */ |
| 4172 | {0xa0, 0x6f, ZC3XX_R01E_HSYNC_1}, /* 00,1e,6f,cc */ |
| 4173 | {0xa0, 0xaf, ZC3XX_R01F_HSYNC_2}, /* 00,1f,af,cc */ |
| 4174 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 4175 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, /* 00,87,0f,cc */ |
| 4176 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, /* 00,88,0e,cc */ |
| 4177 | {} |
| 4178 | }; |
| 4179 | static const struct usb_action pas202b_NoFliker[] = { |
| 4180 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4181 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, /* 00,87,20,cc */ |
| 4182 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, /* 00,88,21,cc */ |
| 4183 | {0xaa, 0x20, 0x0002}, /* 00,20,02,aa */ |
| 4184 | {0xaa, 0x21, 0x0020}, /* 00,21,20,aa */ |
| 4185 | {0xaa, 0x03, 0x0040}, /* 00,03,40,aa */ |
| 4186 | {0xaa, 0x04, 0x0008}, /* 00,04,08,aa */ |
| 4187 | {0xaa, 0x05, 0x0020}, /* 00,05,20,aa */ |
| 4188 | {0xaa, 0x0e, 0x0001}, /* 00,0e,01,aa */ |
| 4189 | {0xaa, 0x0f, 0x0000}, /* 00,0f,00,aa */ |
| 4190 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4191 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4192 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 4193 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4194 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4195 | {0xa0, 0x02, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,02,cc */ |
| 4196 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4197 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4198 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 4199 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 4200 | {0xa0, 0x40, ZC3XX_R01D_HSYNC_0}, /* 00,1d,40,cc */ |
| 4201 | {0xa0, 0x60, ZC3XX_R01E_HSYNC_1}, /* 00,1e,60,cc */ |
| 4202 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
| 4203 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 4204 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, /* 00,87,0f,cc */ |
| 4205 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, /* 00,88,0e,cc */ |
| 4206 | {} |
| 4207 | }; |
| 4208 | static const struct usb_action pas202b_NoFlikerScale[] = { |
| 4209 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4210 | {0xa0, 0x20, ZC3XX_R087_EXPTIMEMID}, /* 00,87,20,cc */ |
| 4211 | {0xa0, 0x21, ZC3XX_R088_EXPTIMELOW}, /* 00,88,21,cc */ |
| 4212 | {0xaa, 0x20, 0x0002}, /* 00,20,02,aa */ |
| 4213 | {0xaa, 0x21, 0x0010}, /* 00,21,10,aa */ |
| 4214 | {0xaa, 0x03, 0x0040}, /* 00,03,40,aa */ |
| 4215 | {0xaa, 0x04, 0x0008}, /* 00,04,08,aa */ |
| 4216 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa */ |
| 4217 | {0xaa, 0x0e, 0x0001}, /* 00,0e,01,aa */ |
| 4218 | {0xaa, 0x0f, 0x0000}, /* 00,0f,00,aa */ |
| 4219 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4220 | {0xa0, 0x0f, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0f,cc */ |
| 4221 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 4222 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4223 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4224 | {0xa0, 0x02, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,02,cc */ |
| 4225 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4226 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4227 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 4228 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 4229 | {0xa0, 0x40, ZC3XX_R01D_HSYNC_0}, /* 00,1d,40,cc */ |
| 4230 | {0xa0, 0x60, ZC3XX_R01E_HSYNC_1}, /* 00,1e,60,cc */ |
| 4231 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
| 4232 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 4233 | {0xa0, 0x0f, ZC3XX_R087_EXPTIMEMID}, /* 00,87,0f,cc */ |
| 4234 | {0xa0, 0x0e, ZC3XX_R088_EXPTIMELOW}, /* 00,88,0e,cc */ |
| 4235 | {} |
| 4236 | }; |
| 4237 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4238 | static const struct usb_action pb03303x_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4239 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 4240 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 4241 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 4242 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 4243 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 4244 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 4245 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 4246 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 4247 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, /* 8b -> dc */ |
| 4248 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 4249 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4250 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4251 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 4252 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 4253 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 4254 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 4255 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4256 | {0xaa, 0x01, 0x0001}, |
| 4257 | {0xaa, 0x06, 0x0000}, |
| 4258 | {0xaa, 0x08, 0x0483}, |
| 4259 | {0xaa, 0x01, 0x0004}, |
| 4260 | {0xaa, 0x08, 0x0006}, |
| 4261 | {0xaa, 0x02, 0x0011}, |
| 4262 | {0xaa, 0x03, 0x01e7}, |
| 4263 | {0xaa, 0x04, 0x0287}, |
| 4264 | {0xaa, 0x07, 0x3002}, |
| 4265 | {0xaa, 0x20, 0x1100}, |
| 4266 | {0xaa, 0x35, 0x0050}, |
| 4267 | {0xaa, 0x30, 0x0005}, |
| 4268 | {0xaa, 0x31, 0x0000}, |
| 4269 | {0xaa, 0x58, 0x0078}, |
| 4270 | {0xaa, 0x62, 0x0411}, |
| 4271 | {0xaa, 0x2b, 0x0028}, |
| 4272 | {0xaa, 0x2c, 0x0030}, |
| 4273 | {0xaa, 0x2d, 0x0030}, |
| 4274 | {0xaa, 0x2e, 0x0028}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4275 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
| 4276 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 4277 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4278 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 4279 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4280 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4281 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 4282 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 4283 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 4284 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 4285 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 4286 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
| 4287 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
| 4288 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4289 | |
| 4290 | {0xa1, 0x01, 0x0002}, |
| 4291 | {0xa0, 0x09, 0x01ad}, |
| 4292 | {0xa0, 0x15, 0x01ae}, |
| 4293 | {0xa0, 0x0d, 0x003a}, |
| 4294 | {0xa0, 0x02, 0x003b}, |
| 4295 | {0xa0, 0x00, 0x0038}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4296 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4297 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4298 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4299 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4300 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4301 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4302 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4303 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4304 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4305 | |
| 4306 | {0xa1, 0x01, 0x0008}, |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 4307 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 4308 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4309 | {0xa1, 0x01, 0x01c8}, |
| 4310 | {0xa1, 0x01, 0x01c9}, |
| 4311 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4312 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 4313 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
| 4314 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
| 4315 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
| 4316 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
| 4317 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
| 4318 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
| 4319 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
| 4320 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
| 4321 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
| 4322 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
| 4323 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
| 4324 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
| 4325 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
| 4326 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
| 4327 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
| 4328 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 4329 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
| 4330 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 4331 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 4332 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 4333 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 4334 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 4335 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 4336 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 4337 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 4338 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 4339 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 4340 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 4341 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 4342 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 4343 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
| 4344 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
| 4345 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4346 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4347 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4348 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4349 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4350 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4351 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4352 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4353 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4354 | |
| 4355 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4356 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 4357 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 4358 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4359 | {0xaa, 0x05, 0x0009}, |
| 4360 | {0xaa, 0x09, 0x0134}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4361 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 4362 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 4363 | {0xa0, 0xec, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 4364 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 4365 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 4366 | {0xa0, 0x9c, ZC3XX_R197_ANTIFLICKERLOW}, |
| 4367 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
| 4368 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
| 4369 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 4370 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 4371 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
| 4372 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
| 4373 | {0xa0, 0xf9, ZC3XX_R01F_HSYNC_2}, |
| 4374 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 4375 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4376 | {0xa0, 0x09, 0x01ad}, |
| 4377 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4378 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4379 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4380 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4381 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4382 | }; |
| 4383 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4384 | static const struct usb_action pb03303x_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4385 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 4386 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 4387 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 4388 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 4389 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 4390 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 4391 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 4392 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 4393 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, /* 8b -> dc */ |
| 4394 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 4395 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4396 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4397 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 4398 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 4399 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 4400 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 4401 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4402 | {0xaa, 0x01, 0x0001}, |
| 4403 | {0xaa, 0x06, 0x0000}, |
| 4404 | {0xaa, 0x08, 0x0483}, |
| 4405 | {0xaa, 0x01, 0x0004}, |
| 4406 | {0xaa, 0x08, 0x0006}, |
| 4407 | {0xaa, 0x02, 0x0011}, |
| 4408 | {0xaa, 0x03, 0x01e7}, |
| 4409 | {0xaa, 0x04, 0x0287}, |
| 4410 | {0xaa, 0x07, 0x3002}, |
| 4411 | {0xaa, 0x20, 0x1100}, |
| 4412 | {0xaa, 0x35, 0x0050}, |
| 4413 | {0xaa, 0x30, 0x0005}, |
| 4414 | {0xaa, 0x31, 0x0000}, |
| 4415 | {0xaa, 0x58, 0x0078}, |
| 4416 | {0xaa, 0x62, 0x0411}, |
| 4417 | {0xaa, 0x2b, 0x0028}, |
| 4418 | {0xaa, 0x2c, 0x0030}, |
| 4419 | {0xaa, 0x2d, 0x0030}, |
| 4420 | {0xaa, 0x2e, 0x0028}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4421 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
| 4422 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 4423 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4424 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 4425 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4426 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4427 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 4428 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 4429 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 4430 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 4431 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 4432 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, |
| 4433 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
| 4434 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4435 | |
| 4436 | {0xa1, 0x01, 0x0002}, |
| 4437 | |
| 4438 | {0xa0, 0x09, 0x01ad}, |
| 4439 | {0xa0, 0x15, 0x01ae}, |
| 4440 | |
| 4441 | {0xa0, 0x0d, 0x003a}, |
| 4442 | {0xa0, 0x02, 0x003b}, |
| 4443 | {0xa0, 0x00, 0x0038}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4444 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4445 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4446 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4447 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4448 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4449 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4450 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4451 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4452 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4453 | |
| 4454 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4455 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 4456 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4457 | {0xa1, 0x01, 0x01c8}, |
| 4458 | {0xa1, 0x01, 0x01c9}, |
| 4459 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4460 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4461 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4462 | {0xa0, 0x13, ZC3XX_R120_GAMMA00}, /* gamma 4 */ |
| 4463 | {0xa0, 0x38, ZC3XX_R121_GAMMA01}, |
| 4464 | {0xa0, 0x59, ZC3XX_R122_GAMMA02}, |
| 4465 | {0xa0, 0x79, ZC3XX_R123_GAMMA03}, |
| 4466 | {0xa0, 0x92, ZC3XX_R124_GAMMA04}, |
| 4467 | {0xa0, 0xa7, ZC3XX_R125_GAMMA05}, |
| 4468 | {0xa0, 0xb9, ZC3XX_R126_GAMMA06}, |
| 4469 | {0xa0, 0xc8, ZC3XX_R127_GAMMA07}, |
| 4470 | {0xa0, 0xd4, ZC3XX_R128_GAMMA08}, |
| 4471 | {0xa0, 0xdf, ZC3XX_R129_GAMMA09}, |
| 4472 | {0xa0, 0xe7, ZC3XX_R12A_GAMMA0A}, |
| 4473 | {0xa0, 0xee, ZC3XX_R12B_GAMMA0B}, |
| 4474 | {0xa0, 0xf4, ZC3XX_R12C_GAMMA0C}, |
| 4475 | {0xa0, 0xf9, ZC3XX_R12D_GAMMA0D}, |
| 4476 | {0xa0, 0xfc, ZC3XX_R12E_GAMMA0E}, |
| 4477 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 4478 | {0xa0, 0x26, ZC3XX_R130_GAMMA10}, |
| 4479 | {0xa0, 0x22, ZC3XX_R131_GAMMA11}, |
| 4480 | {0xa0, 0x20, ZC3XX_R132_GAMMA12}, |
| 4481 | {0xa0, 0x1c, ZC3XX_R133_GAMMA13}, |
| 4482 | {0xa0, 0x16, ZC3XX_R134_GAMMA14}, |
| 4483 | {0xa0, 0x13, ZC3XX_R135_GAMMA15}, |
| 4484 | {0xa0, 0x10, ZC3XX_R136_GAMMA16}, |
| 4485 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 4486 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 4487 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 4488 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 4489 | {0xa0, 0x06, ZC3XX_R13B_GAMMA1B}, |
| 4490 | {0xa0, 0x05, ZC3XX_R13C_GAMMA1C}, |
| 4491 | {0xa0, 0x04, ZC3XX_R13D_GAMMA1D}, |
| 4492 | {0xa0, 0x03, ZC3XX_R13E_GAMMA1E}, |
| 4493 | {0xa0, 0x02, ZC3XX_R13F_GAMMA1F}, |
| 4494 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4495 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4496 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4497 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4498 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4499 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4500 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4501 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4502 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4503 | |
| 4504 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4505 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 4506 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 4507 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4508 | {0xaa, 0x05, 0x0009}, |
| 4509 | {0xaa, 0x09, 0x0134}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4510 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 4511 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 4512 | {0xa0, 0xec, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 4513 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 4514 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 4515 | {0xa0, 0x9c, ZC3XX_R197_ANTIFLICKERLOW}, |
| 4516 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
| 4517 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
| 4518 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 4519 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 4520 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
| 4521 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
| 4522 | {0xa0, 0xf9, ZC3XX_R01F_HSYNC_2}, |
| 4523 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 4524 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4525 | {0xa0, 0x09, 0x01ad}, |
| 4526 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4527 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4528 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4529 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4530 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4531 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4532 | static const struct usb_action pb0330xx_Initial[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4533 | {0xa1, 0x01, 0x0008}, |
| 4534 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4535 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 4536 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
| 4537 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 4538 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 4539 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 4540 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 4541 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 4542 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 4543 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 4544 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4545 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4546 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 4547 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 4548 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 4549 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 4550 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4551 | {0xaa, 0x01, 0x0006}, |
| 4552 | {0xaa, 0x02, 0x0011}, |
| 4553 | {0xaa, 0x03, 0x01e7}, |
| 4554 | {0xaa, 0x04, 0x0287}, |
| 4555 | {0xaa, 0x06, 0x0003}, |
| 4556 | {0xaa, 0x07, 0x3002}, |
| 4557 | {0xaa, 0x20, 0x1100}, |
| 4558 | {0xaa, 0x2f, 0xf7b0}, |
| 4559 | {0xaa, 0x30, 0x0005}, |
| 4560 | {0xaa, 0x31, 0x0000}, |
| 4561 | {0xaa, 0x34, 0x0100}, |
| 4562 | {0xaa, 0x35, 0x0060}, |
| 4563 | {0xaa, 0x3d, 0x068f}, |
| 4564 | {0xaa, 0x40, 0x01e0}, |
| 4565 | {0xaa, 0x58, 0x0078}, |
| 4566 | {0xaa, 0x62, 0x0411}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4567 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
| 4568 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 4569 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4570 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 4571 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4572 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4573 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 4574 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 4575 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 4576 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 4577 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 4578 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4579 | {0xa1, 0x01, 0x0002}, |
| 4580 | {0xa0, 0x09, 0x01ad}, |
| 4581 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4582 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
| 4583 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4584 | {0xa1, 0x01, 0x0091}, |
| 4585 | {0xa1, 0x01, 0x0095}, |
| 4586 | {0xa1, 0x01, 0x0096}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4587 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4588 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4589 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4590 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4591 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4592 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4593 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4594 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4595 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4596 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4597 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 4598 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4599 | {0xa1, 0x01, 0x01c8}, |
| 4600 | {0xa1, 0x01, 0x01c9}, |
| 4601 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4602 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4603 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4604 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4605 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4606 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4607 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4608 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4609 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4610 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4611 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4612 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4613 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4614 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 4615 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4616 | {0xaa, 0x05, 0x0066}, |
| 4617 | {0xaa, 0x09, 0x02b2}, |
| 4618 | {0xaa, 0x10, 0x0002}, |
| 4619 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4620 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 4621 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 4622 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 4623 | {0xa0, 0x8c, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 4624 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 4625 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 4626 | {0xa0, 0x8a, ZC3XX_R197_ANTIFLICKERLOW}, |
| 4627 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 4628 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 4629 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 4630 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 4631 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
| 4632 | {0xa0, 0xf0, ZC3XX_R01E_HSYNC_1}, |
| 4633 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, |
| 4634 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4635 | {0xa0, 0x09, 0x01ad}, |
| 4636 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4637 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4638 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4639 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4640 | {0xa1, 0x01, 0x0008}, |
| 4641 | {0xa1, 0x01, 0x0007}, |
| 4642 | /* {0xa0, 0x30, 0x0007}, */ |
| 4643 | /* {0xa0, 0x00, 0x0007}, */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4644 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4645 | }; |
| 4646 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4647 | static const struct usb_action pb0330xx_InitialScale[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4648 | {0xa1, 0x01, 0x0008}, |
| 4649 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4650 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 4651 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00 */ |
| 4652 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 4653 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 10 */ |
| 4654 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 4655 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 4656 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 4657 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 4658 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 4659 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4660 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4661 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 4662 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 4663 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 4664 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 4665 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4666 | {0xaa, 0x01, 0x0006}, |
| 4667 | {0xaa, 0x02, 0x0011}, |
| 4668 | {0xaa, 0x03, 0x01e7}, |
| 4669 | {0xaa, 0x04, 0x0287}, |
| 4670 | {0xaa, 0x06, 0x0003}, |
| 4671 | {0xaa, 0x07, 0x3002}, |
| 4672 | {0xaa, 0x20, 0x1100}, |
| 4673 | {0xaa, 0x2f, 0xf7b0}, |
| 4674 | {0xaa, 0x30, 0x0005}, |
| 4675 | {0xaa, 0x31, 0x0000}, |
| 4676 | {0xaa, 0x34, 0x0100}, |
| 4677 | {0xaa, 0x35, 0x0060}, |
| 4678 | {0xaa, 0x3d, 0x068f}, |
| 4679 | {0xaa, 0x40, 0x01e0}, |
| 4680 | {0xaa, 0x58, 0x0078}, |
| 4681 | {0xaa, 0x62, 0x0411}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4682 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
| 4683 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 4684 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 4685 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 4686 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4687 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4688 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 4689 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 4690 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 4691 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 4692 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 4693 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4694 | {0xa1, 0x01, 0x0002}, |
| 4695 | {0xa0, 0x09, 0x01ad}, |
| 4696 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4697 | {0xa0, 0x00, ZC3XX_R092_I2CADDRESSSELECT}, |
| 4698 | {0xa0, 0x02, ZC3XX_R090_I2CCOMMAND}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4699 | {0xa1, 0x01, 0x0091}, |
| 4700 | {0xa1, 0x01, 0x0095}, |
| 4701 | {0xa1, 0x01, 0x0096}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4702 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4703 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4704 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4705 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4706 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4707 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4708 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4709 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4710 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4711 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4712 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 4713 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4714 | {0xa1, 0x01, 0x01c8}, |
| 4715 | {0xa1, 0x01, 0x01c9}, |
| 4716 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4717 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4718 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4719 | {0xa0, 0x50, ZC3XX_R10A_RGB00}, /* matrix */ |
| 4720 | {0xa0, 0xf8, ZC3XX_R10B_RGB01}, |
| 4721 | {0xa0, 0xf8, ZC3XX_R10C_RGB02}, |
| 4722 | {0xa0, 0xf8, ZC3XX_R10D_RGB10}, |
| 4723 | {0xa0, 0x50, ZC3XX_R10E_RGB11}, |
| 4724 | {0xa0, 0xf8, ZC3XX_R10F_RGB12}, |
| 4725 | {0xa0, 0xf8, ZC3XX_R110_RGB20}, |
| 4726 | {0xa0, 0xf8, ZC3XX_R111_RGB21}, |
| 4727 | {0xa0, 0x50, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4728 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4729 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 4730 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4731 | {0xaa, 0x05, 0x0066}, |
| 4732 | {0xaa, 0x09, 0x02b2}, |
| 4733 | {0xaa, 0x10, 0x0002}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4734 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 4735 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 4736 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 4737 | {0xa0, 0x8c, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 4738 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 4739 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 4740 | {0xa0, 0x8a, ZC3XX_R197_ANTIFLICKERLOW}, |
| 4741 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, |
| 4742 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, |
| 4743 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 4744 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 4745 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
| 4746 | {0xa0, 0xf0, ZC3XX_R01E_HSYNC_1}, |
| 4747 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, |
| 4748 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4749 | {0xa0, 0x09, 0x01ad}, |
| 4750 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4751 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4752 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4753 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4754 | {0xa1, 0x01, 0x0008}, |
| 4755 | {0xa1, 0x01, 0x0007}, |
| 4756 | /* {0xa0, 0x30, 0x0007}, */ |
| 4757 | /* {0xa0, 0x00, 0x0007}, */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4758 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4759 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4760 | static const struct usb_action pb0330_50HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4761 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4762 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4763 | {0xa0, 0xee, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,ee,cc */ |
| 4764 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4765 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4766 | {0xa0, 0x46, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,46,cc */ |
| 4767 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4768 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4769 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 4770 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 4771 | {0xa0, 0x68, ZC3XX_R01D_HSYNC_0}, /* 00,1d,68,cc */ |
| 4772 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc */ |
| 4773 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4774 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4775 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4776 | static const struct usb_action pb0330_50HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4777 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4778 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4779 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4780 | {0xa0, 0xa0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,a0,cc */ |
| 4781 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4782 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4783 | {0xa0, 0x7a, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7a,cc */ |
| 4784 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4785 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4786 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 4787 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 4788 | {0xa0, 0xe5, ZC3XX_R01D_HSYNC_0}, /* 00,1d,e5,cc */ |
| 4789 | {0xa0, 0xf0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,f0,cc */ |
| 4790 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,f8,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4791 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4792 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4793 | static const struct usb_action pb0330_60HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4794 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4795 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4796 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4797 | {0xa0, 0xdd, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,dd,cc */ |
| 4798 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4799 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4800 | {0xa0, 0x3d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3d,cc */ |
| 4801 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4802 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4803 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 4804 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 4805 | {0xa0, 0x43, ZC3XX_R01D_HSYNC_0}, /* 00,1d,43,cc */ |
| 4806 | {0xa0, 0x50, ZC3XX_R01E_HSYNC_1}, /* 00,1e,50,cc */ |
| 4807 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4808 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4809 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4810 | static const struct usb_action pb0330_60HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4811 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4812 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4813 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4814 | {0xa0, 0xa0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,a0,cc */ |
| 4815 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4816 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4817 | {0xa0, 0x7a, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7a,cc */ |
| 4818 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4819 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4820 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 4821 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 4822 | {0xa0, 0x41, ZC3XX_R01D_HSYNC_0}, /* 00,1d,41,cc */ |
| 4823 | {0xa0, 0x50, ZC3XX_R01E_HSYNC_1}, /* 00,1e,50,cc */ |
| 4824 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4825 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4826 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4827 | static const struct usb_action pb0330_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4828 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4829 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4830 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4831 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 4832 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4833 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4834 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 4835 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4836 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4837 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 4838 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 4839 | {0xa0, 0x09, ZC3XX_R01D_HSYNC_0}, /* 00,1d,09,cc */ |
| 4840 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, /* 00,1e,40,cc */ |
| 4841 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4842 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4843 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4844 | static const struct usb_action pb0330_NoFlikerScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4845 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
| 4846 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 4847 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,07,cc */ |
| 4848 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 4849 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 4850 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 4851 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 4852 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 4853 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 4854 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 4855 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 4856 | {0xa0, 0x09, ZC3XX_R01D_HSYNC_0}, /* 00,1d,09,cc */ |
| 4857 | {0xa0, 0x40, ZC3XX_R01E_HSYNC_1}, /* 00,1e,40,cc */ |
| 4858 | {0xa0, 0x90, ZC3XX_R01F_HSYNC_2}, /* 00,1f,90,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4859 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4860 | }; |
| 4861 | |
| 4862 | /* from oem9.inf - HKR,%PO2030%,Initial - 640x480 - (close to CS2102) */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4863 | static const struct usb_action PO2030_mode0[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4864 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 4865 | {0xa0, 0x04, ZC3XX_R002_CLOCKSELECT}, /* 00,02,04,cc */ |
| 4866 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 4867 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 4868 | {0xa0, 0x04, ZC3XX_R080_HBLANKHIGH}, /* 00,80,04,cc */ |
| 4869 | {0xa0, 0x05, ZC3XX_R081_HBLANKLOW}, /* 00,81,05,cc */ |
| 4870 | {0xa0, 0x16, ZC3XX_R083_RGAINADDR}, /* 00,83,16,cc */ |
| 4871 | {0xa0, 0x18, ZC3XX_R085_BGAINADDR}, /* 00,85,18,cc */ |
| 4872 | {0xa0, 0x1a, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,1a,cc */ |
| 4873 | {0xa0, 0x1b, ZC3XX_R087_EXPTIMEMID}, /* 00,87,1b,cc */ |
| 4874 | {0xa0, 0x1c, ZC3XX_R088_EXPTIMELOW}, /* 00,88,1c,cc */ |
| 4875 | {0xa0, 0xee, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,ee,cc */ |
| 4876 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
| 4877 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 4878 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 4879 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 4880 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 4881 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 4882 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
| 4883 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
| 4884 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ |
| 4885 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 4886 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 4887 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 4888 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 4889 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc */ |
| 4890 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4891 | {0xaa, 0x09, 0x00ce}, /* 00,09,ce,aa */ |
| 4892 | {0xaa, 0x0b, 0x0005}, /* 00,0b,05,aa */ |
| 4893 | {0xaa, 0x0d, 0x0054}, /* 00,0d,54,aa */ |
| 4894 | {0xaa, 0x0f, 0x00eb}, /* 00,0f,eb,aa */ |
| 4895 | {0xaa, 0x87, 0x0000}, /* 00,87,00,aa */ |
| 4896 | {0xaa, 0x88, 0x0004}, /* 00,88,04,aa */ |
| 4897 | {0xaa, 0x89, 0x0000}, /* 00,89,00,aa */ |
| 4898 | {0xaa, 0x8a, 0x0005}, /* 00,8a,05,aa */ |
| 4899 | {0xaa, 0x13, 0x0003}, /* 00,13,03,aa */ |
| 4900 | {0xaa, 0x16, 0x0040}, /* 00,16,40,aa */ |
| 4901 | {0xaa, 0x18, 0x0040}, /* 00,18,40,aa */ |
| 4902 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 4903 | {0xaa, 0x29, 0x00e8}, /* 00,29,e8,aa */ |
| 4904 | {0xaa, 0x45, 0x0045}, /* 00,45,45,aa */ |
| 4905 | {0xaa, 0x50, 0x00ed}, /* 00,50,ed,aa */ |
| 4906 | {0xaa, 0x51, 0x0025}, /* 00,51,25,aa */ |
| 4907 | {0xaa, 0x52, 0x0042}, /* 00,52,42,aa */ |
| 4908 | {0xaa, 0x53, 0x002f}, /* 00,53,2f,aa */ |
| 4909 | {0xaa, 0x79, 0x0025}, /* 00,79,25,aa */ |
| 4910 | {0xaa, 0x7b, 0x0000}, /* 00,7b,00,aa */ |
| 4911 | {0xaa, 0x7e, 0x0025}, /* 00,7e,25,aa */ |
| 4912 | {0xaa, 0x7f, 0x0025}, /* 00,7f,25,aa */ |
| 4913 | {0xaa, 0x21, 0x0000}, /* 00,21,00,aa */ |
| 4914 | {0xaa, 0x33, 0x0036}, /* 00,33,36,aa */ |
| 4915 | {0xaa, 0x36, 0x0060}, /* 00,36,60,aa */ |
| 4916 | {0xaa, 0x37, 0x0008}, /* 00,37,08,aa */ |
| 4917 | {0xaa, 0x3b, 0x0031}, /* 00,3b,31,aa */ |
| 4918 | {0xaa, 0x44, 0x000f}, /* 00,44,0f,aa */ |
| 4919 | {0xaa, 0x58, 0x0002}, /* 00,58,02,aa */ |
| 4920 | {0xaa, 0x66, 0x00c0}, /* 00,66,c0,aa */ |
| 4921 | {0xaa, 0x67, 0x0044}, /* 00,67,44,aa */ |
| 4922 | {0xaa, 0x6b, 0x00a0}, /* 00,6b,a0,aa */ |
| 4923 | {0xaa, 0x6c, 0x0054}, /* 00,6c,54,aa */ |
| 4924 | {0xaa, 0xd6, 0x0007}, /* 00,d6,07,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4925 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,f7,cc */ |
| 4926 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 4927 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 4928 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4929 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4930 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 4931 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 4932 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 4933 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 4934 | {0xa0, 0x7a, ZC3XX_R116_RGAIN}, /* 01,16,7a,cc */ |
| 4935 | {0xa0, 0x4a, ZC3XX_R118_BGAIN}, /* 01,18,4a,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 4936 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4937 | }; |
| 4938 | |
| 4939 | /* from oem9.inf - HKR,%PO2030%,InitialScale - 320x240 */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 4940 | static const struct usb_action PO2030_mode1[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 4941 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc */ |
| 4942 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc */ |
| 4943 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc */ |
| 4944 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc */ |
| 4945 | {0xa0, 0x04, ZC3XX_R080_HBLANKHIGH}, /* 00,80,04,cc */ |
| 4946 | {0xa0, 0x05, ZC3XX_R081_HBLANKLOW}, /* 00,81,05,cc */ |
| 4947 | {0xa0, 0x16, ZC3XX_R083_RGAINADDR}, /* 00,83,16,cc */ |
| 4948 | {0xa0, 0x18, ZC3XX_R085_BGAINADDR}, /* 00,85,18,cc */ |
| 4949 | {0xa0, 0x1a, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,1a,cc */ |
| 4950 | {0xa0, 0x1b, ZC3XX_R087_EXPTIMEMID}, /* 00,87,1b,cc */ |
| 4951 | {0xa0, 0x1c, ZC3XX_R088_EXPTIMELOW}, /* 00,88,1c,cc */ |
| 4952 | {0xa0, 0xee, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,ee,cc */ |
| 4953 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* 00,08,03,cc */ |
| 4954 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc */ |
| 4955 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc */ |
| 4956 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc */ |
| 4957 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc */ |
| 4958 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc */ |
| 4959 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc */ |
| 4960 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
| 4961 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ |
| 4962 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc */ |
| 4963 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc */ |
| 4964 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc */ |
| 4965 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc */ |
| 4966 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e8,cc */ |
| 4967 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 4968 | {0xaa, 0x09, 0x00cc}, /* 00,09,cc,aa */ |
| 4969 | {0xaa, 0x0b, 0x0005}, /* 00,0b,05,aa */ |
| 4970 | {0xaa, 0x0d, 0x0058}, /* 00,0d,58,aa */ |
| 4971 | {0xaa, 0x0f, 0x00ed}, /* 00,0f,ed,aa */ |
| 4972 | {0xaa, 0x87, 0x0000}, /* 00,87,00,aa */ |
| 4973 | {0xaa, 0x88, 0x0004}, /* 00,88,04,aa */ |
| 4974 | {0xaa, 0x89, 0x0000}, /* 00,89,00,aa */ |
| 4975 | {0xaa, 0x8a, 0x0005}, /* 00,8a,05,aa */ |
| 4976 | {0xaa, 0x13, 0x0003}, /* 00,13,03,aa */ |
| 4977 | {0xaa, 0x16, 0x0040}, /* 00,16,40,aa */ |
| 4978 | {0xaa, 0x18, 0x0040}, /* 00,18,40,aa */ |
| 4979 | {0xaa, 0x1d, 0x0002}, /* 00,1d,02,aa */ |
| 4980 | {0xaa, 0x29, 0x00e8}, /* 00,29,e8,aa */ |
| 4981 | {0xaa, 0x45, 0x0045}, /* 00,45,45,aa */ |
| 4982 | {0xaa, 0x50, 0x00ed}, /* 00,50,ed,aa */ |
| 4983 | {0xaa, 0x51, 0x0025}, /* 00,51,25,aa */ |
| 4984 | {0xaa, 0x52, 0x0042}, /* 00,52,42,aa */ |
| 4985 | {0xaa, 0x53, 0x002f}, /* 00,53,2f,aa */ |
| 4986 | {0xaa, 0x79, 0x0025}, /* 00,79,25,aa */ |
| 4987 | {0xaa, 0x7b, 0x0000}, /* 00,7b,00,aa */ |
| 4988 | {0xaa, 0x7e, 0x0025}, /* 00,7e,25,aa */ |
| 4989 | {0xaa, 0x7f, 0x0025}, /* 00,7f,25,aa */ |
| 4990 | {0xaa, 0x21, 0x0000}, /* 00,21,00,aa */ |
| 4991 | {0xaa, 0x33, 0x0036}, /* 00,33,36,aa */ |
| 4992 | {0xaa, 0x36, 0x0060}, /* 00,36,60,aa */ |
| 4993 | {0xaa, 0x37, 0x0008}, /* 00,37,08,aa */ |
| 4994 | {0xaa, 0x3b, 0x0031}, /* 00,3b,31,aa */ |
| 4995 | {0xaa, 0x44, 0x000f}, /* 00,44,0f,aa */ |
| 4996 | {0xaa, 0x58, 0x0002}, /* 00,58,02,aa */ |
| 4997 | {0xaa, 0x66, 0x00c0}, /* 00,66,c0,aa */ |
| 4998 | {0xaa, 0x67, 0x0044}, /* 00,67,44,aa */ |
| 4999 | {0xaa, 0x6b, 0x00a0}, /* 00,6b,a0,aa */ |
| 5000 | {0xaa, 0x6c, 0x0054}, /* 00,6c,54,aa */ |
| 5001 | {0xaa, 0xd6, 0x0007}, /* 00,d6,07,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5002 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,f7,cc */ |
| 5003 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc */ |
| 5004 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc */ |
| 5005 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, /* 01,89,06,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5006 | {0xa0, 0x00, 0x01ad}, /* 01,ad,00,cc */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5007 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc */ |
| 5008 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc */ |
| 5009 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc */ |
| 5010 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc */ |
| 5011 | {0xa0, 0x7a, ZC3XX_R116_RGAIN}, /* 01,16,7a,cc */ |
| 5012 | {0xa0, 0x4a, ZC3XX_R118_BGAIN}, /* 01,18,4a,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5013 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5014 | }; |
| 5015 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5016 | static const struct usb_action PO2030_50HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5017 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ |
| 5018 | {0xaa, 0x1a, 0x0001}, /* 00,1a,01,aa */ |
| 5019 | {0xaa, 0x1b, 0x000a}, /* 00,1b,0a,aa */ |
| 5020 | {0xaa, 0x1c, 0x00b0}, /* 00,1c,b0,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5021 | {0xa0, 0x05, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,05,cc */ |
| 5022 | {0xa0, 0x35, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,35,cc */ |
| 5023 | {0xa0, 0x70, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,70,cc */ |
| 5024 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5025 | {0xa0, 0x85, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,85,cc */ |
| 5026 | {0xa0, 0x58, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,58,cc */ |
| 5027 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0c,cc */ |
| 5028 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,18,cc */ |
| 5029 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
| 5030 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 5031 | {0xa0, 0x22, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,22,cc */ |
| 5032 | {0xa0, 0x88, ZC3XX_R18D_YTARGET}, /* 01,8d,88,cc */ |
| 5033 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc */ |
| 5034 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5035 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5036 | }; |
| 5037 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5038 | static const struct usb_action PO2030_60HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5039 | {0xaa, 0x8d, 0x0008}, /* 00,8d,08,aa */ |
| 5040 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ |
| 5041 | {0xaa, 0x1b, 0x00de}, /* 00,1b,de,aa */ |
| 5042 | {0xaa, 0x1c, 0x0040}, /* 00,1c,40,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5043 | {0xa0, 0x08, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,08,cc */ |
| 5044 | {0xa0, 0xae, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,ae,cc */ |
| 5045 | {0xa0, 0x80, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,80,cc */ |
| 5046 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5047 | {0xa0, 0x6f, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,6f,cc */ |
| 5048 | {0xa0, 0x20, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,20,cc */ |
| 5049 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0c,cc */ |
| 5050 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,18,cc */ |
| 5051 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc */ |
| 5052 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc */ |
| 5053 | {0xa0, 0x22, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,22,cc */ |
| 5054 | {0xa0, 0x88, ZC3XX_R18D_YTARGET}, /* 01,8d,88,cc */ |
| 5055 | /* win: 01,8d,80 */ |
| 5056 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc */ |
| 5057 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5058 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5059 | }; |
| 5060 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5061 | static const struct usb_action PO2030_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5062 | {0xa0, 0x02, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,02,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5063 | {0xaa, 0x8d, 0x000d}, /* 00,8d,0d,aa */ |
| 5064 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa */ |
| 5065 | {0xaa, 0x1b, 0x0002}, /* 00,1b,02,aa */ |
| 5066 | {0xaa, 0x1c, 0x0078}, /* 00,1c,78,aa */ |
| 5067 | {0xaa, 0x46, 0x0000}, /* 00,46,00,aa */ |
| 5068 | {0xaa, 0x15, 0x0000}, /* 00,15,00,aa */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5069 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5070 | }; |
| 5071 | |
| 5072 | /* TEST */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5073 | static const struct usb_action tas5130CK_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5074 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5075 | {0xa0, 0x01, 0x003b}, |
| 5076 | {0xa0, 0x0e, 0x003a}, |
| 5077 | {0xa0, 0x01, 0x0038}, |
| 5078 | {0xa0, 0x0b, 0x0039}, |
| 5079 | {0xa0, 0x00, 0x0038}, |
| 5080 | {0xa0, 0x0b, 0x0039}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5081 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 5082 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 5083 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 5084 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, |
| 5085 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 5086 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 5087 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 5088 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 5089 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
| 5090 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 5091 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5092 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 5093 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 5094 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 5095 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 5096 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
| 5097 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5098 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5099 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 5100 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5101 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5102 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5103 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 5104 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5105 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5106 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5107 | {0xa0, 0x83, ZC3XX_R093_I2CSETVALUE}, |
| 5108 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
| 5109 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5110 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5111 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 5112 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5113 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5114 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5115 | {0xa0, 0x06, ZC3XX_R093_I2CSETVALUE}, |
| 5116 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5117 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5118 | {0xa0, 0x02, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5119 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
| 5120 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5121 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5122 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5123 | {0xa0, 0xE7, ZC3XX_R093_I2CSETVALUE}, |
| 5124 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
| 5125 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5126 | {0xa0, 0x04, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5127 | {0xa0, 0x87, ZC3XX_R093_I2CSETVALUE}, |
| 5128 | {0xa0, 0x02, ZC3XX_R094_I2CWRITEACK}, |
| 5129 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5130 | {0xa0, 0x07, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5131 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 5132 | {0xa0, 0x30, ZC3XX_R094_I2CWRITEACK}, |
| 5133 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5134 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5135 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 5136 | {0xa0, 0x51, ZC3XX_R094_I2CWRITEACK}, |
| 5137 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5138 | {0xa0, 0x35, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5139 | {0xa0, 0x7F, ZC3XX_R093_I2CSETVALUE}, |
| 5140 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5141 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5142 | {0xa0, 0x30, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5143 | {0xa0, 0x05, ZC3XX_R093_I2CSETVALUE}, |
| 5144 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5145 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5146 | {0xa0, 0x31, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5147 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 5148 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5149 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5150 | {0xa0, 0x58, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5151 | {0xa0, 0x78, ZC3XX_R093_I2CSETVALUE}, |
| 5152 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5153 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5154 | {0xa0, 0x62, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5155 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
| 5156 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
| 5157 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5158 | {0xa0, 0x2B, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5159 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5160 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5161 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5162 | {0xa0, 0x2c, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5163 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5164 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5165 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5166 | {0xa0, 0x2D, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5167 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5168 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5169 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5170 | {0xa0, 0x2e, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5171 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5172 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5173 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5174 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
| 5175 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
| 5176 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5177 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 5178 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5179 | {0xa0, 0x09, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5180 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 5181 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 5182 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 5183 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 5184 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 5185 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
| 5186 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
| 5187 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5188 | {0xa0, 0x09, 0x01ad}, |
| 5189 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5190 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
| 5191 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
| 5192 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
| 5193 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
| 5194 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
| 5195 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
| 5196 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
| 5197 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
| 5198 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
| 5199 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 5200 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
| 5201 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 5202 | {0xa0, 0x38, ZC3XX_R120_GAMMA00}, /* gamma > 5 */ |
| 5203 | {0xa0, 0x51, ZC3XX_R121_GAMMA01}, |
| 5204 | {0xa0, 0x6e, ZC3XX_R122_GAMMA02}, |
| 5205 | {0xa0, 0x8c, ZC3XX_R123_GAMMA03}, |
| 5206 | {0xa0, 0xa2, ZC3XX_R124_GAMMA04}, |
| 5207 | {0xa0, 0xb6, ZC3XX_R125_GAMMA05}, |
| 5208 | {0xa0, 0xc8, ZC3XX_R126_GAMMA06}, |
| 5209 | {0xa0, 0xd6, ZC3XX_R127_GAMMA07}, |
| 5210 | {0xa0, 0xe2, ZC3XX_R128_GAMMA08}, |
| 5211 | {0xa0, 0xed, ZC3XX_R129_GAMMA09}, |
| 5212 | {0xa0, 0xf5, ZC3XX_R12A_GAMMA0A}, |
| 5213 | {0xa0, 0xfc, ZC3XX_R12B_GAMMA0B}, |
| 5214 | {0xa0, 0xff, ZC3XX_R12C_GAMMA0C}, |
| 5215 | {0xa0, 0xff, ZC3XX_R12D_GAMMA0D}, |
| 5216 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
| 5217 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 5218 | {0xa0, 0x12, ZC3XX_R130_GAMMA10}, |
| 5219 | {0xa0, 0x1b, ZC3XX_R131_GAMMA11}, |
| 5220 | {0xa0, 0x1d, ZC3XX_R132_GAMMA12}, |
| 5221 | {0xa0, 0x1a, ZC3XX_R133_GAMMA13}, |
| 5222 | {0xa0, 0x15, ZC3XX_R134_GAMMA14}, |
| 5223 | {0xa0, 0x12, ZC3XX_R135_GAMMA15}, |
| 5224 | {0xa0, 0x0f, ZC3XX_R136_GAMMA16}, |
| 5225 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 5226 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 5227 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 5228 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 5229 | {0xa0, 0x05, ZC3XX_R13B_GAMMA1B}, |
| 5230 | {0xa0, 0x00, ZC3XX_R13C_GAMMA1C}, |
| 5231 | {0xa0, 0x00, ZC3XX_R13D_GAMMA1D}, |
| 5232 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
| 5233 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
| 5234 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
| 5235 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
| 5236 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
| 5237 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
| 5238 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
| 5239 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
| 5240 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
| 5241 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
| 5242 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
| 5243 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5244 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5245 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 5246 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5247 | {0xa0, 0x09, ZC3XX_R093_I2CSETVALUE}, |
| 5248 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5249 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5250 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5251 | {0xa0, 0x34, ZC3XX_R093_I2CSETVALUE}, |
| 5252 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
| 5253 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5254 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 5255 | {0xa0, 0x07, ZC3XX_R191_EXPOSURELIMITMID}, |
| 5256 | {0xa0, 0xd2, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 5257 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 5258 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 5259 | {0xa0, 0x9a, ZC3XX_R197_ANTIFLICKERLOW}, |
| 5260 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
| 5261 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
| 5262 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 5263 | {0xa0, 0x66, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 5264 | {0xa0, 0xd7, ZC3XX_R01D_HSYNC_0}, |
| 5265 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
| 5266 | {0xa0, 0xf9, ZC3XX_R01F_HSYNC_2}, |
| 5267 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 5268 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5269 | {0xa0, 0x09, 0x01ad}, |
| 5270 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5271 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5272 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5273 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5274 | }; |
| 5275 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5276 | static const struct usb_action tas5130CK_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5277 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5278 | {0xa0, 0x01, 0x003b}, |
| 5279 | {0xa0, 0x0e, 0x003a}, |
| 5280 | {0xa0, 0x01, 0x0038}, |
| 5281 | {0xa0, 0x0b, 0x0039}, |
| 5282 | {0xa0, 0x00, 0x0038}, |
| 5283 | {0xa0, 0x0b, 0x0039}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5284 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 5285 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 5286 | {0xa0, 0x0a, ZC3XX_R010_CMOSSENSORSELECT}, |
| 5287 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, |
| 5288 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 5289 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 5290 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 5291 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 5292 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
| 5293 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 5294 | {0xa0, 0x07, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5295 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, |
| 5296 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, |
| 5297 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, |
| 5298 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, |
| 5299 | {0xa0, 0xdc, ZC3XX_R08B_I2CDEVICEADDR}, |
| 5300 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5301 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5302 | {0xa0, 0x01, ZC3XX_R093_I2CSETVALUE}, |
| 5303 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5304 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5305 | {0xa0, 0x06, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5306 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 5307 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5308 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5309 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5310 | {0xa0, 0x83, ZC3XX_R093_I2CSETVALUE}, |
| 5311 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
| 5312 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5313 | {0xa0, 0x01, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5314 | {0xa0, 0x04, ZC3XX_R093_I2CSETVALUE}, |
| 5315 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5316 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5317 | {0xa0, 0x08, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5318 | {0xa0, 0x06, ZC3XX_R093_I2CSETVALUE}, |
| 5319 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5320 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5321 | {0xa0, 0x02, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5322 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
| 5323 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5324 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5325 | {0xa0, 0x03, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5326 | {0xa0, 0xe5, ZC3XX_R093_I2CSETVALUE}, |
| 5327 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
| 5328 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5329 | {0xa0, 0x04, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5330 | {0xa0, 0x85, ZC3XX_R093_I2CSETVALUE}, |
| 5331 | {0xa0, 0x02, ZC3XX_R094_I2CWRITEACK}, |
| 5332 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5333 | {0xa0, 0x07, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5334 | {0xa0, 0x02, ZC3XX_R093_I2CSETVALUE}, |
| 5335 | {0xa0, 0x30, ZC3XX_R094_I2CWRITEACK}, |
| 5336 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5337 | {0xa0, 0x20, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5338 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 5339 | {0xa0, 0x51, ZC3XX_R094_I2CWRITEACK}, |
| 5340 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5341 | {0xa0, 0x35, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5342 | {0xa0, 0x7F, ZC3XX_R093_I2CSETVALUE}, |
| 5343 | {0xa0, 0x50, ZC3XX_R094_I2CWRITEACK}, |
| 5344 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5345 | {0xa0, 0x30, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5346 | {0xa0, 0x05, ZC3XX_R093_I2CSETVALUE}, |
| 5347 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5348 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5349 | {0xa0, 0x31, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5350 | {0xa0, 0x00, ZC3XX_R093_I2CSETVALUE}, |
| 5351 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5352 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5353 | {0xa0, 0x58, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5354 | {0xa0, 0x78, ZC3XX_R093_I2CSETVALUE}, |
| 5355 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5356 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5357 | {0xa0, 0x62, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5358 | {0xa0, 0x11, ZC3XX_R093_I2CSETVALUE}, |
| 5359 | {0xa0, 0x04, ZC3XX_R094_I2CWRITEACK}, |
| 5360 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5361 | {0xa0, 0x2B, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5362 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5363 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5364 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5365 | {0xa0, 0x2C, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5366 | {0xa0, 0x7F, ZC3XX_R093_I2CSETVALUE}, |
| 5367 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5368 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5369 | {0xa0, 0x2D, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5370 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5371 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5372 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5373 | {0xa0, 0x2e, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5374 | {0xa0, 0x7f, ZC3XX_R093_I2CSETVALUE}, |
| 5375 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5376 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5377 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, |
| 5378 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, |
| 5379 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5380 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 5381 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5382 | {0xa0, 0x09, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5383 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 5384 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 5385 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 5386 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
| 5387 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
| 5388 | {0xa0, 0x6c, ZC3XX_R18D_YTARGET}, |
| 5389 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, |
| 5390 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5391 | {0xa0, 0x09, 0x01ad}, |
| 5392 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5393 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
| 5394 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
| 5395 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
| 5396 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
| 5397 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
| 5398 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
| 5399 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
| 5400 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
| 5401 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
| 5402 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 5403 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
| 5404 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
| 5405 | {0xa0, 0x38, ZC3XX_R120_GAMMA00}, /* gamma > 5 */ |
| 5406 | {0xa0, 0x51, ZC3XX_R121_GAMMA01}, |
| 5407 | {0xa0, 0x6e, ZC3XX_R122_GAMMA02}, |
| 5408 | {0xa0, 0x8c, ZC3XX_R123_GAMMA03}, |
| 5409 | {0xa0, 0xa2, ZC3XX_R124_GAMMA04}, |
| 5410 | {0xa0, 0xb6, ZC3XX_R125_GAMMA05}, |
| 5411 | {0xa0, 0xc8, ZC3XX_R126_GAMMA06}, |
| 5412 | {0xa0, 0xd6, ZC3XX_R127_GAMMA07}, |
| 5413 | {0xa0, 0xe2, ZC3XX_R128_GAMMA08}, |
| 5414 | {0xa0, 0xed, ZC3XX_R129_GAMMA09}, |
| 5415 | {0xa0, 0xf5, ZC3XX_R12A_GAMMA0A}, |
| 5416 | {0xa0, 0xfc, ZC3XX_R12B_GAMMA0B}, |
| 5417 | {0xa0, 0xff, ZC3XX_R12C_GAMMA0C}, |
| 5418 | {0xa0, 0xff, ZC3XX_R12D_GAMMA0D}, |
| 5419 | {0xa0, 0xff, ZC3XX_R12E_GAMMA0E}, |
| 5420 | {0xa0, 0xff, ZC3XX_R12F_GAMMA0F}, |
| 5421 | {0xa0, 0x12, ZC3XX_R130_GAMMA10}, |
| 5422 | {0xa0, 0x1b, ZC3XX_R131_GAMMA11}, |
| 5423 | {0xa0, 0x1d, ZC3XX_R132_GAMMA12}, |
| 5424 | {0xa0, 0x1a, ZC3XX_R133_GAMMA13}, |
| 5425 | {0xa0, 0x15, ZC3XX_R134_GAMMA14}, |
| 5426 | {0xa0, 0x12, ZC3XX_R135_GAMMA15}, |
| 5427 | {0xa0, 0x0f, ZC3XX_R136_GAMMA16}, |
| 5428 | {0xa0, 0x0d, ZC3XX_R137_GAMMA17}, |
| 5429 | {0xa0, 0x0b, ZC3XX_R138_GAMMA18}, |
| 5430 | {0xa0, 0x09, ZC3XX_R139_GAMMA19}, |
| 5431 | {0xa0, 0x07, ZC3XX_R13A_GAMMA1A}, |
| 5432 | {0xa0, 0x05, ZC3XX_R13B_GAMMA1B}, |
| 5433 | {0xa0, 0x00, ZC3XX_R13C_GAMMA1C}, |
| 5434 | {0xa0, 0x00, ZC3XX_R13D_GAMMA1D}, |
| 5435 | {0xa0, 0x00, ZC3XX_R13E_GAMMA1E}, |
| 5436 | {0xa0, 0x01, ZC3XX_R13F_GAMMA1F}, |
| 5437 | {0xa0, 0x4c, ZC3XX_R10A_RGB00}, /* matrix */ |
| 5438 | {0xa0, 0xf1, ZC3XX_R10B_RGB01}, |
| 5439 | {0xa0, 0x03, ZC3XX_R10C_RGB02}, |
| 5440 | {0xa0, 0xfe, ZC3XX_R10D_RGB10}, |
| 5441 | {0xa0, 0x51, ZC3XX_R10E_RGB11}, |
| 5442 | {0xa0, 0xf1, ZC3XX_R10F_RGB12}, |
| 5443 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
| 5444 | {0xa0, 0x03, ZC3XX_R111_RGB21}, |
| 5445 | {0xa0, 0x51, ZC3XX_R112_RGB22}, |
| 5446 | {0xa0, 0x10, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5447 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5448 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
| 5449 | {0xa0, 0x05, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5450 | {0xa0, 0x62, ZC3XX_R093_I2CSETVALUE}, |
| 5451 | {0xa0, 0x00, ZC3XX_R094_I2CWRITEACK}, |
| 5452 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5453 | {0xa0, 0x09, ZC3XX_R092_I2CADDRESSSELECT}, |
| 5454 | {0xa0, 0xaa, ZC3XX_R093_I2CSETVALUE}, |
| 5455 | {0xa0, 0x01, ZC3XX_R094_I2CWRITEACK}, |
| 5456 | {0xa0, 0x01, ZC3XX_R090_I2CCOMMAND}, |
| 5457 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 5458 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, |
| 5459 | {0xa0, 0x9b, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 5460 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 5461 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 5462 | {0xa0, 0x47, ZC3XX_R197_ANTIFLICKERLOW}, |
| 5463 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, |
| 5464 | {0xa0, 0x1c, ZC3XX_R18F_AEUNFREEZE}, |
| 5465 | {0xa0, 0x14, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 5466 | {0xa0, 0x66, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 5467 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, |
| 5468 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, |
| 5469 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, |
| 5470 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 5471 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
| 5472 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5473 | {0xa0, 0x09, 0x01ad}, |
| 5474 | {0xa0, 0x15, 0x01ae}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5475 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5476 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5477 | {0xa0, 0x30, 0x0007}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5478 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5479 | {0xa0, 0x00, 0x0007}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5480 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5481 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5482 | }; |
| 5483 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5484 | static const struct usb_action tas5130cxx_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5485 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 5486 | {0xa0, 0x50, ZC3XX_R002_CLOCKSELECT}, |
| 5487 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
| 5488 | {0xa0, 0x02, ZC3XX_R010_CMOSSENSORSELECT}, |
| 5489 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 5490 | {0xa0, 0x00, ZC3XX_R001_SYSTEMOPERATING}, |
| 5491 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5492 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 5493 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5494 | {0xa0, 0x07, ZC3XX_R0A5_EXPOSUREGAIN}, |
| 5495 | {0xa0, 0x02, ZC3XX_R0A6_EXPOSUREBLACKLVL}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5496 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5497 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 5498 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 5499 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 5500 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5501 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5502 | {0xa0, 0x04, ZC3XX_R098_WINYSTARTLOW}, |
| 5503 | {0xa0, 0x0f, ZC3XX_R09A_WINXSTARTLOW}, |
| 5504 | {0xa0, 0x04, ZC3XX_R11A_FIRSTYLOW}, |
| 5505 | {0xa0, 0x0f, ZC3XX_R11C_FIRSTXLOW}, |
| 5506 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, |
| 5507 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
| 5508 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, |
| 5509 | {0xa0, 0x06, ZC3XX_R08D_COMPABILITYMODE}, |
| 5510 | {0xa0, 0xf7, ZC3XX_R101_SENSORCORRECTION}, |
| 5511 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 5512 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 5513 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
| 5514 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5515 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5516 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 5517 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 5518 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 5519 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5520 | {0xa1, 0x01, 0x0002}, |
| 5521 | {0xa1, 0x01, 0x0008}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5522 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, /* clock ? */ |
| 5523 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5524 | {0xa1, 0x01, 0x01c8}, |
| 5525 | {0xa1, 0x01, 0x01c9}, |
| 5526 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5527 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5528 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5529 | {0xa0, 0x68, ZC3XX_R10A_RGB00}, /* matrix */ |
| 5530 | {0xa0, 0xec, ZC3XX_R10B_RGB01}, |
| 5531 | {0xa0, 0xec, ZC3XX_R10C_RGB02}, |
| 5532 | {0xa0, 0xec, ZC3XX_R10D_RGB10}, |
| 5533 | {0xa0, 0x68, ZC3XX_R10E_RGB11}, |
| 5534 | {0xa0, 0xec, ZC3XX_R10F_RGB12}, |
| 5535 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
| 5536 | {0xa0, 0xec, ZC3XX_R111_RGB21}, |
| 5537 | {0xa0, 0x68, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5538 | |
| 5539 | {0xa1, 0x01, 0x018d}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5540 | {0xa0, 0x90, ZC3XX_R18D_YTARGET}, /* 90 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5541 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5542 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5543 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5544 | |
| 5545 | {0xaa, 0xa3, 0x0001}, |
| 5546 | {0xaa, 0xa4, 0x0077}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5547 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
| 5548 | {0xa0, 0x77, ZC3XX_R0A4_EXPOSURETIMELOW}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5549 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5550 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 00 */ |
| 5551 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 03 */ |
| 5552 | {0xa0, 0xe8, ZC3XX_R192_EXPOSURELIMITLOW}, /* e8 */ |
| 5553 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 0 */ |
| 5554 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 0 */ |
| 5555 | {0xa0, 0x7d, ZC3XX_R197_ANTIFLICKERLOW}, /* 7d */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5556 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5557 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, |
| 5558 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, |
| 5559 | {0xa0, 0x08, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 08 */ |
| 5560 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 24 */ |
| 5561 | {0xa0, 0xf0, ZC3XX_R01D_HSYNC_0}, |
| 5562 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, |
| 5563 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, |
| 5564 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 5565 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, |
| 5566 | {0xa0, 0xc0, ZC3XX_R0A0_MAXXLOW}, |
| 5567 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, /* 50 */ |
| 5568 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5569 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5570 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5571 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5572 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5573 | static const struct usb_action tas5130cxx_InitialScale[] = { |
Jean-Francois Moine | 2ed9f81 | 2008-11-28 15:31:43 -0300 | [diff] [blame] | 5574 | /*?? {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5575 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, |
| 5576 | {0xa0, 0x40, ZC3XX_R002_CLOCKSELECT}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5577 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5578 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5579 | {0xa1, 0x01, 0x0008}, |
| 5580 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5581 | {0xa0, 0x02, ZC3XX_R010_CMOSSENSORSELECT}, |
| 5582 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 5583 | {0xa0, 0x00, ZC3XX_R001_SYSTEMOPERATING}, |
| 5584 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5585 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, |
| 5586 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, |
| 5587 | {0xa0, 0x07, ZC3XX_R0A5_EXPOSUREGAIN}, |
| 5588 | {0xa0, 0x02, ZC3XX_R0A6_EXPOSUREBLACKLVL}, |
| 5589 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, |
| 5590 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, |
| 5591 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, |
| 5592 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, |
| 5593 | {0xa0, 0x05, ZC3XX_R098_WINYSTARTLOW}, |
| 5594 | {0xa0, 0x0f, ZC3XX_R09A_WINXSTARTLOW}, |
| 5595 | {0xa0, 0x05, ZC3XX_R11A_FIRSTYLOW}, |
| 5596 | {0xa0, 0x0f, ZC3XX_R11C_FIRSTXLOW}, |
| 5597 | {0xa0, 0xe6, ZC3XX_R09C_WINHEIGHTLOW}, |
| 5598 | {0xa0, 0x02, ZC3XX_R09D_WINWIDTHHIGH}, |
| 5599 | {0xa0, 0x86, ZC3XX_R09E_WINWIDTHLOW}, |
| 5600 | {0xa0, 0x06, ZC3XX_R08D_COMPABILITYMODE}, |
| 5601 | {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION}, |
| 5602 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, |
| 5603 | {0xa0, 0x06, ZC3XX_R189_AWBSTATUS}, |
| 5604 | {0xa0, 0x68, ZC3XX_R18D_YTARGET}, |
| 5605 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5606 | {0xa0, 0x00, 0x01ad}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5607 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, |
| 5608 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, |
| 5609 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, |
| 5610 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5611 | {0xa1, 0x01, 0x0002}, |
| 5612 | {0xa1, 0x01, 0x0008}, |
| 5613 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5614 | {0xa0, 0x03, ZC3XX_R008_CLOCKSETTING}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5615 | {0xa1, 0x01, 0x0008}, /* clock ? */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5616 | {0xa0, 0x08, ZC3XX_R1C6_SHARPNESS00}, /* sharpness+ */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5617 | {0xa1, 0x01, 0x01c8}, |
| 5618 | {0xa1, 0x01, 0x01c9}, |
| 5619 | {0xa1, 0x01, 0x01ca}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5620 | {0xa0, 0x0f, ZC3XX_R1CB_SHARPNESS05}, /* sharpness- */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5621 | |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5622 | {0xa0, 0x68, ZC3XX_R10A_RGB00}, /* matrix */ |
| 5623 | {0xa0, 0xec, ZC3XX_R10B_RGB01}, |
| 5624 | {0xa0, 0xec, ZC3XX_R10C_RGB02}, |
| 5625 | {0xa0, 0xec, ZC3XX_R10D_RGB10}, |
| 5626 | {0xa0, 0x68, ZC3XX_R10E_RGB11}, |
| 5627 | {0xa0, 0xec, ZC3XX_R10F_RGB12}, |
| 5628 | {0xa0, 0xec, ZC3XX_R110_RGB20}, |
| 5629 | {0xa0, 0xec, ZC3XX_R111_RGB21}, |
| 5630 | {0xa0, 0x68, ZC3XX_R112_RGB22}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5631 | |
| 5632 | {0xa1, 0x01, 0x018d}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5633 | {0xa0, 0x90, ZC3XX_R18D_YTARGET}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5634 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5635 | {0xa0, 0x00, ZC3XX_R180_AUTOCORRECTENABLE}, |
| 5636 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5637 | {0xaa, 0xa3, 0x0001}, |
| 5638 | {0xaa, 0xa4, 0x0063}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5639 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, |
| 5640 | {0xa0, 0x63, ZC3XX_R0A4_EXPOSURETIMELOW}, |
| 5641 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, |
| 5642 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, |
| 5643 | {0xa0, 0x38, ZC3XX_R192_EXPOSURELIMITLOW}, |
| 5644 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, |
| 5645 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, |
| 5646 | {0xa0, 0x47, ZC3XX_R197_ANTIFLICKERLOW}, |
| 5647 | {0xa0, 0x0c, ZC3XX_R18C_AEFREEZE}, |
| 5648 | {0xa0, 0x18, ZC3XX_R18F_AEUNFREEZE}, |
| 5649 | {0xa0, 0x08, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
| 5650 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, |
| 5651 | {0xa0, 0xd3, ZC3XX_R01D_HSYNC_0}, |
| 5652 | {0xa0, 0xda, ZC3XX_R01E_HSYNC_1}, |
| 5653 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, |
| 5654 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, |
| 5655 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, |
| 5656 | {0xa0, 0x4c, ZC3XX_R0A0_MAXXLOW}, |
| 5657 | {0xa0, 0x50, ZC3XX_R11D_GLOBALGAIN}, |
| 5658 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5659 | {0xa1, 0x01, 0x0180}, |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5660 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5661 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5662 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5663 | static const struct usb_action tas5130cxx_50HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5664 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5665 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
| 5666 | {0xaa, 0xa4, 0x0063}, /* 00,a4,63,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5667 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
| 5668 | {0xa0, 0x63, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,63,cc */ |
| 5669 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 5670 | {0xa0, 0x02, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,02,cc */ |
| 5671 | {0xa0, 0x38, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,38,cc */ |
| 5672 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5673 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 5674 | {0xa0, 0x47, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,47,cc */ |
| 5675 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 5676 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 5677 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 5678 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 5679 | {0xa0, 0xd3, ZC3XX_R01D_HSYNC_0}, /* 00,1d,d3,cc */ |
| 5680 | {0xa0, 0xda, ZC3XX_R01E_HSYNC_1}, /* 00,1e,da,cc */ |
| 5681 | {0xa0, 0xea, ZC3XX_R01F_HSYNC_2}, /* 00,1f,ea,cc */ |
| 5682 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 5683 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5684 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5685 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5686 | static const struct usb_action tas5130cxx_50HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5687 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5688 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
| 5689 | {0xaa, 0xa4, 0x0077}, /* 00,a4,77,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5690 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
| 5691 | {0xa0, 0x77, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,77,cc */ |
| 5692 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 5693 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,03,cc */ |
| 5694 | {0xa0, 0xe8, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,e8,cc */ |
| 5695 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5696 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 5697 | {0xa0, 0x7d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7d,cc */ |
| 5698 | {0xa0, 0x14, ZC3XX_R18C_AEFREEZE}, /* 01,8c,14,cc */ |
| 5699 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 5700 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 5701 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 5702 | {0xa0, 0xf0, ZC3XX_R01D_HSYNC_0}, /* 00,1d,f0,cc */ |
| 5703 | {0xa0, 0xf4, ZC3XX_R01E_HSYNC_1}, /* 00,1e,f4,cc */ |
| 5704 | {0xa0, 0xf8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,f8,cc */ |
| 5705 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 5706 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5707 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5708 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5709 | static const struct usb_action tas5130cxx_60HZ[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5710 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5711 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
| 5712 | {0xaa, 0xa4, 0x0036}, /* 00,a4,36,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5713 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
| 5714 | {0xa0, 0x36, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,36,cc */ |
| 5715 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 5716 | {0xa0, 0x01, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,01,cc */ |
| 5717 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 5718 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5719 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 5720 | {0xa0, 0x3e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3e,cc */ |
| 5721 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 5722 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 5723 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 5724 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 5725 | {0xa0, 0xca, ZC3XX_R01D_HSYNC_0}, /* 00,1d,ca,cc */ |
| 5726 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
| 5727 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
| 5728 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 5729 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5730 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5731 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5732 | static const struct usb_action tas5130cxx_60HZScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5733 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5734 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
| 5735 | {0xaa, 0xa4, 0x0077}, /* 00,a4,77,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5736 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
| 5737 | {0xa0, 0x77, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,77,cc */ |
| 5738 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 5739 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,03,cc */ |
| 5740 | {0xa0, 0xe8, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,e8,cc */ |
| 5741 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5742 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 5743 | {0xa0, 0x7d, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,7d,cc */ |
| 5744 | {0xa0, 0x14, ZC3XX_R18C_AEFREEZE}, /* 01,8c,14,cc */ |
| 5745 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 5746 | {0xa0, 0x0c, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,0c,cc */ |
| 5747 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,26,cc */ |
| 5748 | {0xa0, 0xc8, ZC3XX_R01D_HSYNC_0}, /* 00,1d,c8,cc */ |
| 5749 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
| 5750 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
| 5751 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 5752 | {0xa0, 0x03, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5753 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5754 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5755 | static const struct usb_action tas5130cxx_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5756 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5757 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
| 5758 | {0xaa, 0xa4, 0x0040}, /* 00,a4,40,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5759 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
| 5760 | {0xa0, 0x40, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,40,cc */ |
| 5761 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 5762 | {0xa0, 0x01, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,01,cc */ |
| 5763 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 5764 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5765 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 5766 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 5767 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 5768 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 5769 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 5770 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 5771 | {0xa0, 0xbc, ZC3XX_R01D_HSYNC_0}, /* 00,1d,bc,cc */ |
| 5772 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
| 5773 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
| 5774 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 5775 | {0xa0, 0x02, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,02,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5776 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5777 | }; |
| 5778 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5779 | static const struct usb_action tas5130cxx_NoFlikerScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5780 | {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS}, /* 00,19,00,cc */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5781 | {0xaa, 0xa3, 0x0001}, /* 00,a3,01,aa */ |
| 5782 | {0xaa, 0xa4, 0x0090}, /* 00,a4,90,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5783 | {0xa0, 0x01, ZC3XX_R0A3_EXPOSURETIMEHIGH}, /* 00,a3,01,cc */ |
| 5784 | {0xa0, 0x90, ZC3XX_R0A4_EXPOSURETIMELOW}, /* 00,a4,90,cc */ |
| 5785 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc */ |
| 5786 | {0xa0, 0x03, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,03,cc */ |
| 5787 | {0xa0, 0xf0, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,f0,cc */ |
| 5788 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc */ |
| 5789 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc */ |
| 5790 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc */ |
| 5791 | {0xa0, 0x10, ZC3XX_R18C_AEFREEZE}, /* 01,8c,10,cc */ |
| 5792 | {0xa0, 0x20, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,20,cc */ |
| 5793 | {0xa0, 0x00, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,00,cc */ |
| 5794 | {0xa0, 0x00, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,00,cc */ |
| 5795 | {0xa0, 0xbc, ZC3XX_R01D_HSYNC_0}, /* 00,1d,bc,cc */ |
| 5796 | {0xa0, 0xd0, ZC3XX_R01E_HSYNC_1}, /* 00,1e,d0,cc */ |
| 5797 | {0xa0, 0xe0, ZC3XX_R01F_HSYNC_2}, /* 00,1f,e0,cc */ |
| 5798 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc */ |
| 5799 | {0xa0, 0x02, ZC3XX_R09F_MAXXHIGH}, /* 00,9f,02,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5800 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5801 | }; |
| 5802 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5803 | static const struct usb_action tas5130c_vf0250_Initial[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5804 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc, */ |
| 5805 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, /* 00,08,02,cc, */ |
| 5806 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc, */ |
| 5807 | {0xa0, 0x10, ZC3XX_R002_CLOCKSELECT}, /* 00,02,00,cc, |
| 5808 | * 0<->10 */ |
| 5809 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc, */ |
| 5810 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc, */ |
| 5811 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc, */ |
| 5812 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc, */ |
| 5813 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ |
| 5814 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc, */ |
| 5815 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc, */ |
| 5816 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc, */ |
| 5817 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc, */ |
| 5818 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc, */ |
| 5819 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc, */ |
| 5820 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc, */ |
| 5821 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e6,cc, |
| 5822 | * 6<->8 */ |
| 5823 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,86,cc, |
| 5824 | * 6<->8 */ |
| 5825 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, /* 00,87,10,cc, */ |
| 5826 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5827 | {0xaa, 0x1b, 0x0024}, /* 00,1b,24,aa, */ |
| 5828 | {0xdd, 0x00, 0x0080}, /* 00,00,80,dd, */ |
| 5829 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa, */ |
| 5830 | {0xaa, 0x13, 0x0002}, /* 00,13,02,aa, */ |
| 5831 | {0xaa, 0x15, 0x0004}, /* 00,15,04,aa */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 5832 | /*?? {0xaa, 0x01, 0x0000}, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5833 | {0xaa, 0x01, 0x0000}, |
| 5834 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa, */ |
| 5835 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa, */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5836 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc, */ |
| 5837 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc, */ |
| 5838 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5839 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa, */ |
| 5840 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa, */ |
| 5841 | {0xaa, 0x0b, 0x00a0}, /* 00,0b,a0,aa, */ |
| 5842 | {0xaa, 0x0c, 0x0000}, /* 00,0c,00,aa, */ |
| 5843 | {0xaa, 0x0d, 0x00a0}, /* 00,0d,a0,aa, */ |
| 5844 | {0xaa, 0x0e, 0x0000}, /* 00,0e,00,aa, */ |
| 5845 | {0xaa, 0x0f, 0x00a0}, /* 00,0f,a0,aa, */ |
| 5846 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa, */ |
| 5847 | {0xaa, 0x11, 0x00a0}, /* 00,11,a0,aa, */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 5848 | /*?? {0xa0, 0x00, 0x0039}, |
| 5849 | {0xa1, 0x01, 0x0037}, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5850 | {0xaa, 0x16, 0x0001}, /* 00,16,01,aa, */ |
| 5851 | {0xaa, 0x17, 0x00e8}, /* 00,17,e6,aa, (e6 -> e8) */ |
| 5852 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa, */ |
| 5853 | {0xaa, 0x19, 0x0088}, /* 00,19,86,aa, */ |
| 5854 | {0xaa, 0x20, 0x0020}, /* 00,20,20,aa, */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5855 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc, */ |
| 5856 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc, */ |
| 5857 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc, */ |
| 5858 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc, */ |
| 5859 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc, */ |
| 5860 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc, */ |
| 5861 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc, */ |
| 5862 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc, */ |
| 5863 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc, */ |
| 5864 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc, */ |
| 5865 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, /* 01,16,61,cc, */ |
| 5866 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, /* 01,18,65,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5867 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5868 | }; |
| 5869 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5870 | static const struct usb_action tas5130c_vf0250_InitialScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5871 | {0xa0, 0x01, ZC3XX_R000_SYSTEMCONTROL}, /* 00,00,01,cc, */ |
| 5872 | {0xa0, 0x02, ZC3XX_R008_CLOCKSETTING}, /* 00,08,02,cc, */ |
| 5873 | {0xa0, 0x01, ZC3XX_R010_CMOSSENSORSELECT}, /* 00,10,01,cc, */ |
| 5874 | {0xa0, 0x00, ZC3XX_R002_CLOCKSELECT}, /* 00,02,10,cc, */ |
| 5875 | {0xa0, 0x02, ZC3XX_R003_FRAMEWIDTHHIGH}, /* 00,03,02,cc, */ |
| 5876 | {0xa0, 0x80, ZC3XX_R004_FRAMEWIDTHLOW}, /* 00,04,80,cc, */ |
| 5877 | {0xa0, 0x01, ZC3XX_R005_FRAMEHEIGHTHIGH}, /* 00,05,01,cc, */ |
| 5878 | {0xa0, 0xe0, ZC3XX_R006_FRAMEHEIGHTLOW}, /* 00,06,e0,cc, */ |
| 5879 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ |
| 5880 | {0xa0, 0x01, ZC3XX_R001_SYSTEMOPERATING}, /* 00,01,01,cc, */ |
| 5881 | {0xa0, 0x03, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,03,cc, */ |
| 5882 | {0xa0, 0x01, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,01,cc, */ |
| 5883 | {0xa0, 0x00, ZC3XX_R098_WINYSTARTLOW}, /* 00,98,00,cc, */ |
| 5884 | {0xa0, 0x00, ZC3XX_R09A_WINXSTARTLOW}, /* 00,9a,00,cc, */ |
| 5885 | {0xa0, 0x00, ZC3XX_R11A_FIRSTYLOW}, /* 01,1a,00,cc, */ |
| 5886 | {0xa0, 0x00, ZC3XX_R11C_FIRSTXLOW}, /* 01,1c,00,cc, */ |
| 5887 | {0xa0, 0xe8, ZC3XX_R09C_WINHEIGHTLOW}, /* 00,9c,e8,cc, |
| 5888 | * 8<->6 */ |
| 5889 | {0xa0, 0x88, ZC3XX_R09E_WINWIDTHLOW}, /* 00,9e,88,cc, |
| 5890 | * 8<->6 */ |
| 5891 | {0xa0, 0x10, ZC3XX_R087_EXPTIMEMID}, /* 00,87,10,cc, */ |
| 5892 | {0xa0, 0x98, ZC3XX_R08B_I2CDEVICEADDR}, /* 00,8b,98,cc, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5893 | {0xaa, 0x1b, 0x0024}, /* 00,1b,24,aa, */ |
| 5894 | {0xdd, 0x00, 0x0080}, /* 00,00,80,dd, */ |
| 5895 | {0xaa, 0x1b, 0x0000}, /* 00,1b,00,aa, */ |
| 5896 | {0xaa, 0x13, 0x0002}, /* 00,13,02,aa, */ |
| 5897 | {0xaa, 0x15, 0x0004}, /* 00,15,04,aa */ |
Jean-Francois Moine | 2ed9f81 | 2008-11-28 15:31:43 -0300 | [diff] [blame] | 5898 | /*?? {0xaa, 0x01, 0x0000}, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5899 | {0xaa, 0x01, 0x0000}, |
| 5900 | {0xaa, 0x1a, 0x0000}, /* 00,1a,00,aa, */ |
| 5901 | {0xaa, 0x1c, 0x0017}, /* 00,1c,17,aa, */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5902 | {0xa0, 0x82, ZC3XX_R086_EXPTIMEHIGH}, /* 00,86,82,cc, */ |
| 5903 | {0xa0, 0x83, ZC3XX_R087_EXPTIMEMID}, /* 00,87,83,cc, */ |
| 5904 | {0xa0, 0x84, ZC3XX_R088_EXPTIMELOW}, /* 00,88,84,cc, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5905 | {0xaa, 0x05, 0x0010}, /* 00,05,10,aa, */ |
| 5906 | {0xaa, 0x0a, 0x0000}, /* 00,0a,00,aa, */ |
| 5907 | {0xaa, 0x0b, 0x00a0}, /* 00,0b,a0,aa, */ |
| 5908 | {0xaa, 0x0c, 0x0000}, /* 00,0c,00,aa, */ |
| 5909 | {0xaa, 0x0d, 0x00a0}, /* 00,0d,a0,aa, */ |
| 5910 | {0xaa, 0x0e, 0x0000}, /* 00,0e,00,aa, */ |
| 5911 | {0xaa, 0x0f, 0x00a0}, /* 00,0f,a0,aa, */ |
| 5912 | {0xaa, 0x10, 0x0000}, /* 00,10,00,aa, */ |
| 5913 | {0xaa, 0x11, 0x00a0}, /* 00,11,a0,aa, */ |
Jean-Francois Moine | 2ed9f81 | 2008-11-28 15:31:43 -0300 | [diff] [blame] | 5914 | /*?? {0xa0, 0x00, 0x0039}, |
| 5915 | {0xa1, 0x01, 0x0037}, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5916 | {0xaa, 0x16, 0x0001}, /* 00,16,01,aa, */ |
| 5917 | {0xaa, 0x17, 0x00e8}, /* 00,17,e6,aa (e6 -> e8) */ |
| 5918 | {0xaa, 0x18, 0x0002}, /* 00,18,02,aa, */ |
| 5919 | {0xaa, 0x19, 0x0088}, /* 00,19,88,aa, */ |
| 5920 | {0xaa, 0x20, 0x0020}, /* 00,20,20,aa, */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5921 | {0xa0, 0xb7, ZC3XX_R101_SENSORCORRECTION}, /* 01,01,b7,cc, */ |
| 5922 | {0xa0, 0x05, ZC3XX_R012_VIDEOCONTROLFUNC}, /* 00,12,05,cc, */ |
| 5923 | {0xa0, 0x0d, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0d,cc, */ |
| 5924 | {0xa0, 0x76, ZC3XX_R189_AWBSTATUS}, /* 01,89,76,cc, */ |
| 5925 | {0xa0, 0x09, 0x01ad}, /* 01,ad,09,cc, */ |
| 5926 | {0xa0, 0x03, ZC3XX_R1C5_SHARPNESSMODE}, /* 01,c5,03,cc, */ |
| 5927 | {0xa0, 0x13, ZC3XX_R1CB_SHARPNESS05}, /* 01,cb,13,cc, */ |
| 5928 | {0xa0, 0x08, ZC3XX_R250_DEADPIXELSMODE}, /* 02,50,08,cc, */ |
| 5929 | {0xa0, 0x08, ZC3XX_R301_EEPROMACCESS}, /* 03,01,08,cc, */ |
| 5930 | {0xa0, 0x60, ZC3XX_R1A8_DIGITALGAIN}, /* 01,a8,60,cc, */ |
| 5931 | {0xa0, 0x61, ZC3XX_R116_RGAIN}, /* 01,16,61,cc, */ |
| 5932 | {0xa0, 0x65, ZC3XX_R118_BGAIN}, /* 01,18,65,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5933 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5934 | }; |
| 5935 | /* "50HZ" light frequency banding filter */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5936 | static const struct usb_action tas5130c_vf0250_50HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5937 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 5938 | {0xaa, 0x83, 0x0001}, /* 00,83,01,aa */ |
| 5939 | {0xaa, 0x84, 0x00aa}, /* 00,84,aa,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5940 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
| 5941 | {0xa0, 0x06, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0d,cc, */ |
| 5942 | {0xa0, 0xa8, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,50,cc, */ |
| 5943 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
| 5944 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
| 5945 | {0xa0, 0x8e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,47,cc, */ |
| 5946 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
| 5947 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
| 5948 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc, */ |
| 5949 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc, */ |
| 5950 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
| 5951 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
| 5952 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
| 5953 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
| 5954 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
| 5955 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
| 5956 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,8d,78,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5957 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5958 | }; |
| 5959 | |
| 5960 | /* "50HZScale" light frequency banding filter */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5961 | static const struct usb_action tas5130c_vf0250_50HZScale[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5962 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 5963 | {0xaa, 0x83, 0x0003}, /* 00,83,03,aa */ |
| 5964 | {0xaa, 0x84, 0x0054}, /* 00,84,54,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5965 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
| 5966 | {0xa0, 0x0d, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0d,cc, */ |
| 5967 | {0xa0, 0x50, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,50,cc, */ |
| 5968 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
| 5969 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
| 5970 | {0xa0, 0x8e, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,8e,cc, */ |
| 5971 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
| 5972 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
| 5973 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc, */ |
| 5974 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc, */ |
| 5975 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
| 5976 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
| 5977 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
| 5978 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
| 5979 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
| 5980 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
| 5981 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,8d,78,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 5982 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5983 | }; |
| 5984 | |
| 5985 | /* "60HZ" light frequency banding filter */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 5986 | static const struct usb_action tas5130c_vf0250_60HZ[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 5987 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 5988 | {0xaa, 0x83, 0x0001}, /* 00,83,01,aa */ |
| 5989 | {0xaa, 0x84, 0x0062}, /* 00,84,62,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 5990 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
| 5991 | {0xa0, 0x05, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,05,cc, */ |
| 5992 | {0xa0, 0x88, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,88,cc, */ |
| 5993 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
| 5994 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
| 5995 | {0xa0, 0x3b, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,3b,cc, */ |
| 5996 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
| 5997 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
| 5998 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,a9,10,cc, */ |
| 5999 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,aa,24,cc, */ |
| 6000 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
| 6001 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
| 6002 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
| 6003 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
| 6004 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
| 6005 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
| 6006 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,8d,78,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6007 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6008 | }; |
| 6009 | |
| 6010 | /* "60HZScale" light frequency banding ilter */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6011 | static const struct usb_action tas5130c_vf0250_60HZScale[] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6012 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 6013 | {0xaa, 0x83, 0x0002}, /* 00,83,02,aa */ |
| 6014 | {0xaa, 0x84, 0x00c4}, /* 00,84,c4,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 6015 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
| 6016 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,1,0b,cc, */ |
| 6017 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,2,10,cc, */ |
| 6018 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,5,00,cc, */ |
| 6019 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,6,00,cc, */ |
| 6020 | {0xa0, 0x76, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,7,76,cc, */ |
| 6021 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,c,0e,cc, */ |
| 6022 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,f,15,cc, */ |
| 6023 | {0xa0, 0x10, ZC3XX_R1A9_DIGITALLIMITDIFF}, /* 01,9,10,cc, */ |
| 6024 | {0xa0, 0x24, ZC3XX_R1AA_DIGITALGAINSTEP}, /* 01,a,24,cc, */ |
| 6025 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,d,62,cc, */ |
| 6026 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,e,90,cc, */ |
| 6027 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,f,c8,cc, */ |
| 6028 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,0,ff,cc, */ |
| 6029 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,d,58,cc, */ |
| 6030 | {0xa0, 0x42, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,42,cc, */ |
| 6031 | {0xa0, 0x78, ZC3XX_R18D_YTARGET}, /* 01,d,78,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6032 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6033 | }; |
| 6034 | |
| 6035 | /* "NoFliker" light frequency banding flter */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6036 | static const struct usb_action tas5130c_vf0250_NoFliker[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 6037 | {0xa0, 0x0c, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0c,cc, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6038 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 6039 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
| 6040 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 6041 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,0,00,cc, */ |
| 6042 | {0xa0, 0x05, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,05,cc, */ |
| 6043 | {0xa0, 0x88, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,88,cc, */ |
| 6044 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
| 6045 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
| 6046 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc, */ |
| 6047 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
| 6048 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
| 6049 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
| 6050 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
| 6051 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
| 6052 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
| 6053 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
| 6054 | {0xa0, 0x03, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6055 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6056 | }; |
| 6057 | |
| 6058 | /* "NoFlikerScale" light frequency banding filter */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6059 | static const struct usb_action tas5130c_vf0250_NoFlikerScale[] = { |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 6060 | {0xa0, 0x0c, ZC3XX_R100_OPERATIONMODE}, /* 01,00,0c,cc, */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6061 | {0xaa, 0x82, 0x0000}, /* 00,82,00,aa */ |
| 6062 | {0xaa, 0x83, 0x0000}, /* 00,83,00,aa */ |
| 6063 | {0xaa, 0x84, 0x0020}, /* 00,84,20,aa */ |
Mauro Carvalho Chehab | 9a97a2a | 2008-07-15 14:23:08 -0300 | [diff] [blame] | 6064 | {0xa0, 0x00, ZC3XX_R190_EXPOSURELIMITHIGH}, /* 01,90,00,cc, */ |
| 6065 | {0xa0, 0x0b, ZC3XX_R191_EXPOSURELIMITMID}, /* 01,91,0b,cc, */ |
| 6066 | {0xa0, 0x10, ZC3XX_R192_EXPOSURELIMITLOW}, /* 01,92,10,cc, */ |
| 6067 | {0xa0, 0x00, ZC3XX_R195_ANTIFLICKERHIGH}, /* 01,95,00,cc, */ |
| 6068 | {0xa0, 0x00, ZC3XX_R196_ANTIFLICKERMID}, /* 01,96,00,cc, */ |
| 6069 | {0xa0, 0x10, ZC3XX_R197_ANTIFLICKERLOW}, /* 01,97,10,cc, */ |
| 6070 | {0xa0, 0x0e, ZC3XX_R18C_AEFREEZE}, /* 01,8c,0e,cc, */ |
| 6071 | {0xa0, 0x15, ZC3XX_R18F_AEUNFREEZE}, /* 01,8f,15,cc, */ |
| 6072 | {0xa0, 0x62, ZC3XX_R01D_HSYNC_0}, /* 00,1d,62,cc, */ |
| 6073 | {0xa0, 0x90, ZC3XX_R01E_HSYNC_1}, /* 00,1e,90,cc, */ |
| 6074 | {0xa0, 0xc8, ZC3XX_R01F_HSYNC_2}, /* 00,1f,c8,cc, */ |
| 6075 | {0xa0, 0xff, ZC3XX_R020_HSYNC_3}, /* 00,20,ff,cc, */ |
| 6076 | {0xa0, 0x58, ZC3XX_R11D_GLOBALGAIN}, /* 01,1d,58,cc, */ |
| 6077 | {0xa0, 0x03, ZC3XX_R180_AUTOCORRECTENABLE}, /* 01,80,03,cc */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6078 | {} |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6079 | }; |
| 6080 | |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6081 | static u8 reg_r_i(struct gspca_dev *gspca_dev, |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6082 | __u16 index) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6083 | { |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6084 | usb_control_msg(gspca_dev->dev, |
| 6085 | usb_rcvctrlpipe(gspca_dev->dev, 0), |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6086 | 0xa1, |
| 6087 | USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
| 6088 | 0x01, /* value */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6089 | index, gspca_dev->usb_buf, 1, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6090 | 500); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6091 | return gspca_dev->usb_buf[0]; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6092 | } |
| 6093 | |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6094 | static u8 reg_r(struct gspca_dev *gspca_dev, |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6095 | __u16 index) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6096 | { |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6097 | u8 ret; |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6098 | |
| 6099 | ret = reg_r_i(gspca_dev, index); |
| 6100 | PDEBUG(D_USBI, "reg r [%04x] -> %02x", index, ret); |
| 6101 | return ret; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6102 | } |
| 6103 | |
| 6104 | static void reg_w_i(struct usb_device *dev, |
| 6105 | __u8 value, |
| 6106 | __u16 index) |
| 6107 | { |
| 6108 | usb_control_msg(dev, |
| 6109 | usb_sndctrlpipe(dev, 0), |
| 6110 | 0xa0, |
| 6111 | USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE, |
| 6112 | value, index, NULL, 0, |
| 6113 | 500); |
| 6114 | } |
| 6115 | |
| 6116 | static void reg_w(struct usb_device *dev, |
| 6117 | __u8 value, |
| 6118 | __u16 index) |
| 6119 | { |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6120 | PDEBUG(D_USBO, "reg w [%04x] = %02x", index, value); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6121 | reg_w_i(dev, value, index); |
| 6122 | } |
| 6123 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6124 | static __u16 i2c_read(struct gspca_dev *gspca_dev, |
| 6125 | __u8 reg) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6126 | { |
| 6127 | __u8 retbyte; |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6128 | __u16 retval; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6129 | |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6130 | reg_w_i(gspca_dev->dev, reg, 0x0092); |
| 6131 | reg_w_i(gspca_dev->dev, 0x02, 0x0090); /* <- read command */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6132 | msleep(25); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6133 | retbyte = reg_r_i(gspca_dev, 0x0091); /* read status */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6134 | retval = reg_r_i(gspca_dev, 0x0095); /* read Lowbyte */ |
| 6135 | retval |= reg_r_i(gspca_dev, 0x0096) << 8; /* read Hightbyte */ |
Jean-Francois Moine | 0b119b7 | 2009-04-07 05:30:31 -0300 | [diff] [blame] | 6136 | PDEBUG(D_USBI, "i2c r [%02x] -> %04x (%02x)", |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6137 | reg, retval, retbyte); |
| 6138 | return retval; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6139 | } |
| 6140 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6141 | static __u8 i2c_write(struct gspca_dev *gspca_dev, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6142 | __u8 reg, |
| 6143 | __u8 valL, |
| 6144 | __u8 valH) |
| 6145 | { |
| 6146 | __u8 retbyte; |
| 6147 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6148 | reg_w_i(gspca_dev->dev, reg, 0x92); |
| 6149 | reg_w_i(gspca_dev->dev, valL, 0x93); |
| 6150 | reg_w_i(gspca_dev->dev, valH, 0x94); |
| 6151 | reg_w_i(gspca_dev->dev, 0x01, 0x90); /* <- write command */ |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6152 | msleep(15); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6153 | retbyte = reg_r_i(gspca_dev, 0x0091); /* read status */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6154 | PDEBUG(D_USBO, "i2c w [%02x] = %02x%02x (%02x)", |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6155 | reg, valH, valL, retbyte); |
| 6156 | return retbyte; |
| 6157 | } |
| 6158 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6159 | static void usb_exchange(struct gspca_dev *gspca_dev, |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6160 | const struct usb_action *action) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6161 | { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6162 | while (action->req) { |
| 6163 | switch (action->req) { |
| 6164 | case 0xa0: /* write register */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6165 | reg_w(gspca_dev->dev, action->val, action->idx); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6166 | break; |
| 6167 | case 0xa1: /* read status */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6168 | reg_r(gspca_dev, action->idx); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6169 | break; |
| 6170 | case 0xaa: |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6171 | i2c_write(gspca_dev, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6172 | action->val, /* reg */ |
| 6173 | action->idx & 0xff, /* valL */ |
| 6174 | action->idx >> 8); /* valH */ |
| 6175 | break; |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6176 | case 0xbb: |
| 6177 | i2c_write(gspca_dev, |
| 6178 | action->idx >> 8, /* reg */ |
| 6179 | action->idx & 0xff, /* valL */ |
| 6180 | action->val); /* valH */ |
| 6181 | break; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6182 | default: |
| 6183 | /* case 0xdd: * delay */ |
| 6184 | msleep(action->val / 64 + 10); |
| 6185 | break; |
| 6186 | } |
| 6187 | action++; |
| 6188 | /* msleep(1); */ |
| 6189 | } |
| 6190 | } |
| 6191 | |
| 6192 | static void setmatrix(struct gspca_dev *gspca_dev) |
| 6193 | { |
| 6194 | struct sd *sd = (struct sd *) gspca_dev; |
| 6195 | int i; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6196 | const __u8 *matrix; |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6197 | static const u8 adcm2700_matrix[9] = |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 6198 | /* {0x66, 0xed, 0xed, 0xed, 0x66, 0xed, 0xed, 0xed, 0x66}; */ |
| 6199 | /*ms-win*/ |
| 6200 | {0x74, 0xed, 0xed, 0xed, 0x74, 0xed, 0xed, 0xed, 0x74}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6201 | static const __u8 gc0305_matrix[9] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6202 | {0x50, 0xf8, 0xf8, 0xf8, 0x50, 0xf8, 0xf8, 0xf8, 0x50}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6203 | static const __u8 ov7620_matrix[9] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6204 | {0x58, 0xf4, 0xf4, 0xf4, 0x58, 0xf4, 0xf4, 0xf4, 0x58}; |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6205 | static const __u8 pas202b_matrix[9] = |
| 6206 | {0x4c, 0xf5, 0xff, 0xf9, 0x51, 0xf5, 0xfb, 0xed, 0x5f}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6207 | static const __u8 po2030_matrix[9] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6208 | {0x60, 0xf0, 0xf0, 0xf0, 0x60, 0xf0, 0xf0, 0xf0, 0x60}; |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6209 | static const __u8 vf0250_matrix[9] = |
| 6210 | {0x7b, 0xea, 0xea, 0xea, 0x7b, 0xea, 0xea, 0xea, 0x7b}; |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6211 | static const __u8 *matrix_tb[SENSOR_MAX] = { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6212 | adcm2700_matrix, /* SENSOR_ADCM2700 0 */ |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 6213 | ov7620_matrix, /* SENSOR_CS2102 1 */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6214 | NULL, /* SENSOR_CS2102K 2 */ |
| 6215 | gc0305_matrix, /* SENSOR_GC0305 3 */ |
| 6216 | NULL, /* SENSOR_HDCS2020b 4 */ |
| 6217 | NULL, /* SENSOR_HV7131B 5 */ |
| 6218 | NULL, /* SENSOR_HV7131C 6 */ |
| 6219 | NULL, /* SENSOR_ICM105A 7 */ |
| 6220 | NULL, /* SENSOR_MC501CB 8 */ |
| 6221 | ov7620_matrix, /* SENSOR_OV7620 9 */ |
| 6222 | NULL, /* SENSOR_OV7630C 10 */ |
| 6223 | NULL, /* SENSOR_PAS106 11 */ |
| 6224 | pas202b_matrix, /* SENSOR_PAS202B 12 */ |
| 6225 | NULL, /* SENSOR_PB0330 13 */ |
| 6226 | po2030_matrix, /* SENSOR_PO2030 14 */ |
| 6227 | NULL, /* SENSOR_TAS5130CK 15 */ |
| 6228 | NULL, /* SENSOR_TAS5130CXX 16 */ |
| 6229 | vf0250_matrix, /* SENSOR_TAS5130C_VF0250 17 */ |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6230 | }; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6231 | |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6232 | matrix = matrix_tb[sd->sensor]; |
| 6233 | if (matrix == NULL) |
| 6234 | return; /* matrix already loaded */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6235 | for (i = 0; i < ARRAY_SIZE(ov7620_matrix); i++) |
| 6236 | reg_w(gspca_dev->dev, matrix[i], 0x010a + i); |
| 6237 | } |
| 6238 | |
| 6239 | static void setbrightness(struct gspca_dev *gspca_dev) |
| 6240 | { |
| 6241 | struct sd *sd = (struct sd *) gspca_dev; |
| 6242 | __u8 brightness; |
| 6243 | |
| 6244 | switch (sd->sensor) { |
| 6245 | case SENSOR_GC0305: |
| 6246 | case SENSOR_OV7620: |
| 6247 | case SENSOR_PO2030: |
| 6248 | return; |
| 6249 | } |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6250 | /*fixme: is it really write to 011d and 018d for all other sensors? */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6251 | brightness = sd->brightness; |
| 6252 | reg_w(gspca_dev->dev, brightness, 0x011d); |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 6253 | switch (sd->sensor) { |
| 6254 | case SENSOR_ADCM2700: |
| 6255 | case SENSOR_HV7131B: |
Jean-Francois Moine | c9ff1b6 | 2008-11-06 15:29:47 -0300 | [diff] [blame] | 6256 | return; |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 6257 | } |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6258 | if (brightness < 0x70) |
| 6259 | brightness += 0x10; |
| 6260 | else |
| 6261 | brightness = 0x80; |
| 6262 | reg_w(gspca_dev->dev, brightness, 0x018d); |
| 6263 | } |
| 6264 | |
| 6265 | static void setsharpness(struct gspca_dev *gspca_dev) |
| 6266 | { |
| 6267 | struct sd *sd = (struct sd *) gspca_dev; |
| 6268 | struct usb_device *dev = gspca_dev->dev; |
| 6269 | int sharpness; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6270 | static const __u8 sharpness_tb[][2] = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6271 | {0x02, 0x03}, |
| 6272 | {0x04, 0x07}, |
| 6273 | {0x08, 0x0f}, |
| 6274 | {0x10, 0x1e} |
| 6275 | }; |
| 6276 | |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6277 | sharpness = sd->sharpness; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6278 | reg_w(dev, sharpness_tb[sharpness][0], 0x01c6); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6279 | reg_r(gspca_dev, 0x01c8); |
| 6280 | reg_r(gspca_dev, 0x01c9); |
| 6281 | reg_r(gspca_dev, 0x01ca); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6282 | reg_w(dev, sharpness_tb[sharpness][1], 0x01cb); |
| 6283 | } |
| 6284 | |
| 6285 | static void setcontrast(struct gspca_dev *gspca_dev) |
| 6286 | { |
| 6287 | struct sd *sd = (struct sd *) gspca_dev; |
| 6288 | struct usb_device *dev = gspca_dev->dev; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6289 | const __u8 *Tgamma, *Tgradient; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6290 | int g, i, k; |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6291 | static const __u8 kgamma_tb[16] = /* delta for contrast */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6292 | {0x15, 0x0d, 0x0a, 0x09, 0x08, 0x08, 0x08, 0x08, |
| 6293 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6294 | static const __u8 kgrad_tb[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6295 | {0x1b, 0x06, 0x03, 0x02, 0x00, 0x00, 0x00, 0x00, |
| 6296 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x06, 0x04}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6297 | static const __u8 Tgamma_1[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6298 | {0x00, 0x00, 0x03, 0x0d, 0x1b, 0x2e, 0x45, 0x5f, |
| 6299 | 0x79, 0x93, 0xab, 0xc1, 0xd4, 0xe5, 0xf3, 0xff}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6300 | static const __u8 Tgradient_1[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6301 | {0x00, 0x01, 0x05, 0x0b, 0x10, 0x15, 0x18, 0x1a, |
| 6302 | 0x1a, 0x18, 0x16, 0x14, 0x12, 0x0f, 0x0d, 0x06}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6303 | static const __u8 Tgamma_2[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6304 | {0x01, 0x0c, 0x1f, 0x3a, 0x53, 0x6d, 0x85, 0x9c, |
| 6305 | 0xb0, 0xc2, 0xd1, 0xde, 0xe9, 0xf2, 0xf9, 0xff}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6306 | static const __u8 Tgradient_2[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6307 | {0x05, 0x0f, 0x16, 0x1a, 0x19, 0x19, 0x17, 0x15, |
| 6308 | 0x12, 0x10, 0x0e, 0x0b, 0x09, 0x08, 0x06, 0x03}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6309 | static const __u8 Tgamma_3[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6310 | {0x04, 0x16, 0x30, 0x4e, 0x68, 0x81, 0x98, 0xac, |
| 6311 | 0xbe, 0xcd, 0xda, 0xe4, 0xed, 0xf5, 0xfb, 0xff}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6312 | static const __u8 Tgradient_3[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6313 | {0x0c, 0x16, 0x1b, 0x1c, 0x19, 0x18, 0x15, 0x12, |
| 6314 | 0x10, 0x0d, 0x0b, 0x09, 0x08, 0x06, 0x05, 0x03}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6315 | static const __u8 Tgamma_4[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6316 | {0x13, 0x38, 0x59, 0x79, 0x92, 0xa7, 0xb9, 0xc8, |
| 6317 | 0xd4, 0xdf, 0xe7, 0xee, 0xf4, 0xf9, 0xfc, 0xff}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6318 | static const __u8 Tgradient_4[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6319 | {0x26, 0x22, 0x20, 0x1c, 0x16, 0x13, 0x10, 0x0d, |
| 6320 | 0x0b, 0x09, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6321 | static const __u8 Tgamma_5[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6322 | {0x20, 0x4b, 0x6e, 0x8d, 0xa3, 0xb5, 0xc5, 0xd2, |
| 6323 | 0xdc, 0xe5, 0xec, 0xf2, 0xf6, 0xfa, 0xfd, 0xff}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6324 | static const __u8 Tgradient_5[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6325 | {0x37, 0x26, 0x20, 0x1a, 0x14, 0x10, 0x0e, 0x0b, |
| 6326 | 0x09, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x02}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6327 | static const __u8 Tgamma_6[16] = /* ?? was gamma 5 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6328 | {0x24, 0x44, 0x64, 0x84, 0x9d, 0xb2, 0xc4, 0xd3, |
| 6329 | 0xe0, 0xeb, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6330 | static const __u8 Tgradient_6[16] = |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6331 | {0x18, 0x20, 0x20, 0x1c, 0x16, 0x13, 0x10, 0x0e, |
| 6332 | 0x0b, 0x09, 0x07, 0x00, 0x00, 0x00, 0x00, 0x01}; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6333 | static const __u8 *gamma_tb[] = { |
Harvey Harrison | efab821 | 2008-07-05 06:12:47 -0300 | [diff] [blame] | 6334 | NULL, Tgamma_1, Tgamma_2, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6335 | Tgamma_3, Tgamma_4, Tgamma_5, Tgamma_6 |
| 6336 | }; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6337 | static const __u8 *gradient_tb[] = { |
Harvey Harrison | efab821 | 2008-07-05 06:12:47 -0300 | [diff] [blame] | 6338 | NULL, Tgradient_1, Tgradient_2, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6339 | Tgradient_3, Tgradient_4, Tgradient_5, Tgradient_6 |
| 6340 | }; |
Jean-Francois Moine | 335b3f8 | 2008-07-30 04:53:02 -0300 | [diff] [blame] | 6341 | #ifdef GSPCA_DEBUG |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6342 | __u8 v[16]; |
| 6343 | #endif |
| 6344 | |
| 6345 | Tgamma = gamma_tb[sd->gamma]; |
| 6346 | Tgradient = gradient_tb[sd->gamma]; |
| 6347 | |
| 6348 | k = (sd->contrast - 128) /* -128 / 128 */ |
| 6349 | * Tgamma[0]; |
| 6350 | PDEBUG(D_CONF, "gamma:%d contrast:%d gamma coeff: %d/128", |
| 6351 | sd->gamma, sd->contrast, k); |
| 6352 | for (i = 0; i < 16; i++) { |
| 6353 | g = Tgamma[i] + kgamma_tb[i] * k / 128; |
| 6354 | if (g > 0xff) |
| 6355 | g = 0xff; |
| 6356 | else if (g <= 0) |
| 6357 | g = 1; |
| 6358 | reg_w(dev, g, 0x0120 + i); /* gamma */ |
Jean-Francois Moine | 335b3f8 | 2008-07-30 04:53:02 -0300 | [diff] [blame] | 6359 | #ifdef GSPCA_DEBUG |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6360 | if (gspca_debug & D_CONF) |
| 6361 | v[i] = g; |
| 6362 | #endif |
| 6363 | } |
| 6364 | PDEBUG(D_CONF, "tb: %02x %02x %02x %02x %02x %02x %02x %02x", |
| 6365 | v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7]); |
| 6366 | PDEBUG(D_CONF, " %02x %02x %02x %02x %02x %02x %02x %02x", |
| 6367 | v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15]); |
| 6368 | for (i = 0; i < 16; i++) { |
| 6369 | g = Tgradient[i] - kgrad_tb[i] * k / 128; |
| 6370 | if (g > 0xff) |
| 6371 | g = 0xff; |
| 6372 | else if (g <= 0) { |
| 6373 | if (i != 15) |
| 6374 | g = 0; |
| 6375 | else |
| 6376 | g = 1; |
| 6377 | } |
| 6378 | reg_w(dev, g, 0x0130 + i); /* gradient */ |
Jean-Francois Moine | 335b3f8 | 2008-07-30 04:53:02 -0300 | [diff] [blame] | 6379 | #ifdef GSPCA_DEBUG |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6380 | if (gspca_debug & D_CONF) |
| 6381 | v[i] = g; |
| 6382 | #endif |
| 6383 | } |
| 6384 | PDEBUG(D_CONF, " %02x %02x %02x %02x %02x %02x %02x %02x", |
| 6385 | v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7]); |
| 6386 | PDEBUG(D_CONF, " %02x %02x %02x %02x %02x %02x %02x %02x", |
| 6387 | v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15]); |
| 6388 | } |
| 6389 | |
| 6390 | static void setquality(struct gspca_dev *gspca_dev) |
| 6391 | { |
| 6392 | struct sd *sd = (struct sd *) gspca_dev; |
| 6393 | struct usb_device *dev = gspca_dev->dev; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6394 | __u8 frxt; |
| 6395 | |
| 6396 | switch (sd->sensor) { |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 6397 | case SENSOR_ADCM2700: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6398 | case SENSOR_GC0305: |
Jean-Francois Moine | c9ff1b6 | 2008-11-06 15:29:47 -0300 | [diff] [blame] | 6399 | case SENSOR_HV7131B: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6400 | case SENSOR_OV7620: |
| 6401 | case SENSOR_PO2030: |
| 6402 | return; |
| 6403 | } |
| 6404 | /*fixme: is it really 0008 0007 0018 for all other sensors? */ |
Jean-Francois Moine | 36e819d | 2009-01-07 16:49:57 -0300 | [diff] [blame] | 6405 | reg_w(dev, QUANT_VAL, 0x0008); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6406 | frxt = 0x30; |
| 6407 | reg_w(dev, frxt, 0x0007); |
Jean-Francois Moine | 36e819d | 2009-01-07 16:49:57 -0300 | [diff] [blame] | 6408 | #if QUANT_VAL == 0 || QUANT_VAL == 1 || QUANT_VAL == 2 |
| 6409 | frxt = 0xff; |
| 6410 | #elif QUANT_VAL == 3 |
| 6411 | frxt = 0xf0; |
| 6412 | #elif QUANT_VAL == 4 |
| 6413 | frxt = 0xe0; |
| 6414 | #else |
| 6415 | frxt = 0x20; |
| 6416 | #endif |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6417 | reg_w(dev, frxt, 0x0018); |
| 6418 | } |
| 6419 | |
| 6420 | /* Matches the sensor's internal frame rate to the lighting frequency. |
| 6421 | * Valid frequencies are: |
| 6422 | * 50Hz, for European and Asian lighting (default) |
| 6423 | * 60Hz, for American lighting |
| 6424 | * 0 = No Fliker (for outdoore usage) |
| 6425 | * Returns: 0 for success |
| 6426 | */ |
| 6427 | static int setlightfreq(struct gspca_dev *gspca_dev) |
| 6428 | { |
| 6429 | struct sd *sd = (struct sd *) gspca_dev; |
| 6430 | int i, mode; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6431 | const struct usb_action *zc3_freq; |
| 6432 | static const struct usb_action *freq_tb[SENSOR_MAX][6] = { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6433 | /* SENSOR_ADCM2700 0 */ |
Jean-Francois Moine | c314b53 | 2009-01-20 10:02:35 -0300 | [diff] [blame] | 6434 | {adcm2700_NoFliker, adcm2700_NoFliker, |
| 6435 | adcm2700_50HZ, adcm2700_50HZ, |
| 6436 | adcm2700_60HZ, adcm2700_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6437 | /* SENSOR_CS2102 1 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6438 | {cs2102_NoFliker, cs2102_NoFlikerScale, |
| 6439 | cs2102_50HZ, cs2102_50HZScale, |
| 6440 | cs2102_60HZ, cs2102_60HZScale}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6441 | /* SENSOR_CS2102K 2 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6442 | {cs2102_NoFliker, cs2102_NoFlikerScale, |
Costantino Leandro | 5be8b73e | 2008-09-09 04:32:46 -0300 | [diff] [blame] | 6443 | NULL, NULL, /* currently disabled */ |
| 6444 | NULL, NULL}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6445 | /* SENSOR_GC0305 3 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6446 | {gc0305_NoFliker, gc0305_NoFliker, |
| 6447 | gc0305_50HZ, gc0305_50HZ, |
| 6448 | gc0305_60HZ, gc0305_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6449 | /* SENSOR_HDCS2020b 4 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6450 | {hdcs2020b_NoFliker, hdcs2020b_NoFliker, |
| 6451 | hdcs2020b_50HZ, hdcs2020b_50HZ, |
| 6452 | hdcs2020b_60HZ, hdcs2020b_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6453 | /* SENSOR_HV7131B 5 */ |
Jean-Francois Moine | 13563f4 | 2008-11-06 15:35:21 -0300 | [diff] [blame] | 6454 | {hv7131b_NoFlikerScale, hv7131b_NoFliker, |
| 6455 | hv7131b_50HZScale, hv7131b_50HZ, |
| 6456 | hv7131b_60HZScale, hv7131b_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6457 | /* SENSOR_HV7131C 6 */ |
Harvey Harrison | efab821 | 2008-07-05 06:12:47 -0300 | [diff] [blame] | 6458 | {NULL, NULL, |
| 6459 | NULL, NULL, |
| 6460 | NULL, NULL}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6461 | /* SENSOR_ICM105A 7 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6462 | {icm105a_NoFliker, icm105a_NoFlikerScale, |
| 6463 | icm105a_50HZ, icm105a_50HZScale, |
| 6464 | icm105a_60HZ, icm105a_60HZScale}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6465 | /* SENSOR_MC501CB 8 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6466 | {MC501CB_NoFliker, MC501CB_NoFlikerScale, |
| 6467 | MC501CB_50HZ, MC501CB_50HZScale, |
| 6468 | MC501CB_60HZ, MC501CB_60HZScale}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6469 | /* SENSOR_OV7620 9 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6470 | {OV7620_NoFliker, OV7620_NoFliker, |
| 6471 | OV7620_50HZ, OV7620_50HZ, |
| 6472 | OV7620_60HZ, OV7620_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6473 | /* SENSOR_OV7630C 10 */ |
Harvey Harrison | efab821 | 2008-07-05 06:12:47 -0300 | [diff] [blame] | 6474 | {NULL, NULL, |
| 6475 | NULL, NULL, |
| 6476 | NULL, NULL}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6477 | /* SENSOR_PAS106 11 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6478 | {pas106b_NoFliker, pas106b_NoFliker, |
| 6479 | pas106b_50HZ, pas106b_50HZ, |
| 6480 | pas106b_60HZ, pas106b_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6481 | /* SENSOR_PAS202B 12 */ |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6482 | {pas202b_NoFlikerScale, pas202b_NoFliker, |
| 6483 | pas202b_50HZScale, pas202b_50HZ, |
| 6484 | pas202b_60HZScale, pas202b_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6485 | /* SENSOR_PB0330 13 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6486 | {pb0330_NoFliker, pb0330_NoFlikerScale, |
| 6487 | pb0330_50HZ, pb0330_50HZScale, |
| 6488 | pb0330_60HZ, pb0330_60HZScale}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6489 | /* SENSOR_PO2030 14 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6490 | {PO2030_NoFliker, PO2030_NoFliker, |
| 6491 | PO2030_50HZ, PO2030_50HZ, |
| 6492 | PO2030_60HZ, PO2030_60HZ}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6493 | /* SENSOR_TAS5130CK 15 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6494 | {tas5130cxx_NoFliker, tas5130cxx_NoFlikerScale, |
| 6495 | tas5130cxx_50HZ, tas5130cxx_50HZScale, |
| 6496 | tas5130cxx_60HZ, tas5130cxx_60HZScale}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6497 | /* SENSOR_TAS5130CXX 16 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6498 | {tas5130cxx_NoFliker, tas5130cxx_NoFlikerScale, |
| 6499 | tas5130cxx_50HZ, tas5130cxx_50HZScale, |
| 6500 | tas5130cxx_60HZ, tas5130cxx_60HZScale}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6501 | /* SENSOR_TAS5130C_VF0250 17 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6502 | {tas5130c_vf0250_NoFliker, tas5130c_vf0250_NoFlikerScale, |
| 6503 | tas5130c_vf0250_50HZ, tas5130c_vf0250_50HZScale, |
| 6504 | tas5130c_vf0250_60HZ, tas5130c_vf0250_60HZScale}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6505 | }; |
| 6506 | |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6507 | i = sd->lightfreq * 2; |
Jean-Francois Moine | c2446b3 | 2008-07-05 11:49:20 -0300 | [diff] [blame] | 6508 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6509 | if (!mode) |
| 6510 | i++; /* 640x480 */ |
| 6511 | zc3_freq = freq_tb[(int) sd->sensor][i]; |
Harvey Harrison | efab821 | 2008-07-05 06:12:47 -0300 | [diff] [blame] | 6512 | if (zc3_freq != NULL) { |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6513 | usb_exchange(gspca_dev, zc3_freq); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6514 | switch (sd->sensor) { |
| 6515 | case SENSOR_GC0305: |
| 6516 | if (mode /* if 320x240 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6517 | && sd->lightfreq == 1) /* and 50Hz */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6518 | reg_w(gspca_dev->dev, 0x85, 0x018d); |
| 6519 | /* win: 0x80, 0x018d */ |
| 6520 | break; |
| 6521 | case SENSOR_OV7620: |
| 6522 | if (!mode) { /* if 640x480 */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6523 | if (sd->lightfreq != 0) /* and 50 or 60 Hz */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6524 | reg_w(gspca_dev->dev, 0x40, 0x0002); |
| 6525 | else |
| 6526 | reg_w(gspca_dev->dev, 0x44, 0x0002); |
| 6527 | } |
| 6528 | break; |
| 6529 | } |
| 6530 | } |
| 6531 | return 0; |
| 6532 | } |
| 6533 | |
| 6534 | static void setautogain(struct gspca_dev *gspca_dev) |
| 6535 | { |
| 6536 | struct sd *sd = (struct sd *) gspca_dev; |
| 6537 | __u8 autoval; |
| 6538 | |
| 6539 | if (sd->autogain) |
| 6540 | autoval = 0x42; |
| 6541 | else |
| 6542 | autoval = 0x02; |
| 6543 | reg_w(gspca_dev->dev, autoval, 0x0180); |
| 6544 | } |
| 6545 | |
| 6546 | static void send_unknown(struct usb_device *dev, int sensor) |
| 6547 | { |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6548 | reg_w(dev, 0x01, 0x0000); /* led off */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6549 | switch (sensor) { |
| 6550 | case SENSOR_PAS106: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6551 | reg_w(dev, 0x03, 0x003a); |
| 6552 | reg_w(dev, 0x0c, 0x003b); |
| 6553 | reg_w(dev, 0x08, 0x0038); |
| 6554 | break; |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6555 | case SENSOR_ADCM2700: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6556 | case SENSOR_GC0305: |
| 6557 | case SENSOR_OV7620: |
| 6558 | case SENSOR_PB0330: |
| 6559 | case SENSOR_PO2030: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6560 | reg_w(dev, 0x0d, 0x003a); |
| 6561 | reg_w(dev, 0x02, 0x003b); |
| 6562 | reg_w(dev, 0x00, 0x0038); |
| 6563 | break; |
| 6564 | } |
| 6565 | } |
| 6566 | |
| 6567 | /* start probe 2 wires */ |
| 6568 | static void start_2wr_probe(struct usb_device *dev, int sensor) |
| 6569 | { |
| 6570 | reg_w(dev, 0x01, 0x0000); |
| 6571 | reg_w(dev, sensor, 0x0010); |
| 6572 | reg_w(dev, 0x01, 0x0001); |
| 6573 | reg_w(dev, 0x03, 0x0012); |
| 6574 | reg_w(dev, 0x01, 0x0012); |
| 6575 | /* msleep(2); */ |
| 6576 | } |
| 6577 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6578 | static int sif_probe(struct gspca_dev *gspca_dev) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6579 | { |
| 6580 | __u16 checkword; |
| 6581 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6582 | start_2wr_probe(gspca_dev->dev, 0x0f); /* PAS106 */ |
| 6583 | reg_w(gspca_dev->dev, 0x08, 0x008d); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6584 | msleep(150); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6585 | checkword = ((i2c_read(gspca_dev, 0x00) & 0x0f) << 4) |
| 6586 | | ((i2c_read(gspca_dev, 0x01) & 0xf0) >> 4); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6587 | PDEBUG(D_PROBE, "probe sif 0x%04x", checkword); |
| 6588 | if (checkword == 0x0007) { |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6589 | send_unknown(gspca_dev->dev, SENSOR_PAS106); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6590 | return 0x0f; /* PAS106 */ |
| 6591 | } |
| 6592 | return -1; |
| 6593 | } |
| 6594 | |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6595 | static int vga_2wr_probe(struct gspca_dev *gspca_dev) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6596 | { |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6597 | struct usb_device *dev = gspca_dev->dev; |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6598 | u16 retword; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6599 | |
| 6600 | start_2wr_probe(dev, 0x00); /* HV7131B */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6601 | i2c_write(gspca_dev, 0x01, 0xaa, 0x00); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6602 | retword = i2c_read(gspca_dev, 0x01); |
| 6603 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6604 | return 0x00; /* HV7131B */ |
| 6605 | |
| 6606 | start_2wr_probe(dev, 0x04); /* CS2102 */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6607 | i2c_write(gspca_dev, 0x01, 0xaa, 0x00); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6608 | retword = i2c_read(gspca_dev, 0x01); |
| 6609 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6610 | return 0x04; /* CS2102 */ |
| 6611 | |
| 6612 | start_2wr_probe(dev, 0x06); /* OmniVision */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6613 | reg_w(dev, 0x08, 0x008d); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6614 | i2c_write(gspca_dev, 0x11, 0xaa, 0x00); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6615 | retword = i2c_read(gspca_dev, 0x11); |
| 6616 | if (retword != 0) { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6617 | /* (should have returned 0xaa) --> Omnivision? */ |
| 6618 | /* reg_r 0x10 -> 0x06 --> */ |
| 6619 | goto ov_check; |
| 6620 | } |
| 6621 | |
| 6622 | start_2wr_probe(dev, 0x08); /* HDCS2020 */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6623 | i2c_write(gspca_dev, 0x15, 0xaa, 0x00); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6624 | retword = i2c_read(gspca_dev, 0x15); |
| 6625 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6626 | return 0x08; /* HDCS2020 */ |
| 6627 | |
| 6628 | start_2wr_probe(dev, 0x0a); /* PB0330 */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6629 | i2c_write(gspca_dev, 0x07, 0xaa, 0xaa); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6630 | retword = i2c_read(gspca_dev, 0x07); |
| 6631 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6632 | return 0x0a; /* PB0330 */ |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6633 | retword = i2c_read(gspca_dev, 0x03); |
| 6634 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6635 | return 0x0a; /* PB0330 ?? */ |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6636 | retword = i2c_read(gspca_dev, 0x04); |
| 6637 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6638 | return 0x0a; /* PB0330 ?? */ |
| 6639 | |
| 6640 | start_2wr_probe(dev, 0x0c); /* ICM105A */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6641 | i2c_write(gspca_dev, 0x01, 0x11, 0x00); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6642 | retword = i2c_read(gspca_dev, 0x01); |
| 6643 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6644 | return 0x0c; /* ICM105A */ |
| 6645 | |
| 6646 | start_2wr_probe(dev, 0x0e); /* PAS202BCB */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6647 | reg_w(dev, 0x08, 0x008d); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6648 | i2c_write(gspca_dev, 0x03, 0xaa, 0x00); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6649 | msleep(500); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6650 | retword = i2c_read(gspca_dev, 0x03); |
| 6651 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6652 | return 0x0e; /* PAS202BCB */ |
| 6653 | |
| 6654 | start_2wr_probe(dev, 0x02); /* ?? */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6655 | i2c_write(gspca_dev, 0x01, 0xaa, 0x00); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6656 | retword = i2c_read(gspca_dev, 0x01); |
| 6657 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6658 | return 0x02; /* ?? */ |
| 6659 | ov_check: |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6660 | reg_r(gspca_dev, 0x0010); /* ?? */ |
| 6661 | reg_r(gspca_dev, 0x0010); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6662 | |
| 6663 | reg_w(dev, 0x01, 0x0000); |
| 6664 | reg_w(dev, 0x01, 0x0001); |
| 6665 | reg_w(dev, 0x06, 0x0010); /* OmniVision */ |
| 6666 | reg_w(dev, 0xa1, 0x008b); |
| 6667 | reg_w(dev, 0x08, 0x008d); |
| 6668 | msleep(500); |
| 6669 | reg_w(dev, 0x01, 0x0012); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6670 | i2c_write(gspca_dev, 0x12, 0x80, 0x00); /* sensor reset */ |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6671 | retword = i2c_read(gspca_dev, 0x0a) << 8; |
| 6672 | retword |= i2c_read(gspca_dev, 0x0b); |
| 6673 | PDEBUG(D_PROBE, "probe 2wr ov vga 0x%04x", retword); |
| 6674 | switch (retword) { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6675 | case 0x7631: /* OV7630C */ |
| 6676 | reg_w(dev, 0x06, 0x0010); |
| 6677 | break; |
| 6678 | case 0x7620: /* OV7620 */ |
| 6679 | case 0x7648: /* OV7648 */ |
| 6680 | break; |
| 6681 | default: |
| 6682 | return -1; /* not OmniVision */ |
| 6683 | } |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6684 | return retword; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6685 | } |
| 6686 | |
| 6687 | struct sensor_by_chipset_revision { |
| 6688 | __u16 revision; |
| 6689 | __u8 internal_sensor_id; |
| 6690 | }; |
| 6691 | static const struct sensor_by_chipset_revision chipset_revision_sensor[] = { |
| 6692 | {0xc001, 0x13}, /* MI0360 */ |
| 6693 | {0xe001, 0x13}, |
| 6694 | {0x8001, 0x13}, |
| 6695 | {0x8000, 0x14}, /* CS2102K */ |
| 6696 | {0x8400, 0x15}, /* TAS5130K */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6697 | }; |
| 6698 | |
| 6699 | static int vga_3wr_probe(struct gspca_dev *gspca_dev) |
| 6700 | { |
| 6701 | struct sd *sd = (struct sd *) gspca_dev; |
| 6702 | struct usb_device *dev = gspca_dev->dev; |
| 6703 | int i; |
| 6704 | __u8 retbyte; |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6705 | u16 retword; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6706 | |
| 6707 | /*fixme: lack of 8b=b3 (11,12)-> 10, 8b=e0 (14,15,16)-> 12 found in gspcav1*/ |
| 6708 | reg_w(dev, 0x02, 0x0010); |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6709 | reg_r(gspca_dev, 0x0010); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6710 | reg_w(dev, 0x01, 0x0000); |
| 6711 | reg_w(dev, 0x00, 0x0010); |
| 6712 | reg_w(dev, 0x01, 0x0001); |
| 6713 | reg_w(dev, 0x91, 0x008b); |
| 6714 | reg_w(dev, 0x03, 0x0012); |
| 6715 | reg_w(dev, 0x01, 0x0012); |
| 6716 | reg_w(dev, 0x05, 0x0012); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6717 | retword = i2c_read(gspca_dev, 0x14); |
| 6718 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6719 | return 0x11; /* HV7131R */ |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6720 | retword = i2c_read(gspca_dev, 0x15); |
| 6721 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6722 | return 0x11; /* HV7131R */ |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6723 | retword = i2c_read(gspca_dev, 0x16); |
| 6724 | if (retword != 0) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6725 | return 0x11; /* HV7131R */ |
| 6726 | |
| 6727 | reg_w(dev, 0x02, 0x0010); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6728 | retword = reg_r(gspca_dev, 0x000b) << 8; |
| 6729 | retword |= reg_r(gspca_dev, 0x000a); |
| 6730 | PDEBUG(D_PROBE, "probe 3wr vga 1 0x%04x", retword); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6731 | reg_r(gspca_dev, 0x0010); |
Jean-Francois Moine | 881cd41 | 2009-04-05 04:01:13 -0300 | [diff] [blame] | 6732 | /* value 0x4001 is meaningless */ |
| 6733 | if (retword != 0x4001) { |
| 6734 | for (i = 0; i < ARRAY_SIZE(chipset_revision_sensor); i++) { |
| 6735 | if (chipset_revision_sensor[i].revision == retword) { |
| 6736 | sd->chip_revision = retword; |
| 6737 | send_unknown(dev, SENSOR_PB0330); |
| 6738 | return chipset_revision_sensor[i] |
| 6739 | .internal_sensor_id; |
| 6740 | } |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6741 | } |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6742 | } |
| 6743 | |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6744 | reg_w(dev, 0x01, 0x0000); /* check ?? */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6745 | reg_w(dev, 0x01, 0x0001); |
| 6746 | reg_w(dev, 0xdd, 0x008b); |
| 6747 | reg_w(dev, 0x0a, 0x0010); |
| 6748 | reg_w(dev, 0x03, 0x0012); |
| 6749 | reg_w(dev, 0x01, 0x0012); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6750 | retword = i2c_read(gspca_dev, 0x00); |
| 6751 | if (retword != 0) { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6752 | PDEBUG(D_PROBE, "probe 3wr vga type 0a ?"); |
| 6753 | return 0x0a; /* ?? */ |
| 6754 | } |
| 6755 | |
| 6756 | reg_w(dev, 0x01, 0x0000); |
| 6757 | reg_w(dev, 0x01, 0x0001); |
| 6758 | reg_w(dev, 0x98, 0x008b); |
| 6759 | reg_w(dev, 0x01, 0x0010); |
| 6760 | reg_w(dev, 0x03, 0x0012); |
| 6761 | msleep(2); |
| 6762 | reg_w(dev, 0x01, 0x0012); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6763 | retword = i2c_read(gspca_dev, 0x00); |
| 6764 | if (retword != 0) { |
| 6765 | PDEBUG(D_PROBE, "probe 3wr vga type %02x", retword); |
| 6766 | if (retword == 0x0011) /* VF0250 */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6767 | return 0x0250; |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6768 | if (retword == 0x0029) /* gc0305 */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6769 | send_unknown(dev, SENSOR_GC0305); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6770 | return retword; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6771 | } |
| 6772 | |
| 6773 | reg_w(dev, 0x01, 0x0000); /* check OmniVision */ |
| 6774 | reg_w(dev, 0x01, 0x0001); |
| 6775 | reg_w(dev, 0xa1, 0x008b); |
| 6776 | reg_w(dev, 0x08, 0x008d); |
| 6777 | reg_w(dev, 0x06, 0x0010); |
| 6778 | reg_w(dev, 0x01, 0x0012); |
| 6779 | reg_w(dev, 0x05, 0x0012); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6780 | if (i2c_read(gspca_dev, 0x1c) == 0x007f /* OV7610 - manufacturer ID */ |
| 6781 | && i2c_read(gspca_dev, 0x1d) == 0x00a2) { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6782 | send_unknown(dev, SENSOR_OV7620); |
| 6783 | return 0x06; /* OmniVision confirm ? */ |
| 6784 | } |
| 6785 | |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6786 | reg_w(dev, 0x01, 0x0000); |
| 6787 | reg_w(dev, 0x00, 0x0002); |
| 6788 | reg_w(dev, 0x01, 0x0010); |
| 6789 | reg_w(dev, 0x01, 0x0001); |
| 6790 | reg_w(dev, 0xee, 0x008b); |
| 6791 | reg_w(dev, 0x03, 0x0012); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6792 | /* msleep(150); */ |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6793 | reg_w(dev, 0x01, 0x0012); |
| 6794 | reg_w(dev, 0x05, 0x0012); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6795 | retword = i2c_read(gspca_dev, 0x00) << 8; /* ID 0 */ |
| 6796 | retword |= i2c_read(gspca_dev, 0x01); /* ID 1 */ |
| 6797 | PDEBUG(D_PROBE, "probe 3wr vga 2 0x%04x", retword); |
| 6798 | if (retword == 0x2030) { |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6799 | retbyte = i2c_read(gspca_dev, 0x02); /* revision number */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6800 | PDEBUG(D_PROBE, "sensor PO2030 rev 0x%02x", retbyte); |
| 6801 | send_unknown(dev, SENSOR_PO2030); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6802 | return retword; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6803 | } |
| 6804 | |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6805 | reg_w(dev, 0x01, 0x0000); |
| 6806 | reg_w(dev, 0x0a, 0x0010); |
| 6807 | reg_w(dev, 0xd3, 0x008b); |
| 6808 | reg_w(dev, 0x01, 0x0001); |
| 6809 | reg_w(dev, 0x03, 0x0012); |
| 6810 | reg_w(dev, 0x01, 0x0012); |
Jean-Francois Moine | 881cd41 | 2009-04-05 04:01:13 -0300 | [diff] [blame] | 6811 | reg_w(dev, 0x05, 0x0012); |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6812 | reg_w(dev, 0xd3, 0x008b); |
Jean-Francois Moine | 3ab67ba | 2009-01-08 09:38:45 -0300 | [diff] [blame] | 6813 | retword = i2c_read(gspca_dev, 0x01); |
| 6814 | if (retword != 0) { |
| 6815 | PDEBUG(D_PROBE, "probe 3wr vga type 0a ? ret: %04x", retword); |
Jean-Francois Moine | 881cd41 | 2009-04-05 04:01:13 -0300 | [diff] [blame] | 6816 | return 0x16; /* adcm2700 (6100/6200) */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6817 | } |
| 6818 | return -1; |
| 6819 | } |
| 6820 | |
| 6821 | static int zcxx_probeSensor(struct gspca_dev *gspca_dev) |
| 6822 | { |
| 6823 | struct sd *sd = (struct sd *) gspca_dev; |
Jean-Francois Moine | 603538a | 2009-02-19 15:38:31 -0300 | [diff] [blame] | 6824 | int sensor; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6825 | |
| 6826 | switch (sd->sensor) { |
| 6827 | case SENSOR_MC501CB: |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6828 | return -1; /* don't probe */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6829 | case SENSOR_TAS5130C_VF0250: |
Hans de Goede | 34662342 | 2008-09-03 16:47:28 -0300 | [diff] [blame] | 6830 | /* may probe but with no write in reg 0x0010 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6831 | return -1; /* don't probe */ |
Hans de Goede | 34662342 | 2008-09-03 16:47:28 -0300 | [diff] [blame] | 6832 | case SENSOR_PAS106: |
| 6833 | sensor = sif_probe(gspca_dev); |
| 6834 | if (sensor >= 0) |
| 6835 | return sensor; |
| 6836 | break; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6837 | } |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6838 | sensor = vga_2wr_probe(gspca_dev); |
Jean-Francois Moine | 603538a | 2009-02-19 15:38:31 -0300 | [diff] [blame] | 6839 | if (sensor >= 0) |
Hans de Goede | 34662342 | 2008-09-03 16:47:28 -0300 | [diff] [blame] | 6840 | return sensor; |
Jean-Francois Moine | 603538a | 2009-02-19 15:38:31 -0300 | [diff] [blame] | 6841 | return vga_3wr_probe(gspca_dev); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6842 | } |
| 6843 | |
| 6844 | /* this function is called at probe time */ |
| 6845 | static int sd_config(struct gspca_dev *gspca_dev, |
| 6846 | const struct usb_device_id *id) |
| 6847 | { |
| 6848 | struct sd *sd = (struct sd *) gspca_dev; |
| 6849 | struct cam *cam; |
| 6850 | int sensor; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6851 | int vga = 1; /* 1: vga, 0: sif */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 6852 | static const __u8 gamma[SENSOR_MAX] = { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6853 | 4, /* SENSOR_ADCM2700 0 */ |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 6854 | 4, /* SENSOR_CS2102 1 */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6855 | 5, /* SENSOR_CS2102K 2 */ |
| 6856 | 4, /* SENSOR_GC0305 3 */ |
| 6857 | 4, /* SENSOR_HDCS2020b 4 */ |
| 6858 | 4, /* SENSOR_HV7131B 5 */ |
| 6859 | 4, /* SENSOR_HV7131C 6 */ |
| 6860 | 4, /* SENSOR_ICM105A 7 */ |
| 6861 | 4, /* SENSOR_MC501CB 8 */ |
| 6862 | 3, /* SENSOR_OV7620 9 */ |
| 6863 | 4, /* SENSOR_OV7630C 10 */ |
| 6864 | 4, /* SENSOR_PAS106 11 */ |
| 6865 | 4, /* SENSOR_PAS202B 12 */ |
| 6866 | 4, /* SENSOR_PB0330 13 */ |
| 6867 | 4, /* SENSOR_PO2030 14 */ |
| 6868 | 4, /* SENSOR_TAS5130CK 15 */ |
| 6869 | 4, /* SENSOR_TAS5130CXX 16 */ |
| 6870 | 3, /* SENSOR_TAS5130C_VF0250 17 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6871 | }; |
| 6872 | |
| 6873 | /* define some sensors from the vendor/product */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6874 | sd->sharpness = 2; |
Hans de Goede | d6db35e | 2008-09-03 17:12:13 -0300 | [diff] [blame] | 6875 | sd->sensor = id->driver_info; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6876 | sensor = zcxx_probeSensor(gspca_dev); |
| 6877 | if (sensor >= 0) |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 6878 | PDEBUG(D_PROBE, "probe sensor -> %04x", sensor); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6879 | if ((unsigned) force_sensor < SENSOR_MAX) { |
| 6880 | sd->sensor = force_sensor; |
| 6881 | PDEBUG(D_PROBE, "sensor forced to %d", force_sensor); |
| 6882 | } else { |
| 6883 | switch (sensor) { |
| 6884 | case -1: |
| 6885 | switch (sd->sensor) { |
| 6886 | case SENSOR_MC501CB: |
| 6887 | PDEBUG(D_PROBE, "Sensor MC501CB"); |
| 6888 | break; |
| 6889 | case SENSOR_TAS5130C_VF0250: |
| 6890 | PDEBUG(D_PROBE, "Sensor Tas5130 (VF0250)"); |
| 6891 | break; |
| 6892 | default: |
| 6893 | PDEBUG(D_PROBE, |
| 6894 | "Sensor UNKNOW_0 force Tas5130"); |
| 6895 | sd->sensor = SENSOR_TAS5130CXX; |
| 6896 | } |
| 6897 | break; |
| 6898 | case 0: |
| 6899 | PDEBUG(D_PROBE, "Find Sensor HV7131B"); |
| 6900 | sd->sensor = SENSOR_HV7131B; |
| 6901 | break; |
| 6902 | case 0x04: |
| 6903 | PDEBUG(D_PROBE, "Find Sensor CS2102"); |
| 6904 | sd->sensor = SENSOR_CS2102; |
| 6905 | break; |
| 6906 | case 0x08: |
| 6907 | PDEBUG(D_PROBE, "Find Sensor HDCS2020(b)"); |
| 6908 | sd->sensor = SENSOR_HDCS2020b; |
| 6909 | break; |
| 6910 | case 0x0a: |
| 6911 | PDEBUG(D_PROBE, |
| 6912 | "Find Sensor PB0330. Chip revision %x", |
| 6913 | sd->chip_revision); |
| 6914 | sd->sensor = SENSOR_PB0330; |
| 6915 | break; |
| 6916 | case 0x0c: |
| 6917 | PDEBUG(D_PROBE, "Find Sensor ICM105A"); |
| 6918 | sd->sensor = SENSOR_ICM105A; |
| 6919 | break; |
| 6920 | case 0x0e: |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 6921 | PDEBUG(D_PROBE, "Find Sensor PAS202B"); |
| 6922 | sd->sensor = SENSOR_PAS202B; |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6923 | sd->sharpness = 1; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6924 | break; |
| 6925 | case 0x0f: |
| 6926 | PDEBUG(D_PROBE, "Find Sensor PAS106"); |
| 6927 | sd->sensor = SENSOR_PAS106; |
| 6928 | vga = 0; /* SIF */ |
| 6929 | break; |
| 6930 | case 0x10: |
| 6931 | case 0x12: |
| 6932 | PDEBUG(D_PROBE, "Find Sensor TAS5130"); |
| 6933 | sd->sensor = SENSOR_TAS5130CXX; |
| 6934 | break; |
| 6935 | case 0x11: |
| 6936 | PDEBUG(D_PROBE, "Find Sensor HV7131R(c)"); |
| 6937 | sd->sensor = SENSOR_HV7131C; |
| 6938 | break; |
| 6939 | case 0x13: |
| 6940 | PDEBUG(D_PROBE, |
| 6941 | "Find Sensor MI0360. Chip revision %x", |
| 6942 | sd->chip_revision); |
| 6943 | sd->sensor = SENSOR_PB0330; |
| 6944 | break; |
| 6945 | case 0x14: |
| 6946 | PDEBUG(D_PROBE, |
| 6947 | "Find Sensor CS2102K?. Chip revision %x", |
| 6948 | sd->chip_revision); |
| 6949 | sd->sensor = SENSOR_CS2102K; |
| 6950 | break; |
| 6951 | case 0x15: |
| 6952 | PDEBUG(D_PROBE, |
| 6953 | "Find Sensor TAS5130CK?. Chip revision %x", |
| 6954 | sd->chip_revision); |
| 6955 | sd->sensor = SENSOR_TAS5130CK; |
| 6956 | break; |
Jean-Francois Moine | 5be2b09 | 2009-01-20 05:12:34 -0300 | [diff] [blame] | 6957 | case 0x16: |
| 6958 | PDEBUG(D_PROBE, "Find Sensor ADCM2700"); |
| 6959 | sd->sensor = SENSOR_ADCM2700; |
| 6960 | break; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6961 | case 0x29: |
| 6962 | PDEBUG(D_PROBE, "Find Sensor GC0305"); |
| 6963 | sd->sensor = SENSOR_GC0305; |
| 6964 | break; |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 6965 | case 0x0250: |
| 6966 | PDEBUG(D_PROBE, "Sensor Tas5130 (VF0250)"); |
| 6967 | sd->sensor = SENSOR_TAS5130C_VF0250; |
| 6968 | break; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6969 | case 0x2030: |
| 6970 | PDEBUG(D_PROBE, "Find Sensor PO2030"); |
| 6971 | sd->sensor = SENSOR_PO2030; |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 6972 | sd->sharpness = 0; /* from win traces */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6973 | break; |
| 6974 | case 0x7620: |
| 6975 | PDEBUG(D_PROBE, "Find Sensor OV7620"); |
| 6976 | sd->sensor = SENSOR_OV7620; |
| 6977 | break; |
Jean-Francois Moine | e2d750f | 2009-02-19 15:41:28 -0300 | [diff] [blame] | 6978 | case 0x7631: |
| 6979 | PDEBUG(D_PROBE, "Find Sensor OV7630C"); |
| 6980 | sd->sensor = SENSOR_OV7630C; |
| 6981 | break; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6982 | case 0x7648: |
| 6983 | PDEBUG(D_PROBE, "Find Sensor OV7648"); |
| 6984 | sd->sensor = SENSOR_OV7620; /* same sensor (?) */ |
| 6985 | break; |
| 6986 | default: |
Jean-Francois Moine | 5be2b09 | 2009-01-20 05:12:34 -0300 | [diff] [blame] | 6987 | PDEBUG(D_ERR|D_PROBE, "Unknown sensor %04x", sensor); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6988 | return -EINVAL; |
| 6989 | } |
| 6990 | } |
| 6991 | if (sensor < 0x20) { |
| 6992 | if (sensor == -1 || sensor == 0x10 || sensor == 0x12) |
| 6993 | reg_w(gspca_dev->dev, 0x02, 0x0010); |
| 6994 | else |
| 6995 | reg_w(gspca_dev->dev, sensor & 0x0f, 0x0010); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 6996 | reg_r(gspca_dev, 0x0010); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 6997 | } |
| 6998 | |
| 6999 | cam = &gspca_dev->cam; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7000 | /*fixme:test*/ |
| 7001 | gspca_dev->nbalt--; |
| 7002 | if (vga) { |
| 7003 | cam->cam_mode = vga_mode; |
Jean-Francois Moine | c41492c | 2008-07-07 08:31:16 -0300 | [diff] [blame] | 7004 | cam->nmodes = ARRAY_SIZE(vga_mode); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7005 | } else { |
| 7006 | cam->cam_mode = sif_mode; |
Jean-Francois Moine | c41492c | 2008-07-07 08:31:16 -0300 | [diff] [blame] | 7007 | cam->nmodes = ARRAY_SIZE(sif_mode); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7008 | } |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7009 | sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value; |
| 7010 | sd->contrast = sd_ctrls[SD_CONTRAST].qctrl.default_value; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7011 | sd->gamma = gamma[(int) sd->sensor]; |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7012 | sd->autogain = sd_ctrls[SD_AUTOGAIN].qctrl.default_value; |
| 7013 | sd->lightfreq = sd_ctrls[SD_FREQ].qctrl.default_value; |
Jean-Francois Moine | 77ac0ba | 2009-03-02 06:40:52 -0300 | [diff] [blame] | 7014 | sd->quality = QUALITY_DEF; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7015 | |
Jean-Francois Moine | f50ba1b | 2008-09-03 17:12:14 -0300 | [diff] [blame] | 7016 | switch (sd->sensor) { |
| 7017 | case SENSOR_GC0305: |
| 7018 | case SENSOR_OV7620: |
| 7019 | case SENSOR_PO2030: |
| 7020 | gspca_dev->ctrl_dis = (1 << BRIGHTNESS_IDX); |
| 7021 | break; |
Jean-Francois Moine | f50ba1b | 2008-09-03 17:12:14 -0300 | [diff] [blame] | 7022 | case SENSOR_HV7131B: |
| 7023 | case SENSOR_HV7131C: |
| 7024 | case SENSOR_OV7630C: |
| 7025 | gspca_dev->ctrl_dis = (1 << LIGHTFREQ_IDX); |
| 7026 | break; |
| 7027 | } |
| 7028 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7029 | /* switch the led off */ |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7030 | reg_w(gspca_dev->dev, 0x01, 0x0000); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7031 | return 0; |
| 7032 | } |
| 7033 | |
Jean-Francois Moine | 012d6b0 | 2008-09-03 17:12:16 -0300 | [diff] [blame] | 7034 | /* this function is called at probe and resume time */ |
| 7035 | static int sd_init(struct gspca_dev *gspca_dev) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7036 | { |
| 7037 | reg_w(gspca_dev->dev, 0x01, 0x0000); |
| 7038 | return 0; |
| 7039 | } |
| 7040 | |
Jean-Francois Moine | 72ab97c | 2008-09-20 06:39:08 -0300 | [diff] [blame] | 7041 | static int sd_start(struct gspca_dev *gspca_dev) |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7042 | { |
| 7043 | struct sd *sd = (struct sd *) gspca_dev; |
| 7044 | struct usb_device *dev = gspca_dev->dev; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7045 | const struct usb_action *zc3_init; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7046 | int mode; |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7047 | static const struct usb_action *init_tb[SENSOR_MAX][2] = { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7048 | {adcm2700_Initial, adcm2700_InitialScale}, /* 0 */ |
| 7049 | {cs2102_InitialScale, cs2102_Initial}, /* 1 */ |
| 7050 | {cs2102K_InitialScale, cs2102K_Initial}, /* 2 */ |
| 7051 | {gc0305_Initial, gc0305_InitialScale}, /* 3 */ |
| 7052 | {hdcs2020xb_InitialScale, hdcs2020xb_Initial}, /* 4 */ |
| 7053 | {hv7131bxx_InitialScale, hv7131bxx_Initial}, /* 5 */ |
| 7054 | {hv7131cxx_InitialScale, hv7131cxx_Initial}, /* 6 */ |
| 7055 | {icm105axx_InitialScale, icm105axx_Initial}, /* 7 */ |
| 7056 | {MC501CB_InitialScale, MC501CB_Initial}, /* 8 */ |
| 7057 | {OV7620_mode0, OV7620_mode1}, /* 9 */ |
| 7058 | {ov7630c_InitialScale, ov7630c_Initial}, /* 10 */ |
| 7059 | {pas106b_InitialScale, pas106b_Initial}, /* 11 */ |
| 7060 | {pas202b_Initial, pas202b_InitialScale}, /* 12 */ |
| 7061 | {pb0330xx_InitialScale, pb0330xx_Initial}, /* 13 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7062 | /* or {pb03303x_InitialScale, pb03303x_Initial}, */ |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7063 | {PO2030_mode0, PO2030_mode1}, /* 14 */ |
| 7064 | {tas5130CK_InitialScale, tas5130CK_Initial}, /* 15 */ |
| 7065 | {tas5130cxx_InitialScale, tas5130cxx_Initial}, /* 16 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7066 | {tas5130c_vf0250_InitialScale, tas5130c_vf0250_Initial}, |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7067 | /* 17 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7068 | }; |
| 7069 | |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 7070 | /* create the JPEG header */ |
| 7071 | sd->jpeg_hdr = kmalloc(JPEG_HDR_SZ, GFP_KERNEL); |
Julia Lawall | 3eb0237 | 2009-07-19 07:09:32 -0300 | [diff] [blame] | 7072 | if (!sd->jpeg_hdr) |
| 7073 | return -ENOMEM; |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 7074 | jpeg_define(sd->jpeg_hdr, gspca_dev->height, gspca_dev->width, |
| 7075 | 0x21); /* JPEG 422 */ |
| 7076 | jpeg_set_qual(sd->jpeg_hdr, sd->quality); |
| 7077 | |
Jean-Francois Moine | c2446b3 | 2008-07-05 11:49:20 -0300 | [diff] [blame] | 7078 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7079 | zc3_init = init_tb[(int) sd->sensor][mode]; |
| 7080 | switch (sd->sensor) { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7081 | case SENSOR_HV7131C: |
| 7082 | zcxx_probeSensor(gspca_dev); |
| 7083 | break; |
| 7084 | case SENSOR_PAS106: |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7085 | usb_exchange(gspca_dev, pas106b_Initial_com); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7086 | break; |
| 7087 | case SENSOR_PB0330: |
| 7088 | if (mode) { |
| 7089 | if (sd->chip_revision == 0xc001 |
| 7090 | || sd->chip_revision == 0xe001 |
| 7091 | || sd->chip_revision == 0x8001) |
| 7092 | zc3_init = pb03303x_Initial; |
| 7093 | } else { |
| 7094 | if (sd->chip_revision == 0xc001 |
| 7095 | || sd->chip_revision == 0xe001 |
| 7096 | || sd->chip_revision == 0x8001) |
| 7097 | zc3_init = pb03303x_InitialScale; |
| 7098 | } |
| 7099 | break; |
| 7100 | } |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7101 | usb_exchange(gspca_dev, zc3_init); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7102 | |
| 7103 | switch (sd->sensor) { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7104 | case SENSOR_ADCM2700: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7105 | case SENSOR_GC0305: |
| 7106 | case SENSOR_OV7620: |
| 7107 | case SENSOR_PO2030: |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 7108 | case SENSOR_TAS5130C_VF0250: |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7109 | /* msleep(100); * ?? */ |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7110 | reg_r(gspca_dev, 0x0002); /* --> 0x40 */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7111 | reg_w(dev, 0x09, 0x01ad); /* (from win traces) */ |
| 7112 | reg_w(dev, 0x15, 0x01ae); |
| 7113 | reg_w(dev, 0x0d, 0x003a); |
| 7114 | reg_w(dev, 0x02, 0x003b); |
| 7115 | reg_w(dev, 0x00, 0x0038); |
| 7116 | break; |
| 7117 | } |
| 7118 | |
| 7119 | setmatrix(gspca_dev); |
| 7120 | setbrightness(gspca_dev); |
| 7121 | switch (sd->sensor) { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7122 | case SENSOR_ADCM2700: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7123 | case SENSOR_OV7620: |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7124 | reg_r(gspca_dev, 0x0008); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7125 | reg_w(dev, 0x00, 0x0008); |
| 7126 | break; |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 7127 | case SENSOR_PAS202B: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7128 | case SENSOR_GC0305: |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7129 | reg_r(gspca_dev, 0x0008); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7130 | /* fall thru */ |
| 7131 | case SENSOR_PO2030: |
| 7132 | reg_w(dev, 0x03, 0x0008); |
| 7133 | break; |
| 7134 | } |
| 7135 | setsharpness(gspca_dev); |
| 7136 | |
| 7137 | /* set the gamma tables when not set */ |
| 7138 | switch (sd->sensor) { |
Jean-Francois Moine | 1d76331 | 2009-09-18 05:36:24 -0300 | [diff] [blame^] | 7139 | case SENSOR_CS2102K: /* gamma set in xxx_Initial */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7140 | case SENSOR_HDCS2020b: |
| 7141 | case SENSOR_PB0330: /* pb with chip_revision - see above */ |
| 7142 | case SENSOR_OV7630C: |
| 7143 | case SENSOR_TAS5130CK: |
| 7144 | break; |
| 7145 | default: |
| 7146 | setcontrast(gspca_dev); |
| 7147 | break; |
| 7148 | } |
| 7149 | setmatrix(gspca_dev); /* one more time? */ |
| 7150 | switch (sd->sensor) { |
| 7151 | case SENSOR_OV7620: |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 7152 | case SENSOR_PAS202B: |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7153 | reg_r(gspca_dev, 0x0180); /* from win */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7154 | reg_w(dev, 0x00, 0x0180); |
| 7155 | break; |
| 7156 | default: |
| 7157 | setquality(gspca_dev); |
| 7158 | break; |
| 7159 | } |
| 7160 | setlightfreq(gspca_dev); |
| 7161 | |
| 7162 | switch (sd->sensor) { |
Jean-Francois Moine | 3d22118 | 2009-01-19 15:18:44 -0300 | [diff] [blame] | 7163 | case SENSOR_ADCM2700: |
| 7164 | reg_w(dev, 0x09, 0x01ad); /* (from win traces) */ |
| 7165 | reg_w(dev, 0x15, 0x01ae); |
| 7166 | reg_w(dev, 0x02, 0x0180); |
| 7167 | /* ms-win + */ |
| 7168 | reg_w(dev, 0x40, 0x0117); |
| 7169 | break; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7170 | case SENSOR_GC0305: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7171 | reg_w(dev, 0x09, 0x01ad); /* (from win traces) */ |
| 7172 | reg_w(dev, 0x15, 0x01ae); |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 7173 | /* fall thru */ |
| 7174 | case SENSOR_PAS202B: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7175 | case SENSOR_PO2030: |
Jean-Francois Moine | 7320d6b | 2008-12-08 06:41:04 -0300 | [diff] [blame] | 7176 | /* reg_w(dev, 0x40, ZC3XX_R117_GGAIN); * (from win traces) */ |
| 7177 | reg_r(gspca_dev, 0x0180); |
| 7178 | break; |
| 7179 | case SENSOR_OV7620: |
| 7180 | reg_w(dev, 0x09, 0x01ad); |
| 7181 | reg_w(dev, 0x15, 0x01ae); |
| 7182 | i2c_read(gspca_dev, 0x13); /*fixme: returns 0xa3 */ |
| 7183 | i2c_write(gspca_dev, 0x13, 0xa3, 0x00); |
| 7184 | /*fixme: returned value to send? */ |
| 7185 | reg_w(dev, 0x40, 0x0117); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7186 | reg_r(gspca_dev, 0x0180); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7187 | break; |
| 7188 | } |
| 7189 | |
| 7190 | setautogain(gspca_dev); |
| 7191 | switch (sd->sensor) { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7192 | case SENSOR_PO2030: |
| 7193 | msleep(500); |
Jean-Francois Moine | 739570b | 2008-07-14 09:38:29 -0300 | [diff] [blame] | 7194 | reg_r(gspca_dev, 0x0008); |
| 7195 | reg_r(gspca_dev, 0x0007); |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 7196 | /*fall thru*/ |
| 7197 | case SENSOR_PAS202B: |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7198 | reg_w(dev, 0x00, 0x0007); /* (from win traces) */ |
Jean-Francois Moine | c675e79 | 2009-01-26 05:29:06 -0300 | [diff] [blame] | 7199 | reg_w(dev, 0x02, ZC3XX_R008_CLOCKSETTING); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7200 | break; |
| 7201 | } |
Jean-Francois Moine | 72ab97c | 2008-09-20 06:39:08 -0300 | [diff] [blame] | 7202 | return 0; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7203 | } |
| 7204 | |
Jean-Francois Moine | 98522a7 | 2008-11-18 06:33:08 -0300 | [diff] [blame] | 7205 | /* called on streamoff with alt 0 and on disconnect */ |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7206 | static void sd_stop0(struct gspca_dev *gspca_dev) |
| 7207 | { |
| 7208 | struct sd *sd = (struct sd *) gspca_dev; |
| 7209 | |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 7210 | kfree(sd->jpeg_hdr); |
Jean-Francois Moine | 98522a7 | 2008-11-18 06:33:08 -0300 | [diff] [blame] | 7211 | if (!gspca_dev->present) |
| 7212 | return; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7213 | send_unknown(gspca_dev->dev, sd->sensor); |
| 7214 | } |
| 7215 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7216 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
| 7217 | struct gspca_frame *frame, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7218 | __u8 *data, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7219 | int len) |
| 7220 | { |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 7221 | struct sd *sd = (struct sd *) gspca_dev; |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7222 | |
| 7223 | if (data[0] == 0xff && data[1] == 0xd8) { /* start of frame */ |
| 7224 | frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, |
| 7225 | data, 0); |
| 7226 | /* put the JPEG header in the new frame */ |
Jean-Francois Moine | 71cb276 | 2009-03-03 05:33:41 -0300 | [diff] [blame] | 7227 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, |
| 7228 | sd->jpeg_hdr, JPEG_HDR_SZ); |
| 7229 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7230 | /* remove the webcam's header: |
| 7231 | * ff d8 ff fe 00 0e 00 00 ss ss 00 01 ww ww hh hh pp pp |
| 7232 | * - 'ss ss' is the frame sequence number (BE) |
| 7233 | * - 'ww ww' and 'hh hh' are the window dimensions (BE) |
| 7234 | * - 'pp pp' is the packet sequence number (BE) |
| 7235 | */ |
| 7236 | data += 18; |
| 7237 | len -= 18; |
| 7238 | } |
| 7239 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); |
| 7240 | } |
| 7241 | |
| 7242 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) |
| 7243 | { |
| 7244 | struct sd *sd = (struct sd *) gspca_dev; |
| 7245 | |
| 7246 | sd->brightness = val; |
| 7247 | if (gspca_dev->streaming) |
| 7248 | setbrightness(gspca_dev); |
| 7249 | return 0; |
| 7250 | } |
| 7251 | |
| 7252 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val) |
| 7253 | { |
| 7254 | struct sd *sd = (struct sd *) gspca_dev; |
| 7255 | |
| 7256 | *val = sd->brightness; |
| 7257 | return 0; |
| 7258 | } |
| 7259 | |
| 7260 | static int sd_setcontrast(struct gspca_dev *gspca_dev, __s32 val) |
| 7261 | { |
| 7262 | struct sd *sd = (struct sd *) gspca_dev; |
| 7263 | |
| 7264 | sd->contrast = val; |
| 7265 | if (gspca_dev->streaming) |
| 7266 | setcontrast(gspca_dev); |
| 7267 | return 0; |
| 7268 | } |
| 7269 | |
| 7270 | static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val) |
| 7271 | { |
| 7272 | struct sd *sd = (struct sd *) gspca_dev; |
| 7273 | |
| 7274 | *val = sd->contrast; |
| 7275 | return 0; |
| 7276 | } |
| 7277 | |
| 7278 | static int sd_setautogain(struct gspca_dev *gspca_dev, __s32 val) |
| 7279 | { |
| 7280 | struct sd *sd = (struct sd *) gspca_dev; |
| 7281 | |
| 7282 | sd->autogain = val; |
| 7283 | if (gspca_dev->streaming) |
| 7284 | setautogain(gspca_dev); |
| 7285 | return 0; |
| 7286 | } |
| 7287 | |
| 7288 | static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val) |
| 7289 | { |
| 7290 | struct sd *sd = (struct sd *) gspca_dev; |
| 7291 | |
| 7292 | *val = sd->autogain; |
| 7293 | return 0; |
| 7294 | } |
| 7295 | |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7296 | static int sd_setgamma(struct gspca_dev *gspca_dev, __s32 val) |
| 7297 | { |
| 7298 | struct sd *sd = (struct sd *) gspca_dev; |
| 7299 | |
| 7300 | sd->gamma = val; |
| 7301 | if (gspca_dev->streaming) |
| 7302 | setcontrast(gspca_dev); |
| 7303 | return 0; |
| 7304 | } |
| 7305 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7306 | static int sd_getgamma(struct gspca_dev *gspca_dev, __s32 *val) |
| 7307 | { |
| 7308 | struct sd *sd = (struct sd *) gspca_dev; |
| 7309 | |
| 7310 | *val = sd->gamma; |
| 7311 | return 0; |
| 7312 | } |
| 7313 | |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7314 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val) |
| 7315 | { |
| 7316 | struct sd *sd = (struct sd *) gspca_dev; |
| 7317 | |
| 7318 | sd->lightfreq = val; |
| 7319 | if (gspca_dev->streaming) |
| 7320 | setlightfreq(gspca_dev); |
| 7321 | return 0; |
| 7322 | } |
| 7323 | |
| 7324 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val) |
| 7325 | { |
| 7326 | struct sd *sd = (struct sd *) gspca_dev; |
| 7327 | |
| 7328 | *val = sd->lightfreq; |
| 7329 | return 0; |
| 7330 | } |
| 7331 | |
| 7332 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val) |
| 7333 | { |
| 7334 | struct sd *sd = (struct sd *) gspca_dev; |
| 7335 | |
| 7336 | sd->sharpness = val; |
| 7337 | if (gspca_dev->streaming) |
| 7338 | setsharpness(gspca_dev); |
| 7339 | return 0; |
| 7340 | } |
| 7341 | |
| 7342 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val) |
| 7343 | { |
| 7344 | struct sd *sd = (struct sd *) gspca_dev; |
| 7345 | |
| 7346 | *val = sd->sharpness; |
| 7347 | return 0; |
| 7348 | } |
| 7349 | |
| 7350 | static int sd_querymenu(struct gspca_dev *gspca_dev, |
| 7351 | struct v4l2_querymenu *menu) |
| 7352 | { |
| 7353 | switch (menu->id) { |
| 7354 | case V4L2_CID_POWER_LINE_FREQUENCY: |
| 7355 | switch (menu->index) { |
| 7356 | case 0: /* V4L2_CID_POWER_LINE_FREQUENCY_DISABLED */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7357 | strcpy((char *) menu->name, "NoFliker"); |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7358 | return 0; |
| 7359 | case 1: /* V4L2_CID_POWER_LINE_FREQUENCY_50HZ */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7360 | strcpy((char *) menu->name, "50 Hz"); |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7361 | return 0; |
| 7362 | case 2: /* V4L2_CID_POWER_LINE_FREQUENCY_60HZ */ |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7363 | strcpy((char *) menu->name, "60 Hz"); |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7364 | return 0; |
| 7365 | } |
| 7366 | break; |
| 7367 | } |
| 7368 | return -EINVAL; |
| 7369 | } |
| 7370 | |
Jean-Francois Moine | 77ac0ba | 2009-03-02 06:40:52 -0300 | [diff] [blame] | 7371 | static int sd_set_jcomp(struct gspca_dev *gspca_dev, |
| 7372 | struct v4l2_jpegcompression *jcomp) |
| 7373 | { |
| 7374 | struct sd *sd = (struct sd *) gspca_dev; |
| 7375 | |
| 7376 | if (jcomp->quality < QUALITY_MIN) |
| 7377 | sd->quality = QUALITY_MIN; |
| 7378 | else if (jcomp->quality > QUALITY_MAX) |
| 7379 | sd->quality = QUALITY_MAX; |
| 7380 | else |
| 7381 | sd->quality = jcomp->quality; |
| 7382 | if (gspca_dev->streaming) |
| 7383 | jpeg_set_qual(sd->jpeg_hdr, sd->quality); |
| 7384 | return 0; |
| 7385 | } |
| 7386 | |
| 7387 | static int sd_get_jcomp(struct gspca_dev *gspca_dev, |
| 7388 | struct v4l2_jpegcompression *jcomp) |
| 7389 | { |
| 7390 | struct sd *sd = (struct sd *) gspca_dev; |
| 7391 | |
| 7392 | memset(jcomp, 0, sizeof *jcomp); |
| 7393 | jcomp->quality = sd->quality; |
| 7394 | jcomp->jpeg_markers = V4L2_JPEG_MARKER_DHT |
| 7395 | | V4L2_JPEG_MARKER_DQT; |
| 7396 | return 0; |
| 7397 | } |
| 7398 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7399 | static const struct sd_desc sd_desc = { |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7400 | .name = MODULE_NAME, |
| 7401 | .ctrls = sd_ctrls, |
Mauro Carvalho Chehab | d6f76b9 | 2009-07-22 00:02:29 -0300 | [diff] [blame] | 7402 | .nctrls = ARRAY_SIZE(sd_ctrls), |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7403 | .config = sd_config, |
Jean-Francois Moine | 012d6b0 | 2008-09-03 17:12:16 -0300 | [diff] [blame] | 7404 | .init = sd_init, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7405 | .start = sd_start, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7406 | .stop0 = sd_stop0, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7407 | .pkt_scan = sd_pkt_scan, |
Jean-Francois Moine | 6a7eba2 | 2008-06-30 15:50:11 -0300 | [diff] [blame] | 7408 | .querymenu = sd_querymenu, |
Jean-Francois Moine | 77ac0ba | 2009-03-02 06:40:52 -0300 | [diff] [blame] | 7409 | .get_jcomp = sd_get_jcomp, |
| 7410 | .set_jcomp = sd_set_jcomp, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7411 | }; |
| 7412 | |
Jean-Francois Moine | a5ae206 | 2008-07-04 11:16:16 -0300 | [diff] [blame] | 7413 | static const __devinitdata struct usb_device_id device_table[] = { |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7414 | {USB_DEVICE(0x041e, 0x041e)}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7415 | {USB_DEVICE(0x041e, 0x4017)}, |
Hans de Goede | d6db35e | 2008-09-03 17:12:13 -0300 | [diff] [blame] | 7416 | {USB_DEVICE(0x041e, 0x401c), .driver_info = SENSOR_PAS106}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7417 | {USB_DEVICE(0x041e, 0x401e)}, |
| 7418 | {USB_DEVICE(0x041e, 0x401f)}, |
Hans de Goede | 222a07f | 2008-09-03 17:12:20 -0300 | [diff] [blame] | 7419 | {USB_DEVICE(0x041e, 0x4022)}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7420 | {USB_DEVICE(0x041e, 0x4029)}, |
Hans de Goede | d6db35e | 2008-09-03 17:12:13 -0300 | [diff] [blame] | 7421 | {USB_DEVICE(0x041e, 0x4034), .driver_info = SENSOR_PAS106}, |
| 7422 | {USB_DEVICE(0x041e, 0x4035), .driver_info = SENSOR_PAS106}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7423 | {USB_DEVICE(0x041e, 0x4036)}, |
| 7424 | {USB_DEVICE(0x041e, 0x403a)}, |
Hans de Goede | d6db35e | 2008-09-03 17:12:13 -0300 | [diff] [blame] | 7425 | {USB_DEVICE(0x041e, 0x4051), .driver_info = SENSOR_TAS5130C_VF0250}, |
| 7426 | {USB_DEVICE(0x041e, 0x4053), .driver_info = SENSOR_TAS5130C_VF0250}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7427 | {USB_DEVICE(0x0458, 0x7007)}, |
| 7428 | {USB_DEVICE(0x0458, 0x700c)}, |
| 7429 | {USB_DEVICE(0x0458, 0x700f)}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7430 | {USB_DEVICE(0x0461, 0x0a00)}, |
Fabio Rossi | 88a40cf | 2008-12-26 14:41:48 -0300 | [diff] [blame] | 7431 | {USB_DEVICE(0x046d, 0x089d), .driver_info = SENSOR_MC501CB}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7432 | {USB_DEVICE(0x046d, 0x08a0)}, |
| 7433 | {USB_DEVICE(0x046d, 0x08a1)}, |
| 7434 | {USB_DEVICE(0x046d, 0x08a2)}, |
| 7435 | {USB_DEVICE(0x046d, 0x08a3)}, |
| 7436 | {USB_DEVICE(0x046d, 0x08a6)}, |
| 7437 | {USB_DEVICE(0x046d, 0x08a7)}, |
| 7438 | {USB_DEVICE(0x046d, 0x08a9)}, |
| 7439 | {USB_DEVICE(0x046d, 0x08aa)}, |
| 7440 | {USB_DEVICE(0x046d, 0x08ac)}, |
| 7441 | {USB_DEVICE(0x046d, 0x08ad)}, |
Hans de Goede | 222a07f | 2008-09-03 17:12:20 -0300 | [diff] [blame] | 7442 | #if !defined CONFIG_USB_ZC0301 && !defined CONFIG_USB_ZC0301_MODULE |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7443 | {USB_DEVICE(0x046d, 0x08ae)}, |
Jean-Francois Moine | c41492c | 2008-07-07 08:31:16 -0300 | [diff] [blame] | 7444 | #endif |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7445 | {USB_DEVICE(0x046d, 0x08af)}, |
| 7446 | {USB_DEVICE(0x046d, 0x08b9)}, |
| 7447 | {USB_DEVICE(0x046d, 0x08d7)}, |
| 7448 | {USB_DEVICE(0x046d, 0x08d9)}, |
| 7449 | {USB_DEVICE(0x046d, 0x08d8)}, |
| 7450 | {USB_DEVICE(0x046d, 0x08da)}, |
Hans de Goede | d6db35e | 2008-09-03 17:12:13 -0300 | [diff] [blame] | 7451 | {USB_DEVICE(0x046d, 0x08dd), .driver_info = SENSOR_MC501CB}, |
| 7452 | {USB_DEVICE(0x0471, 0x0325), .driver_info = SENSOR_PAS106}, |
| 7453 | {USB_DEVICE(0x0471, 0x0326), .driver_info = SENSOR_PAS106}, |
| 7454 | {USB_DEVICE(0x0471, 0x032d), .driver_info = SENSOR_PAS106}, |
| 7455 | {USB_DEVICE(0x0471, 0x032e), .driver_info = SENSOR_PAS106}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7456 | {USB_DEVICE(0x055f, 0xc005)}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7457 | {USB_DEVICE(0x055f, 0xd003)}, |
| 7458 | {USB_DEVICE(0x055f, 0xd004)}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7459 | {USB_DEVICE(0x0698, 0x2003)}, |
Hans de Goede | 222a07f | 2008-09-03 17:12:20 -0300 | [diff] [blame] | 7460 | {USB_DEVICE(0x0ac8, 0x0301), .driver_info = SENSOR_PAS106}, |
Douglas Schilling Landgraf | d99819d | 2009-03-26 05:10:55 -0300 | [diff] [blame] | 7461 | {USB_DEVICE(0x0ac8, 0x0302), .driver_info = SENSOR_PAS106}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7462 | {USB_DEVICE(0x0ac8, 0x301b)}, |
| 7463 | {USB_DEVICE(0x0ac8, 0x303b)}, |
Hans de Goede | d6db35e | 2008-09-03 17:12:13 -0300 | [diff] [blame] | 7464 | {USB_DEVICE(0x0ac8, 0x305b), .driver_info = SENSOR_TAS5130C_VF0250}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7465 | {USB_DEVICE(0x0ac8, 0x307b)}, |
| 7466 | {USB_DEVICE(0x10fd, 0x0128)}, |
Hans de Goede | 222a07f | 2008-09-03 17:12:20 -0300 | [diff] [blame] | 7467 | {USB_DEVICE(0x10fd, 0x804d)}, |
Jean-Francois Moine | 9d64fdb | 2008-07-25 08:53:03 -0300 | [diff] [blame] | 7468 | {USB_DEVICE(0x10fd, 0x8050)}, |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7469 | {} /* end of entry */ |
| 7470 | }; |
| 7471 | #undef DVNAME |
| 7472 | MODULE_DEVICE_TABLE(usb, device_table); |
| 7473 | |
| 7474 | /* -- device connect -- */ |
| 7475 | static int sd_probe(struct usb_interface *intf, |
| 7476 | const struct usb_device_id *id) |
| 7477 | { |
| 7478 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
| 7479 | THIS_MODULE); |
| 7480 | } |
| 7481 | |
| 7482 | /* USB driver */ |
| 7483 | static struct usb_driver sd_driver = { |
| 7484 | .name = MODULE_NAME, |
| 7485 | .id_table = device_table, |
| 7486 | .probe = sd_probe, |
| 7487 | .disconnect = gspca_disconnect, |
Jean-Francois Moine | 6a70974 | 2008-09-03 16:48:10 -0300 | [diff] [blame] | 7488 | #ifdef CONFIG_PM |
| 7489 | .suspend = gspca_suspend, |
| 7490 | .resume = gspca_resume, |
| 7491 | #endif |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7492 | }; |
| 7493 | |
| 7494 | static int __init sd_mod_init(void) |
| 7495 | { |
Alexey Klimov | f69e952 | 2009-01-01 13:02:07 -0300 | [diff] [blame] | 7496 | int ret; |
| 7497 | ret = usb_register(&sd_driver); |
| 7498 | if (ret < 0) |
Alexey Klimov | e6b1484 | 2009-01-01 13:04:58 -0300 | [diff] [blame] | 7499 | return ret; |
Jean-Francois Moine | 63fc4a0 | 2008-07-21 05:42:17 -0300 | [diff] [blame] | 7500 | PDEBUG(D_PROBE, "registered"); |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7501 | return 0; |
| 7502 | } |
| 7503 | |
| 7504 | static void __exit sd_mod_exit(void) |
| 7505 | { |
| 7506 | usb_deregister(&sd_driver); |
| 7507 | PDEBUG(D_PROBE, "deregistered"); |
| 7508 | } |
| 7509 | |
| 7510 | module_init(sd_mod_init); |
| 7511 | module_exit(sd_mod_exit); |
| 7512 | |
Jean-Francois Moine | d43fa32 | 2008-06-12 10:58:58 -0300 | [diff] [blame] | 7513 | module_param(force_sensor, int, 0644); |
| 7514 | MODULE_PARM_DESC(force_sensor, |
| 7515 | "Force sensor. Only for experts!!!"); |