Lines Matching +full:0 +full:x35

20 #define OV534_REG_ADDRESS	0xf1	/* sensor address */
21 #define OV534_REG_SUBADDR 0xf2
22 #define OV534_REG_WRITE 0xf3
23 #define OV534_REG_READ 0xf4
24 #define OV534_REG_OPERATION 0xf5
25 #define OV534_REG_STATUS 0xf6
27 #define OV534_OP_WRITE_3 0x37
28 #define OV534_OP_WRITE_2 0x33
29 #define OV534_OP_READ_2 0xf9
54 #define QVGA_MODE 0
98 ov361x_2048 = 0,
108 {0x800, 0x600, V4L2_PIX_FMT_SBGGR8, V4L2_FIELD_NONE,
109 .bytesperline = 0x800,
110 .sizeimage = 0x800 * 0x600,
135 {0x12, 0x80},
136 {0x13, 0xcf},
137 {0x14, 0x40},
138 {0x15, 0x00},
139 {0x01, 0x80},
140 {0x02, 0x80},
141 {0x04, 0x70},
142 {0x0d, 0x40},
143 {0x0f, 0x47},
144 {0x11, 0x81},
145 {0x32, 0x36},
146 {0x33, 0x0c},
147 {0x34, 0x00},
148 {0x35, 0x90},
149 {0x12, 0x00},
150 {0x17, 0x10},
151 {0x18, 0x90},
152 {0x19, 0x00},
153 {0x1a, 0xc0},
156 {0xf1, 0x60},
157 {0x88, 0x00},
158 {0x89, 0x08},
159 {0x8a, 0x00},
160 {0x8b, 0x06},
161 {0x8c, 0x01},
162 {0x8d, 0x10},
163 {0x1c, 0x00},
164 {0x1d, 0x48},
165 {0x1d, 0x00},
166 {0x1d, 0xff},
167 {0x1c, 0x0a},
168 {0x1d, 0x2e},
169 {0x1d, 0x1e},
173 {0x12, 0x80},
174 {0x13, 0xcf},
175 {0x14, 0x40},
176 {0x15, 0x00},
177 {0x01, 0x80},
178 {0x02, 0x80},
179 {0x04, 0x70},
180 {0x0d, 0x40},
181 {0x0f, 0x47},
182 {0x11, 0x81},
183 {0x32, 0x36},
184 {0x33, 0x0C},
185 {0x34, 0x00},
186 {0x35, 0x90},
187 {0x12, 0x00},
188 {0x17, 0x10},
189 {0x18, 0x90},
190 {0x19, 0x00},
191 {0x1a, 0xc0},
194 {0xf1, 0x60}, /* Hsize[7:0] */
195 {0x88, 0x00}, /* Hsize[15:8] Write Only, can't read */
196 {0x89, 0x08}, /* Vsize[7:0] */
197 {0x8a, 0x00}, /* Vsize[15:8] Write Only, can't read */
198 {0x8b, 0x06}, /* for Iso */
199 {0x8c, 0x01}, /* RAW input */
200 {0x8d, 0x10},
201 {0x1c, 0x00}, /* RAW output, Iso transfer */
202 {0x1d, 0x48},
203 {0x1d, 0x00},
204 {0x1d, 0xff},
205 {0x1c, 0x0a}, /* turn off JPEG, Iso mode */
206 {0x1d, 0x2e}, /* for Iso */
207 {0x1d, 0x1e},
211 {0x12, 0x80},
212 {0x13, 0xcf},
213 {0x14, 0x40},
214 {0x15, 0x00},
215 {0x01, 0x80},
216 {0x02, 0x80},
217 {0x04, 0x70},
218 {0x0d, 0x40},
219 {0x0f, 0x47},
220 {0x11, 0x81},
221 {0x32, 0x36},
222 {0x33, 0x0C},
223 {0x34, 0x00},
224 {0x35, 0x90},
225 {0x12, 0x40},
226 {0x17, 0x1f},
227 {0x18, 0x5f},
228 {0x19, 0x00},
229 {0x1a, 0x68},
232 {0xf1, 0x60}, /* Hsize[7:0] */
233 {0x88, 0x00}, /* Hsize[15:8] Write Only, can't read */
234 {0x89, 0x04}, /* Vsize[7:0] */
235 {0x8a, 0x00}, /* Vsize[15:8] Write Only, can't read */
236 {0x8b, 0x03}, /* for Iso */
237 {0x8c, 0x01}, /* RAW input */
238 {0x8d, 0x10},
239 {0x1c, 0x00}, /* RAW output, Iso transfer */
240 {0x1d, 0x48},
241 {0x1d, 0x00},
242 {0x1d, 0xff},
243 {0x1c, 0x0a}, /* turn off JPEG, Iso mode */
244 {0x1d, 0x2e}, /* for Iso */
245 {0x1d, 0x1e},
249 {0x12, 0x80},
250 {0x13, 0xcf},
251 {0x14, 0x40},
252 {0x15, 0x00},
253 {0x01, 0x80},
254 {0x02, 0x80},
255 {0x04, 0x70},
256 {0x0d, 0x40},
257 {0x0f, 0x47},
258 {0x11, 0x81},
259 {0x32, 0x36},
260 {0x33, 0x0C},
261 {0x34, 0x00},
262 {0x35, 0x90},
263 {0x12, 0x40},
264 {0x17, 0x1f},
265 {0x18, 0x5f},
266 {0x19, 0x00},
267 {0x1a, 0x68},
271 {0xf1, 0x60}, /* Hsize[7:0]*/
272 {0x88, 0x00}, /* Hsize[15:8] Write Only, can't read */
273 {0x89, 0x04}, /* Vsize[7:0] */
274 {0x8a, 0x00}, /* Vsize[15:8] Write Only, can't read */
275 {0x8b, 0x03}, /* for Iso */
276 {0x8c, 0x01}, /* RAW input */
277 {0x8d, 0x10},
278 {0x1c, 0x00}, /* RAW output, Iso transfer */
279 {0x1d, 0x48},
280 {0x1d, 0x00},
281 {0x1d, 0xff},
282 {0x1c, 0x0a}, /* turn off JPEG, Iso mode */
283 {0x1d, 0x2e}, /* for Iso */
284 {0x1d, 0x1e},
288 {0x12, 0x80},
289 {0x13, 0xcf},
290 {0x14, 0x40},
291 {0x15, 0x00},
292 {0x01, 0x80},
293 {0x02, 0x80},
294 {0x04, 0x70},
295 {0x0d, 0x40},
296 {0x0f, 0x47},
297 {0x11, 0x81},
298 {0x32, 0x36},
299 {0x33, 0x0C},
300 {0x34, 0x00},
301 {0x35, 0x90},
302 {0x12, 0x40},
303 {0x17, 0x1f},
304 {0x18, 0x5f},
305 {0x19, 0x00},
306 {0x1a, 0x68},
310 {0xf1, 0x60}, /* Hsize[7:0] */
311 {0x88, 0x00}, /* Hsize[15:8] Write Only, can't read */
312 {0x89, 0x04}, /* Vsize[7:0] */
313 {0x8a, 0x00}, /* Vsize[15:8] Write Only, can't read */
314 {0x8b, 0x03}, /* for Iso */
315 {0x8c, 0x01}, /* RAW input */
316 {0x8d, 0x10},
317 {0x1c, 0x00}, /* RAW output, Iso transfer; */
318 {0x1d, 0x48},
319 {0x1d, 0x00},
320 {0x1d, 0xff},
321 {0x1c, 0x0a}, /* turn off JPEG, Iso mode */
322 {0x1d, 0x2e}, /* for Iso */
323 {0x1d, 0x1e},
327 {0x12, 0x80},
328 {0x13, 0xcf},
329 {0x14, 0x40},
330 {0x15, 0x00},
331 {0x01, 0x80},
332 {0x02, 0x80},
333 {0x04, 0x70},
334 {0x0d, 0x40},
335 {0x0f, 0x47},
336 {0x11, 0x81},
337 {0x32, 0x36},
338 {0x33, 0x0C},
339 {0x34, 0x00},
340 {0x35, 0x90},
341 {0x12, 0x40},
342 {0x17, 0x1f},
343 {0x18, 0x5f},
344 {0x19, 0x00},
345 {0x1a, 0x68},
349 {0xf1, 0x60}, /* Hsize[7:0] */
350 {0x88, 0x00}, /* Hsize[15:8] Write Only, can't read */
351 {0x89, 0x04}, /* Vsize[7:0] */
352 {0x8a, 0x00}, /* Vsize[15:8] Write Only, can't read */
353 {0x8b, 0x03}, /* for Iso */
354 {0x8c, 0x01}, /* RAW input */
355 {0x8d, 0x10},
356 {0x1c, 0x00}, /* RAW output, Iso transfer */
357 {0x1d, 0x48},
358 {0x1d, 0x00},
359 {0x1d, 0xff},
360 {0x1c, 0x0a}, /* turn off JPEG, Iso mode */
361 {0x1d, 0x2e}, /* for Iso */
362 {0x1d, 0x1e},
366 {0x88, 0xf8},
367 {0x89, 0xff},
368 {0x76, 0x03},
369 {0x92, 0x03},
370 {0x95, 0x10},
371 {0xe2, 0x00},
372 {0xe7, 0x3e},
373 {0x8d, 0x1c},
374 {0x8e, 0x00},
375 {0x8f, 0x00},
376 {0x1f, 0x00},
377 {0xc3, 0xf9},
378 {0x89, 0xff},
379 {0x88, 0xf8},
380 {0x76, 0x03},
381 {0x92, 0x01},
382 {0x93, 0x18},
383 {0x1c, 0x0a},
384 {0x1d, 0x48},
385 {0xc0, 0x50},
386 {0xc1, 0x3c},
387 {0x34, 0x05},
388 {0xc2, 0x0c},
389 {0xc3, 0xf9},
390 {0x34, 0x05},
391 {0xe7, 0x2e},
392 {0x31, 0xf9},
393 {0x35, 0x02},
394 {0xd9, 0x10},
395 {0x25, 0x42},
396 {0x94, 0x11},
400 {0x12, 0x80}, /* com7 - SSCB reset */
401 {0x00, 0x00}, /* gain */
402 {0x01, 0x80}, /* blue */
403 {0x02, 0x80}, /* red */
404 {0x03, 0x1b}, /* vref */
405 {0x04, 0x03}, /* com1 - exposure low bits */
406 {0x0b, 0x57}, /* ver */
407 {0x0e, 0x61}, /* com5 */
408 {0x0f, 0x42}, /* com6 */
409 {0x11, 0x00}, /* clkrc */
410 {0x12, 0x02}, /* com7 - 15fps VGA YUYV */
411 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
412 {0x14, 0x28}, /* com9 */
413 {0x16, 0x24}, /* reg16 */
414 {0x17, 0x1d}, /* hstart*/
415 {0x18, 0xbd}, /* hstop */
416 {0x19, 0x01}, /* vstrt */
417 {0x1a, 0x81}, /* vstop*/
418 {0x1e, 0x04}, /* mvfp */
419 {0x24, 0x3c}, /* aew */
420 {0x25, 0x36}, /* aeb */
421 {0x26, 0x71}, /* vpt */
422 {0x27, 0x08}, /* bbias */
423 {0x28, 0x08}, /* gbbias */
424 {0x29, 0x15}, /* gr com */
425 {0x2a, 0x00}, /* exhch */
426 {0x2b, 0x00}, /* exhcl */
427 {0x2c, 0x08}, /* rbias */
428 {0x32, 0xff}, /* href */
429 {0x33, 0x00}, /* chlf */
430 {0x34, 0x3f}, /* aref1 */
431 {0x35, 0x00}, /* aref2 */
432 {0x36, 0xf8}, /* aref3 */
433 {0x38, 0x72}, /* adc2 */
434 {0x39, 0x57}, /* aref4 */
435 {0x3a, 0x80}, /* tslb - yuyv */
436 {0x3b, 0xc4}, /* com11 - night mode 1/4 frame rate */
437 {0x3d, 0x99}, /* com13 */
438 {0x3f, 0xc1}, /* edge */
439 {0x40, 0xc0}, /* com15 */
440 {0x41, 0x40}, /* com16 */
441 {0x42, 0xc0}, /* com17 */
442 {0x43, 0x0a}, /* rsvd */
443 {0x44, 0xf0},
444 {0x45, 0x46},
445 {0x46, 0x62},
446 {0x47, 0x2a},
447 {0x48, 0x3c},
448 {0x4a, 0xfc},
449 {0x4b, 0xfc},
450 {0x4c, 0x7f},
451 {0x4d, 0x7f},
452 {0x4e, 0x7f},
453 {0x4f, 0x98}, /* matrix */
454 {0x50, 0x98},
455 {0x51, 0x00},
456 {0x52, 0x28},
457 {0x53, 0x70},
458 {0x54, 0x98},
459 {0x58, 0x1a}, /* matrix coef sign */
460 {0x59, 0x85}, /* AWB control */
461 {0x5a, 0xa9},
462 {0x5b, 0x64},
463 {0x5c, 0x84},
464 {0x5d, 0x53},
465 {0x5e, 0x0e},
466 {0x5f, 0xf0}, /* AWB blue limit */
467 {0x60, 0xf0}, /* AWB red limit */
468 {0x61, 0xf0}, /* AWB green limit */
469 {0x62, 0x00}, /* lcc1 */
470 {0x63, 0x00}, /* lcc2 */
471 {0x64, 0x02}, /* lcc3 */
472 {0x65, 0x16}, /* lcc4 */
473 {0x66, 0x01}, /* lcc5 */
474 {0x69, 0x02}, /* hv */
475 {0x6b, 0x5a}, /* dbvl */
476 {0x6c, 0x04},
477 {0x6d, 0x55},
478 {0x6e, 0x00},
479 {0x6f, 0x9d},
480 {0x70, 0x21}, /* dnsth */
481 {0x71, 0x78},
482 {0x72, 0x00}, /* poidx */
483 {0x73, 0x01}, /* pckdv */
484 {0x74, 0x3a}, /* xindx */
485 {0x75, 0x35}, /* yindx */
486 {0x76, 0x01},
487 {0x77, 0x02},
488 {0x7a, 0x12}, /* gamma curve */
489 {0x7b, 0x08},
490 {0x7c, 0x16},
491 {0x7d, 0x30},
492 {0x7e, 0x5e},
493 {0x7f, 0x72},
494 {0x80, 0x82},
495 {0x81, 0x8e},
496 {0x82, 0x9a},
497 {0x83, 0xa4},
498 {0x84, 0xac},
499 {0x85, 0xb8},
500 {0x86, 0xc3},
501 {0x87, 0xd6},
502 {0x88, 0xe6},
503 {0x89, 0xf2},
504 {0x8a, 0x03},
505 {0x8c, 0x89}, /* com19 */
506 {0x14, 0x28}, /* com9 */
507 {0x90, 0x7d},
508 {0x91, 0x7b},
509 {0x9d, 0x03}, /* lcc6 */
510 {0x9e, 0x04}, /* lcc7 */
511 {0x9f, 0x7a},
512 {0xa0, 0x79},
513 {0xa1, 0x40}, /* aechm */
514 {0xa4, 0x50}, /* com21 */
515 {0xa5, 0x68}, /* com26 */
516 {0xa6, 0x4a}, /* AWB green */
517 {0xa8, 0xc1}, /* refa8 */
518 {0xa9, 0xef}, /* refa9 */
519 {0xaa, 0x92},
520 {0xab, 0x04},
521 {0xac, 0x80}, /* black level control */
522 {0xad, 0x80},
523 {0xae, 0x80},
524 {0xaf, 0x80},
525 {0xb2, 0xf2},
526 {0xb3, 0x20},
527 {0xb4, 0x20}, /* ctrlb4 */
528 {0xb5, 0x00},
529 {0xb6, 0xaf},
530 {0xbb, 0xae},
531 {0xbc, 0x7f}, /* ADC channel offsets */
532 {0xdb, 0x7f},
533 {0xbe, 0x7f},
534 {0xbf, 0x7f},
535 {0xc0, 0xe2},
536 {0xc1, 0xc0},
537 {0xc2, 0x01},
538 {0xc3, 0x4e},
539 {0xc6, 0x85},
540 {0xc7, 0x80}, /* com24 */
541 {0xc9, 0xe0},
542 {0xca, 0xe8},
543 {0xcb, 0xf0},
544 {0xcc, 0xd8},
545 {0xcd, 0xf1},
546 {0x4f, 0x98}, /* matrix */
547 {0x50, 0x98},
548 {0x51, 0x00},
549 {0x52, 0x28},
550 {0x53, 0x70},
551 {0x54, 0x98},
552 {0x58, 0x1a},
553 {0xff, 0x41}, /* read 41, write ff 00 */
554 {0x41, 0x40}, /* com16 */
556 {0xc5, 0x03}, /* 60 Hz banding filter */
557 {0x6a, 0x02}, /* 50 Hz banding filter */
559 {0x12, 0x62}, /* com7 - 30fps VGA YUV */
560 {0x36, 0xfa}, /* aref3 */
561 {0x69, 0x0a}, /* hv */
562 {0x8c, 0x89}, /* com22 */
563 {0x14, 0x28}, /* com9 */
564 {0x3e, 0x0c},
565 {0x41, 0x40}, /* com16 */
566 {0x72, 0x00},
567 {0x73, 0x00},
568 {0x74, 0x3a},
569 {0x75, 0x35},
570 {0x76, 0x01},
571 {0xc7, 0x80},
572 {0x03, 0x12}, /* vref */
573 {0x17, 0x16}, /* hstart */
574 {0x18, 0x02}, /* hstop */
575 {0x19, 0x01}, /* vstrt */
576 {0x1a, 0x3d}, /* vstop */
577 {0x32, 0xff}, /* href */
578 {0xc0, 0xaa},
582 {0x94, 0xaa},
583 {0xf1, 0x60},
584 {0xe5, 0x04},
585 {0xc0, 0x50},
586 {0xc1, 0x3c},
587 {0x8c, 0x00},
588 {0x8d, 0x1c},
589 {0x34, 0x05},
591 {0xc2, 0x0c},
592 {0xc3, 0xf9},
593 {0xda, 0x01},
594 {0x50, 0x00},
595 {0x51, 0xa0},
596 {0x52, 0x3c},
597 {0x53, 0x00},
598 {0x54, 0x00},
599 {0x55, 0x00},
600 {0x57, 0x00},
601 {0x5c, 0x00},
602 {0x5a, 0xa0},
603 {0x5b, 0x78},
604 {0x35, 0x02},
605 {0xd9, 0x10},
606 {0x94, 0x11},
610 {0x3b, 0xc4},
611 {0x1e, 0x04}, /* mvfp */
612 {0x13, 0xe0}, /* com8 */
613 {0x00, 0x00}, /* gain */
614 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
615 {0x11, 0x03}, /* clkrc */
616 {0x6b, 0x5a}, /* dblv */
617 {0x6a, 0x05},
618 {0xc5, 0x07},
619 {0xa2, 0x4b},
620 {0xa3, 0x3e},
621 {0x2d, 0x00},
622 {0xff, 0x42}, /* read 42, write ff 00 */
623 {0x42, 0xc0}, /* com17 */
624 {0x2d, 0x00},
625 {0xff, 0x42}, /* read 42, write ff 00 */
626 {0x42, 0xc1}, /* com17 */
628 {0x3f, 0x01},
629 {0xff, 0x42}, /* read 42, write ff 00 */
630 {0x42, 0xc1}, /* com17 */
632 {0x4f, 0x98}, /* matrix */
633 {0x50, 0x98},
634 {0x51, 0x00},
635 {0x52, 0x28},
636 {0x53, 0x70},
637 {0x54, 0x98},
638 {0x58, 0x1a},
639 {0xff, 0x41}, /* read 41, write ff 00 */
640 {0x41, 0x40}, /* com16 */
642 {0x56, 0x40},
644 {0x55, 0x8f},
646 {0x10, 0x25}, /* aech - exposure high bits */
647 {0xff, 0x13}, /* read 13, write ff 00 */
648 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
652 {0x12, 0x80},
653 {0x09, 0x10},
654 {0x1e, 0x07},
655 {0x5f, 0x18},
656 {0x69, 0x04},
657 {0x65, 0x2a},
658 {0x68, 0x0a},
659 {0x39, 0x28},
660 {0x4d, 0x90},
661 {0xc1, 0x80},
662 {0x0c, 0x30},
663 {0x6d, 0x02},
664 {0x96, 0xf1},
665 {0xbc, 0x68},
666 {0x12, 0x00},
667 {0x3b, 0x00},
668 {0x97, 0x80},
669 {0x17, 0x25},
670 {0x18, 0xa2},
671 {0x19, 0x01},
672 {0x1a, 0xca},
673 {0x03, 0x0a},
674 {0x32, 0x07},
675 {0x98, 0x40}, /*{0x98, 0x00},*/
676 {0x99, 0xA0}, /*{0x99, 0x00},*/
677 {0x9a, 0x01}, /*{0x9a, 0x00},*/
678 {0x57, 0x00},
679 {0x58, 0x78}, /*{0x58, 0xc8},*/
680 {0x59, 0x50}, /*{0x59, 0xa0},*/
681 {0x4c, 0x13},
682 {0x4b, 0x36},
683 {0x3d, 0x3c},
684 {0x3e, 0x03},
685 {0xbd, 0x50}, /*{0xbd, 0xa0},*/
686 {0xbe, 0x78}, /*{0xbe, 0xc8},*/
687 {0x4e, 0x55},
688 {0x4f, 0x55},
689 {0x50, 0x55},
690 {0x51, 0x55},
691 {0x24, 0x55},
692 {0x25, 0x40},
693 {0x26, 0xa1},
694 {0x5c, 0x59},
695 {0x5d, 0x00},
696 {0x11, 0x00},
697 {0x2a, 0x98},
698 {0x2b, 0x06},
699 {0x2d, 0x00},
700 {0x2e, 0x00},
701 {0x13, 0xa5},
702 {0x14, 0x40},
703 {0x4a, 0x00},
704 {0x49, 0xce},
705 {0x22, 0x03},
706 {0x09, 0x00}
710 {0x12, 0x62}, /* com7 - 30fps VGA YUV */
711 {0x36, 0xfa}, /* aref3 */
712 {0x69, 0x0a}, /* hv */
713 {0x8c, 0x89}, /* com22 */
714 {0x14, 0x28}, /* com9 */
715 {0x3e, 0x0c}, /* com14 */
716 {0x41, 0x40}, /* com16 */
717 {0x72, 0x00},
718 {0x73, 0x00},
719 {0x74, 0x3a},
720 {0x75, 0x35},
721 {0x76, 0x01},
722 {0xc7, 0x80}, /* com24 */
723 {0x03, 0x12}, /* vref */
724 {0x17, 0x16}, /* hstart */
725 {0x18, 0x02}, /* hstop */
726 {0x19, 0x01}, /* vstrt */
727 {0x1a, 0x3d}, /* vstop */
728 {0x32, 0xff}, /* href */
729 {0xc0, 0xaa},
733 {0x12, 0x02}, /* com7 - YUYV - VGA 15 full resolution */
734 {0x36, 0xf8}, /* aref3 */
735 {0x69, 0x02}, /* hv */
736 {0x8c, 0x0d}, /* com22 */
737 {0x3e, 0x0c}, /* com14 */
738 {0x41, 0x40}, /* com16 */
739 {0x72, 0x00},
740 {0x73, 0x01},
741 {0x74, 0x3a},
742 {0x75, 0x35},
743 {0x76, 0x01},
744 {0xc7, 0x80}, /* com24 */
745 {0x03, 0x1b}, /* vref */
746 {0x17, 0x1d}, /* hstart */
747 {0x18, 0xbd}, /* hstop */
748 {0x19, 0x01}, /* vstrt */
749 {0x1a, 0x81}, /* vstop */
750 {0x32, 0xff}, /* href */
751 {0xc0, 0xe2},
755 {0x12, 0x02}, /* com7 */
756 {0x36, 0xf8}, /* aref3 */
757 {0x69, 0x02}, /* hv */
758 {0x8c, 0x89}, /* com22 */
759 {0x14, 0x28}, /* com9 */
760 {0x3e, 0x0c}, /* com14 */
761 {0x41, 0x40}, /* com16 */
762 {0x72, 0x00},
763 {0x73, 0x01},
764 {0x74, 0x3a},
765 {0x75, 0x35},
766 {0x76, 0x01},
767 {0xc7, 0x80}, /* com24 */
768 {0x03, 0x1b}, /* vref */
769 {0x17, 0x1d}, /* hstart */
770 {0x18, 0xbd}, /* hstop */
771 {0x19, 0x01}, /* vstrt */
772 {0x1a, 0x81}, /* vstop */
773 {0x32, 0xff}, /* href */
774 {0xc0, 0xe2},
778 {0x12, 0x02}, /* com7 */
779 {0x36, 0xf8}, /* aref3 */
780 {0x69, 0x02}, /* hv */
781 {0x8c, 0x89}, /* com22 */
782 {0x14, 0x28}, /* com9 */
783 {0x3e, 0x0c}, /* com14 */
784 {0x41, 0x40}, /* com16 */
785 {0x72, 0x00},
786 {0x73, 0x01},
787 {0x74, 0x3a},
788 {0x75, 0x35},
789 {0x76, 0x01},
790 {0xc7, 0x80}, /* com24 */
791 {0x03, 0x1b}, /* vref */
792 {0x17, 0x1d}, /* hstart */
793 {0x18, 0x02}, /* hstop */
794 {0x19, 0x01}, /* vstrt */
795 {0x1a, 0x81}, /* vstop */
796 {0x32, 0xff}, /* href */
797 {0xc0, 0xe2},
801 {0x94, 0xaa},
802 {0xf1, 0x60},
803 {0xe5, 0x04},
804 {0xc0, 0x50},
805 {0xc1, 0x3c},
806 {0x8c, 0x00},
807 {0x8d, 0x1c},
808 {0x34, 0x05},
810 {0xc2, 0x4c},
811 {0xc3, 0xf9},
812 {0xda, 0x00},
813 {0x50, 0x00},
814 {0x51, 0xa0},
815 {0x52, 0x78},
816 {0x53, 0x00},
817 {0x54, 0x00},
818 {0x55, 0x00},
819 {0x57, 0x00},
820 {0x5c, 0x00},
821 {0x5a, 0x50},
822 {0x5b, 0x3c},
823 {0x35, 0x02},
824 {0xd9, 0x10},
825 {0x94, 0x11},
829 {0x94, 0xaa},
830 {0xf1, 0x60},
831 {0xe5, 0x04},
832 {0xc0, 0x50},
833 {0xc1, 0x3c},
834 {0x8c, 0x00},
835 {0x8d, 0x1c},
836 {0x34, 0x05},
837 {0xc2, 0x0c},
838 {0xc3, 0xf9},
839 {0xda, 0x01},
840 {0x50, 0x00},
841 {0x51, 0xa0},
842 {0x52, 0x3c},
843 {0x53, 0x00},
844 {0x54, 0x00},
845 {0x55, 0x00},
846 {0x57, 0x00},
847 {0x5c, 0x00},
848 {0x5a, 0xa0},
849 {0x5b, 0x78},
850 {0x35, 0x02},
851 {0xd9, 0x10},
852 {0x94, 0x11},
856 {0x94, 0xaa},
857 {0xf1, 0x60},
858 {0xe5, 0x04},
859 {0xc0, 0xa0},
860 {0xc1, 0x80},
861 {0x8c, 0x00},
862 {0x8d, 0x1c},
863 {0x34, 0x05},
864 {0xc2, 0x4c},
865 {0xc3, 0xf9},
866 {0x50, 0x00},
867 {0x51, 0x40},
868 {0x52, 0x00},
869 {0x53, 0x00},
870 {0x54, 0x00},
871 {0x55, 0x88},
872 {0x57, 0x00},
873 {0x5c, 0x00},
874 {0x5a, 0xc8},
875 {0x5b, 0x96},
876 {0x35, 0x02},
877 {0xd9, 0x10},
878 {0xda, 0x00},
879 {0x94, 0x11},
883 {0x94, 0xaa},
884 {0xf1, 0x60},
885 {0xe5, 0x04},
886 {0xc0, 0xa0},
887 {0xc1, 0x80},
888 {0x8c, 0x00},
889 {0x8d, 0x1c},
890 {0x34, 0x05},
891 {0xc2, 0x4c},
892 {0xc3, 0xf9},
893 {0x50, 0x00},
894 {0x51, 0x40},
895 {0x52, 0x00},
896 {0x53, 0x00},
897 {0x54, 0x00},
898 {0x55, 0x88},
899 {0x57, 0x00},
900 {0x5c, 0x01},
901 {0x5a, 0x00},
902 {0x5b, 0xc0},
903 {0x35, 0x02},
904 {0xd9, 0x10},
905 {0xda, 0x01},
906 {0x94, 0x11},
910 {0x94, 0xaa},
911 {0xf1, 0x60},
912 {0xe5, 0x04},
913 {0xc0, 0xa0},
914 {0xc1, 0x80},
915 {0x8c, 0x00},
916 {0x8d, 0x1c},
917 {0x34, 0x05},
918 {0xc2, 0x0c},
919 {0xc3, 0xf9},
920 {0xda, 0x00},
921 {0x35, 0x02},
922 {0xd9, 0x10},
923 {0x94, 0x11},
927 {0x3b, 0xe4}, /* com11 - night mode 1/4 frame rate */
928 {0x1e, 0x04}, /* mvfp */
929 {0x13, 0xe0}, /* com8 */
930 {0x00, 0x00},
931 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
932 {0x11, 0x01}, /* clkrc */
933 {0x6b, 0x5a}, /* dblv */
934 {0x6a, 0x02}, /* 50 Hz banding filter */
935 {0xc5, 0x03}, /* 60 Hz banding filter */
936 {0xa2, 0x96}, /* bd50 */
937 {0xa3, 0x7d}, /* bd60 */
939 {0xff, 0x13}, /* read 13, write ff 00 */
940 {0x13, 0xe7},
941 {0x3a, 0x80}, /* tslb - yuyv */
945 {0x3b, 0xc4}, /* com11 - night mode 1/4 frame rate */
946 {0x1e, 0x04}, /* mvfp */
947 {0x13, 0xe0}, /* com8 */
948 {0x00, 0x00},
949 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
950 {0x11, 0x03}, /* clkrc */
951 {0x6b, 0x5a}, /* dblv */
952 {0x6a, 0x05}, /* 50 Hz banding filter */
953 {0xc5, 0x07}, /* 60 Hz banding filter */
954 {0xa2, 0x4b}, /* bd50 */
955 {0xa3, 0x3e}, /* bd60 */
957 {0x2d, 0x00}, /* advfl */
961 {0x3b, 0xc4}, /* com11 - night mode 1/4 frame rate */
962 {0x1e, 0x04}, /* mvfp */
963 {0x13, 0xe0}, /* com8 */
964 {0x00, 0x00},
965 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
966 {0x11, 0x01}, /* clkrc */
967 {0x6b, 0x5a}, /* dblv */
968 {0x6a, 0x0c}, /* 50 Hz banding filter */
969 {0xc5, 0x0f}, /* 60 Hz banding filter */
970 {0xa2, 0x4e}, /* bd50 */
971 {0xa3, 0x41}, /* bd60 */
975 {0x13, 0xe0}, /* com8 */
976 {0x00, 0x00},
977 {0x13, 0xe7}, /* com8 - everything (AGC, AWB and AEC) */
978 {0x3b, 0xc4}, /* com11 - night mode 1/4 frame rate */
979 {0x1e, 0x04}, /* mvfp */
980 {0x11, 0x01}, /* clkrc */
981 {0x6b, 0x5a}, /* dblv */
982 {0x6a, 0x0c}, /* 50 Hz banding filter */
983 {0xc5, 0x0f}, /* 60 Hz banding filter */
984 {0xa2, 0x4e}, /* bd50 */
985 {0xa3, 0x41}, /* bd60 */
989 {0x88, 0x20},
990 {0x89, 0x0a},
991 {0x8a, 0x90},
992 {0x8b, 0x06},
993 {0x8c, 0x01},
994 {0x8d, 0x10},
995 {0x1c, 0x00},
996 {0x1d, 0x48},
997 {0x1d, 0x00},
998 {0x1d, 0xff},
999 {0x1c, 0x0a},
1000 {0x1d, 0x2e},
1001 {0x1d, 0x1e},
1005 {0x12, 0x80},
1006 {0x11, 0x41},
1007 {0x13, 0x00},
1008 {0x10, 0x1e},
1009 {0x3b, 0x07},
1010 {0x5b, 0x40},
1011 {0x39, 0x07},
1012 {0x53, 0x02},
1013 {0x54, 0x60},
1014 {0x04, 0x20},
1015 {0x27, 0x04},
1016 {0x3d, 0x40},
1017 {0x36, 0x00},
1018 {0xc5, 0x04},
1019 {0x4e, 0x00},
1020 {0x4f, 0x93},
1021 {0x50, 0x7b},
1022 {0xca, 0x0c},
1023 {0xcb, 0x0f},
1024 {0x39, 0x07},
1025 {0x4a, 0x10},
1026 {0x3e, 0x0a},
1027 {0x3d, 0x00},
1028 {0x0c, 0x38},
1029 {0x38, 0x90},
1030 {0x46, 0x30},
1031 {0x4f, 0x93},
1032 {0x50, 0x7b},
1033 {0xab, 0x00},
1034 {0xca, 0x0c},
1035 {0xcb, 0x0f},
1036 {0x37, 0x02},
1037 {0x44, 0x48},
1038 {0x8d, 0x44},
1039 {0x2a, 0x00},
1040 {0x2b, 0x00},
1041 {0x32, 0x00},
1042 {0x38, 0x90},
1043 {0x53, 0x02},
1044 {0x54, 0x60},
1045 {0x12, 0x00},
1046 {0x17, 0x12},
1047 {0x18, 0xb4},
1048 {0x19, 0x0c},
1049 {0x1a, 0xf4},
1050 {0x03, 0x4a},
1051 {0x89, 0x20},
1052 {0x83, 0x80},
1053 {0xb7, 0x9d},
1054 {0xb6, 0x11},
1055 {0xb5, 0x55},
1056 {0xb4, 0x00},
1057 {0xa9, 0xf0},
1058 {0xa8, 0x0a},
1059 {0xb8, 0xf0},
1060 {0xb9, 0xf0},
1061 {0xba, 0xf0},
1062 {0x81, 0x07},
1063 {0x63, 0x44},
1064 {0x13, 0xc7},
1065 {0x14, 0x60},
1066 {0x33, 0x75},
1067 {0x2c, 0x00},
1068 {0x09, 0x00},
1069 {0x35, 0x30},
1070 {0x27, 0x04},
1071 {0x3c, 0x07},
1072 {0x3a, 0x0a},
1073 {0x3b, 0x07},
1074 {0x01, 0x40},
1075 {0x02, 0x40},
1076 {0x16, 0x40},
1077 {0x52, 0xb0},
1078 {0x51, 0x83},
1079 {0x21, 0xbb},
1080 {0x22, 0x10},
1081 {0x23, 0x03},
1082 {0x35, 0x38},
1083 {0x20, 0x90},
1084 {0x28, 0x30},
1085 {0x73, 0xe1},
1086 {0x6c, 0x00},
1087 {0x6d, 0x80},
1088 {0x6e, 0x00},
1089 {0x70, 0x04},
1090 {0x71, 0x00},
1091 {0x8d, 0x04},
1092 {0x64, 0x00},
1093 {0x65, 0x00},
1094 {0x66, 0x00},
1095 {0x67, 0x00},
1096 {0x68, 0x00},
1097 {0x69, 0x00},
1098 {0x6a, 0x00},
1099 {0x6b, 0x00},
1100 {0x71, 0x94},
1101 {0x74, 0x20},
1102 {0x80, 0x09},
1103 {0x85, 0xc0},
1111 if (gspca_dev->usb_err < 0) in reg_w_i()
1113 gspca_dev->usb_buf[0] = val; in reg_w_i()
1115 usb_sndctrlpipe(udev, 0), in reg_w_i()
1116 0x01, in reg_w_i()
1118 0x00, reg, gspca_dev->usb_buf, 1, CTRL_TIMEOUT); in reg_w_i()
1119 if (ret < 0) { in reg_w_i()
1136 if (gspca_dev->usb_err < 0) in reg_r()
1137 return 0; in reg_r()
1139 usb_rcvctrlpipe(udev, 0), in reg_r()
1140 0x01, in reg_r()
1142 0x00, reg, gspca_dev->usb_buf, 1, CTRL_TIMEOUT); in reg_r()
1144 reg, gspca_dev->usb_buf[0]); in reg_r()
1145 if (ret < 0) { in reg_r()
1148 return 0; in reg_r()
1150 return gspca_dev->usb_buf[0]; in reg_r()
1158 for (i = 0; i < 5; i++) { in sccb_check_status()
1163 case 0x00: in sccb_check_status()
1165 case 0x04: in sccb_check_status()
1166 return 0; in sccb_check_status()
1167 case 0x03: in sccb_check_status()
1171 "sccb status 0x%02x, attempt %d/5\n", in sccb_check_status()
1175 return 0; in sccb_check_status()
1207 while (--len >= 0) { in reg_w_array()
1208 reg_w(gspca_dev, (*data)[0], (*data)[1]); in reg_w_array()
1217 while (--len >= 0) { in sccb_w_array()
1218 if ((*data)[0] != 0xff) { in sccb_w_array()
1219 sccb_write(gspca_dev, (*data)[0], (*data)[1]); in sccb_w_array()
1222 sccb_write(gspca_dev, 0xff, 0x00); in sccb_w_array()
1228 /* Two bits control LED: 0x21 bit 7 and 0x23 bit 7.
1236 data = reg_r(gspca_dev, 0x21); in set_led()
1237 data |= 0x80; in set_led()
1238 reg_w(gspca_dev, 0x21, data); in set_led()
1240 data = reg_r(gspca_dev, 0x23); in set_led()
1242 data |= 0x80; in set_led()
1244 data &= ~0x80; in set_led()
1246 reg_w(gspca_dev, 0x23, data); in set_led()
1249 data = reg_r(gspca_dev, 0x21); in set_led()
1250 data &= ~0x80; in set_led()
1251 reg_w(gspca_dev, 0x21, data); in set_led()
1263 val = 0x76; in setbrightness()
1265 sccb_write(gspca_dev, 0x24, val); in setbrightness()
1266 val = 0x6a; in setbrightness()
1268 sccb_write(gspca_dev, 0x25, val); in setbrightness()
1270 val = 0x71; in setbrightness()
1272 val = 0x94; in setbrightness()
1274 val = 0xe6; in setbrightness()
1275 sccb_write(gspca_dev, 0x26, val); in setbrightness()
1281 val = val - 8; /* 0 .. 7 */ in setbrightness()
1282 sccb_write(gspca_dev, 0x55, /* brtn - brightness adjustment */ in setbrightness()
1283 0x0f | (val << 4)); in setbrightness()
1289 sccb_write(gspca_dev, 0x56, /* cnst1 - contrast 1 ctrl coeff */ in setcontrast()
1298 val = sccb_read(gspca_dev, 0x13); /* com8 */ in setautogain()
1299 sccb_write(gspca_dev, 0xff, 0x00); in setautogain()
1301 val |= 0x05; /* agc & aec */ in setautogain()
1303 val &= 0xfa; in setautogain()
1304 sccb_write(gspca_dev, 0x13, val); in setautogain()
1309 static const u8 expo[4] = {0x00, 0x25, 0x38, 0x5e}; in setexposure()
1312 sccb_write(gspca_dev, 0x10, expo[exposure]); /* aec[9:2] */ in setexposure()
1314 val = sccb_read(gspca_dev, 0x13); /* com8 */ in setexposure()
1315 sccb_write(gspca_dev, 0xff, 0x00); in setexposure()
1316 sccb_write(gspca_dev, 0x13, val); in setexposure()
1318 val = sccb_read(gspca_dev, 0xa1); /* aech */ in setexposure()
1319 sccb_write(gspca_dev, 0xff, 0x00); in setexposure()
1320 sccb_write(gspca_dev, 0xa1, val & 0xe0); /* aec[15:10] = 0 */ in setexposure()
1325 if (val < 0) { /* auto */ in setsharpness()
1326 val = sccb_read(gspca_dev, 0x42); /* com17 */ in setsharpness()
1327 sccb_write(gspca_dev, 0xff, 0x00); in setsharpness()
1328 sccb_write(gspca_dev, 0x42, val | 0x40); in setsharpness()
1332 if (val != 0) in setsharpness()
1334 sccb_write(gspca_dev, 0x3f, /* edge - edge enhance. factor */ in setsharpness()
1336 val = sccb_read(gspca_dev, 0x42); /* com17 */ in setsharpness()
1337 sccb_write(gspca_dev, 0xff, 0x00); in setsharpness()
1338 sccb_write(gspca_dev, 0x42, val & 0xbf); in setsharpness()
1345 {0x14, 0x38}, in setsatur()
1346 {0x1e, 0x54}, in setsatur()
1347 {0x28, 0x70}, in setsatur()
1348 {0x32, 0x8c}, in setsatur()
1349 {0x48, 0x90} in setsatur()
1352 val1 = matrix[val][0]; in setsatur()
1355 sccb_write(gspca_dev, 0x4f, val3); /* matrix coeff */ in setsatur()
1356 sccb_write(gspca_dev, 0x50, val3); in setsatur()
1357 sccb_write(gspca_dev, 0x51, 0x00); in setsatur()
1358 sccb_write(gspca_dev, 0x52, val1); in setsatur()
1359 sccb_write(gspca_dev, 0x53, val2); in setsatur()
1360 sccb_write(gspca_dev, 0x54, val3); in setsatur()
1361 sccb_write(gspca_dev, 0x58, 0x1a); /* mtxs - coeff signs */ in setsatur()
1363 val1 = sccb_read(gspca_dev, 0x41); /* com16 */ in setsatur()
1364 sccb_write(gspca_dev, 0xff, 0x00); in setsatur()
1365 sccb_write(gspca_dev, 0x41, val1); in setsatur()
1372 val = sccb_read(gspca_dev, 0x13); /* com8 */ in setlightfreq()
1373 sccb_write(gspca_dev, 0xff, 0x00); in setlightfreq()
1374 if (freq == 0) { in setlightfreq()
1375 sccb_write(gspca_dev, 0x13, val & 0xdf); in setlightfreq()
1378 sccb_write(gspca_dev, 0x13, val | 0x20); in setlightfreq()
1380 val = sccb_read(gspca_dev, 0x42); /* com17 */ in setlightfreq()
1381 sccb_write(gspca_dev, 0xff, 0x00); in setlightfreq()
1383 val |= 0x01; in setlightfreq()
1385 val &= 0xfe; in setlightfreq()
1386 sccb_write(gspca_dev, 0x42, val); in setlightfreq()
1393 return 0; in sd_config()
1403 reg_w(gspca_dev, 0xe7, 0x3a); in sd_init()
1404 reg_w(gspca_dev, 0xe0, 0x08); in sd_init()
1408 reg_w(gspca_dev, OV534_REG_ADDRESS, 0x60); in sd_init()
1411 sccb_write(gspca_dev, 0x12, 0x80); in sd_init()
1415 sccb_read(gspca_dev, 0x0a); in sd_init()
1416 sensor_id = sccb_read(gspca_dev, 0x0a) << 8; in sd_init()
1417 sccb_read(gspca_dev, 0x0b); in sd_init()
1418 sensor_id |= sccb_read(gspca_dev, 0x0b); in sd_init()
1422 if ((sensor_id & 0xfff0) == 0x9650) { in sd_init()
1436 reg_w(gspca_dev, 0xe0, 0x00); in sd_init()
1437 reg_w(gspca_dev, 0xe0, 0x01); in sd_init()
1438 set_led(gspca_dev, 0); in sd_init()
1439 reg_w(gspca_dev, 0xe0, 0x00); in sd_init()
1440 } else if ((sensor_id & 0xfff0) == 0x9710) { in sd_init()
1457 /* access bridge processor's video format registers at: 0x00 */ in sd_init()
1458 reg_w(gspca_dev, 0x1c, 0x00); in sd_init()
1459 /*set register: 0x00 is 'RAW8', 0x40 is 'YUV422' (YUYV?)*/ in sd_init()
1460 reg_w(gspca_dev, 0x1d, 0x00); in sd_init()
1464 * output (0x1f) if first webcam in sd_init()
1465 * input (0x17) if 2nd or 3rd webcam */ in sd_init()
1468 if (p[l] == '0') in sd_init()
1469 reg_w(gspca_dev, 0x56, 0x1f); in sd_init()
1471 reg_w(gspca_dev, 0x56, 0x17); in sd_init()
1472 } else if ((sensor_id & 0xfff0) == 0x5620) { in sd_init()
1481 reg_w(gspca_dev, 0xe0, 0x00); in sd_init()
1482 } else if ((sensor_id & 0xfff0) == 0x3610) { in sd_init()
1486 reg_w(gspca_dev, 0xe7, 0x3a); in sd_init()
1487 reg_w(gspca_dev, 0xf1, 0x60); in sd_init()
1488 sccb_write(gspca_dev, 0x12, 0x80); in sd_init()
1499 sccb_write(gspca_dev, 0x12, 0x80); in sd_start_ov361x()
1539 reg_w(gspca_dev, 0xe0, 0x00); /* start transfer */ in sd_start_ov361x()
1599 reg_w(gspca_dev, 0xe0, 0x00); in sd_start()
1600 reg_w(gspca_dev, 0xe0, 0x00); in sd_start()
1608 reg_w(gspca_dev, 0xe0, 0x01); /* stop transfer */ in sd_stopN()
1609 /* reg_w(gspca_dev, 0x31, 0x09); */ in sd_stopN()
1612 reg_w(gspca_dev, 0xe0, 0x01); in sd_stopN()
1613 set_led(gspca_dev, 0); in sd_stopN()
1614 reg_w(gspca_dev, 0xe0, 0x00); in sd_stopN()
1625 #define UVC_STREAM_FID (1 << 0)
1646 if (data[0] != 12 || len < 12) { in sd_pkt_scan()
1670 NULL, 0); in sd_pkt_scan()
1677 sd->last_pts = 0; in sd_pkt_scan()
1697 } while (remaining_len > 0); in sd_pkt_scan()
1705 gspca_dev->usb_err = 0; in sd_s_ctrl()
1708 return 0; in sd_s_ctrl()
1746 return 0; in sd_init_controls()
1748 return 0; in sd_init_controls()
1753 V4L2_CID_BRIGHTNESS, -90, 90, 1, 0); in sd_init_controls()
1756 V4L2_CID_BRIGHTNESS, 0, 15, 1, 7); in sd_init_controls()
1758 V4L2_CID_CONTRAST, 0, 15, 1, 3); in sd_init_controls()
1760 V4L2_CID_SATURATION, 0, 4, 1, 2); in sd_init_controls()
1765 V4L2_CID_AUTOGAIN, 0, 1, 1, 1); in sd_init_controls()
1767 V4L2_CID_EXPOSURE, 0, 3, 1, 0); in sd_init_controls()
1770 V4L2_CID_POWER_LINE_FREQUENCY_60HZ, 0, 0); in sd_init_controls()
1771 v4l2_ctrl_auto_cluster(3, &gspca_dev->autogain, 0, false); in sd_init_controls()
1778 return 0; in sd_init_controls()
1794 {USB_DEVICE(0x05a9, 0x8065)},
1795 {USB_DEVICE(0x06f8, 0x3003)},
1796 {USB_DEVICE(0x05a9, 0x1550)},