diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_po1030.h | 76 |
1 files changed, 37 insertions, 39 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_po1030.h b/drivers/media/video/gspca/m5602/m5602_po1030.h index 98ef9d05e452..fb0accfa77a4 100644 --- a/drivers/media/video/gspca/m5602/m5602_po1030.h +++ b/drivers/media/video/gspca/m5602/m5602_po1030.h | |||
@@ -215,40 +215,6 @@ static const unsigned char init_po1030[][3] = | |||
215 | {BRIDGE, M5602_XB_GPIO_DAT, 0x00}, | 215 | {BRIDGE, M5602_XB_GPIO_DAT, 0x00}, |
216 | 216 | ||
217 | {SENSOR, PO1030_AUTOCTRL2, 0x04}, | 217 | {SENSOR, PO1030_AUTOCTRL2, 0x04}, |
218 | }; | ||
219 | |||
220 | static const unsigned char start_po1030[][3] = | ||
221 | { | ||
222 | {BRIDGE, M5602_XB_GPIO_DIR, 0x05}, | ||
223 | {BRIDGE, M5602_XB_GPIO_DAT, 0x00}, | ||
224 | {BRIDGE, M5602_XB_GPIO_EN_H, 0x06}, | ||
225 | {BRIDGE, M5602_XB_GPIO_EN_L, 0x00}, | ||
226 | |||
227 | {SENSOR, PO1030_AUTOCTRL2, 0x04}, | ||
228 | |||
229 | /* Set the width to 751 */ | ||
230 | {SENSOR, PO1030_FRAMEWIDTH_H, 0x02}, | ||
231 | {SENSOR, PO1030_FRAMEWIDTH_L, 0xef}, | ||
232 | |||
233 | /* Set the height to 540 */ | ||
234 | {SENSOR, PO1030_FRAMEHEIGHT_H, 0x02}, | ||
235 | {SENSOR, PO1030_FRAMEHEIGHT_L, 0x1c}, | ||
236 | |||
237 | /* Set the x window to 1 */ | ||
238 | {SENSOR, PO1030_WINDOWX_H, 0x00}, | ||
239 | {SENSOR, PO1030_WINDOWX_L, 0x01}, | ||
240 | |||
241 | /* Set the y window to 1 */ | ||
242 | {SENSOR, PO1030_WINDOWY_H, 0x00}, | ||
243 | {SENSOR, PO1030_WINDOWY_L, 0x01}, | ||
244 | |||
245 | /* Set the window width to 647 */ | ||
246 | {SENSOR, PO1030_WINDOWWIDTH_H, 0x02}, | ||
247 | {SENSOR, PO1030_WINDOWWIDTH_L, 0x87}, | ||
248 | |||
249 | /* Set the window height to 483 */ | ||
250 | {SENSOR, PO1030_WINDOWHEIGHT_H, 0x01}, | ||
251 | {SENSOR, PO1030_WINDOWHEIGHT_L, 0xe3}, | ||
252 | 218 | ||
253 | {SENSOR, PO1030_OUTFORMCTRL2, PO1030_RAW_RGB_BAYER}, | 219 | {SENSOR, PO1030_OUTFORMCTRL2, PO1030_RAW_RGB_BAYER}, |
254 | {SENSOR, PO1030_AUTOCTRL1, PO1030_WEIGHT_WIN_2X}, | 220 | {SENSOR, PO1030_AUTOCTRL1, PO1030_WEIGHT_WIN_2X}, |
@@ -277,6 +243,43 @@ static const unsigned char start_po1030[][3] = | |||
277 | {SENSOR, PO1030_GC6, 0xc0}, | 243 | {SENSOR, PO1030_GC6, 0xc0}, |
278 | {SENSOR, PO1030_GC7, 0xff}, | 244 | {SENSOR, PO1030_GC7, 0xff}, |
279 | 245 | ||
246 | /* Set the width to 751 */ | ||
247 | {SENSOR, PO1030_FRAMEWIDTH_H, 0x02}, | ||
248 | {SENSOR, PO1030_FRAMEWIDTH_L, 0xef}, | ||
249 | |||
250 | /* Set the height to 540 */ | ||
251 | {SENSOR, PO1030_FRAMEHEIGHT_H, 0x02}, | ||
252 | {SENSOR, PO1030_FRAMEHEIGHT_L, 0x1c}, | ||
253 | |||
254 | /* Set the x window to 1 */ | ||
255 | {SENSOR, PO1030_WINDOWX_H, 0x00}, | ||
256 | {SENSOR, PO1030_WINDOWX_L, 0x01}, | ||
257 | |||
258 | /* Set the y window to 1 */ | ||
259 | {SENSOR, PO1030_WINDOWY_H, 0x00}, | ||
260 | {SENSOR, PO1030_WINDOWY_L, 0x01}, | ||
261 | |||
262 | /* with a very low lighted environment increase the exposure but | ||
263 | * decrease the FPS (Frame Per Second) */ | ||
264 | {BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00}, | ||
265 | {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0}, | ||
266 | |||
267 | {BRIDGE, M5602_XB_GPIO_DIR, 0x05}, | ||
268 | {BRIDGE, M5602_XB_GPIO_DAT, 0x00}, | ||
269 | {BRIDGE, M5602_XB_GPIO_EN_H, 0x06}, | ||
270 | {BRIDGE, M5602_XB_GPIO_EN_L, 0x00}, | ||
271 | }; | ||
272 | |||
273 | static const unsigned char start_po1030[][3] = | ||
274 | { | ||
275 | /* Set the window width to 647 */ | ||
276 | {SENSOR, PO1030_WINDOWWIDTH_H, 0x02}, | ||
277 | {SENSOR, PO1030_WINDOWWIDTH_L, 0x87}, | ||
278 | |||
279 | /* Set the window height to 483 */ | ||
280 | {SENSOR, PO1030_WINDOWHEIGHT_H, 0x01}, | ||
281 | {SENSOR, PO1030_WINDOWHEIGHT_L, 0xe3}, | ||
282 | |||
280 | {BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06}, | 283 | {BRIDGE, M5602_XB_SEN_CLK_DIV, 0x06}, |
281 | {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0}, | 284 | {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0}, |
282 | {BRIDGE, M5602_XB_ADC_CTRL, 0xc0}, | 285 | {BRIDGE, M5602_XB_ADC_CTRL, 0xc0}, |
@@ -299,11 +302,6 @@ static const unsigned char start_po1030[][3] = | |||
299 | {BRIDGE, M5602_XB_HSYNC_PARA, 0x02}, | 302 | {BRIDGE, M5602_XB_HSYNC_PARA, 0x02}, |
300 | {BRIDGE, M5602_XB_HSYNC_PARA, 0x7e}, | 303 | {BRIDGE, M5602_XB_HSYNC_PARA, 0x7e}, |
301 | {BRIDGE, M5602_XB_SIG_INI, 0x00}, | 304 | {BRIDGE, M5602_XB_SIG_INI, 0x00}, |
302 | |||
303 | /* with a very low lighted environment increase the exposure but | ||
304 | * decrease the FPS (Frame Per Second) */ | ||
305 | {BRIDGE, M5602_XB_SEN_CLK_DIV, 0x00}, | ||
306 | {BRIDGE, M5602_XB_SEN_CLK_CTRL, 0xb0}, | ||
307 | }; | 305 | }; |
308 | 306 | ||
309 | #endif | 307 | #endif |