22 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24 #define MODULE_NAME "spca501"
43 #define Arowana300KCMOSCamera 0
44 #define IntelCreateAndShare 1
46 #define MystFromOriUnknownCamera 3
47 #define SmileIntlCamera 4
48 #define ThreeComHomeConnectLite 5
49 #define ViewQuestM318B 6
55 .sizeimage = 160 * 120 * 3 / 2,
60 .sizeimage = 320 * 240 * 3 / 2,
65 .sizeimage = 640 * 480 * 3 / 2,
70 #define SPCA50X_REG_USB 0x2
79 #define SPCA501_SNAPBIT 0x80
80 #define SPCA501_SNAPCTRL 0x10
82 #define SPCA501_OFFSET_GPIO 1
83 #define SPCA501_OFFSET_TYPE 2
84 #define SPCA501_OFFSET_TURN3A 3
85 #define SPCA501_OFFSET_FRAMSEQ 4
86 #define SPCA501_OFFSET_COMPRESS 5
87 #define SPCA501_OFFSET_QUANT 6
88 #define SPCA501_OFFSET_QUANT2 7
89 #define SPCA501_OFFSET_DATA 8
91 #define SPCA501_PROP_COMP_ENABLE(d) ((d) & 1)
92 #define SPCA501_PROP_SNAP(d) ((d) & 0x40)
93 #define SPCA501_PROP_SNAP_CTRL(d) ((d) & 0x10)
94 #define SPCA501_PROP_COMP_THRESH(d) (((d) & 0x0e) >> 1)
95 #define SPCA501_PROP_COMP_QUANT(d) (((d) & 0x70) >> 4)
98 #define SPCA501_REG_CCDSP 0x01
100 #define SPCA501_REG_CTLRL 0x02
103 #define SPCA501_A11 0x08
104 #define SPCA501_A12 0x09
105 #define SPCA501_A13 0x0A
106 #define SPCA501_A21 0x0B
107 #define SPCA501_A22 0x0C
108 #define SPCA501_A23 0x0D
109 #define SPCA501_A31 0x0E
110 #define SPCA501_A32 0x0F
111 #define SPCA501_A33 0x10
114 static const __u16 spca501_open_data[][3] = {
220 static const __u16 spca501_init_data[][3] = {
507 static const __u16 spca501_3com_open_data[][3] = {
509 {0x2, 0x0050, 0x0000},
510 {0x2, 0x0043, 0x0000},
511 {0x2, 0x0002, 0x0005},
512 {0x2, 0x0003, 0x0005},
515 {0x1, 0x0020, 0x0001},
517 {0x1, 0x0020, 0x0002},
518 {0x1, 0x006e, 0x0007},
519 {0x1, 0x0090, 0x0015},
520 {0x1, 0x00ff, 0x0016},
521 {0x1, 0x0003, 0x003F},
524 {0x1, 0x0010, 0x0008},
525 {0x1, 0x0000, 0x0009},
526 {0x1, 0x0000, 0x000a},
527 {0x1, 0x0000, 0x000b},
528 {0x1, 0x0010, 0x000c},
529 {0x1, 0x0000, 0x000d},
530 {0x1, 0x0000, 0x000e},
531 {0x1, 0x0000, 0x000f},
532 {0x1, 0x0010, 0x0010},
533 {0x1, 0x0000, 0x0011},
534 {0x1, 0x0000, 0x0012},
535 {0x1, 0x0001, 0x0013},
536 {0x1, 0x0001, 0x0014},
537 {0x1, 0x003f, 0x00C1},
542 {0x0, 0x00fc, 0x0000},
543 {0x0, 0x0000, 0x0001},
544 {0x0, 0x00e4, 0x0004},
545 {0x0, 0x0008, 0x0005},
546 {0x0, 0x0003, 0x0006},
547 {0x0, 0x0001, 0x0007},
548 {0x0, 0x0039, 0x0008},
549 {0x0, 0x0088, 0x000a},
550 {0x0, 0x0003, 0x000f},
553 {0x0, 0x0080, 0x000c},
554 {0x0, 0x0000, 0x000d},
555 {0x0, 0x0080, 0x000c},
556 {0x0, 0x0004, 0x000d},
557 {0x0, 0x0000, 0x000c},
558 {0x0, 0x0000, 0x000d},
559 {0x0, 0x0040, 0x000c},
560 {0x0, 0x0017, 0x000d},
561 {0x0, 0x00c0, 0x000c},
562 {0x0, 0x0000, 0x000d},
563 {0x0, 0x0080, 0x000c},
564 {0x0, 0x0006, 0x000d},
565 {0x0, 0x0080, 0x000c},
566 {0x0, 0x0004, 0x000d},
567 {0x0, 0x0002, 0x0003},
571 {0x1, 0x001c, 0x0017},
572 {0x1, 0x00e2, 0x0019},
573 {0x1, 0x001c, 0x001b},
574 {0x1, 0x00e2, 0x001d},
575 {0x1, 0x00aa, 0x001f},
576 {0x1, 0x0070, 0x0020},
578 {0x0, 0x0001, 0x0010},
581 {0x2, 0x0068, 0x0001},
582 {0x2, 0x0000, 0x0005},
583 {0x2, 0x0043, 0x0000},
584 {0x2, 0x0043, 0x0000},
585 {0x2, 0x0002, 0x0005},
586 {0x2, 0x0003, 0x0005},
588 {0x2, 0x006a, 0x0001},
602 static const __u16 spca501c_arowana_open_data[][3] = {
604 {0x02, 0x0007, 0x0005},
605 {0x02, 0xa048, 0x0000},
606 {0x05, 0x0022, 0x0004},
607 {0x01, 0x0006, 0x0011},
608 {0x01, 0x00ff, 0x0012},
609 {0x01, 0x0014, 0x0013},
610 {0x01, 0x0000, 0x0014},
611 {0x01, 0x0042, 0x0051},
612 {0x01, 0x0040, 0x0052},
613 {0x01, 0x0051, 0x0053},
614 {0x01, 0x0040, 0x0054},
615 {0x01, 0x0000, 0x0055},
616 {0x00, 0x0025, 0x0000},
617 {0x00, 0x0026, 0x0000},
618 {0x00, 0x0001, 0x0000},
619 {0x00, 0x0027, 0x0000},
620 {0x00, 0x008a, 0x0000},
624 static const __u16 spca501c_arowana_init_data[][3] = {
626 {0x02, 0x0007, 0x0005},
627 {0x02, 0xa048, 0x0000},
628 {0x05, 0x0022, 0x0004},
629 {0x01, 0x0006, 0x0011},
630 {0x01, 0x00ff, 0x0012},
631 {0x01, 0x0014, 0x0013},
632 {0x01, 0x0000, 0x0014},
633 {0x01, 0x0042, 0x0051},
634 {0x01, 0x0040, 0x0052},
635 {0x01, 0x0051, 0x0053},
636 {0x01, 0x0040, 0x0054},
637 {0x01, 0x0000, 0x0055},
638 {0x00, 0x0025, 0x0000},
639 {0x00, 0x0026, 0x0000},
640 {0x00, 0x0001, 0x0000},
641 {0x00, 0x0027, 0x0000},
642 {0x00, 0x008a, 0x0000},
643 {0x02, 0x0000, 0x0005},
644 {0x02, 0x0007, 0x0005},
645 {0x02, 0x2000, 0x0000},
646 {0x05, 0x0022, 0x0004},
647 {0x05, 0x0015, 0x0001},
648 {0x05, 0x00ea, 0x0000},
649 {0x05, 0x0021, 0x0001},
650 {0x05, 0x00d2, 0x0000},
651 {0x05, 0x0023, 0x0001},
652 {0x05, 0x0003, 0x0000},
653 {0x05, 0x0030, 0x0001},
654 {0x05, 0x002b, 0x0000},
655 {0x05, 0x0031, 0x0001},
656 {0x05, 0x0023, 0x0000},
657 {0x05, 0x0032, 0x0001},
658 {0x05, 0x0023, 0x0000},
659 {0x05, 0x0033, 0x0001},
660 {0x05, 0x0023, 0x0000},
661 {0x05, 0x0034, 0x0001},
662 {0x05, 0x0002, 0x0000},
663 {0x05, 0x0050, 0x0001},
664 {0x05, 0x0000, 0x0000},
665 {0x05, 0x0051, 0x0001},
666 {0x05, 0x0000, 0x0000},
667 {0x05, 0x0052, 0x0001},
668 {0x05, 0x0000, 0x0000},
669 {0x05, 0x0054, 0x0001},
670 {0x05, 0x0001, 0x0000},
671 {0x00, 0x0000, 0x0001},
672 {0x00, 0x0000, 0x0002},
673 {0x00, 0x000c, 0x0003},
674 {0x00, 0x0000, 0x0004},
675 {0x00, 0x0090, 0x0005},
676 {0x00, 0x0000, 0x0006},
677 {0x00, 0x0040, 0x0007},
678 {0x00, 0x00c0, 0x0008},
679 {0x00, 0x004a, 0x0009},
680 {0x00, 0x0000, 0x000a},
681 {0x00, 0x0000, 0x000b},
682 {0x00, 0x0001, 0x000c},
683 {0x00, 0x0001, 0x000d},
684 {0x00, 0x0000, 0x000e},
685 {0x00, 0x0002, 0x000f},
686 {0x00, 0x0001, 0x0010},
687 {0x00, 0x0000, 0x0011},
688 {0x00, 0x0000, 0x0012},
689 {0x00, 0x0002, 0x0020},
690 {0x00, 0x0080, 0x0021},
691 {0x00, 0x0001, 0x0022},
692 {0x00, 0x00e0, 0x0023},
693 {0x00, 0x0000, 0x0024},
694 {0x00, 0x00d5, 0x0025},
695 {0x00, 0x0000, 0x0026},
696 {0x00, 0x000b, 0x0027},
697 {0x00, 0x0000, 0x0046},
698 {0x00, 0x0000, 0x0047},
699 {0x00, 0x0000, 0x0048},
700 {0x00, 0x0000, 0x0049},
701 {0x00, 0x0008, 0x004a},
702 {0xff, 0x0000, 0x00d0},
703 {0xff, 0x00d8, 0x00d1},
704 {0xff, 0x0000, 0x00d4},
705 {0xff, 0x0000, 0x00d5},
706 {0x01, 0x00a6, 0x0000},
707 {0x01, 0x0028, 0x0001},
708 {0x01, 0x0000, 0x0002},
709 {0x01, 0x000a, 0x0003},
710 {0x01, 0x0040, 0x0004},
711 {0x01, 0x0066, 0x0007},
712 {0x01, 0x0011, 0x0008},
713 {0x01, 0x0032, 0x0009},
714 {0x01, 0x00fd, 0x000a},
715 {0x01, 0x0038, 0x000b},
716 {0x01, 0x00d1, 0x000c},
717 {0x01, 0x00f7, 0x000d},
718 {0x01, 0x00ed, 0x000e},
719 {0x01, 0x00d8, 0x000f},
720 {0x01, 0x0038, 0x0010},
721 {0x01, 0x00ff, 0x0015},
722 {0x01, 0x0001, 0x0016},
723 {0x01, 0x0032, 0x0017},
724 {0x01, 0x0023, 0x0018},
725 {0x01, 0x00ce, 0x0019},
726 {0x01, 0x0023, 0x001a},
727 {0x01, 0x0032, 0x001b},
728 {0x01, 0x008d, 0x001c},
729 {0x01, 0x00ce, 0x001d},
730 {0x01, 0x008d, 0x001e},
731 {0x01, 0x0000, 0x001f},
732 {0x01, 0x0000, 0x0020},
733 {0x01, 0x00ff, 0x003e},
734 {0x01, 0x0003, 0x003f},
735 {0x01, 0x0000, 0x0040},
736 {0x01, 0x0035, 0x0041},
737 {0x01, 0x0053, 0x0042},
738 {0x01, 0x0069, 0x0043},
739 {0x01, 0x007c, 0x0044},
740 {0x01, 0x008c, 0x0045},
741 {0x01, 0x009a, 0x0046},
742 {0x01, 0x00a8, 0x0047},
743 {0x01, 0x00b4, 0x0048},
744 {0x01, 0x00bf, 0x0049},
745 {0x01, 0x00ca, 0x004a},
746 {0x01, 0x00d4, 0x004b},
747 {0x01, 0x00dd, 0x004c},
748 {0x01, 0x00e7, 0x004d},
749 {0x01, 0x00ef, 0x004e},
750 {0x01, 0x00f8, 0x004f},
751 {0x01, 0x00ff, 0x0050},
752 {0x01, 0x0001, 0x0056},
753 {0x01, 0x0060, 0x0057},
754 {0x01, 0x0040, 0x0058},
755 {0x01, 0x0011, 0x0059},
756 {0x01, 0x0001, 0x005a},
757 {0x02, 0x0007, 0x0005},
758 {0x02, 0xa048, 0x0000},
759 {0x02, 0x0007, 0x0005},
760 {0x02, 0x0015, 0x0006},
761 {0x02, 0x100a, 0x0007},
762 {0x02, 0xa048, 0x0000},
763 {0x02, 0xc002, 0x0001},
764 {0x02, 0x000f, 0x0005},
765 {0x02, 0xa048, 0x0000},
766 {0x05, 0x0022, 0x0004},
767 {0x05, 0x0025, 0x0001},
768 {0x05, 0x0000, 0x0000},
769 {0x05, 0x0026, 0x0001},
770 {0x05, 0x0001, 0x0000},
771 {0x05, 0x0027, 0x0001},
772 {0x05, 0x0000, 0x0000},
773 {0x05, 0x0001, 0x0001},
774 {0x05, 0x0000, 0x0000},
775 {0x05, 0x0021, 0x0001},
776 {0x05, 0x00d2, 0x0000},
777 {0x05, 0x0020, 0x0001},
778 {0x05, 0x0000, 0x0000},
779 {0x00, 0x0090, 0x0005},
780 {0x01, 0x00a6, 0x0000},
781 {0x02, 0x0007, 0x0005},
782 {0x02, 0x2000, 0x0000},
783 {0x05, 0x0022, 0x0004},
784 {0x05, 0x0015, 0x0001},
785 {0x05, 0x00ea, 0x0000},
786 {0x05, 0x0021, 0x0001},
787 {0x05, 0x00d2, 0x0000},
788 {0x05, 0x0023, 0x0001},
789 {0x05, 0x0003, 0x0000},
790 {0x05, 0x0030, 0x0001},
791 {0x05, 0x002b, 0x0000},
792 {0x05, 0x0031, 0x0001},
793 {0x05, 0x0023, 0x0000},
794 {0x05, 0x0032, 0x0001},
795 {0x05, 0x0023, 0x0000},
796 {0x05, 0x0033, 0x0001},
797 {0x05, 0x0023, 0x0000},
798 {0x05, 0x0034, 0x0001},
799 {0x05, 0x0002, 0x0000},
800 {0x05, 0x0050, 0x0001},
801 {0x05, 0x0000, 0x0000},
802 {0x05, 0x0051, 0x0001},
803 {0x05, 0x0000, 0x0000},
804 {0x05, 0x0052, 0x0001},
805 {0x05, 0x0000, 0x0000},
806 {0x05, 0x0054, 0x0001},
807 {0x05, 0x0001, 0x0000},
808 {0x00, 0x0000, 0x0001},
809 {0x00, 0x0000, 0x0002},
810 {0x00, 0x000c, 0x0003},
811 {0x00, 0x0000, 0x0004},
812 {0x00, 0x0090, 0x0005},
813 {0x00, 0x0000, 0x0006},
814 {0x00, 0x0040, 0x0007},
815 {0x00, 0x00c0, 0x0008},
816 {0x00, 0x004a, 0x0009},
817 {0x00, 0x0000, 0x000a},
818 {0x00, 0x0000, 0x000b},
819 {0x00, 0x0001, 0x000c},
820 {0x00, 0x0001, 0x000d},
821 {0x00, 0x0000, 0x000e},
822 {0x00, 0x0002, 0x000f},
823 {0x00, 0x0001, 0x0010},
824 {0x00, 0x0000, 0x0011},
825 {0x00, 0x0000, 0x0012},
826 {0x00, 0x0002, 0x0020},
827 {0x00, 0x0080, 0x0021},
828 {0x00, 0x0001, 0x0022},
829 {0x00, 0x00e0, 0x0023},
830 {0x00, 0x0000, 0x0024},
831 {0x00, 0x00d5, 0x0025},
832 {0x00, 0x0000, 0x0026},
833 {0x00, 0x000b, 0x0027},
834 {0x00, 0x0000, 0x0046},
835 {0x00, 0x0000, 0x0047},
836 {0x00, 0x0000, 0x0048},
837 {0x00, 0x0000, 0x0049},
838 {0x00, 0x0008, 0x004a},
839 {0xff, 0x0000, 0x00d0},
840 {0xff, 0x00d8, 0x00d1},
841 {0xff, 0x0000, 0x00d4},
842 {0xff, 0x0000, 0x00d5},
843 {0x01, 0x00a6, 0x0000},
844 {0x01, 0x0028, 0x0001},
845 {0x01, 0x0000, 0x0002},
846 {0x01, 0x000a, 0x0003},
847 {0x01, 0x0040, 0x0004},
848 {0x01, 0x0066, 0x0007},
849 {0x01, 0x0011, 0x0008},
850 {0x01, 0x0032, 0x0009},
851 {0x01, 0x00fd, 0x000a},
852 {0x01, 0x0038, 0x000b},
853 {0x01, 0x00d1, 0x000c},
854 {0x01, 0x00f7, 0x000d},
855 {0x01, 0x00ed, 0x000e},
856 {0x01, 0x00d8, 0x000f},
857 {0x01, 0x0038, 0x0010},
858 {0x01, 0x00ff, 0x0015},
859 {0x01, 0x0001, 0x0016},
860 {0x01, 0x0032, 0x0017},
861 {0x01, 0x0023, 0x0018},
862 {0x01, 0x00ce, 0x0019},
863 {0x01, 0x0023, 0x001a},
864 {0x01, 0x0032, 0x001b},
865 {0x01, 0x008d, 0x001c},
866 {0x01, 0x00ce, 0x001d},
867 {0x01, 0x008d, 0x001e},
868 {0x01, 0x0000, 0x001f},
869 {0x01, 0x0000, 0x0020},
870 {0x01, 0x00ff, 0x003e},
871 {0x01, 0x0003, 0x003f},
872 {0x01, 0x0000, 0x0040},
873 {0x01, 0x0035, 0x0041},
874 {0x01, 0x0053, 0x0042},
875 {0x01, 0x0069, 0x0043},
876 {0x01, 0x007c, 0x0044},
877 {0x01, 0x008c, 0x0045},
878 {0x01, 0x009a, 0x0046},
879 {0x01, 0x00a8, 0x0047},
880 {0x01, 0x00b4, 0x0048},
881 {0x01, 0x00bf, 0x0049},
882 {0x01, 0x00ca, 0x004a},
883 {0x01, 0x00d4, 0x004b},
884 {0x01, 0x00dd, 0x004c},
885 {0x01, 0x00e7, 0x004d},
886 {0x01, 0x00ef, 0x004e},
887 {0x01, 0x00f8, 0x004f},
888 {0x01, 0x00ff, 0x0050},
889 {0x01, 0x0001, 0x0056},
890 {0x01, 0x0060, 0x0057},
891 {0x01, 0x0040, 0x0058},
892 {0x01, 0x0011, 0x0059},
893 {0x01, 0x0001, 0x005a},
894 {0x02, 0x0007, 0x0005},
895 {0x02, 0xa048, 0x0000},
896 {0x02, 0x0007, 0x0005},
897 {0x02, 0x0015, 0x0006},
898 {0x02, 0x100a, 0x0007},
899 {0x02, 0xa048, 0x0000},
900 {0x02, 0xc002, 0x0001},
901 {0x02, 0x000f, 0x0005},
902 {0x02, 0xa048, 0x0000},
903 {0x05, 0x0022, 0x0004},
904 {0x05, 0x0025, 0x0001},
905 {0x05, 0x0000, 0x0000},
906 {0x05, 0x0026, 0x0001},
907 {0x05, 0x0001, 0x0000},
908 {0x05, 0x0027, 0x0001},
909 {0x05, 0x0000, 0x0000},
910 {0x05, 0x0001, 0x0001},
911 {0x05, 0x0000, 0x0000},
912 {0x05, 0x0021, 0x0001},
913 {0x05, 0x00d2, 0x0000},
914 {0x05, 0x0020, 0x0001},
915 {0x05, 0x0000, 0x0000},
916 {0x00, 0x0090, 0x0005},
917 {0x01, 0x00a6, 0x0000},
918 {0x01, 0x0003, 0x003f},
919 {0x01, 0x0001, 0x0056},
920 {0x01, 0x0011, 0x0008},
921 {0x01, 0x0032, 0x0009},
922 {0x01, 0xfffd, 0x000a},
923 {0x01, 0x0023, 0x000b},
924 {0x01, 0xffea, 0x000c},
925 {0x01, 0xfff4, 0x000d},
926 {0x01, 0xfffc, 0x000e},
927 {0x01, 0xffe3, 0x000f},
928 {0x01, 0x001f, 0x0010},
929 {0x01, 0x00a8, 0x0001},
930 {0x01, 0x0067, 0x0007},
931 {0x01, 0x0032, 0x0017},
932 {0x01, 0x0023, 0x0018},
933 {0x01, 0x00ce, 0x0019},
934 {0x01, 0x0023, 0x001a},
935 {0x01, 0x0032, 0x001b},
936 {0x01, 0x008d, 0x001c},
937 {0x01, 0x00ce, 0x001d},
938 {0x01, 0x008d, 0x001e},
939 {0x01, 0x00c8, 0x0015},
940 {0x01, 0x0032, 0x0016},
941 {0x01, 0x0000, 0x0011},
942 {0x01, 0x0000, 0x0012},
943 {0x01, 0x0000, 0x0013},
944 {0x01, 0x000a, 0x0003},
945 {0x02, 0xc002, 0x0001},
946 {0x02, 0x0007, 0x0005},
947 {0x02, 0xc000, 0x0001},
948 {0x02, 0x0000, 0x0005},
949 {0x02, 0x0007, 0x0005},
950 {0x02, 0x2000, 0x0000},
951 {0x05, 0x0022, 0x0004},
952 {0x05, 0x0015, 0x0001},
953 {0x05, 0x00ea, 0x0000},
954 {0x05, 0x0021, 0x0001},
955 {0x05, 0x00d2, 0x0000},
956 {0x05, 0x0023, 0x0001},
957 {0x05, 0x0003, 0x0000},
958 {0x05, 0x0030, 0x0001},
959 {0x05, 0x002b, 0x0000},
960 {0x05, 0x0031, 0x0001},
961 {0x05, 0x0023, 0x0000},
962 {0x05, 0x0032, 0x0001},
963 {0x05, 0x0023, 0x0000},
964 {0x05, 0x0033, 0x0001},
965 {0x05, 0x0023, 0x0000},
966 {0x05, 0x0034, 0x0001},
967 {0x05, 0x0002, 0x0000},
968 {0x05, 0x0050, 0x0001},
969 {0x05, 0x0000, 0x0000},
970 {0x05, 0x0051, 0x0001},
971 {0x05, 0x0000, 0x0000},
972 {0x05, 0x0052, 0x0001},
973 {0x05, 0x0000, 0x0000},
974 {0x05, 0x0054, 0x0001},
975 {0x05, 0x0001, 0x0000},
976 {0x00, 0x0000, 0x0001},
977 {0x00, 0x0000, 0x0002},
978 {0x00, 0x000c, 0x0003},
979 {0x00, 0x0000, 0x0004},
980 {0x00, 0x0090, 0x0005},
981 {0x00, 0x0000, 0x0006},
982 {0x00, 0x0040, 0x0007},
983 {0x00, 0x00c0, 0x0008},
984 {0x00, 0x004a, 0x0009},
985 {0x00, 0x0000, 0x000a},
986 {0x00, 0x0000, 0x000b},
987 {0x00, 0x0001, 0x000c},
988 {0x00, 0x0001, 0x000d},
989 {0x00, 0x0000, 0x000e},
990 {0x00, 0x0002, 0x000f},
991 {0x00, 0x0001, 0x0010},
992 {0x00, 0x0000, 0x0011},
993 {0x00, 0x0000, 0x0012},
994 {0x00, 0x0002, 0x0020},
995 {0x00, 0x0080, 0x0021},
996 {0x00, 0x0001, 0x0022},
997 {0x00, 0x00e0, 0x0023},
998 {0x00, 0x0000, 0x0024},
999 {0x00, 0x00d5, 0x0025},
1000 {0x00, 0x0000, 0x0026},
1001 {0x00, 0x000b, 0x0027},
1002 {0x00, 0x0000, 0x0046},
1003 {0x00, 0x0000, 0x0047},
1004 {0x00, 0x0000, 0x0048},
1005 {0x00, 0x0000, 0x0049},
1006 {0x00, 0x0008, 0x004a},
1007 {0xff, 0x0000, 0x00d0},
1008 {0xff, 0x00d8, 0x00d1},
1009 {0xff, 0x0000, 0x00d4},
1010 {0xff, 0x0000, 0x00d5},
1011 {0x01, 0x00a6, 0x0000},
1012 {0x01, 0x0028, 0x0001},
1013 {0x01, 0x0000, 0x0002},
1014 {0x01, 0x000a, 0x0003},
1015 {0x01, 0x0040, 0x0004},
1016 {0x01, 0x0066, 0x0007},
1017 {0x01, 0x0011, 0x0008},
1018 {0x01, 0x0032, 0x0009},
1019 {0x01, 0x00fd, 0x000a},
1020 {0x01, 0x0038, 0x000b},
1021 {0x01, 0x00d1, 0x000c},
1022 {0x01, 0x00f7, 0x000d},
1023 {0x01, 0x00ed, 0x000e},
1024 {0x01, 0x00d8, 0x000f},
1025 {0x01, 0x0038, 0x0010},
1026 {0x01, 0x00ff, 0x0015},
1027 {0x01, 0x0001, 0x0016},
1028 {0x01, 0x0032, 0x0017},
1029 {0x01, 0x0023, 0x0018},
1030 {0x01, 0x00ce, 0x0019},
1031 {0x01, 0x0023, 0x001a},
1032 {0x01, 0x0032, 0x001b},
1033 {0x01, 0x008d, 0x001c},
1034 {0x01, 0x00ce, 0x001d},
1035 {0x01, 0x008d, 0x001e},
1036 {0x01, 0x0000, 0x001f},
1037 {0x01, 0x0000, 0x0020},
1038 {0x01, 0x00ff, 0x003e},
1039 {0x01, 0x0003, 0x003f},
1040 {0x01, 0x0000, 0x0040},
1041 {0x01, 0x0035, 0x0041},
1042 {0x01, 0x0053, 0x0042},
1043 {0x01, 0x0069, 0x0043},
1044 {0x01, 0x007c, 0x0044},
1045 {0x01, 0x008c, 0x0045},
1046 {0x01, 0x009a, 0x0046},
1047 {0x01, 0x00a8, 0x0047},
1048 {0x01, 0x00b4, 0x0048},
1049 {0x01, 0x00bf, 0x0049},
1050 {0x01, 0x00ca, 0x004a},
1051 {0x01, 0x00d4, 0x004b},
1052 {0x01, 0x00dd, 0x004c},
1053 {0x01, 0x00e7, 0x004d},
1054 {0x01, 0x00ef, 0x004e},
1055 {0x01, 0x00f8, 0x004f},
1056 {0x01, 0x00ff, 0x0050},
1057 {0x01, 0x0001, 0x0056},
1058 {0x01, 0x0060, 0x0057},
1059 {0x01, 0x0040, 0x0058},
1060 {0x01, 0x0011, 0x0059},
1061 {0x01, 0x0001, 0x005a},
1062 {0x02, 0x0007, 0x0005},
1063 {0x02, 0xa048, 0x0000},
1064 {0x02, 0x0007, 0x0005},
1065 {0x02, 0x0015, 0x0006},
1066 {0x02, 0x100a, 0x0007},
1067 {0x02, 0xa048, 0x0000},
1068 {0x02, 0xc002, 0x0001},
1069 {0x02, 0x000f, 0x0005},
1070 {0x02, 0xa048, 0x0000},
1071 {0x05, 0x0022, 0x0004},
1072 {0x05, 0x0025, 0x0001},
1073 {0x05, 0x0000, 0x0000},
1074 {0x05, 0x0026, 0x0001},
1075 {0x05, 0x0001, 0x0000},
1076 {0x05, 0x0027, 0x0001},
1077 {0x05, 0x0000, 0x0000},
1078 {0x05, 0x0001, 0x0001},
1079 {0x05, 0x0000, 0x0000},
1080 {0x05, 0x0021, 0x0001},
1081 {0x05, 0x00d2, 0x0000},
1082 {0x05, 0x0020, 0x0001},
1083 {0x05, 0x0000, 0x0000},
1084 {0x00, 0x0090, 0x0005},
1085 {0x01, 0x00a6, 0x0000},
1086 {0x02, 0x0007, 0x0005},
1087 {0x02, 0x2000, 0x0000},
1088 {0x05, 0x0022, 0x0004},
1089 {0x05, 0x0015, 0x0001},
1090 {0x05, 0x00ea, 0x0000},
1091 {0x05, 0x0021, 0x0001},
1092 {0x05, 0x00d2, 0x0000},
1093 {0x05, 0x0023, 0x0001},
1094 {0x05, 0x0003, 0x0000},
1095 {0x05, 0x0030, 0x0001},
1096 {0x05, 0x002b, 0x0000},
1097 {0x05, 0x0031, 0x0001},
1098 {0x05, 0x0023, 0x0000},
1099 {0x05, 0x0032, 0x0001},
1100 {0x05, 0x0023, 0x0000},
1101 {0x05, 0x0033, 0x0001},
1102 {0x05, 0x0023, 0x0000},
1103 {0x05, 0x0034, 0x0001},
1104 {0x05, 0x0002, 0x0000},
1105 {0x05, 0x0050, 0x0001},
1106 {0x05, 0x0000, 0x0000},
1107 {0x05, 0x0051, 0x0001},
1108 {0x05, 0x0000, 0x0000},
1109 {0x05, 0x0052, 0x0001},
1110 {0x05, 0x0000, 0x0000},
1111 {0x05, 0x0054, 0x0001},
1112 {0x05, 0x0001, 0x0000},
1113 {0x00, 0x0000, 0x0001},
1114 {0x00, 0x0000, 0x0002},
1115 {0x00, 0x000c, 0x0003},
1116 {0x00, 0x0000, 0x0004},
1117 {0x00, 0x0090, 0x0005},
1118 {0x00, 0x0000, 0x0006},
1119 {0x00, 0x0040, 0x0007},
1120 {0x00, 0x00c0, 0x0008},
1121 {0x00, 0x004a, 0x0009},
1122 {0x00, 0x0000, 0x000a},
1123 {0x00, 0x0000, 0x000b},
1124 {0x00, 0x0001, 0x000c},
1125 {0x00, 0x0001, 0x000d},
1126 {0x00, 0x0000, 0x000e},
1127 {0x00, 0x0002, 0x000f},
1128 {0x00, 0x0001, 0x0010},
1129 {0x00, 0x0000, 0x0011},
1130 {0x00, 0x0000, 0x0012},
1131 {0x00, 0x0002, 0x0020},
1132 {0x00, 0x0080, 0x0021},
1133 {0x00, 0x0001, 0x0022},
1134 {0x00, 0x00e0, 0x0023},
1135 {0x00, 0x0000, 0x0024},
1136 {0x00, 0x00d5, 0x0025},
1137 {0x00, 0x0000, 0x0026},
1138 {0x00, 0x000b, 0x0027},
1139 {0x00, 0x0000, 0x0046},
1140 {0x00, 0x0000, 0x0047},
1141 {0x00, 0x0000, 0x0048},
1142 {0x00, 0x0000, 0x0049},
1143 {0x00, 0x0008, 0x004a},
1144 {0xff, 0x0000, 0x00d0},
1145 {0xff, 0x00d8, 0x00d1},
1146 {0xff, 0x0000, 0x00d4},
1147 {0xff, 0x0000, 0x00d5},
1148 {0x01, 0x00a6, 0x0000},
1149 {0x01, 0x0028, 0x0001},
1150 {0x01, 0x0000, 0x0002},
1151 {0x01, 0x000a, 0x0003},
1152 {0x01, 0x0040, 0x0004},
1153 {0x01, 0x0066, 0x0007},
1154 {0x01, 0x0011, 0x0008},
1155 {0x01, 0x0032, 0x0009},
1156 {0x01, 0x00fd, 0x000a},
1157 {0x01, 0x0038, 0x000b},
1158 {0x01, 0x00d1, 0x000c},
1159 {0x01, 0x00f7, 0x000d},
1160 {0x01, 0x00ed, 0x000e},
1161 {0x01, 0x00d8, 0x000f},
1162 {0x01, 0x0038, 0x0010},
1163 {0x01, 0x00ff, 0x0015},
1164 {0x01, 0x0001, 0x0016},
1165 {0x01, 0x0032, 0x0017},
1166 {0x01, 0x0023, 0x0018},
1167 {0x01, 0x00ce, 0x0019},
1168 {0x01, 0x0023, 0x001a},
1169 {0x01, 0x0032, 0x001b},
1170 {0x01, 0x008d, 0x001c},
1171 {0x01, 0x00ce, 0x001d},
1172 {0x01, 0x008d, 0x001e},
1173 {0x01, 0x0000, 0x001f},
1174 {0x01, 0x0000, 0x0020},
1175 {0x01, 0x00ff, 0x003e},
1176 {0x01, 0x0003, 0x003f},
1177 {0x01, 0x0000, 0x0040},
1178 {0x01, 0x0035, 0x0041},
1179 {0x01, 0x0053, 0x0042},
1180 {0x01, 0x0069, 0x0043},
1181 {0x01, 0x007c, 0x0044},
1182 {0x01, 0x008c, 0x0045},
1183 {0x01, 0x009a, 0x0046},
1184 {0x01, 0x00a8, 0x0047},
1185 {0x01, 0x00b4, 0x0048},
1186 {0x01, 0x00bf, 0x0049},
1187 {0x01, 0x00ca, 0x004a},
1188 {0x01, 0x00d4, 0x004b},
1189 {0x01, 0x00dd, 0x004c},
1190 {0x01, 0x00e7, 0x004d},
1191 {0x01, 0x00ef, 0x004e},
1192 {0x01, 0x00f8, 0x004f},
1193 {0x01, 0x00ff, 0x0050},
1194 {0x01, 0x0001, 0x0056},
1195 {0x01, 0x0060, 0x0057},
1196 {0x01, 0x0040, 0x0058},
1197 {0x01, 0x0011, 0x0059},
1198 {0x01, 0x0001, 0x005a},
1199 {0x02, 0x0007, 0x0005},
1200 {0x02, 0xa048, 0x0000},
1201 {0x02, 0x0007, 0x0005},
1202 {0x02, 0x0015, 0x0006},
1203 {0x02, 0x100a, 0x0007},
1204 {0x02, 0xa048, 0x0000},
1205 {0x02, 0xc002, 0x0001},
1206 {0x02, 0x000f, 0x0005},
1207 {0x02, 0xa048, 0x0000},
1208 {0x05, 0x0022, 0x0004},
1209 {0x05, 0x0025, 0x0001},
1210 {0x05, 0x0000, 0x0000},
1211 {0x05, 0x0026, 0x0001},
1212 {0x05, 0x0001, 0x0000},
1213 {0x05, 0x0027, 0x0001},
1214 {0x05, 0x0000, 0x0000},
1215 {0x05, 0x0001, 0x0001},
1216 {0x05, 0x0000, 0x0000},
1217 {0x05, 0x0021, 0x0001},
1218 {0x05, 0x00d2, 0x0000},
1219 {0x05, 0x0020, 0x0001},
1220 {0x05, 0x0000, 0x0000},
1221 {0x00, 0x0090, 0x0005},
1222 {0x01, 0x00a6, 0x0000},
1223 {0x05, 0x0026, 0x0001},
1224 {0x05, 0x0001, 0x0000},
1225 {0x05, 0x0027, 0x0001},
1226 {0x05, 0x000f, 0x0000},
1227 {0x01, 0x0003, 0x003f},
1228 {0x01, 0x0001, 0x0056},
1229 {0x01, 0x0011, 0x0008},
1230 {0x01, 0x0032, 0x0009},
1231 {0x01, 0xfffd, 0x000a},
1232 {0x01, 0x0023, 0x000b},
1233 {0x01, 0xffea, 0x000c},
1234 {0x01, 0xfff4, 0x000d},
1235 {0x01, 0xfffc, 0x000e},
1236 {0x01, 0xffe3, 0x000f},
1237 {0x01, 0x001f, 0x0010},
1238 {0x01, 0x00a8, 0x0001},
1239 {0x01, 0x0067, 0x0007},
1240 {0x01, 0x0042, 0x0051},
1241 {0x01, 0x0051, 0x0053},
1242 {0x01, 0x000a, 0x0003},
1243 {0x02, 0xc002, 0x0001},
1244 {0x02, 0x0007, 0x0005},
1245 {0x02, 0xc000, 0x0001},
1246 {0x02, 0x0000, 0x0005},
1247 {0x02, 0x0007, 0x0005},
1248 {0x02, 0x2000, 0x0000},
1249 {0x05, 0x0022, 0x0004},
1250 {0x05, 0x0015, 0x0001},
1251 {0x05, 0x00ea, 0x0000},
1252 {0x05, 0x0021, 0x0001},
1253 {0x05, 0x00d2, 0x0000},
1254 {0x05, 0x0023, 0x0001},
1255 {0x05, 0x0003, 0x0000},
1256 {0x05, 0x0030, 0x0001},
1257 {0x05, 0x002b, 0x0000},
1258 {0x05, 0x0031, 0x0001},
1259 {0x05, 0x0023, 0x0000},
1260 {0x05, 0x0032, 0x0001},
1261 {0x05, 0x0023, 0x0000},
1262 {0x05, 0x0033, 0x0001},
1263 {0x05, 0x0023, 0x0000},
1264 {0x05, 0x0034, 0x0001},
1265 {0x05, 0x0002, 0x0000},
1266 {0x05, 0x0050, 0x0001},
1267 {0x05, 0x0000, 0x0000},
1268 {0x05, 0x0051, 0x0001},
1269 {0x05, 0x0000, 0x0000},
1270 {0x05, 0x0052, 0x0001},
1271 {0x05, 0x0000, 0x0000},
1272 {0x05, 0x0054, 0x0001},
1273 {0x05, 0x0001, 0x0000},
1274 {0x00, 0x0000, 0x0001},
1275 {0x00, 0x0000, 0x0002},
1276 {0x00, 0x000c, 0x0003},
1277 {0x00, 0x0000, 0x0004},
1278 {0x00, 0x0090, 0x0005},
1279 {0x00, 0x0000, 0x0006},
1280 {0x00, 0x0040, 0x0007},
1281 {0x00, 0x00c0, 0x0008},
1282 {0x00, 0x004a, 0x0009},
1283 {0x00, 0x0000, 0x000a},
1284 {0x00, 0x0000, 0x000b},
1285 {0x00, 0x0001, 0x000c},
1286 {0x00, 0x0001, 0x000d},
1287 {0x00, 0x0000, 0x000e},
1288 {0x00, 0x0002, 0x000f},
1289 {0x00, 0x0001, 0x0010},
1290 {0x00, 0x0000, 0x0011},
1291 {0x00, 0x0000, 0x0012},
1292 {0x00, 0x0002, 0x0020},
1293 {0x00, 0x0080, 0x0021},
1294 {0x00, 0x0001, 0x0022},
1295 {0x00, 0x00e0, 0x0023},
1296 {0x00, 0x0000, 0x0024},
1297 {0x00, 0x00d5, 0x0025},
1298 {0x00, 0x0000, 0x0026},
1299 {0x00, 0x000b, 0x0027},
1300 {0x00, 0x0000, 0x0046},
1301 {0x00, 0x0000, 0x0047},
1302 {0x00, 0x0000, 0x0048},
1303 {0x00, 0x0000, 0x0049},
1304 {0x00, 0x0008, 0x004a},
1305 {0xff, 0x0000, 0x00d0},
1306 {0xff, 0x00d8, 0x00d1},
1307 {0xff, 0x0000, 0x00d4},
1308 {0xff, 0x0000, 0x00d5},
1309 {0x01, 0x00a6, 0x0000},
1310 {0x01, 0x0028, 0x0001},
1311 {0x01, 0x0000, 0x0002},
1312 {0x01, 0x000a, 0x0003},
1313 {0x01, 0x0040, 0x0004},
1314 {0x01, 0x0066, 0x0007},
1315 {0x01, 0x0011, 0x0008},
1316 {0x01, 0x0032, 0x0009},
1317 {0x01, 0x00fd, 0x000a},
1318 {0x01, 0x0038, 0x000b},
1319 {0x01, 0x00d1, 0x000c},
1320 {0x01, 0x00f7, 0x000d},
1321 {0x01, 0x00ed, 0x000e},
1322 {0x01, 0x00d8, 0x000f},
1323 {0x01, 0x0038, 0x0010},
1324 {0x01, 0x00ff, 0x0015},
1325 {0x01, 0x0001, 0x0016},
1326 {0x01, 0x0032, 0x0017},
1327 {0x01, 0x0023, 0x0018},
1328 {0x01, 0x00ce, 0x0019},
1329 {0x01, 0x0023, 0x001a},
1330 {0x01, 0x0032, 0x001b},
1331 {0x01, 0x008d, 0x001c},
1332 {0x01, 0x00ce, 0x001d},
1333 {0x01, 0x008d, 0x001e},
1334 {0x01, 0x0000, 0x001f},
1335 {0x01, 0x0000, 0x0020},
1336 {0x01, 0x00ff, 0x003e},
1337 {0x01, 0x0003, 0x003f},
1338 {0x01, 0x0000, 0x0040},
1339 {0x01, 0x0035, 0x0041},
1340 {0x01, 0x0053, 0x0042},
1341 {0x01, 0x0069, 0x0043},
1342 {0x01, 0x007c, 0x0044},
1343 {0x01, 0x008c, 0x0045},
1344 {0x01, 0x009a, 0x0046},
1345 {0x01, 0x00a8, 0x0047},
1346 {0x01, 0x00b4, 0x0048},
1347 {0x01, 0x00bf, 0x0049},
1348 {0x01, 0x00ca, 0x004a},
1349 {0x01, 0x00d4, 0x004b},
1350 {0x01, 0x00dd, 0x004c},
1351 {0x01, 0x00e7, 0x004d},
1352 {0x01, 0x00ef, 0x004e},
1353 {0x01, 0x00f8, 0x004f},
1354 {0x01, 0x00ff, 0x0050},
1355 {0x01, 0x0001, 0x0056},
1356 {0x01, 0x0060, 0x0057},
1357 {0x01, 0x0040, 0x0058},
1358 {0x01, 0x0011, 0x0059},
1359 {0x01, 0x0001, 0x005a},
1360 {0x02, 0x0007, 0x0005},
1361 {0x02, 0xa048, 0x0000},
1362 {0x02, 0x0007, 0x0005},
1363 {0x02, 0x0015, 0x0006},
1364 {0x02, 0x100a, 0x0007},
1365 {0x02, 0xa048, 0x0000},
1366 {0x02, 0xc002, 0x0001},
1367 {0x02, 0x000f, 0x0005},
1368 {0x02, 0xa048, 0x0000},
1369 {0x05, 0x0022, 0x0004},
1370 {0x05, 0x0025, 0x0001},
1371 {0x05, 0x0000, 0x0000},
1372 {0x05, 0x0026, 0x0001},
1373 {0x05, 0x0001, 0x0000},
1374 {0x05, 0x0027, 0x0001},
1375 {0x05, 0x0000, 0x0000},
1376 {0x05, 0x0001, 0x0001},
1377 {0x05, 0x0000, 0x0000},
1378 {0x05, 0x0021, 0x0001},
1379 {0x05, 0x00d2, 0x0000},
1380 {0x05, 0x0020, 0x0001},
1381 {0x05, 0x0000, 0x0000},
1382 {0x00, 0x0090, 0x0005},
1383 {0x01, 0x00a6, 0x0000},
1384 {0x02, 0x0007, 0x0005},
1385 {0x02, 0x2000, 0x0000},
1386 {0x05, 0x0022, 0x0004},
1387 {0x05, 0x0015, 0x0001},
1388 {0x05, 0x00ea, 0x0000},
1389 {0x05, 0x0021, 0x0001},
1390 {0x05, 0x00d2, 0x0000},
1391 {0x05, 0x0023, 0x0001},
1392 {0x05, 0x0003, 0x0000},
1393 {0x05, 0x0030, 0x0001},
1394 {0x05, 0x002b, 0x0000},
1395 {0x05, 0x0031, 0x0001},
1396 {0x05, 0x0023, 0x0000},
1397 {0x05, 0x0032, 0x0001},
1398 {0x05, 0x0023, 0x0000},
1399 {0x05, 0x0033, 0x0001},
1400 {0x05, 0x0023, 0x0000},
1401 {0x05, 0x0034, 0x0001},
1402 {0x05, 0x0002, 0x0000},
1403 {0x05, 0x0050, 0x0001},
1404 {0x05, 0x0000, 0x0000},
1405 {0x05, 0x0051, 0x0001},
1406 {0x05, 0x0000, 0x0000},
1407 {0x05, 0x0052, 0x0001},
1408 {0x05, 0x0000, 0x0000},
1409 {0x05, 0x0054, 0x0001},
1410 {0x05, 0x0001, 0x0000},
1411 {0x00, 0x0000, 0x0001},
1412 {0x00, 0x0000, 0x0002},
1413 {0x00, 0x000c, 0x0003},
1414 {0x00, 0x0000, 0x0004},
1415 {0x00, 0x0090, 0x0005},
1416 {0x00, 0x0000, 0x0006},
1417 {0x00, 0x0040, 0x0007},
1418 {0x00, 0x00c0, 0x0008},
1419 {0x00, 0x004a, 0x0009},
1420 {0x00, 0x0000, 0x000a},
1421 {0x00, 0x0000, 0x000b},
1422 {0x00, 0x0001, 0x000c},
1423 {0x00, 0x0001, 0x000d},
1424 {0x00, 0x0000, 0x000e},
1425 {0x00, 0x0002, 0x000f},
1426 {0x00, 0x0001, 0x0010},
1427 {0x00, 0x0000, 0x0011},
1428 {0x00, 0x0000, 0x0012},
1429 {0x00, 0x0002, 0x0020},
1430 {0x00, 0x0080, 0x0021},
1431 {0x00, 0x0001, 0x0022},
1432 {0x00, 0x00e0, 0x0023},
1433 {0x00, 0x0000, 0x0024},
1434 {0x00, 0x00d5, 0x0025},
1435 {0x00, 0x0000, 0x0026},
1436 {0x00, 0x000b, 0x0027},
1437 {0x00, 0x0000, 0x0046},
1438 {0x00, 0x0000, 0x0047},
1439 {0x00, 0x0000, 0x0048},
1440 {0x00, 0x0000, 0x0049},
1441 {0x00, 0x0008, 0x004a},
1442 {0xff, 0x0000, 0x00d0},
1443 {0xff, 0x00d8, 0x00d1},
1444 {0xff, 0x0000, 0x00d4},
1445 {0xff, 0x0000, 0x00d5},
1446 {0x01, 0x00a6, 0x0000},
1447 {0x01, 0x0028, 0x0001},
1448 {0x01, 0x0000, 0x0002},
1449 {0x01, 0x000a, 0x0003},
1450 {0x01, 0x0040, 0x0004},
1451 {0x01, 0x0066, 0x0007},
1452 {0x01, 0x0011, 0x0008},
1453 {0x01, 0x0032, 0x0009},
1454 {0x01, 0x00fd, 0x000a},
1455 {0x01, 0x0038, 0x000b},
1456 {0x01, 0x00d1, 0x000c},
1457 {0x01, 0x00f7, 0x000d},
1458 {0x01, 0x00ed, 0x000e},
1459 {0x01, 0x00d8, 0x000f},
1460 {0x01, 0x0038, 0x0010},
1461 {0x01, 0x00ff, 0x0015},
1462 {0x01, 0x0001, 0x0016},
1463 {0x01, 0x0032, 0x0017},
1464 {0x01, 0x0023, 0x0018},
1465 {0x01, 0x00ce, 0x0019},
1466 {0x01, 0x0023, 0x001a},
1467 {0x01, 0x0032, 0x001b},
1468 {0x01, 0x008d, 0x001c},
1469 {0x01, 0x00ce, 0x001d},
1470 {0x01, 0x008d, 0x001e},
1471 {0x01, 0x0000, 0x001f},
1472 {0x01, 0x0000, 0x0020},
1473 {0x01, 0x00ff, 0x003e},
1474 {0x01, 0x0003, 0x003f},
1475 {0x01, 0x0000, 0x0040},
1476 {0x01, 0x0035, 0x0041},
1477 {0x01, 0x0053, 0x0042},
1478 {0x01, 0x0069, 0x0043},
1479 {0x01, 0x007c, 0x0044},
1480 {0x01, 0x008c, 0x0045},
1481 {0x01, 0x009a, 0x0046},
1482 {0x01, 0x00a8, 0x0047},
1483 {0x01, 0x00b4, 0x0048},
1484 {0x01, 0x00bf, 0x0049},
1485 {0x01, 0x00ca, 0x004a},
1486 {0x01, 0x00d4, 0x004b},
1487 {0x01, 0x00dd, 0x004c},
1488 {0x01, 0x00e7, 0x004d},
1489 {0x01, 0x00ef, 0x004e},
1490 {0x01, 0x00f8, 0x004f},
1491 {0x01, 0x00ff, 0x0050},
1492 {0x01, 0x0001, 0x0056},
1493 {0x01, 0x0060, 0x0057},
1494 {0x01, 0x0040, 0x0058},
1495 {0x01, 0x0011, 0x0059},
1496 {0x01, 0x0001, 0x005a},
1497 {0x02, 0x0007, 0x0005},
1498 {0x02, 0xa048, 0x0000},
1499 {0x02, 0x0007, 0x0005},
1500 {0x02, 0x0015, 0x0006},
1501 {0x02, 0x100a, 0x0007},
1502 {0x02, 0xa048, 0x0000},
1503 {0x02, 0xc002, 0x0001},
1504 {0x02, 0x000f, 0x0005},
1505 {0x02, 0xa048, 0x0000},
1506 {0x05, 0x0022, 0x0004},
1507 {0x05, 0x0025, 0x0001},
1508 {0x05, 0x0000, 0x0000},
1509 {0x05, 0x0026, 0x0001},
1510 {0x05, 0x0001, 0x0000},
1511 {0x05, 0x0027, 0x0001},
1512 {0x05, 0x0000, 0x0000},
1513 {0x05, 0x0001, 0x0001},
1514 {0x05, 0x0000, 0x0000},
1515 {0x05, 0x0021, 0x0001},
1516 {0x05, 0x00d2, 0x0000},
1517 {0x05, 0x0020, 0x0001},
1518 {0x05, 0x0000, 0x0000},
1519 {0x00, 0x0090, 0x0005},
1520 {0x01, 0x00a6, 0x0000},
1521 {0x05, 0x0026, 0x0001},
1522 {0x05, 0x0001, 0x0000},
1523 {0x05, 0x0027, 0x0001},
1524 {0x05, 0x001e, 0x0000},
1525 {0x01, 0x0003, 0x003f},
1526 {0x01, 0x0001, 0x0056},
1527 {0x01, 0x0011, 0x0008},
1528 {0x01, 0x0032, 0x0009},
1529 {0x01, 0xfffd, 0x000a},
1530 {0x01, 0x0023, 0x000b},
1531 {0x01, 0xffea, 0x000c},
1532 {0x01, 0xfff4, 0x000d},
1533 {0x01, 0xfffc, 0x000e},
1534 {0x01, 0xffe3, 0x000f},
1535 {0x01, 0x001f, 0x0010},
1536 {0x01, 0x00a8, 0x0001},
1537 {0x01, 0x0067, 0x0007},
1538 {0x01, 0x0042, 0x0051},
1539 {0x01, 0x0051, 0x0053},
1540 {0x01, 0x000a, 0x0003},
1541 {0x02, 0xc002, 0x0001},
1542 {0x02, 0x0007, 0x0005},
1543 {0x01, 0x0042, 0x0051},
1544 {0x01, 0x0051, 0x0053},
1545 {0x05, 0x0026, 0x0001},
1546 {0x05, 0x0001, 0x0000},
1547 {0x05, 0x0027, 0x0001},
1548 {0x05, 0x002d, 0x0000},
1549 {0x01, 0x0003, 0x003f},
1550 {0x01, 0x0001, 0x0056},
1551 {0x02, 0xc000, 0x0001},
1552 {0x02, 0x0000, 0x0005},
1558 static const __u16 spca501c_mysterious_open_data[][3] = {
1559 {0x02, 0x000f, 0x0005},
1560 {0x02, 0xa048, 0x0000},
1561 {0x05, 0x0022, 0x0004},
1563 {0x01, 0x0016, 0x0011},
1564 {0x01, 0x0000, 0x0012},
1565 {0x01, 0x0006, 0x0013},
1566 {0x01, 0x0078, 0x0051},
1567 {0x01, 0x0040, 0x0052},
1568 {0x01, 0x0046, 0x0053},
1569 {0x01, 0x0040, 0x0054},
1570 {0x00, 0x0025, 0x0000},
1574 {0x00, 0x0026, 0x0000},
1575 {0x00, 0x0001, 0x0000},
1576 {0x00, 0x0027, 0x0000},
1577 {0x00, 0x008a, 0x0000},
1578 {0x02, 0x0007, 0x0005},
1579 {0x02, 0x2000, 0x0000},
1580 {0x05, 0x0022, 0x0004},
1581 {0x05, 0x0015, 0x0001},
1582 {0x05, 0x00ea, 0x0000},
1583 {0x05, 0x0021, 0x0001},
1584 {0x05, 0x00d2, 0x0000},
1585 {0x05, 0x0023, 0x0001},
1586 {0x05, 0x0003, 0x0000},
1587 {0x05, 0x0030, 0x0001},
1588 {0x05, 0x002b, 0x0000},
1589 {0x05, 0x0031, 0x0001},
1590 {0x05, 0x0023, 0x0000},
1591 {0x05, 0x0032, 0x0001},
1592 {0x05, 0x0023, 0x0000},
1593 {0x05, 0x0033, 0x0001},
1594 {0x05, 0x0023, 0x0000},
1595 {0x05, 0x0034, 0x0001},
1596 {0x05, 0x0002, 0x0000},
1597 {0x05, 0x0050, 0x0001},
1598 {0x05, 0x0000, 0x0000},
1599 {0x05, 0x0051, 0x0001},
1600 {0x05, 0x0000, 0x0000},
1601 {0x05, 0x0052, 0x0001},
1602 {0x05, 0x0000, 0x0000},
1603 {0x05, 0x0054, 0x0001},
1604 {0x05, 0x0001, 0x0000},
1609 static const __u16 spca501c_mysterious_init_data[][3] = {
1613 {0x00, 0x0000, 0x0001},
1614 {0x00, 0x0000, 0x0002},
1615 {0x00, 0x0006, 0x0003},
1616 {0x00, 0x0000, 0x0004},
1617 {0x00, 0x0090, 0x0005},
1618 {0x00, 0x0000, 0x0006},
1619 {0x00, 0x0040, 0x0007},
1620 {0x00, 0x00c0, 0x0008},
1621 {0x00, 0x004a, 0x0009},
1622 {0x00, 0x0000, 0x000a},
1623 {0x00, 0x0000, 0x000b},
1624 {0x00, 0x0001, 0x000c},
1625 {0x00, 0x0001, 0x000d},
1626 {0x00, 0x0000, 0x000e},
1627 {0x00, 0x0002, 0x000f},
1628 {0x00, 0x0001, 0x0010},
1629 {0x00, 0x0000, 0x0011},
1630 {0x00, 0x0001, 0x0012},
1631 {0x00, 0x0002, 0x0020},
1632 {0x00, 0x0080, 0x0021},
1633 {0x00, 0x0001, 0x0022},
1634 {0x00, 0x00e0, 0x0023},
1635 {0x00, 0x0000, 0x0024},
1636 {0x00, 0x00d3, 0x0025},
1637 {0x00, 0x0000, 0x0026},
1638 {0x00, 0x000d, 0x0027},
1639 {0x00, 0x0000, 0x0046},
1640 {0x00, 0x0000, 0x0047},
1641 {0x00, 0x0000, 0x0048},
1642 {0x00, 0x0000, 0x0049},
1643 {0x00, 0x0008, 0x004a},
1645 {0x01, 0x00a6, 0x0000},
1646 {0x01, 0x0028, 0x0001},
1647 {0x01, 0x0000, 0x0002},
1648 {0x01, 0x000a, 0x0003},
1649 {0x01, 0x0040, 0x0004},
1650 {0x01, 0x0066, 0x0007},
1651 {0x01, 0x000f, 0x0008},
1652 {0x01, 0x002d, 0x0009},
1653 {0x01, 0x0005, 0x000a},
1654 {0x01, 0x0023, 0x000b},
1655 {0x01, 0x00e0, 0x000c},
1656 {0x01, 0x00fd, 0x000d},
1657 {0x01, 0x00f4, 0x000e},
1658 {0x01, 0x00e4, 0x000f},
1659 {0x01, 0x0028, 0x0010},
1660 {0x01, 0x00ff, 0x0015},
1661 {0x01, 0x0001, 0x0016},
1662 {0x01, 0x0032, 0x0017},
1663 {0x01, 0x0023, 0x0018},
1664 {0x01, 0x00ce, 0x0019},
1665 {0x01, 0x0023, 0x001a},
1666 {0x01, 0x0032, 0x001b},
1667 {0x01, 0x008d, 0x001c},
1668 {0x01, 0x00ce, 0x001d},
1669 {0x01, 0x008d, 0x001e},
1670 {0x01, 0x0000, 0x001f},
1671 {0x01, 0x0000, 0x0020},
1672 {0x01, 0x00ff, 0x003e},
1673 {0x01, 0x0002, 0x003f},
1674 {0x01, 0x0000, 0x0040},
1675 {0x01, 0x0035, 0x0041},
1676 {0x01, 0x0053, 0x0042},
1677 {0x01, 0x0069, 0x0043},
1678 {0x01, 0x007c, 0x0044},
1679 {0x01, 0x008c, 0x0045},
1680 {0x01, 0x009a, 0x0046},
1681 {0x01, 0x00a8, 0x0047},
1682 {0x01, 0x00b4, 0x0048},
1683 {0x01, 0x00bf, 0x0049},
1684 {0x01, 0x00ca, 0x004a},
1685 {0x01, 0x00d4, 0x004b},
1686 {0x01, 0x00dd, 0x004c},
1687 {0x01, 0x00e7, 0x004d},
1688 {0x01, 0x00ef, 0x004e},
1689 {0x01, 0x00f8, 0x004f},
1690 {0x01, 0x00ff, 0x0050},
1691 {0x01, 0x0003, 0x0056},
1692 {0x01, 0x0060, 0x0057},
1693 {0x01, 0x0040, 0x0058},
1694 {0x01, 0x0011, 0x0059},
1695 {0x01, 0x0001, 0x005a},
1696 {0x02, 0x0007, 0x0005},
1697 {0x02, 0xa048, 0x0000},
1698 {0x02, 0x0007, 0x0005},
1699 {0x02, 0x0015, 0x0006},
1700 {0x02, 0x200a, 0x0007},
1701 {0x02, 0xa048, 0x0000},
1702 {0x02, 0xc000, 0x0001},
1703 {0x02, 0x000f, 0x0005},
1704 {0x02, 0xa048, 0x0000},
1705 {0x05, 0x0022, 0x0004},
1706 {0x05, 0x0025, 0x0001},
1707 {0x05, 0x0000, 0x0000},
1709 {0x05, 0x0026, 0x0001},
1710 {0x05, 0x0001, 0x0000},
1711 {0x05, 0x0027, 0x0001},
1712 {0x05, 0x0000, 0x0000},
1713 {0x05, 0x0001, 0x0001},
1714 {0x05, 0x0000, 0x0000},
1715 {0x05, 0x0021, 0x0001},
1716 {0x05, 0x00d2, 0x0000},
1717 {0x05, 0x0020, 0x0001},
1718 {0x05, 0x0000, 0x0000},
1719 {0x00, 0x0090, 0x0005},
1720 {0x01, 0x00a6, 0x0000},
1721 {0x02, 0x0000, 0x0005},
1722 {0x05, 0x0026, 0x0001},
1723 {0x05, 0x0001, 0x0000},
1724 {0x05, 0x0027, 0x0001},
1725 {0x05, 0x004e, 0x0000},
1727 {0x01, 0x0003, 0x003f},
1728 {0x01, 0x0001, 0x0056},
1729 {0x01, 0x000f, 0x0008},
1730 {0x01, 0x002d, 0x0009},
1731 {0x01, 0x0005, 0x000a},
1732 {0x01, 0x0023, 0x000b},
1733 {0x01, 0xffe0, 0x000c},
1734 {0x01, 0xfffd, 0x000d},
1735 {0x01, 0xfff4, 0x000e},
1736 {0x01, 0xffe4, 0x000f},
1737 {0x01, 0x0028, 0x0010},
1738 {0x01, 0x00a8, 0x0001},
1739 {0x01, 0x0066, 0x0007},
1740 {0x01, 0x0032, 0x0017},
1741 {0x01, 0x0023, 0x0018},
1742 {0x01, 0x00ce, 0x0019},
1743 {0x01, 0x0023, 0x001a},
1744 {0x01, 0x0032, 0x001b},
1745 {0x01, 0x008d, 0x001c},
1746 {0x01, 0x00ce, 0x001d},
1747 {0x01, 0x008d, 0x001e},
1748 {0x01, 0x00c8, 0x0015},
1749 {0x01, 0x0032, 0x0016},
1750 {0x01, 0x0016, 0x0011},
1751 {0x01, 0x0016, 0x0012},
1752 {0x01, 0x0016, 0x0013},
1753 {0x01, 0x000a, 0x0003},
1754 {0x02, 0xc002, 0x0001},
1755 {0x02, 0x0007, 0x0005},
1765 usb_sndctrlpipe(dev, 0),
1768 value, index,
NULL, 0, 500);
1769 PDEBUG(D_USBO,
"reg write: 0x%02x 0x%02x 0x%02x",
1772 pr_err(
"reg write: error %d\n", ret);
1780 struct usb_device *dev = gspca_dev->
dev;
1783 while (data[i][0] != 0 || data[i][1] != 0 || data[i][2] != 0) {
1784 ret =
reg_write(dev, data[i][0], data[i][2], data[i][1]);
1787 "Reg write failed for 0x%02x,0x%02x,0x%02x",
1788 data[i][0], data[i][1], data[i][2]);
1796 static void setbrightness(
struct gspca_dev *gspca_dev,
s32 val)
1801 static void setcontrast(
struct gspca_dev *gspca_dev,
s32 val)
1809 static void setcolors(
struct gspca_dev *gspca_dev,
s32 val)
1814 static void setblue_balance(
struct gspca_dev *gspca_dev,
s32 val)
1819 static void setred_balance(
struct gspca_dev *gspca_dev,
s32 val)
1825 static int sd_config(
struct gspca_dev *gspca_dev,
1828 struct sd *
sd = (
struct sd *) gspca_dev;
1831 cam = &gspca_dev->
cam;
1834 sd->
subtype =
id->driver_info;
1840 static int sd_init(
struct gspca_dev *gspca_dev)
1842 struct sd *
sd = (
struct sd *) gspca_dev;
1848 if (write_vector(gspca_dev, spca501c_arowana_init_data))
1853 if (write_vector(gspca_dev, spca501c_mysterious_open_data))
1858 if (write_vector(gspca_dev, spca501_init_data))
1862 PDEBUG(D_STREAM,
"Initializing SPCA501 finished");
1868 static int sd_start(
struct gspca_dev *gspca_dev)
1870 struct sd *sd = (
struct sd *) gspca_dev;
1871 struct usb_device *dev = gspca_dev->
dev;
1877 write_vector(gspca_dev, spca501_3com_open_data);
1882 write_vector(gspca_dev, spca501c_arowana_open_data);
1886 write_vector(gspca_dev, spca501c_mysterious_init_data);
1890 write_vector(gspca_dev, spca501_open_data);
1916 static void sd_stopN(
struct gspca_dev *gspca_dev)
1924 static void sd_stop0(
struct gspca_dev *gspca_dev)
1931 static void sd_pkt_scan(
struct gspca_dev *gspca_dev,
1953 struct gspca_dev *gspca_dev =
1963 setbrightness(gspca_dev, ctrl->
val);
1966 setcontrast(gspca_dev, ctrl->
val);
1969 setcolors(gspca_dev, ctrl->
val);
1972 setblue_balance(gspca_dev, ctrl->
val);
1975 setred_balance(gspca_dev, ctrl->
val);
1982 .s_ctrl = sd_s_ctrl,
1985 static int sd_init_controls(
struct gspca_dev *gspca_dev)
1989 gspca_dev->
vdev.ctrl_handler = hdl;
2003 pr_err(
"Could not initialize controls\n");
2012 .config = sd_config,
2014 .init_controls = sd_init_controls,
2018 .pkt_scan = sd_pkt_scan,
2023 {USB_DEVICE(0x040a, 0x0002), .driver_info =
KodakDVC325},
2042 static struct usb_driver sd_driver = {
2044 .id_table = device_table,
2048 .suspend = gspca_suspend,
2049 .resume = gspca_resume,
2050 .reset_resume = gspca_resume,