diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-29 03:32:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:36 -0400 |
commit | a92e9064bb2fbbc09fc1e70fc5d2e4b6ab8be9e8 (patch) | |
tree | 44c3cde006584e64ec021666fd0890840fba57af /drivers | |
parent | 3ef2c5be9c79ce668e3e58d323379be24e39e20c (diff) |
V4L/DVB (10420): gspca - vc032x: Webcam 041e:405b added and mi1310_soc updated.
The mi1310_soc sequences come from the ms-win driver C0130Dev.inf.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 372 |
1 files changed, 188 insertions, 184 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index ab3108000756..1b34906ac1b9 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -400,92 +400,208 @@ static const __u8 mi0360_initQVGA_JPG[][4] = { | |||
400 | static const __u8 mi1310_socinitVGA_JPG[][4] = { | 400 | static const __u8 mi1310_socinitVGA_JPG[][4] = { |
401 | {0xb0, 0x03, 0x19, 0xcc}, | 401 | {0xb0, 0x03, 0x19, 0xcc}, |
402 | {0xb0, 0x04, 0x02, 0xcc}, | 402 | {0xb0, 0x04, 0x02, 0xcc}, |
403 | {0xb3, 0x00, 0x64, 0xcc}, | 403 | {0xb3, 0x00, 0x24, 0xcc}, |
404 | {0xb3, 0x00, 0x65, 0xcc}, | 404 | {0xb3, 0x00, 0x25, 0xcc}, |
405 | {0xb3, 0x05, 0x00, 0xcc}, | 405 | {0xb3, 0x05, 0x01, 0xcc}, |
406 | {0xb3, 0x06, 0x00, 0xcc}, | 406 | {0xb3, 0x06, 0x03, 0xcc}, |
407 | {0xb3, 0x5c, 0x01, 0xcc}, | ||
407 | {0xb3, 0x08, 0x01, 0xcc}, | 408 | {0xb3, 0x08, 0x01, 0xcc}, |
408 | {0xb3, 0x09, 0x0c, 0xcc}, | 409 | {0xb3, 0x09, 0x0c, 0xcc}, |
409 | {0xb3, 0x34, 0x02, 0xcc}, | 410 | {0xb3, 0x34, 0x02, 0xcc}, |
410 | {0xb3, 0x35, 0xdd, 0xcc}, | 411 | {0xb3, 0x35, 0xdd, 0xcc}, |
411 | {0xb3, 0x02, 0x00, 0xcc}, | ||
412 | {0xb3, 0x03, 0x0a, 0xcc}, | 412 | {0xb3, 0x03, 0x0a, 0xcc}, |
413 | {0xb3, 0x04, 0x05, 0xcc}, | 413 | {0xb3, 0x04, 0x0d, 0xcc}, |
414 | {0xb3, 0x20, 0x00, 0xcc}, | 414 | {0xb3, 0x20, 0x00, 0xcc}, |
415 | {0xb3, 0x21, 0x00, 0xcc}, | 415 | {0xb3, 0x21, 0x00, 0xcc}, |
416 | {0xb3, 0x22, 0x03, 0xcc}, | 416 | {0xb3, 0x22, 0x01, 0xcc}, |
417 | {0xb3, 0x23, 0xc0, 0xcc}, | 417 | {0xb3, 0x23, 0xe0, 0xcc}, |
418 | {0xb3, 0x14, 0x00, 0xcc}, | 418 | {0xb3, 0x14, 0x00, 0xcc}, |
419 | {0xb3, 0x15, 0x00, 0xcc}, | 419 | {0xb3, 0x15, 0x00, 0xcc}, |
420 | {0xb3, 0x16, 0x04, 0xcc}, | 420 | {0xb3, 0x16, 0x02, 0xcc}, |
421 | {0xb3, 0x17, 0xff, 0xcc}, | 421 | {0xb3, 0x17, 0x7f, 0xcc}, |
422 | {0xb3, 0x00, 0x65, 0xcc}, | 422 | {0xb8, 0x01, 0x7d, 0xcc}, |
423 | {0xb8, 0x00, 0x00, 0xcc}, | 423 | {0xb8, 0x81, 0x09, 0xcc}, |
424 | {0xbc, 0x00, 0xd0, 0xcc}, | 424 | {0xb8, 0x27, 0x20, 0xcc}, |
425 | {0xbc, 0x01, 0x01, 0xcc}, | 425 | {0xb8, 0x26, 0x80, 0xcc}, |
426 | {0xf0, 0x00, 0x02, 0xbb}, | 426 | {0xb3, 0x00, 0x25, 0xcc}, |
427 | {0xc8, 0x9f, 0x0b, 0xbb}, | 427 | {0xb8, 0x00, 0x13, 0xcc}, |
428 | {0x5b, 0x00, 0x01, 0xbb}, | 428 | {0xbc, 0x00, 0x71, 0xcc}, |
429 | {0x2f, 0xde, 0x20, 0xbb}, | 429 | {0xb8, 0x81, 0x01, 0xcc}, |
430 | {0xb8, 0x2c, 0x5a, 0xcc}, | ||
431 | {0xb8, 0x2d, 0xff, 0xcc}, | ||
432 | {0xb8, 0x2e, 0xee, 0xcc}, | ||
433 | {0xb8, 0x2f, 0xfb, 0xcc}, | ||
434 | {0xb8, 0x30, 0x52, 0xcc}, | ||
435 | {0xb8, 0x31, 0xf8, 0xcc}, | ||
436 | {0xb8, 0x32, 0xf1, 0xcc}, | ||
437 | {0xb8, 0x33, 0xff, 0xcc}, | ||
438 | {0xb8, 0x34, 0x54, 0xcc}, | ||
439 | {0xb8, 0x35, 0x00, 0xcc}, | ||
440 | {0xb8, 0x36, 0x00, 0xcc}, | ||
441 | {0xb8, 0x37, 0x00, 0xcc}, | ||
430 | {0xf0, 0x00, 0x00, 0xbb}, | 442 | {0xf0, 0x00, 0x00, 0xbb}, |
431 | {0x20, 0x03, 0x02, 0xbb}, | 443 | {0x00, 0x01, 0x00, 0xdd}, |
444 | {0x0d, 0x00, 0x09, 0xbb}, | ||
445 | {0x0d, 0x00, 0x08, 0xbb}, | ||
432 | {0xf0, 0x00, 0x01, 0xbb}, | 446 | {0xf0, 0x00, 0x01, 0xbb}, |
433 | {0x05, 0x00, 0x07, 0xbb}, | 447 | {0x00, 0x01, 0x00, 0xdd}, |
434 | {0x34, 0x00, 0x00, 0xbb}, | 448 | {0x06, 0x00, 0x14, 0xbb}, |
435 | {0x35, 0xff, 0x00, 0xbb}, | 449 | {0x3a, 0x10, 0x00, 0xbb}, |
436 | {0xdc, 0x07, 0x02, 0xbb}, | 450 | {0x00, 0x00, 0x10, 0xdd}, |
437 | {0xdd, 0x3c, 0x18, 0xbb}, | 451 | {0x9b, 0x10, 0x00, 0xbb}, |
438 | {0xde, 0x92, 0x6d, 0xbb}, | 452 | {0x00, 0x00, 0x10, 0xdd}, |
439 | {0xdf, 0xcd, 0xb1, 0xbb}, | ||
440 | {0xe0, 0xff, 0xe7, 0xbb}, | ||
441 | {0x06, 0xf0, 0x0d, 0xbb}, | ||
442 | {0x06, 0x70, 0x0e, 0xbb}, | ||
443 | {0x4c, 0x00, 0x01, 0xbb}, | ||
444 | {0x4d, 0x00, 0x01, 0xbb}, | ||
445 | {0xf0, 0x00, 0x02, 0xbb}, | ||
446 | {0x2e, 0x0c, 0x55, 0xbb}, | ||
447 | {0x21, 0xb6, 0x6e, 0xbb}, | ||
448 | {0x36, 0x30, 0x10, 0xbb}, | ||
449 | {0x37, 0x00, 0xc1, 0xbb}, | ||
450 | {0xf0, 0x00, 0x00, 0xbb}, | 453 | {0xf0, 0x00, 0x00, 0xbb}, |
451 | {0x07, 0x00, 0x84, 0xbb}, | 454 | {0x00, 0x01, 0x00, 0xdd}, |
452 | {0x08, 0x02, 0x4a, 0xbb}, | 455 | {0x2b, 0x00, 0x28, 0xbb}, |
453 | {0x05, 0x01, 0x10, 0xbb}, | 456 | {0x2c, 0x00, 0x30, 0xbb}, |
454 | {0x06, 0x00, 0x39, 0xbb}, | 457 | {0x2d, 0x00, 0x30, 0xbb}, |
455 | {0xf0, 0x00, 0x02, 0xbb}, | 458 | {0x2e, 0x00, 0x28, 0xbb}, |
456 | {0x58, 0x02, 0x67, 0xbb}, | 459 | {0x41, 0x00, 0xd7, 0xbb}, |
457 | {0x57, 0x02, 0x00, 0xbb}, | 460 | {0x09, 0x02, 0x3a, 0xbb}, |
458 | {0x5a, 0x02, 0x67, 0xbb}, | 461 | {0x0c, 0x00, 0x00, 0xbb}, |
459 | {0x59, 0x02, 0x00, 0xbb}, | 462 | {0x20, 0x00, 0x00, 0xbb}, |
460 | {0x5c, 0x12, 0x0d, 0xbb}, | 463 | {0x05, 0x00, 0x8c, 0xbb}, |
461 | {0x5d, 0x16, 0x11, 0xbb}, | 464 | {0x06, 0x00, 0x32, 0xbb}, |
462 | {0x39, 0x06, 0x18, 0xbb}, | 465 | {0x07, 0x00, 0xc6, 0xbb}, |
463 | {0x3a, 0x06, 0x18, 0xbb}, | 466 | {0x08, 0x00, 0x19, 0xbb}, |
464 | {0x3b, 0x06, 0x18, 0xbb}, | 467 | {0x24, 0x80, 0x6f, 0xbb}, |
465 | {0x3c, 0x06, 0x18, 0xbb}, | 468 | {0xc8, 0x00, 0x0f, 0xbb}, |
466 | {0x64, 0x7b, 0x5b, 0xbb}, | 469 | {0x20, 0x00, 0x0f, 0xbb}, |
467 | {0xf0, 0x00, 0x02, 0xbb}, | ||
468 | {0x36, 0x30, 0x10, 0xbb}, | ||
469 | {0x37, 0x00, 0xc0, 0xbb}, | ||
470 | {0xbc, 0x0e, 0x00, 0xcc}, | ||
471 | {0xbc, 0x0f, 0x05, 0xcc}, | ||
472 | {0xbc, 0x10, 0xc0, 0xcc}, | ||
473 | {0xbc, 0x11, 0x03, 0xcc}, | ||
474 | {0xb6, 0x00, 0x00, 0xcc}, | 470 | {0xb6, 0x00, 0x00, 0xcc}, |
475 | {0xb6, 0x03, 0x02, 0xcc}, | 471 | {0xb6, 0x03, 0x02, 0xcc}, |
476 | {0xb6, 0x02, 0x80, 0xcc}, | 472 | {0xb6, 0x02, 0x80, 0xcc}, |
477 | {0xb6, 0x05, 0x01, 0xcc}, | 473 | {0xb6, 0x05, 0x01, 0xcc}, |
478 | {0xb6, 0x04, 0xe0, 0xcc}, | 474 | {0xb6, 0x04, 0xe0, 0xcc}, |
479 | {0xb6, 0x12, 0xf8, 0xcc}, | 475 | {0xb6, 0x12, 0x78, 0xcc}, |
480 | {0xb6, 0x13, 0x25, 0xcc}, | ||
481 | {0xb6, 0x18, 0x02, 0xcc}, | 476 | {0xb6, 0x18, 0x02, 0xcc}, |
482 | {0xb6, 0x17, 0x58, 0xcc}, | 477 | {0xb6, 0x17, 0x58, 0xcc}, |
483 | {0xb6, 0x16, 0x00, 0xcc}, | 478 | {0xb6, 0x16, 0x00, 0xcc}, |
484 | {0xb6, 0x22, 0x12, 0xcc}, | 479 | {0xb6, 0x22, 0x12, 0xcc}, |
485 | {0xb6, 0x23, 0x0b, 0xcc}, | 480 | {0xb6, 0x23, 0x0b, 0xcc}, |
481 | {0xb3, 0x02, 0x02, 0xcc}, | ||
486 | {0xbf, 0xc0, 0x39, 0xcc}, | 482 | {0xbf, 0xc0, 0x39, 0xcc}, |
487 | {0xbf, 0xc1, 0x04, 0xcc}, | 483 | {0xbf, 0xc1, 0x04, 0xcc}, |
488 | {0xbf, 0xcc, 0x00, 0xcc}, | 484 | {0xbf, 0xcc, 0x10, 0xcc}, |
485 | {0xb9, 0x12, 0x00, 0xcc}, | ||
486 | {0xb9, 0x13, 0x0a, 0xcc}, | ||
487 | {0xb9, 0x14, 0x0a, 0xcc}, | ||
488 | {0xb9, 0x15, 0x0a, 0xcc}, | ||
489 | {0xb9, 0x16, 0x0a, 0xcc}, | ||
490 | {0xb9, 0x18, 0x00, 0xcc}, | ||
491 | {0xb9, 0x19, 0x0f, 0xcc}, | ||
492 | {0xb9, 0x1a, 0x0f, 0xcc}, | ||
493 | {0xb9, 0x1b, 0x0f, 0xcc}, | ||
494 | {0xb9, 0x1c, 0x0f, 0xcc}, | ||
495 | {0xb8, 0x8e, 0x00, 0xcc}, | ||
496 | {0xb8, 0x8f, 0xff, 0xcc}, | ||
497 | {0xb3, 0x01, 0x41, 0xcc}, | ||
498 | {0x03, 0x03, 0xc0, 0xbb}, | ||
499 | {0x06, 0x00, 0x10, 0xbb}, | ||
500 | {0xb6, 0x12, 0xf8, 0xcc}, | ||
501 | {0xb8, 0x0c, 0x20, 0xcc}, | ||
502 | {0xb8, 0x0d, 0x70, 0xcc}, | ||
503 | {0xb6, 0x13, 0x13, 0xcc}, | ||
504 | {0x2f, 0x00, 0xC0, 0xbb}, | ||
505 | {0xb8, 0xa0, 0x12, 0xcc}, | ||
506 | {}, | ||
507 | }; | ||
508 | static const __u8 mi1310_socinitQVGA_JPG[][4] = { | ||
509 | {0xb0, 0x03, 0x19, 0xcc}, | ||
510 | {0xb0, 0x04, 0x02, 0xcc}, | ||
511 | {0xb3, 0x00, 0x24, 0xcc}, | ||
512 | {0xb3, 0x00, 0x25, 0xcc}, | ||
513 | {0xb3, 0x05, 0x01, 0xcc}, | ||
514 | {0xb3, 0x06, 0x03, 0xcc}, | ||
515 | {0xb3, 0x5c, 0x01, 0xcc}, | ||
516 | {0xb3, 0x08, 0x01, 0xcc}, | ||
517 | {0xb3, 0x09, 0x0c, 0xcc}, | ||
518 | {0xb3, 0x34, 0x02, 0xcc}, | ||
519 | {0xb3, 0x35, 0xdd, 0xcc}, | ||
520 | {0xb3, 0x03, 0x0a, 0xcc}, | ||
521 | {0xb3, 0x04, 0x0d, 0xcc}, | ||
522 | {0xb3, 0x20, 0x00, 0xcc}, | ||
523 | {0xb3, 0x21, 0x00, 0xcc}, | ||
524 | {0xb3, 0x22, 0x01, 0xcc}, | ||
525 | {0xb3, 0x23, 0xe0, 0xcc}, | ||
526 | {0xb3, 0x14, 0x00, 0xcc}, | ||
527 | {0xb3, 0x15, 0x00, 0xcc}, | ||
528 | {0xb3, 0x16, 0x02, 0xcc}, | ||
529 | {0xb3, 0x17, 0x7f, 0xcc}, | ||
530 | {0xb8, 0x01, 0x7d, 0xcc}, | ||
531 | {0xb8, 0x81, 0x09, 0xcc}, | ||
532 | {0xb8, 0x27, 0x20, 0xcc}, | ||
533 | {0xb8, 0x26, 0x80, 0xcc}, | ||
534 | {0xb3, 0x00, 0x25, 0xcc}, | ||
535 | {0xb8, 0x00, 0x13, 0xcc}, | ||
536 | {0xbc, 0x00, 0xd1, 0xcc}, | ||
537 | {0xb8, 0x81, 0x01, 0xcc}, | ||
538 | {0xb8, 0x2c, 0x5a, 0xcc}, | ||
539 | {0xb8, 0x2d, 0xff, 0xcc}, | ||
540 | {0xb8, 0x2e, 0xee, 0xcc}, | ||
541 | {0xb8, 0x2f, 0xfb, 0xcc}, | ||
542 | {0xb8, 0x30, 0x52, 0xcc}, | ||
543 | {0xb8, 0x31, 0xf8, 0xcc}, | ||
544 | {0xb8, 0x32, 0xf1, 0xcc}, | ||
545 | {0xb8, 0x33, 0xff, 0xcc}, | ||
546 | {0xb8, 0x34, 0x54, 0xcc}, | ||
547 | {0xb8, 0x35, 0x00, 0xcc}, | ||
548 | {0xb8, 0x36, 0x00, 0xcc}, | ||
549 | {0xb8, 0x37, 0x00, 0xcc}, | ||
550 | {0xf0, 0x00, 0x00, 0xbb}, | ||
551 | {0x00, 0x01, 0x00, 0xdd}, | ||
552 | {0x0d, 0x00, 0x09, 0xbb}, | ||
553 | {0x0d, 0x00, 0x08, 0xbb}, | ||
554 | {0xf0, 0x00, 0x01, 0xbb}, | ||
555 | {0x00, 0x01, 0x00, 0xdd}, | ||
556 | {0x06, 0x00, 0x14, 0xbb}, | ||
557 | {0x3a, 0x10, 0x00, 0xbb}, | ||
558 | {0x00, 0x00, 0x10, 0xdd}, | ||
559 | {0x9b, 0x10, 0x00, 0xbb}, | ||
560 | {0x00, 0x00, 0x10, 0xdd}, | ||
561 | {0xf0, 0x00, 0x00, 0xbb}, | ||
562 | {0x00, 0x01, 0x00, 0xdd}, | ||
563 | {0x2b, 0x00, 0x28, 0xbb}, | ||
564 | {0x2c, 0x00, 0x30, 0xbb}, | ||
565 | {0x2d, 0x00, 0x30, 0xbb}, | ||
566 | {0x2e, 0x00, 0x28, 0xbb}, | ||
567 | {0x41, 0x00, 0xd7, 0xbb}, | ||
568 | {0x09, 0x02, 0x3a, 0xbb}, | ||
569 | {0x0c, 0x00, 0x00, 0xbb}, | ||
570 | {0x20, 0x00, 0x00, 0xbb}, | ||
571 | {0x05, 0x00, 0x8c, 0xbb}, | ||
572 | {0x06, 0x00, 0x32, 0xbb}, | ||
573 | {0x07, 0x00, 0xc6, 0xbb}, | ||
574 | {0x08, 0x00, 0x19, 0xbb}, | ||
575 | {0x24, 0x80, 0x6f, 0xbb}, | ||
576 | {0xc8, 0x00, 0x0f, 0xbb}, | ||
577 | {0x20, 0x00, 0x0f, 0xbb}, | ||
578 | {0xb6, 0x00, 0x00, 0xcc}, | ||
579 | {0xb6, 0x03, 0x01, 0xcc}, | ||
580 | {0xb6, 0x02, 0x40, 0xcc}, | ||
581 | {0xb6, 0x05, 0x00, 0xcc}, | ||
582 | {0xb6, 0x04, 0xf0, 0xcc}, | ||
583 | {0xb6, 0x12, 0x78, 0xcc}, | ||
584 | {0xb6, 0x18, 0x00, 0xcc}, | ||
585 | {0xb6, 0x17, 0x96, 0xcc}, | ||
586 | {0xb6, 0x16, 0x00, 0xcc}, | ||
587 | {0xb6, 0x22, 0x12, 0xcc}, | ||
588 | {0xb6, 0x23, 0x0b, 0xcc}, | ||
589 | {0xb3, 0x02, 0x02, 0xcc}, | ||
590 | {0xbf, 0xc0, 0x39, 0xcc}, | ||
591 | {0xbf, 0xc1, 0x04, 0xcc}, | ||
592 | {0xbf, 0xcc, 0x10, 0xcc}, | ||
593 | {0xb9, 0x12, 0x00, 0xcc}, | ||
594 | {0xb9, 0x13, 0x0a, 0xcc}, | ||
595 | {0xb9, 0x14, 0x0a, 0xcc}, | ||
596 | {0xb9, 0x15, 0x0a, 0xcc}, | ||
597 | {0xb9, 0x16, 0x0a, 0xcc}, | ||
598 | {0xb9, 0x18, 0x00, 0xcc}, | ||
599 | {0xb9, 0x19, 0x0f, 0xcc}, | ||
600 | {0xb9, 0x1a, 0x0f, 0xcc}, | ||
601 | {0xb9, 0x1b, 0x0f, 0xcc}, | ||
602 | {0xb9, 0x1c, 0x0f, 0xcc}, | ||
603 | {0xb8, 0x8e, 0x00, 0xcc}, | ||
604 | {0xb8, 0x8f, 0xff, 0xcc}, | ||
489 | {0xbc, 0x02, 0x18, 0xcc}, | 605 | {0xbc, 0x02, 0x18, 0xcc}, |
490 | {0xbc, 0x03, 0x50, 0xcc}, | 606 | {0xbc, 0x03, 0x50, 0xcc}, |
491 | {0xbc, 0x04, 0x18, 0xcc}, | 607 | {0xbc, 0x04, 0x18, 0xcc}, |
@@ -496,130 +612,15 @@ static const __u8 mi1310_socinitVGA_JPG[][4] = { | |||
496 | {0xbc, 0x0a, 0x10, 0xcc}, | 612 | {0xbc, 0x0a, 0x10, 0xcc}, |
497 | {0xbc, 0x0b, 0x00, 0xcc}, | 613 | {0xbc, 0x0b, 0x00, 0xcc}, |
498 | {0xbc, 0x0c, 0x00, 0xcc}, | 614 | {0xbc, 0x0c, 0x00, 0xcc}, |
499 | {0xb3, 0x5c, 0x01, 0xcc}, | ||
500 | {0xf0, 0x00, 0x01, 0xbb}, | ||
501 | {0x80, 0x00, 0x03, 0xbb}, | ||
502 | {0x81, 0xc7, 0x14, 0xbb}, | ||
503 | {0x82, 0xeb, 0xe8, 0xbb}, | ||
504 | {0x83, 0xfe, 0xf4, 0xbb}, | ||
505 | {0x84, 0xcd, 0x10, 0xbb}, | ||
506 | {0x85, 0xf3, 0xee, 0xbb}, | ||
507 | {0x86, 0xff, 0xf1, 0xbb}, | ||
508 | {0x87, 0xcd, 0x10, 0xbb}, | ||
509 | {0x88, 0xf3, 0xee, 0xbb}, | ||
510 | {0x89, 0x01, 0xf1, 0xbb}, | ||
511 | {0x8a, 0xe5, 0x17, 0xbb}, | ||
512 | {0x8b, 0xe8, 0xe2, 0xbb}, | ||
513 | {0x8c, 0xf7, 0xed, 0xbb}, | ||
514 | {0x8d, 0x00, 0xff, 0xbb}, | ||
515 | {0x8e, 0xec, 0x10, 0xbb}, | ||
516 | {0x8f, 0xf0, 0xed, 0xbb}, | ||
517 | {0x90, 0xf9, 0xf2, 0xbb}, | ||
518 | {0x91, 0x00, 0x00, 0xbb}, | ||
519 | {0x92, 0xe9, 0x0d, 0xbb}, | ||
520 | {0x93, 0xf4, 0xf2, 0xbb}, | ||
521 | {0x94, 0xfb, 0xf5, 0xbb}, | ||
522 | {0x95, 0x00, 0xff, 0xbb}, | ||
523 | {0xb6, 0x0f, 0x08, 0xbb}, | ||
524 | {0xb7, 0x3d, 0x16, 0xbb}, | ||
525 | {0xb8, 0x0c, 0x04, 0xbb}, | ||
526 | {0xb9, 0x1c, 0x07, 0xbb}, | ||
527 | {0xba, 0x0a, 0x03, 0xbb}, | ||
528 | {0xbb, 0x1b, 0x09, 0xbb}, | ||
529 | {0xbc, 0x17, 0x0d, 0xbb}, | ||
530 | {0xbd, 0x23, 0x1d, 0xbb}, | ||
531 | {0xbe, 0x00, 0x28, 0xbb}, | ||
532 | {0xbf, 0x11, 0x09, 0xbb}, | ||
533 | {0xc0, 0x16, 0x15, 0xbb}, | ||
534 | {0xc1, 0x00, 0x1b, 0xbb}, | ||
535 | {0xc2, 0x0e, 0x07, 0xbb}, | ||
536 | {0xc3, 0x14, 0x10, 0xbb}, | ||
537 | {0xc4, 0x00, 0x17, 0xbb}, | ||
538 | {0x06, 0x74, 0x8e, 0xbb}, | ||
539 | {0xf0, 0x00, 0x01, 0xbb}, | ||
540 | {0x06, 0xf4, 0x8e, 0xbb}, | ||
541 | {0x00, 0x00, 0x50, 0xdd}, | ||
542 | {0x06, 0x74, 0x8e, 0xbb}, | ||
543 | {0xf0, 0x00, 0x02, 0xbb}, | ||
544 | {0x24, 0x50, 0x20, 0xbb}, | ||
545 | {0xf0, 0x00, 0x02, 0xbb}, | ||
546 | {0x34, 0x0c, 0x50, 0xbb}, | ||
547 | {0xb3, 0x01, 0x41, 0xcc}, | 615 | {0xb3, 0x01, 0x41, 0xcc}, |
548 | {0xf0, 0x00, 0x00, 0xbb}, | ||
549 | {0x03, 0x03, 0xc0, 0xbb}, | ||
550 | {}, | ||
551 | }; | ||
552 | static const __u8 mi1310_socinitQVGA_JPG[][4] = { | ||
553 | {0xb0, 0x03, 0x19, 0xcc}, {0xb0, 0x04, 0x02, 0xcc}, | ||
554 | {0xb3, 0x00, 0x64, 0xcc}, {0xb3, 0x00, 0x65, 0xcc}, | ||
555 | {0xb3, 0x05, 0x00, 0xcc}, {0xb3, 0x06, 0x00, 0xcc}, | ||
556 | {0xb3, 0x08, 0x01, 0xcc}, {0xb3, 0x09, 0x0c, 0xcc}, | ||
557 | {0xb3, 0x34, 0x02, 0xcc}, {0xb3, 0x35, 0xdd, 0xcc}, | ||
558 | {0xb3, 0x02, 0x00, 0xcc}, {0xb3, 0x03, 0x0a, 0xcc}, | ||
559 | {0xb3, 0x04, 0x05, 0xcc}, {0xb3, 0x20, 0x00, 0xcc}, | ||
560 | {0xb3, 0x21, 0x00, 0xcc}, {0xb3, 0x22, 0x03, 0xcc}, | ||
561 | {0xb3, 0x23, 0xc0, 0xcc}, {0xb3, 0x14, 0x00, 0xcc}, | ||
562 | {0xb3, 0x15, 0x00, 0xcc}, {0xb3, 0x16, 0x04, 0xcc}, | ||
563 | {0xb3, 0x17, 0xff, 0xcc}, {0xb3, 0x00, 0x65, 0xcc}, | ||
564 | {0xb8, 0x00, 0x00, 0xcc}, {0xbc, 0x00, 0xf0, 0xcc}, | ||
565 | {0xbc, 0x01, 0x01, 0xcc}, {0xf0, 0x00, 0x02, 0xbb}, | ||
566 | {0xc8, 0x9f, 0x0b, 0xbb}, {0x5b, 0x00, 0x01, 0xbb}, | ||
567 | {0x2f, 0xde, 0x20, 0xbb}, {0xf0, 0x00, 0x00, 0xbb}, | ||
568 | {0x20, 0x03, 0x02, 0xbb}, {0xf0, 0x00, 0x01, 0xbb}, | ||
569 | {0x05, 0x00, 0x07, 0xbb}, {0x34, 0x00, 0x00, 0xbb}, | ||
570 | {0x35, 0xff, 0x00, 0xbb}, {0xdc, 0x07, 0x02, 0xbb}, | ||
571 | {0xdd, 0x3c, 0x18, 0xbb}, {0xde, 0x92, 0x6d, 0xbb}, | ||
572 | {0xdf, 0xcd, 0xb1, 0xbb}, {0xe0, 0xff, 0xe7, 0xbb}, | ||
573 | {0x06, 0xf0, 0x0d, 0xbb}, {0x06, 0x70, 0x0e, 0xbb}, | ||
574 | {0x4c, 0x00, 0x01, 0xbb}, {0x4d, 0x00, 0x01, 0xbb}, | ||
575 | {0xf0, 0x00, 0x02, 0xbb}, {0x2e, 0x0c, 0x55, 0xbb}, | ||
576 | {0x21, 0xb6, 0x6e, 0xbb}, {0x36, 0x30, 0x10, 0xbb}, | ||
577 | {0x37, 0x00, 0xc1, 0xbb}, {0xf0, 0x00, 0x00, 0xbb}, | ||
578 | {0x07, 0x00, 0x84, 0xbb}, {0x08, 0x02, 0x4a, 0xbb}, | ||
579 | {0x05, 0x01, 0x10, 0xbb}, {0x06, 0x00, 0x39, 0xbb}, | ||
580 | {0xf0, 0x00, 0x02, 0xbb}, {0x58, 0x02, 0x67, 0xbb}, | ||
581 | {0x57, 0x02, 0x00, 0xbb}, {0x5a, 0x02, 0x67, 0xbb}, | ||
582 | {0x59, 0x02, 0x00, 0xbb}, {0x5c, 0x12, 0x0d, 0xbb}, | ||
583 | {0x5d, 0x16, 0x11, 0xbb}, {0x39, 0x06, 0x18, 0xbb}, | ||
584 | {0x3a, 0x06, 0x18, 0xbb}, {0x3b, 0x06, 0x18, 0xbb}, | ||
585 | {0x3c, 0x06, 0x18, 0xbb}, {0x64, 0x7b, 0x5b, 0xbb}, | ||
586 | {0xf0, 0x00, 0x02, 0xbb}, {0x36, 0x30, 0x10, 0xbb}, | ||
587 | {0x37, 0x00, 0xc0, 0xbb}, {0xbc, 0x0e, 0x00, 0xcc}, | ||
588 | {0xbc, 0x0f, 0x05, 0xcc}, {0xbc, 0x10, 0xc0, 0xcc}, | ||
589 | {0xbc, 0x11, 0x03, 0xcc}, {0xb6, 0x00, 0x00, 0xcc}, | ||
590 | {0xb6, 0x03, 0x01, 0xcc}, {0xb6, 0x02, 0x40, 0xcc}, | ||
591 | {0xb6, 0x05, 0x00, 0xcc}, {0xb6, 0x04, 0xf0, 0xcc}, | ||
592 | {0xb6, 0x12, 0xf8, 0xcc}, {0xb6, 0x13, 0x25, 0xcc}, | ||
593 | {0xb6, 0x18, 0x00, 0xcc}, {0xb6, 0x17, 0x96, 0xcc}, | ||
594 | {0xb6, 0x16, 0x00, 0xcc}, {0xb6, 0x22, 0x12, 0xcc}, | ||
595 | {0xb6, 0x23, 0x0b, 0xcc}, {0xbf, 0xc0, 0x39, 0xcc}, | ||
596 | {0xbf, 0xc1, 0x04, 0xcc}, {0xbf, 0xcc, 0x00, 0xcc}, | ||
597 | {0xb3, 0x5c, 0x01, 0xcc}, {0xf0, 0x00, 0x01, 0xbb}, | ||
598 | {0x80, 0x00, 0x03, 0xbb}, {0x81, 0xc7, 0x14, 0xbb}, | ||
599 | {0x82, 0xeb, 0xe8, 0xbb}, {0x83, 0xfe, 0xf4, 0xbb}, | ||
600 | {0x84, 0xcd, 0x10, 0xbb}, {0x85, 0xf3, 0xee, 0xbb}, | ||
601 | {0x86, 0xff, 0xf1, 0xbb}, {0x87, 0xcd, 0x10, 0xbb}, | ||
602 | {0x88, 0xf3, 0xee, 0xbb}, {0x89, 0x01, 0xf1, 0xbb}, | ||
603 | {0x8a, 0xe5, 0x17, 0xbb}, {0x8b, 0xe8, 0xe2, 0xbb}, | ||
604 | {0x8c, 0xf7, 0xed, 0xbb}, {0x8d, 0x00, 0xff, 0xbb}, | ||
605 | {0x8e, 0xec, 0x10, 0xbb}, {0x8f, 0xf0, 0xed, 0xbb}, | ||
606 | {0x90, 0xf9, 0xf2, 0xbb}, {0x91, 0x00, 0x00, 0xbb}, | ||
607 | {0x92, 0xe9, 0x0d, 0xbb}, {0x93, 0xf4, 0xf2, 0xbb}, | ||
608 | {0x94, 0xfb, 0xf5, 0xbb}, {0x95, 0x00, 0xff, 0xbb}, | ||
609 | {0xb6, 0x0f, 0x08, 0xbb}, {0xb7, 0x3d, 0x16, 0xbb}, | ||
610 | {0xb8, 0x0c, 0x04, 0xbb}, {0xb9, 0x1c, 0x07, 0xbb}, | ||
611 | {0xba, 0x0a, 0x03, 0xbb}, {0xbb, 0x1b, 0x09, 0xbb}, | ||
612 | {0xbc, 0x17, 0x0d, 0xbb}, {0xbd, 0x23, 0x1d, 0xbb}, | ||
613 | {0xbe, 0x00, 0x28, 0xbb}, {0xbf, 0x11, 0x09, 0xbb}, | ||
614 | {0xc0, 0x16, 0x15, 0xbb}, {0xc1, 0x00, 0x1b, 0xbb}, | ||
615 | {0xc2, 0x0e, 0x07, 0xbb}, {0xc3, 0x14, 0x10, 0xbb}, | ||
616 | {0xc4, 0x00, 0x17, 0xbb}, {0x06, 0x74, 0x8e, 0xbb}, | ||
617 | {0xf0, 0x00, 0x01, 0xbb}, {0x06, 0xf4, 0x8e, 0xbb}, | ||
618 | {0x00, 0x00, 0x50, 0xdd}, {0x06, 0x74, 0x8e, 0xbb}, | ||
619 | {0xf0, 0x00, 0x02, 0xbb}, {0x24, 0x50, 0x20, 0xbb}, | ||
620 | {0xf0, 0x00, 0x02, 0xbb}, {0x34, 0x0c, 0x50, 0xbb}, | ||
621 | {0xb3, 0x01, 0x41, 0xcc}, {0xf0, 0x00, 0x00, 0xbb}, | ||
622 | {0x03, 0x03, 0xc0, 0xbb}, | 616 | {0x03, 0x03, 0xc0, 0xbb}, |
617 | {0x06, 0x00, 0x10, 0xbb}, | ||
618 | {0xb6, 0x12, 0xf8, 0xcc}, | ||
619 | {0xb8, 0x0c, 0x20, 0xcc}, | ||
620 | {0xb8, 0x0d, 0x70, 0xcc}, | ||
621 | {0xb6, 0x13, 0x13, 0xcc}, | ||
622 | {0x2f, 0x00, 0xC0, 0xbb}, | ||
623 | {0xb8, 0xa0, 0x12, 0xcc}, | ||
623 | {}, | 624 | {}, |
624 | }; | 625 | }; |
625 | 626 | ||
@@ -2182,6 +2183,8 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
2182 | } | 2183 | } |
2183 | break; | 2184 | break; |
2184 | case SENSOR_MI1310_SOC: | 2185 | case SENSOR_MI1310_SOC: |
2186 | GammaT = mi1320_gamma; | ||
2187 | MatrixT = mi0360_matrix; | ||
2185 | if (mode) { | 2188 | if (mode) { |
2186 | /* 320x240 */ | 2189 | /* 320x240 */ |
2187 | usb_exchange(gspca_dev, mi1310_socinitQVGA_JPG); | 2190 | usb_exchange(gspca_dev, mi1310_socinitQVGA_JPG); |
@@ -2423,6 +2426,7 @@ static const struct sd_desc sd_desc = { | |||
2423 | 2426 | ||
2424 | /* -- module initialisation -- */ | 2427 | /* -- module initialisation -- */ |
2425 | static const __devinitdata struct usb_device_id device_table[] = { | 2428 | static const __devinitdata struct usb_device_id device_table[] = { |
2429 | {USB_DEVICE(0x041e, 0x405b), .driver_info = BRIDGE_VC0321}, | ||
2426 | {USB_DEVICE(0x046d, 0x0892), .driver_info = BRIDGE_VC0321}, | 2430 | {USB_DEVICE(0x046d, 0x0892), .driver_info = BRIDGE_VC0321}, |
2427 | {USB_DEVICE(0x046d, 0x0896), .driver_info = BRIDGE_VC0321}, | 2431 | {USB_DEVICE(0x046d, 0x0896), .driver_info = BRIDGE_VC0321}, |
2428 | {USB_DEVICE(0x046d, 0x0897), .driver_info = BRIDGE_VC0321}, | 2432 | {USB_DEVICE(0x046d, 0x0897), .driver_info = BRIDGE_VC0321}, |