Lines Matching refs:gspca_dev
51 struct gspca_dev gspca_dev; /* !! must be the first item */ member
67 static void sd_stop0(struct gspca_dev *gspca_dev);
676 static int cit_write_reg(struct gspca_dev *gspca_dev, u16 value, u16 index) in cit_write_reg() argument
678 struct usb_device *udev = gspca_dev->dev; in cit_write_reg()
691 static int cit_read_reg(struct gspca_dev *gspca_dev, u16 index, int verbose) in cit_read_reg() argument
693 struct usb_device *udev = gspca_dev->dev; in cit_read_reg()
694 __u8 *buf = gspca_dev->usb_buf; in cit_read_reg()
707 gspca_dbg(gspca_dev, D_PROBE, "Register %04x value: %02x\n", in cit_read_reg()
722 static void cit_send_FF_04_02(struct gspca_dev *gspca_dev) in cit_send_FF_04_02() argument
724 cit_write_reg(gspca_dev, 0x00FF, 0x0127); in cit_send_FF_04_02()
725 cit_write_reg(gspca_dev, 0x0004, 0x0124); in cit_send_FF_04_02()
726 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_FF_04_02()
729 static void cit_send_00_04_06(struct gspca_dev *gspca_dev) in cit_send_00_04_06() argument
731 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_send_00_04_06()
732 cit_write_reg(gspca_dev, 0x0004, 0x0124); in cit_send_00_04_06()
733 cit_write_reg(gspca_dev, 0x0006, 0x0124); in cit_send_00_04_06()
736 static void cit_send_x_00(struct gspca_dev *gspca_dev, unsigned short x) in cit_send_x_00() argument
738 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00()
739 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00()
742 static void cit_send_x_00_05(struct gspca_dev *gspca_dev, unsigned short x) in cit_send_x_00_05() argument
744 cit_send_x_00(gspca_dev, x); in cit_send_x_00_05()
745 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05()
748 static void cit_send_x_00_05_02(struct gspca_dev *gspca_dev, unsigned short x) in cit_send_x_00_05_02() argument
750 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00_05_02()
751 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00_05_02()
752 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05_02()
753 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_x_00_05_02()
756 static void cit_send_x_01_00_05(struct gspca_dev *gspca_dev, u16 x) in cit_send_x_01_00_05() argument
758 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_01_00_05()
759 cit_write_reg(gspca_dev, 0x0001, 0x0124); in cit_send_x_01_00_05()
760 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_01_00_05()
761 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_01_00_05()
764 static void cit_send_x_00_05_02_01(struct gspca_dev *gspca_dev, u16 x) in cit_send_x_00_05_02_01() argument
766 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00_05_02_01()
767 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00_05_02_01()
768 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05_02_01()
769 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_x_00_05_02_01()
770 cit_write_reg(gspca_dev, 0x0001, 0x0124); in cit_send_x_00_05_02_01()
773 static void cit_send_x_00_05_02_08_01(struct gspca_dev *gspca_dev, u16 x) in cit_send_x_00_05_02_08_01() argument
775 cit_write_reg(gspca_dev, x, 0x0127); in cit_send_x_00_05_02_08_01()
776 cit_write_reg(gspca_dev, 0x0000, 0x0124); in cit_send_x_00_05_02_08_01()
777 cit_write_reg(gspca_dev, 0x0005, 0x0124); in cit_send_x_00_05_02_08_01()
778 cit_write_reg(gspca_dev, 0x0002, 0x0124); in cit_send_x_00_05_02_08_01()
779 cit_write_reg(gspca_dev, 0x0008, 0x0124); in cit_send_x_00_05_02_08_01()
780 cit_write_reg(gspca_dev, 0x0001, 0x0124); in cit_send_x_00_05_02_08_01()
783 static void cit_Packet_Format1(struct gspca_dev *gspca_dev, u16 fkey, u16 val) in cit_Packet_Format1() argument
785 cit_send_x_01_00_05(gspca_dev, 0x0088); in cit_Packet_Format1()
786 cit_send_x_00_05(gspca_dev, fkey); in cit_Packet_Format1()
787 cit_send_x_00_05_02_08_01(gspca_dev, val); in cit_Packet_Format1()
788 cit_send_x_00_05(gspca_dev, 0x0088); in cit_Packet_Format1()
789 cit_send_x_00_05_02_01(gspca_dev, fkey); in cit_Packet_Format1()
790 cit_send_x_00_05(gspca_dev, 0x0089); in cit_Packet_Format1()
791 cit_send_x_00(gspca_dev, fkey); in cit_Packet_Format1()
792 cit_send_00_04_06(gspca_dev); in cit_Packet_Format1()
793 cit_read_reg(gspca_dev, 0x0126, 0); in cit_Packet_Format1()
794 cit_send_FF_04_02(gspca_dev); in cit_Packet_Format1()
797 static void cit_PacketFormat2(struct gspca_dev *gspca_dev, u16 fkey, u16 val) in cit_PacketFormat2() argument
799 cit_send_x_01_00_05(gspca_dev, 0x0088); in cit_PacketFormat2()
800 cit_send_x_00_05(gspca_dev, fkey); in cit_PacketFormat2()
801 cit_send_x_00_05_02(gspca_dev, val); in cit_PacketFormat2()
804 static void cit_model2_Packet2(struct gspca_dev *gspca_dev) in cit_model2_Packet2() argument
806 cit_write_reg(gspca_dev, 0x00ff, 0x012d); in cit_model2_Packet2()
807 cit_write_reg(gspca_dev, 0xfea3, 0x0124); in cit_model2_Packet2()
810 static void cit_model2_Packet1(struct gspca_dev *gspca_dev, u16 v1, u16 v2) in cit_model2_Packet1() argument
812 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_model2_Packet1()
813 cit_write_reg(gspca_dev, 0x00ff, 0x012e); in cit_model2_Packet1()
814 cit_write_reg(gspca_dev, v1, 0x012f); in cit_model2_Packet1()
815 cit_write_reg(gspca_dev, 0x00ff, 0x0130); in cit_model2_Packet1()
816 cit_write_reg(gspca_dev, 0xc719, 0x0124); in cit_model2_Packet1()
817 cit_write_reg(gspca_dev, v2, 0x0127); in cit_model2_Packet1()
819 cit_model2_Packet2(gspca_dev); in cit_model2_Packet1()
831 static void cit_model3_Packet1(struct gspca_dev *gspca_dev, u16 v1, u16 v2) in cit_model3_Packet1() argument
833 cit_write_reg(gspca_dev, 0x0078, 0x012d); in cit_model3_Packet1()
834 cit_write_reg(gspca_dev, v1, 0x012f); in cit_model3_Packet1()
835 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_model3_Packet1()
836 cit_write_reg(gspca_dev, v2, 0x0127); in cit_model3_Packet1()
837 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_model3_Packet1()
840 static void cit_model4_Packet1(struct gspca_dev *gspca_dev, u16 v1, u16 v2) in cit_model4_Packet1() argument
842 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_model4_Packet1()
843 cit_write_reg(gspca_dev, v1, 0x012f); in cit_model4_Packet1()
844 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_model4_Packet1()
845 cit_write_reg(gspca_dev, v2, 0x0127); in cit_model4_Packet1()
846 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_model4_Packet1()
849 static void cit_model4_BrightnessPacket(struct gspca_dev *gspca_dev, u16 val) in cit_model4_BrightnessPacket() argument
851 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_model4_BrightnessPacket()
852 cit_write_reg(gspca_dev, 0x0026, 0x012f); in cit_model4_BrightnessPacket()
853 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_model4_BrightnessPacket()
854 cit_write_reg(gspca_dev, val, 0x0127); in cit_model4_BrightnessPacket()
855 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_model4_BrightnessPacket()
856 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_model4_BrightnessPacket()
857 cit_write_reg(gspca_dev, 0x0038, 0x012d); in cit_model4_BrightnessPacket()
858 cit_write_reg(gspca_dev, 0x0004, 0x012f); in cit_model4_BrightnessPacket()
859 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_model4_BrightnessPacket()
860 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_model4_BrightnessPacket()
864 static int sd_config(struct gspca_dev *gspca_dev, in sd_config() argument
867 struct sd *sd = (struct sd *) gspca_dev; in sd_config()
874 cam = &gspca_dev->cam; in sd_config()
912 static int cit_init_model0(struct gspca_dev *gspca_dev) in cit_init_model0() argument
914 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* turn on led */ in cit_init_model0()
915 cit_write_reg(gspca_dev, 0x0001, 0x0112); /* turn on autogain ? */ in cit_init_model0()
916 cit_write_reg(gspca_dev, 0x0000, 0x0400); in cit_init_model0()
917 cit_write_reg(gspca_dev, 0x0001, 0x0400); in cit_init_model0()
918 cit_write_reg(gspca_dev, 0x0000, 0x0420); in cit_init_model0()
919 cit_write_reg(gspca_dev, 0x0001, 0x0420); in cit_init_model0()
920 cit_write_reg(gspca_dev, 0x000d, 0x0409); in cit_init_model0()
921 cit_write_reg(gspca_dev, 0x0002, 0x040a); in cit_init_model0()
922 cit_write_reg(gspca_dev, 0x0018, 0x0405); in cit_init_model0()
923 cit_write_reg(gspca_dev, 0x0008, 0x0435); in cit_init_model0()
924 cit_write_reg(gspca_dev, 0x0026, 0x040b); in cit_init_model0()
925 cit_write_reg(gspca_dev, 0x0007, 0x0437); in cit_init_model0()
926 cit_write_reg(gspca_dev, 0x0015, 0x042f); in cit_init_model0()
927 cit_write_reg(gspca_dev, 0x002b, 0x0439); in cit_init_model0()
928 cit_write_reg(gspca_dev, 0x0026, 0x043a); in cit_init_model0()
929 cit_write_reg(gspca_dev, 0x0008, 0x0438); in cit_init_model0()
930 cit_write_reg(gspca_dev, 0x001e, 0x042b); in cit_init_model0()
931 cit_write_reg(gspca_dev, 0x0041, 0x042c); in cit_init_model0()
936 static int cit_init_ibm_netcam_pro(struct gspca_dev *gspca_dev) in cit_init_ibm_netcam_pro() argument
938 cit_read_reg(gspca_dev, 0x128, 1); in cit_init_ibm_netcam_pro()
939 cit_write_reg(gspca_dev, 0x0003, 0x0133); in cit_init_ibm_netcam_pro()
940 cit_write_reg(gspca_dev, 0x0000, 0x0117); in cit_init_ibm_netcam_pro()
941 cit_write_reg(gspca_dev, 0x0008, 0x0123); in cit_init_ibm_netcam_pro()
942 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_init_ibm_netcam_pro()
943 cit_read_reg(gspca_dev, 0x0116, 0); in cit_init_ibm_netcam_pro()
944 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_init_ibm_netcam_pro()
945 cit_write_reg(gspca_dev, 0x0002, 0x0112); in cit_init_ibm_netcam_pro()
946 cit_write_reg(gspca_dev, 0x0000, 0x0133); in cit_init_ibm_netcam_pro()
947 cit_write_reg(gspca_dev, 0x0000, 0x0123); in cit_init_ibm_netcam_pro()
948 cit_write_reg(gspca_dev, 0x0001, 0x0117); in cit_init_ibm_netcam_pro()
949 cit_write_reg(gspca_dev, 0x0040, 0x0108); in cit_init_ibm_netcam_pro()
950 cit_write_reg(gspca_dev, 0x0019, 0x012c); in cit_init_ibm_netcam_pro()
951 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_init_ibm_netcam_pro()
952 cit_write_reg(gspca_dev, 0x0002, 0x0115); in cit_init_ibm_netcam_pro()
953 cit_write_reg(gspca_dev, 0x000b, 0x0115); in cit_init_ibm_netcam_pro()
955 cit_write_reg(gspca_dev, 0x0078, 0x012d); in cit_init_ibm_netcam_pro()
956 cit_write_reg(gspca_dev, 0x0001, 0x012f); in cit_init_ibm_netcam_pro()
957 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_init_ibm_netcam_pro()
958 cit_write_reg(gspca_dev, 0x0079, 0x012d); in cit_init_ibm_netcam_pro()
959 cit_write_reg(gspca_dev, 0x00ff, 0x0130); in cit_init_ibm_netcam_pro()
960 cit_write_reg(gspca_dev, 0xcd41, 0x0124); in cit_init_ibm_netcam_pro()
961 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_init_ibm_netcam_pro()
962 cit_read_reg(gspca_dev, 0x0126, 1); in cit_init_ibm_netcam_pro()
964 cit_model3_Packet1(gspca_dev, 0x0000, 0x0000); in cit_init_ibm_netcam_pro()
965 cit_model3_Packet1(gspca_dev, 0x0000, 0x0001); in cit_init_ibm_netcam_pro()
966 cit_model3_Packet1(gspca_dev, 0x000b, 0x0000); in cit_init_ibm_netcam_pro()
967 cit_model3_Packet1(gspca_dev, 0x000c, 0x0008); in cit_init_ibm_netcam_pro()
968 cit_model3_Packet1(gspca_dev, 0x000d, 0x003a); in cit_init_ibm_netcam_pro()
969 cit_model3_Packet1(gspca_dev, 0x000e, 0x0060); in cit_init_ibm_netcam_pro()
970 cit_model3_Packet1(gspca_dev, 0x000f, 0x0060); in cit_init_ibm_netcam_pro()
971 cit_model3_Packet1(gspca_dev, 0x0010, 0x0008); in cit_init_ibm_netcam_pro()
972 cit_model3_Packet1(gspca_dev, 0x0011, 0x0004); in cit_init_ibm_netcam_pro()
973 cit_model3_Packet1(gspca_dev, 0x0012, 0x0028); in cit_init_ibm_netcam_pro()
974 cit_model3_Packet1(gspca_dev, 0x0013, 0x0002); in cit_init_ibm_netcam_pro()
975 cit_model3_Packet1(gspca_dev, 0x0014, 0x0000); in cit_init_ibm_netcam_pro()
976 cit_model3_Packet1(gspca_dev, 0x0015, 0x00fb); in cit_init_ibm_netcam_pro()
977 cit_model3_Packet1(gspca_dev, 0x0016, 0x0002); in cit_init_ibm_netcam_pro()
978 cit_model3_Packet1(gspca_dev, 0x0017, 0x0037); in cit_init_ibm_netcam_pro()
979 cit_model3_Packet1(gspca_dev, 0x0018, 0x0036); in cit_init_ibm_netcam_pro()
980 cit_model3_Packet1(gspca_dev, 0x001e, 0x0000); in cit_init_ibm_netcam_pro()
981 cit_model3_Packet1(gspca_dev, 0x001f, 0x0008); in cit_init_ibm_netcam_pro()
982 cit_model3_Packet1(gspca_dev, 0x0020, 0x00c1); in cit_init_ibm_netcam_pro()
983 cit_model3_Packet1(gspca_dev, 0x0021, 0x0034); in cit_init_ibm_netcam_pro()
984 cit_model3_Packet1(gspca_dev, 0x0022, 0x0034); in cit_init_ibm_netcam_pro()
985 cit_model3_Packet1(gspca_dev, 0x0025, 0x0002); in cit_init_ibm_netcam_pro()
986 cit_model3_Packet1(gspca_dev, 0x0028, 0x0022); in cit_init_ibm_netcam_pro()
987 cit_model3_Packet1(gspca_dev, 0x0029, 0x000a); in cit_init_ibm_netcam_pro()
988 cit_model3_Packet1(gspca_dev, 0x002b, 0x0000); in cit_init_ibm_netcam_pro()
989 cit_model3_Packet1(gspca_dev, 0x002c, 0x0000); in cit_init_ibm_netcam_pro()
990 cit_model3_Packet1(gspca_dev, 0x002d, 0x00ff); in cit_init_ibm_netcam_pro()
991 cit_model3_Packet1(gspca_dev, 0x002e, 0x00ff); in cit_init_ibm_netcam_pro()
992 cit_model3_Packet1(gspca_dev, 0x002f, 0x00ff); in cit_init_ibm_netcam_pro()
993 cit_model3_Packet1(gspca_dev, 0x0030, 0x00ff); in cit_init_ibm_netcam_pro()
994 cit_model3_Packet1(gspca_dev, 0x0031, 0x00ff); in cit_init_ibm_netcam_pro()
995 cit_model3_Packet1(gspca_dev, 0x0032, 0x0007); in cit_init_ibm_netcam_pro()
996 cit_model3_Packet1(gspca_dev, 0x0033, 0x0005); in cit_init_ibm_netcam_pro()
997 cit_model3_Packet1(gspca_dev, 0x0037, 0x0040); in cit_init_ibm_netcam_pro()
998 cit_model3_Packet1(gspca_dev, 0x0039, 0x0000); in cit_init_ibm_netcam_pro()
999 cit_model3_Packet1(gspca_dev, 0x003a, 0x0000); in cit_init_ibm_netcam_pro()
1000 cit_model3_Packet1(gspca_dev, 0x003b, 0x0001); in cit_init_ibm_netcam_pro()
1001 cit_model3_Packet1(gspca_dev, 0x003c, 0x0000); in cit_init_ibm_netcam_pro()
1002 cit_model3_Packet1(gspca_dev, 0x0040, 0x000c); in cit_init_ibm_netcam_pro()
1003 cit_model3_Packet1(gspca_dev, 0x0041, 0x00fb); in cit_init_ibm_netcam_pro()
1004 cit_model3_Packet1(gspca_dev, 0x0042, 0x0002); in cit_init_ibm_netcam_pro()
1005 cit_model3_Packet1(gspca_dev, 0x0043, 0x0000); in cit_init_ibm_netcam_pro()
1006 cit_model3_Packet1(gspca_dev, 0x0045, 0x0000); in cit_init_ibm_netcam_pro()
1007 cit_model3_Packet1(gspca_dev, 0x0046, 0x0000); in cit_init_ibm_netcam_pro()
1008 cit_model3_Packet1(gspca_dev, 0x0047, 0x0000); in cit_init_ibm_netcam_pro()
1009 cit_model3_Packet1(gspca_dev, 0x0048, 0x0000); in cit_init_ibm_netcam_pro()
1010 cit_model3_Packet1(gspca_dev, 0x0049, 0x0000); in cit_init_ibm_netcam_pro()
1011 cit_model3_Packet1(gspca_dev, 0x004a, 0x00ff); in cit_init_ibm_netcam_pro()
1012 cit_model3_Packet1(gspca_dev, 0x004b, 0x00ff); in cit_init_ibm_netcam_pro()
1013 cit_model3_Packet1(gspca_dev, 0x004c, 0x00ff); in cit_init_ibm_netcam_pro()
1014 cit_model3_Packet1(gspca_dev, 0x004f, 0x0000); in cit_init_ibm_netcam_pro()
1015 cit_model3_Packet1(gspca_dev, 0x0050, 0x0000); in cit_init_ibm_netcam_pro()
1016 cit_model3_Packet1(gspca_dev, 0x0051, 0x0002); in cit_init_ibm_netcam_pro()
1017 cit_model3_Packet1(gspca_dev, 0x0055, 0x0000); in cit_init_ibm_netcam_pro()
1018 cit_model3_Packet1(gspca_dev, 0x0056, 0x0000); in cit_init_ibm_netcam_pro()
1019 cit_model3_Packet1(gspca_dev, 0x0057, 0x0000); in cit_init_ibm_netcam_pro()
1020 cit_model3_Packet1(gspca_dev, 0x0058, 0x0002); in cit_init_ibm_netcam_pro()
1021 cit_model3_Packet1(gspca_dev, 0x0059, 0x0000); in cit_init_ibm_netcam_pro()
1022 cit_model3_Packet1(gspca_dev, 0x005c, 0x0016); in cit_init_ibm_netcam_pro()
1023 cit_model3_Packet1(gspca_dev, 0x005d, 0x0022); in cit_init_ibm_netcam_pro()
1024 cit_model3_Packet1(gspca_dev, 0x005e, 0x003c); in cit_init_ibm_netcam_pro()
1025 cit_model3_Packet1(gspca_dev, 0x005f, 0x0050); in cit_init_ibm_netcam_pro()
1026 cit_model3_Packet1(gspca_dev, 0x0060, 0x0044); in cit_init_ibm_netcam_pro()
1027 cit_model3_Packet1(gspca_dev, 0x0061, 0x0005); in cit_init_ibm_netcam_pro()
1028 cit_model3_Packet1(gspca_dev, 0x006a, 0x007e); in cit_init_ibm_netcam_pro()
1029 cit_model3_Packet1(gspca_dev, 0x006f, 0x0000); in cit_init_ibm_netcam_pro()
1030 cit_model3_Packet1(gspca_dev, 0x0072, 0x001b); in cit_init_ibm_netcam_pro()
1031 cit_model3_Packet1(gspca_dev, 0x0073, 0x0005); in cit_init_ibm_netcam_pro()
1032 cit_model3_Packet1(gspca_dev, 0x0074, 0x000a); in cit_init_ibm_netcam_pro()
1033 cit_model3_Packet1(gspca_dev, 0x0075, 0x001b); in cit_init_ibm_netcam_pro()
1034 cit_model3_Packet1(gspca_dev, 0x0076, 0x002a); in cit_init_ibm_netcam_pro()
1035 cit_model3_Packet1(gspca_dev, 0x0077, 0x003c); in cit_init_ibm_netcam_pro()
1036 cit_model3_Packet1(gspca_dev, 0x0078, 0x0050); in cit_init_ibm_netcam_pro()
1037 cit_model3_Packet1(gspca_dev, 0x007b, 0x0000); in cit_init_ibm_netcam_pro()
1038 cit_model3_Packet1(gspca_dev, 0x007c, 0x0011); in cit_init_ibm_netcam_pro()
1039 cit_model3_Packet1(gspca_dev, 0x007d, 0x0024); in cit_init_ibm_netcam_pro()
1040 cit_model3_Packet1(gspca_dev, 0x007e, 0x0043); in cit_init_ibm_netcam_pro()
1041 cit_model3_Packet1(gspca_dev, 0x007f, 0x005a); in cit_init_ibm_netcam_pro()
1042 cit_model3_Packet1(gspca_dev, 0x0084, 0x0020); in cit_init_ibm_netcam_pro()
1043 cit_model3_Packet1(gspca_dev, 0x0085, 0x0033); in cit_init_ibm_netcam_pro()
1044 cit_model3_Packet1(gspca_dev, 0x0086, 0x000a); in cit_init_ibm_netcam_pro()
1045 cit_model3_Packet1(gspca_dev, 0x0087, 0x0030); in cit_init_ibm_netcam_pro()
1046 cit_model3_Packet1(gspca_dev, 0x0088, 0x0070); in cit_init_ibm_netcam_pro()
1047 cit_model3_Packet1(gspca_dev, 0x008b, 0x0008); in cit_init_ibm_netcam_pro()
1048 cit_model3_Packet1(gspca_dev, 0x008f, 0x0000); in cit_init_ibm_netcam_pro()
1049 cit_model3_Packet1(gspca_dev, 0x0090, 0x0006); in cit_init_ibm_netcam_pro()
1050 cit_model3_Packet1(gspca_dev, 0x0091, 0x0028); in cit_init_ibm_netcam_pro()
1051 cit_model3_Packet1(gspca_dev, 0x0092, 0x005a); in cit_init_ibm_netcam_pro()
1052 cit_model3_Packet1(gspca_dev, 0x0093, 0x0082); in cit_init_ibm_netcam_pro()
1053 cit_model3_Packet1(gspca_dev, 0x0096, 0x0014); in cit_init_ibm_netcam_pro()
1054 cit_model3_Packet1(gspca_dev, 0x0097, 0x0020); in cit_init_ibm_netcam_pro()
1055 cit_model3_Packet1(gspca_dev, 0x0098, 0x0000); in cit_init_ibm_netcam_pro()
1056 cit_model3_Packet1(gspca_dev, 0x00b0, 0x0046); in cit_init_ibm_netcam_pro()
1057 cit_model3_Packet1(gspca_dev, 0x00b1, 0x0000); in cit_init_ibm_netcam_pro()
1058 cit_model3_Packet1(gspca_dev, 0x00b2, 0x0000); in cit_init_ibm_netcam_pro()
1059 cit_model3_Packet1(gspca_dev, 0x00b3, 0x0004); in cit_init_ibm_netcam_pro()
1060 cit_model3_Packet1(gspca_dev, 0x00b4, 0x0007); in cit_init_ibm_netcam_pro()
1061 cit_model3_Packet1(gspca_dev, 0x00b6, 0x0002); in cit_init_ibm_netcam_pro()
1062 cit_model3_Packet1(gspca_dev, 0x00b7, 0x0004); in cit_init_ibm_netcam_pro()
1063 cit_model3_Packet1(gspca_dev, 0x00bb, 0x0000); in cit_init_ibm_netcam_pro()
1064 cit_model3_Packet1(gspca_dev, 0x00bc, 0x0001); in cit_init_ibm_netcam_pro()
1065 cit_model3_Packet1(gspca_dev, 0x00bd, 0x0000); in cit_init_ibm_netcam_pro()
1066 cit_model3_Packet1(gspca_dev, 0x00bf, 0x0000); in cit_init_ibm_netcam_pro()
1067 cit_model3_Packet1(gspca_dev, 0x00c0, 0x00c8); in cit_init_ibm_netcam_pro()
1068 cit_model3_Packet1(gspca_dev, 0x00c1, 0x0014); in cit_init_ibm_netcam_pro()
1069 cit_model3_Packet1(gspca_dev, 0x00c2, 0x0001); in cit_init_ibm_netcam_pro()
1070 cit_model3_Packet1(gspca_dev, 0x00c3, 0x0000); in cit_init_ibm_netcam_pro()
1071 cit_model3_Packet1(gspca_dev, 0x00c4, 0x0004); in cit_init_ibm_netcam_pro()
1072 cit_model3_Packet1(gspca_dev, 0x00cb, 0x00bf); in cit_init_ibm_netcam_pro()
1073 cit_model3_Packet1(gspca_dev, 0x00cc, 0x00bf); in cit_init_ibm_netcam_pro()
1074 cit_model3_Packet1(gspca_dev, 0x00cd, 0x00bf); in cit_init_ibm_netcam_pro()
1075 cit_model3_Packet1(gspca_dev, 0x00ce, 0x0000); in cit_init_ibm_netcam_pro()
1076 cit_model3_Packet1(gspca_dev, 0x00cf, 0x0020); in cit_init_ibm_netcam_pro()
1077 cit_model3_Packet1(gspca_dev, 0x00d0, 0x0040); in cit_init_ibm_netcam_pro()
1078 cit_model3_Packet1(gspca_dev, 0x00d1, 0x00bf); in cit_init_ibm_netcam_pro()
1079 cit_model3_Packet1(gspca_dev, 0x00d1, 0x00bf); in cit_init_ibm_netcam_pro()
1080 cit_model3_Packet1(gspca_dev, 0x00d2, 0x00bf); in cit_init_ibm_netcam_pro()
1081 cit_model3_Packet1(gspca_dev, 0x00d3, 0x00bf); in cit_init_ibm_netcam_pro()
1082 cit_model3_Packet1(gspca_dev, 0x00ea, 0x0008); in cit_init_ibm_netcam_pro()
1083 cit_model3_Packet1(gspca_dev, 0x00eb, 0x0000); in cit_init_ibm_netcam_pro()
1084 cit_model3_Packet1(gspca_dev, 0x00ec, 0x00e8); in cit_init_ibm_netcam_pro()
1085 cit_model3_Packet1(gspca_dev, 0x00ed, 0x0001); in cit_init_ibm_netcam_pro()
1086 cit_model3_Packet1(gspca_dev, 0x00ef, 0x0022); in cit_init_ibm_netcam_pro()
1087 cit_model3_Packet1(gspca_dev, 0x00f0, 0x0000); in cit_init_ibm_netcam_pro()
1088 cit_model3_Packet1(gspca_dev, 0x00f2, 0x0028); in cit_init_ibm_netcam_pro()
1089 cit_model3_Packet1(gspca_dev, 0x00f4, 0x0002); in cit_init_ibm_netcam_pro()
1090 cit_model3_Packet1(gspca_dev, 0x00f5, 0x0000); in cit_init_ibm_netcam_pro()
1091 cit_model3_Packet1(gspca_dev, 0x00fa, 0x0000); in cit_init_ibm_netcam_pro()
1092 cit_model3_Packet1(gspca_dev, 0x00fb, 0x0001); in cit_init_ibm_netcam_pro()
1093 cit_model3_Packet1(gspca_dev, 0x00fc, 0x0000); in cit_init_ibm_netcam_pro()
1094 cit_model3_Packet1(gspca_dev, 0x00fd, 0x0000); in cit_init_ibm_netcam_pro()
1095 cit_model3_Packet1(gspca_dev, 0x00fe, 0x0000); in cit_init_ibm_netcam_pro()
1096 cit_model3_Packet1(gspca_dev, 0x00ff, 0x0000); in cit_init_ibm_netcam_pro()
1098 cit_model3_Packet1(gspca_dev, 0x00be, 0x0003); in cit_init_ibm_netcam_pro()
1099 cit_model3_Packet1(gspca_dev, 0x00c8, 0x0000); in cit_init_ibm_netcam_pro()
1100 cit_model3_Packet1(gspca_dev, 0x00c9, 0x0020); in cit_init_ibm_netcam_pro()
1101 cit_model3_Packet1(gspca_dev, 0x00ca, 0x0040); in cit_init_ibm_netcam_pro()
1102 cit_model3_Packet1(gspca_dev, 0x0053, 0x0001); in cit_init_ibm_netcam_pro()
1103 cit_model3_Packet1(gspca_dev, 0x0082, 0x000e); in cit_init_ibm_netcam_pro()
1104 cit_model3_Packet1(gspca_dev, 0x0083, 0x0020); in cit_init_ibm_netcam_pro()
1105 cit_model3_Packet1(gspca_dev, 0x0034, 0x003c); in cit_init_ibm_netcam_pro()
1106 cit_model3_Packet1(gspca_dev, 0x006e, 0x0055); in cit_init_ibm_netcam_pro()
1107 cit_model3_Packet1(gspca_dev, 0x0062, 0x0005); in cit_init_ibm_netcam_pro()
1108 cit_model3_Packet1(gspca_dev, 0x0063, 0x0008); in cit_init_ibm_netcam_pro()
1109 cit_model3_Packet1(gspca_dev, 0x0066, 0x000a); in cit_init_ibm_netcam_pro()
1110 cit_model3_Packet1(gspca_dev, 0x0067, 0x0006); in cit_init_ibm_netcam_pro()
1111 cit_model3_Packet1(gspca_dev, 0x006b, 0x0010); in cit_init_ibm_netcam_pro()
1112 cit_model3_Packet1(gspca_dev, 0x005a, 0x0001); in cit_init_ibm_netcam_pro()
1113 cit_model3_Packet1(gspca_dev, 0x005b, 0x000a); in cit_init_ibm_netcam_pro()
1114 cit_model3_Packet1(gspca_dev, 0x0023, 0x0006); in cit_init_ibm_netcam_pro()
1115 cit_model3_Packet1(gspca_dev, 0x0026, 0x0004); in cit_init_ibm_netcam_pro()
1116 cit_model3_Packet1(gspca_dev, 0x0036, 0x0069); in cit_init_ibm_netcam_pro()
1117 cit_model3_Packet1(gspca_dev, 0x0038, 0x0064); in cit_init_ibm_netcam_pro()
1118 cit_model3_Packet1(gspca_dev, 0x003d, 0x0003); in cit_init_ibm_netcam_pro()
1119 cit_model3_Packet1(gspca_dev, 0x003e, 0x0001); in cit_init_ibm_netcam_pro()
1120 cit_model3_Packet1(gspca_dev, 0x00b8, 0x0014); in cit_init_ibm_netcam_pro()
1121 cit_model3_Packet1(gspca_dev, 0x00b9, 0x0014); in cit_init_ibm_netcam_pro()
1122 cit_model3_Packet1(gspca_dev, 0x00e6, 0x0004); in cit_init_ibm_netcam_pro()
1123 cit_model3_Packet1(gspca_dev, 0x00e8, 0x0001); in cit_init_ibm_netcam_pro()
1129 static int sd_init(struct gspca_dev *gspca_dev) in sd_init() argument
1131 struct sd *sd = (struct sd *) gspca_dev; in sd_init()
1135 cit_init_model0(gspca_dev); in sd_init()
1136 sd_stop0(gspca_dev); in sd_init()
1144 cit_init_ibm_netcam_pro(gspca_dev); in sd_init()
1145 sd_stop0(gspca_dev); in sd_init()
1151 static int cit_set_brightness(struct gspca_dev *gspca_dev, s32 val) in cit_set_brightness() argument
1153 struct sd *sd = (struct sd *) gspca_dev; in cit_set_brightness()
1163 cit_Packet_Format1(gspca_dev, 0x0031, val); in cit_set_brightness()
1164 cit_Packet_Format1(gspca_dev, 0x0032, val); in cit_set_brightness()
1165 cit_Packet_Format1(gspca_dev, 0x0033, val); in cit_set_brightness()
1171 cit_model2_Packet1(gspca_dev, 0x001a, i); in cit_set_brightness()
1178 cit_model3_Packet1(gspca_dev, 0x0036, i); in cit_set_brightness()
1184 cit_model4_BrightnessPacket(gspca_dev, i); in cit_set_brightness()
1191 static int cit_set_contrast(struct gspca_dev *gspca_dev, s32 val) in cit_set_contrast() argument
1193 struct sd *sd = (struct sd *) gspca_dev; in cit_set_contrast()
1200 cit_write_reg(gspca_dev, i, 0x0422); in cit_set_contrast()
1203 cit_write_reg(gspca_dev, i, 0x0423); in cit_set_contrast()
1206 cit_write_reg(gspca_dev, i, 0x0424); in cit_set_contrast()
1209 cit_write_reg(gspca_dev, i, 0x0425); in cit_set_contrast()
1221 cit_Packet_Format1(gspca_dev, 0x0014, new_contrast); in cit_set_contrast()
1222 cit_send_FF_04_02(gspca_dev); in cit_set_contrast()
1242 cit_model3_Packet1(gspca_dev, 0x0067, cv[i].cv1); in cit_set_contrast()
1243 cit_model3_Packet1(gspca_dev, 0x005b, cv[i].cv2); in cit_set_contrast()
1244 cit_model3_Packet1(gspca_dev, 0x005c, cv[i].cv3); in cit_set_contrast()
1248 cit_model3_Packet1(gspca_dev, 0x005b, val + 1); in cit_set_contrast()
1254 static int cit_set_hue(struct gspca_dev *gspca_dev, s32 val) in cit_set_hue() argument
1256 struct sd *sd = (struct sd *) gspca_dev; in cit_set_hue()
1265 cit_model2_Packet1(gspca_dev, 0x0024, val); in cit_set_hue()
1274 cit_model3_Packet1(gspca_dev, 0x007e, i); in cit_set_hue()
1292 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_set_hue()
1293 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_set_hue()
1294 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_set_hue()
1295 cit_write_reg(gspca_dev, 160, 0x0127); /* Green gain */ in cit_set_hue()
1296 cit_write_reg(gspca_dev, 160, 0x012e); /* Red gain */ in cit_set_hue()
1297 cit_write_reg(gspca_dev, 160, 0x0130); /* Blue gain */ in cit_set_hue()
1298 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_set_hue()
1299 cit_write_reg(gspca_dev, val, 0x012d); /* Hue */ in cit_set_hue()
1300 cit_write_reg(gspca_dev, 0xf545, 0x0124); in cit_set_hue()
1306 static int cit_set_sharpness(struct gspca_dev *gspca_dev, s32 val) in cit_set_sharpness() argument
1308 struct sd *sd = (struct sd *) gspca_dev; in cit_set_sharpness()
1323 cit_PacketFormat2(gspca_dev, 0x0013, sa[val]); in cit_set_sharpness()
1346 cit_model3_Packet1(gspca_dev, 0x0060, sv[val].sv1); in cit_set_sharpness()
1347 cit_model3_Packet1(gspca_dev, 0x0061, sv[val].sv2); in cit_set_sharpness()
1348 cit_model3_Packet1(gspca_dev, 0x0062, sv[val].sv3); in cit_set_sharpness()
1349 cit_model3_Packet1(gspca_dev, 0x0063, sv[val].sv4); in cit_set_sharpness()
1374 static void cit_set_lighting(struct gspca_dev *gspca_dev, s32 val) in cit_set_lighting() argument
1376 struct sd *sd = (struct sd *) gspca_dev; in cit_set_lighting()
1388 cit_Packet_Format1(gspca_dev, 0x0027, val); in cit_set_lighting()
1394 static void cit_set_hflip(struct gspca_dev *gspca_dev, s32 val) in cit_set_hflip() argument
1396 struct sd *sd = (struct sd *) gspca_dev; in cit_set_hflip()
1401 cit_write_reg(gspca_dev, 0x0020, 0x0115); in cit_set_hflip()
1403 cit_write_reg(gspca_dev, 0x0040, 0x0115); in cit_set_hflip()
1414 static int cit_restart_stream(struct gspca_dev *gspca_dev) in cit_restart_stream() argument
1416 struct sd *sd = (struct sd *) gspca_dev; in cit_restart_stream()
1421 cit_write_reg(gspca_dev, 0x0001, 0x0114); in cit_restart_stream()
1425 cit_write_reg(gspca_dev, 0x00c0, 0x010c); /* Go! */ in cit_restart_stream()
1426 usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); in cit_restart_stream()
1430 cit_write_reg(gspca_dev, 0x0001, 0x0114); in cit_restart_stream()
1431 cit_write_reg(gspca_dev, 0x00c0, 0x010c); /* Go! */ in cit_restart_stream()
1432 usb_clear_halt(gspca_dev->dev, gspca_dev->urb[0]->pipe); in cit_restart_stream()
1434 cit_write_reg(gspca_dev, 0x0001, 0x0113); in cit_restart_stream()
1443 static int cit_get_packet_size(struct gspca_dev *gspca_dev) in cit_get_packet_size() argument
1448 intf = usb_ifnum_to_if(gspca_dev->dev, gspca_dev->iface); in cit_get_packet_size()
1449 alt = usb_altnum_to_altsetting(intf, gspca_dev->alt); in cit_get_packet_size()
1462 static int cit_get_clock_div(struct gspca_dev *gspca_dev) in cit_get_clock_div() argument
1468 packet_size = cit_get_packet_size(gspca_dev); in cit_get_clock_div()
1474 gspca_dev->pixfmt.width * gspca_dev->pixfmt.height * in cit_get_clock_div()
1478 gspca_dbg(gspca_dev, D_PROBE, in cit_get_clock_div()
1481 gspca_dev->pixfmt.width, gspca_dev->pixfmt.height, in cit_get_clock_div()
1487 static int cit_start_model0(struct gspca_dev *gspca_dev) in cit_start_model0() argument
1492 clock_div = cit_get_clock_div(gspca_dev); in cit_start_model0()
1496 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* turn on led */ in cit_start_model0()
1497 cit_write_reg(gspca_dev, 0x0003, 0x0438); in cit_start_model0()
1498 cit_write_reg(gspca_dev, 0x001e, 0x042b); in cit_start_model0()
1499 cit_write_reg(gspca_dev, 0x0041, 0x042c); in cit_start_model0()
1500 cit_write_reg(gspca_dev, 0x0008, 0x0436); in cit_start_model0()
1501 cit_write_reg(gspca_dev, 0x0024, 0x0403); in cit_start_model0()
1502 cit_write_reg(gspca_dev, 0x002c, 0x0404); in cit_start_model0()
1503 cit_write_reg(gspca_dev, 0x0002, 0x0426); in cit_start_model0()
1504 cit_write_reg(gspca_dev, 0x0014, 0x0427); in cit_start_model0()
1506 switch (gspca_dev->pixfmt.width) { in cit_start_model0()
1508 cit_write_reg(gspca_dev, 0x0004, 0x010b); in cit_start_model0()
1509 cit_write_reg(gspca_dev, 0x0001, 0x010a); in cit_start_model0()
1510 cit_write_reg(gspca_dev, 0x0010, 0x0102); in cit_start_model0()
1511 cit_write_reg(gspca_dev, 0x00a0, 0x0103); in cit_start_model0()
1512 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model0()
1513 cit_write_reg(gspca_dev, 0x0078, 0x0105); in cit_start_model0()
1517 cit_write_reg(gspca_dev, 0x0006, 0x010b); in cit_start_model0()
1518 cit_write_reg(gspca_dev, 0x0000, 0x010a); in cit_start_model0()
1519 cit_write_reg(gspca_dev, 0x0005, 0x0102); in cit_start_model0()
1520 cit_write_reg(gspca_dev, 0x00b0, 0x0103); in cit_start_model0()
1521 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model0()
1522 cit_write_reg(gspca_dev, 0x0090, 0x0105); in cit_start_model0()
1526 cit_write_reg(gspca_dev, 0x0008, 0x010b); in cit_start_model0()
1527 cit_write_reg(gspca_dev, 0x0004, 0x010a); in cit_start_model0()
1528 cit_write_reg(gspca_dev, 0x0005, 0x0102); in cit_start_model0()
1529 cit_write_reg(gspca_dev, 0x00a0, 0x0103); in cit_start_model0()
1530 cit_write_reg(gspca_dev, 0x0010, 0x0104); in cit_start_model0()
1531 cit_write_reg(gspca_dev, 0x0078, 0x0105); in cit_start_model0()
1535 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model0()
1536 cit_write_reg(gspca_dev, clock_div, 0x0111); in cit_start_model0()
1541 static int cit_start_model1(struct gspca_dev *gspca_dev) in cit_start_model1() argument
1543 struct sd *sd = (struct sd *) gspca_dev; in cit_start_model1()
1546 clock_div = cit_get_clock_div(gspca_dev); in cit_start_model1()
1550 cit_read_reg(gspca_dev, 0x0128, 1); in cit_start_model1()
1551 cit_read_reg(gspca_dev, 0x0100, 0); in cit_start_model1()
1552 cit_write_reg(gspca_dev, 0x01, 0x0100); /* LED On */ in cit_start_model1()
1553 cit_read_reg(gspca_dev, 0x0100, 0); in cit_start_model1()
1554 cit_write_reg(gspca_dev, 0x81, 0x0100); /* LED Off */ in cit_start_model1()
1555 cit_read_reg(gspca_dev, 0x0100, 0); in cit_start_model1()
1556 cit_write_reg(gspca_dev, 0x01, 0x0100); /* LED On */ in cit_start_model1()
1557 cit_write_reg(gspca_dev, 0x01, 0x0108); in cit_start_model1()
1559 cit_write_reg(gspca_dev, 0x03, 0x0112); in cit_start_model1()
1560 cit_read_reg(gspca_dev, 0x0115, 0); in cit_start_model1()
1561 cit_write_reg(gspca_dev, 0x06, 0x0115); in cit_start_model1()
1562 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model1()
1563 cit_write_reg(gspca_dev, 0x44, 0x0116); in cit_start_model1()
1564 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model1()
1565 cit_write_reg(gspca_dev, 0x40, 0x0116); in cit_start_model1()
1566 cit_read_reg(gspca_dev, 0x0115, 0); in cit_start_model1()
1567 cit_write_reg(gspca_dev, 0x0e, 0x0115); in cit_start_model1()
1568 cit_write_reg(gspca_dev, 0x19, 0x012c); in cit_start_model1()
1570 cit_Packet_Format1(gspca_dev, 0x00, 0x1e); in cit_start_model1()
1571 cit_Packet_Format1(gspca_dev, 0x39, 0x0d); in cit_start_model1()
1572 cit_Packet_Format1(gspca_dev, 0x39, 0x09); in cit_start_model1()
1573 cit_Packet_Format1(gspca_dev, 0x3b, 0x00); in cit_start_model1()
1574 cit_Packet_Format1(gspca_dev, 0x28, 0x22); in cit_start_model1()
1575 cit_Packet_Format1(gspca_dev, 0x27, 0x00); in cit_start_model1()
1576 cit_Packet_Format1(gspca_dev, 0x2b, 0x1f); in cit_start_model1()
1577 cit_Packet_Format1(gspca_dev, 0x39, 0x08); in cit_start_model1()
1580 cit_Packet_Format1(gspca_dev, 0x2c, 0x00); in cit_start_model1()
1583 cit_Packet_Format1(gspca_dev, 0x30, 0x14); in cit_start_model1()
1585 cit_PacketFormat2(gspca_dev, 0x39, 0x02); in cit_start_model1()
1586 cit_PacketFormat2(gspca_dev, 0x01, 0xe1); in cit_start_model1()
1587 cit_PacketFormat2(gspca_dev, 0x02, 0xcd); in cit_start_model1()
1588 cit_PacketFormat2(gspca_dev, 0x03, 0xcd); in cit_start_model1()
1589 cit_PacketFormat2(gspca_dev, 0x04, 0xfa); in cit_start_model1()
1590 cit_PacketFormat2(gspca_dev, 0x3f, 0xff); in cit_start_model1()
1591 cit_PacketFormat2(gspca_dev, 0x39, 0x00); in cit_start_model1()
1593 cit_PacketFormat2(gspca_dev, 0x39, 0x02); in cit_start_model1()
1594 cit_PacketFormat2(gspca_dev, 0x0a, 0x37); in cit_start_model1()
1595 cit_PacketFormat2(gspca_dev, 0x0b, 0xb8); in cit_start_model1()
1596 cit_PacketFormat2(gspca_dev, 0x0c, 0xf3); in cit_start_model1()
1597 cit_PacketFormat2(gspca_dev, 0x0d, 0xe3); in cit_start_model1()
1598 cit_PacketFormat2(gspca_dev, 0x0e, 0x0d); in cit_start_model1()
1599 cit_PacketFormat2(gspca_dev, 0x0f, 0xf2); in cit_start_model1()
1600 cit_PacketFormat2(gspca_dev, 0x10, 0xd5); in cit_start_model1()
1601 cit_PacketFormat2(gspca_dev, 0x11, 0xba); in cit_start_model1()
1602 cit_PacketFormat2(gspca_dev, 0x12, 0x53); in cit_start_model1()
1603 cit_PacketFormat2(gspca_dev, 0x3f, 0xff); in cit_start_model1()
1604 cit_PacketFormat2(gspca_dev, 0x39, 0x00); in cit_start_model1()
1606 cit_PacketFormat2(gspca_dev, 0x39, 0x02); in cit_start_model1()
1607 cit_PacketFormat2(gspca_dev, 0x16, 0x00); in cit_start_model1()
1608 cit_PacketFormat2(gspca_dev, 0x17, 0x28); in cit_start_model1()
1609 cit_PacketFormat2(gspca_dev, 0x18, 0x7d); in cit_start_model1()
1610 cit_PacketFormat2(gspca_dev, 0x19, 0xbe); in cit_start_model1()
1611 cit_PacketFormat2(gspca_dev, 0x3f, 0xff); in cit_start_model1()
1612 cit_PacketFormat2(gspca_dev, 0x39, 0x00); in cit_start_model1()
1615 cit_Packet_Format1(gspca_dev, 0x00, 0x18); in cit_start_model1()
1617 cit_Packet_Format1(gspca_dev, 0x13, 0x18); in cit_start_model1()
1619 cit_Packet_Format1(gspca_dev, 0x14, 0x06); in cit_start_model1()
1626 cit_Packet_Format1(gspca_dev, 0x31, 0x37); in cit_start_model1()
1628 cit_Packet_Format1(gspca_dev, 0x32, 0x46); in cit_start_model1()
1630 cit_Packet_Format1(gspca_dev, 0x33, 0x55); in cit_start_model1()
1633 cit_Packet_Format1(gspca_dev, 0x2e, 0x04); in cit_start_model1()
1635 cit_Packet_Format1(gspca_dev, 0x2d, 0x04); in cit_start_model1()
1637 cit_Packet_Format1(gspca_dev, 0x29, 0x80); in cit_start_model1()
1638 cit_Packet_Format1(gspca_dev, 0x2c, 0x01); in cit_start_model1()
1639 cit_Packet_Format1(gspca_dev, 0x30, 0x17); in cit_start_model1()
1640 cit_Packet_Format1(gspca_dev, 0x39, 0x08); in cit_start_model1()
1642 cit_Packet_Format1(gspca_dev, 0x34, 0x00); in cit_start_model1()
1644 cit_write_reg(gspca_dev, 0x00, 0x0101); in cit_start_model1()
1645 cit_write_reg(gspca_dev, 0x00, 0x010a); in cit_start_model1()
1647 switch (gspca_dev->pixfmt.width) { in cit_start_model1()
1649 cit_write_reg(gspca_dev, 0x80, 0x0103); in cit_start_model1()
1650 cit_write_reg(gspca_dev, 0x60, 0x0105); in cit_start_model1()
1651 cit_write_reg(gspca_dev, 0x0c, 0x010b); in cit_start_model1()
1652 cit_write_reg(gspca_dev, 0x04, 0x011b); /* Same everywhere */ in cit_start_model1()
1653 cit_write_reg(gspca_dev, 0x0b, 0x011d); in cit_start_model1()
1654 cit_write_reg(gspca_dev, 0x00, 0x011e); /* Same everywhere */ in cit_start_model1()
1655 cit_write_reg(gspca_dev, 0x00, 0x0129); in cit_start_model1()
1658 cit_write_reg(gspca_dev, 0xb0, 0x0103); in cit_start_model1()
1659 cit_write_reg(gspca_dev, 0x8f, 0x0105); in cit_start_model1()
1660 cit_write_reg(gspca_dev, 0x06, 0x010b); in cit_start_model1()
1661 cit_write_reg(gspca_dev, 0x04, 0x011b); /* Same everywhere */ in cit_start_model1()
1662 cit_write_reg(gspca_dev, 0x0d, 0x011d); in cit_start_model1()
1663 cit_write_reg(gspca_dev, 0x00, 0x011e); /* Same everywhere */ in cit_start_model1()
1664 cit_write_reg(gspca_dev, 0x03, 0x0129); in cit_start_model1()
1667 cit_write_reg(gspca_dev, 0xb0, 0x0103); in cit_start_model1()
1668 cit_write_reg(gspca_dev, 0x90, 0x0105); in cit_start_model1()
1669 cit_write_reg(gspca_dev, 0x02, 0x010b); in cit_start_model1()
1670 cit_write_reg(gspca_dev, 0x04, 0x011b); /* Same everywhere */ in cit_start_model1()
1671 cit_write_reg(gspca_dev, 0x05, 0x011d); in cit_start_model1()
1672 cit_write_reg(gspca_dev, 0x00, 0x011e); /* Same everywhere */ in cit_start_model1()
1673 cit_write_reg(gspca_dev, 0x00, 0x0129); in cit_start_model1()
1677 cit_write_reg(gspca_dev, 0xff, 0x012b); in cit_start_model1()
1684 cit_Packet_Format1(gspca_dev, 0x31, 0xc3); in cit_start_model1()
1686 cit_Packet_Format1(gspca_dev, 0x32, 0xd2); in cit_start_model1()
1688 cit_Packet_Format1(gspca_dev, 0x33, 0xe1); in cit_start_model1()
1692 cit_Packet_Format1(gspca_dev, 0x14, 0x0a); in cit_start_model1()
1696 cit_PacketFormat2(gspca_dev, 0x13, 0x1a); in cit_start_model1()
1699 cit_Packet_Format1(gspca_dev, 0x0027, in cit_start_model1()
1704 switch (gspca_dev->pixfmt.width) { in cit_start_model1()
1706 cit_Packet_Format1(gspca_dev, 0x2b, 0x1e); in cit_start_model1()
1707 cit_write_reg(gspca_dev, 0xc9, 0x0119); /* Same everywhere */ in cit_start_model1()
1708 cit_write_reg(gspca_dev, 0x80, 0x0109); /* Same everywhere */ in cit_start_model1()
1709 cit_write_reg(gspca_dev, 0x36, 0x0102); in cit_start_model1()
1710 cit_write_reg(gspca_dev, 0x1a, 0x0104); in cit_start_model1()
1711 cit_write_reg(gspca_dev, 0x04, 0x011a); /* Same everywhere */ in cit_start_model1()
1712 cit_write_reg(gspca_dev, 0x2b, 0x011c); in cit_start_model1()
1713 cit_write_reg(gspca_dev, 0x23, 0x012a); /* Same everywhere */ in cit_start_model1()
1716 cit_Packet_Format1(gspca_dev, 0x2b, 0x1e); in cit_start_model1()
1717 cit_write_reg(gspca_dev, 0xc9, 0x0119); /* Same everywhere */ in cit_start_model1()
1718 cit_write_reg(gspca_dev, 0x80, 0x0109); /* Same everywhere */ in cit_start_model1()
1719 cit_write_reg(gspca_dev, 0x04, 0x0102); in cit_start_model1()
1720 cit_write_reg(gspca_dev, 0x02, 0x0104); in cit_start_model1()
1721 cit_write_reg(gspca_dev, 0x04, 0x011a); /* Same everywhere */ in cit_start_model1()
1722 cit_write_reg(gspca_dev, 0x2b, 0x011c); in cit_start_model1()
1723 cit_write_reg(gspca_dev, 0x23, 0x012a); /* Same everywhere */ in cit_start_model1()
1726 cit_Packet_Format1(gspca_dev, 0x2b, 0x1f); in cit_start_model1()
1727 cit_write_reg(gspca_dev, 0xc9, 0x0119); /* Same everywhere */ in cit_start_model1()
1728 cit_write_reg(gspca_dev, 0x80, 0x0109); /* Same everywhere */ in cit_start_model1()
1729 cit_write_reg(gspca_dev, 0x08, 0x0102); in cit_start_model1()
1730 cit_write_reg(gspca_dev, 0x01, 0x0104); in cit_start_model1()
1731 cit_write_reg(gspca_dev, 0x04, 0x011a); /* Same everywhere */ in cit_start_model1()
1732 cit_write_reg(gspca_dev, 0x2f, 0x011c); in cit_start_model1()
1733 cit_write_reg(gspca_dev, 0x23, 0x012a); /* Same everywhere */ in cit_start_model1()
1737 cit_write_reg(gspca_dev, 0x01, 0x0100); /* LED On */ in cit_start_model1()
1738 cit_write_reg(gspca_dev, clock_div, 0x0111); in cit_start_model1()
1743 static int cit_start_model2(struct gspca_dev *gspca_dev) in cit_start_model2() argument
1745 struct sd *sd = (struct sd *) gspca_dev; in cit_start_model2()
1748 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* LED on */ in cit_start_model2()
1749 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model2()
1750 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_model2()
1751 cit_write_reg(gspca_dev, 0x0002, 0x0112); in cit_start_model2()
1752 cit_write_reg(gspca_dev, 0x00bc, 0x012c); in cit_start_model2()
1753 cit_write_reg(gspca_dev, 0x0008, 0x012b); in cit_start_model2()
1754 cit_write_reg(gspca_dev, 0x0000, 0x0108); in cit_start_model2()
1755 cit_write_reg(gspca_dev, 0x0001, 0x0133); in cit_start_model2()
1756 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model2()
1757 switch (gspca_dev->pixfmt.width) { in cit_start_model2()
1759 cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ in cit_start_model2()
1760 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1761 cit_write_reg(gspca_dev, 0x0024, 0x0105); /* 176x144, 352x288 */ in cit_start_model2()
1762 cit_write_reg(gspca_dev, 0x00b9, 0x010a); /* Unique to this mode */ in cit_start_model2()
1763 cit_write_reg(gspca_dev, 0x0038, 0x0119); /* Unique to this mode */ in cit_start_model2()
1769 cit_write_reg(gspca_dev, 0x0028, 0x0103); /* Unique to this mode */ in cit_start_model2()
1770 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1771 cit_write_reg(gspca_dev, 0x001e, 0x0105); /* 320x240, 352x240 */ in cit_start_model2()
1772 cit_write_reg(gspca_dev, 0x0039, 0x010a); /* All except 176x144 */ in cit_start_model2()
1773 cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ in cit_start_model2()
1778 cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ in cit_start_model2()
1779 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1780 cit_write_reg(gspca_dev, 0x001e, 0x0105); /* 320x240, 352x240 */ in cit_start_model2()
1781 cit_write_reg(gspca_dev, 0x0039, 0x010a); /* All except 176x144 */ in cit_start_model2()
1782 cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ in cit_start_model2()
1787 cit_write_reg(gspca_dev, 0x002c, 0x0103); /* All except 320x240 */ in cit_start_model2()
1788 cit_write_reg(gspca_dev, 0x0000, 0x0104); /* Same */ in cit_start_model2()
1789 cit_write_reg(gspca_dev, 0x0024, 0x0105); /* 176x144, 352x288 */ in cit_start_model2()
1790 cit_write_reg(gspca_dev, 0x0039, 0x010a); /* All except 176x144 */ in cit_start_model2()
1791 cit_write_reg(gspca_dev, 0x0070, 0x0119); /* All except 176x144 */ in cit_start_model2()
1796 cit_write_reg(gspca_dev, 0x0000, 0x0100); /* LED on */ in cit_start_model2()
1798 switch (gspca_dev->pixfmt.width) { in cit_start_model2()
1800 cit_write_reg(gspca_dev, 0x0050, 0x0111); in cit_start_model2()
1801 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model2()
1805 cit_write_reg(gspca_dev, 0x0040, 0x0111); in cit_start_model2()
1806 cit_write_reg(gspca_dev, 0x00c0, 0x0111); in cit_start_model2()
1809 cit_write_reg(gspca_dev, 0x009b, 0x010f); in cit_start_model2()
1810 cit_write_reg(gspca_dev, 0x00bb, 0x010f); in cit_start_model2()
1825 cit_model2_Packet1(gspca_dev, 0x000a, 0x005c); in cit_start_model2()
1826 cit_model2_Packet1(gspca_dev, 0x0004, 0x0000); in cit_start_model2()
1827 cit_model2_Packet1(gspca_dev, 0x0006, 0x00fb); in cit_start_model2()
1828 cit_model2_Packet1(gspca_dev, 0x0008, 0x0000); in cit_start_model2()
1829 cit_model2_Packet1(gspca_dev, 0x000c, 0x0009); in cit_start_model2()
1830 cit_model2_Packet1(gspca_dev, 0x0012, 0x000a); in cit_start_model2()
1831 cit_model2_Packet1(gspca_dev, 0x002a, 0x0000); in cit_start_model2()
1832 cit_model2_Packet1(gspca_dev, 0x002c, 0x0000); in cit_start_model2()
1833 cit_model2_Packet1(gspca_dev, 0x002e, 0x0008); in cit_start_model2()
1840 cit_model2_Packet1(gspca_dev, 0x0030, 0x0000); in cit_start_model2()
1846 switch (gspca_dev->pixfmt.width) { in cit_start_model2()
1848 cit_model2_Packet1(gspca_dev, 0x0014, 0x0002); in cit_start_model2()
1849 cit_model2_Packet1(gspca_dev, 0x0016, 0x0002); /* Horizontal shift */ in cit_start_model2()
1850 cit_model2_Packet1(gspca_dev, 0x0018, 0x004a); /* Another hardware setting */ in cit_start_model2()
1854 cit_model2_Packet1(gspca_dev, 0x0014, 0x0009); in cit_start_model2()
1855 cit_model2_Packet1(gspca_dev, 0x0016, 0x0005); /* Horizontal shift */ in cit_start_model2()
1856 cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Another hardware setting */ in cit_start_model2()
1862 cit_model2_Packet1(gspca_dev, 0x0014, 0x0009); /* Windows sets this to 8 */ in cit_start_model2()
1863 cit_model2_Packet1(gspca_dev, 0x0016, 0x0003); /* Horizontal shift */ in cit_start_model2()
1864 cit_model2_Packet1(gspca_dev, 0x0018, 0x0044); /* Windows sets this to 0x0045 */ in cit_start_model2()
1869 cit_model2_Packet1(gspca_dev, 0x0014, 0x0003); in cit_start_model2()
1870 cit_model2_Packet1(gspca_dev, 0x0016, 0x0002); /* Horizontal shift */ in cit_start_model2()
1871 cit_model2_Packet1(gspca_dev, 0x0018, 0x004a); /* Another hardware setting */ in cit_start_model2()
1879 cit_model2_Packet1(gspca_dev, 0x001a, 0x005a); in cit_start_model2()
1899 cit_model2_Packet1(gspca_dev, 0x001c, clock_div); in cit_start_model2()
1907 switch (gspca_dev->pixfmt.width) { in cit_start_model2()
1909 cit_model2_Packet1(gspca_dev, 0x0026, 0x00c2); in cit_start_model2()
1912 cit_model2_Packet1(gspca_dev, 0x0026, 0x0044); in cit_start_model2()
1916 cit_model2_Packet1(gspca_dev, 0x0026, 0x0046); in cit_start_model2()
1920 cit_model2_Packet1(gspca_dev, 0x0026, 0x0048); in cit_start_model2()
1924 cit_model2_Packet1(gspca_dev, 0x0028, v4l2_ctrl_g_ctrl(sd->lighting)); in cit_start_model2()
1929 cit_model2_Packet1(gspca_dev, 0x001e, 0x002f); in cit_start_model2()
1931 cit_model2_Packet1(gspca_dev, 0x0020, 0x0034); in cit_start_model2()
1933 cit_model2_Packet1(gspca_dev, 0x0022, 0x00a0); in cit_start_model2()
1936 cit_model2_Packet1(gspca_dev, 0x0030, 0x0004); in cit_start_model2()
1941 static int cit_start_model3(struct gspca_dev *gspca_dev) in cit_start_model3() argument
1948 cit_read_reg(gspca_dev, 0x128, 1); in cit_start_model3()
1950 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_start_model3()
1951 cit_read_reg(gspca_dev, 0x0116, 0); in cit_start_model3()
1952 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_model3()
1953 cit_write_reg(gspca_dev, 0x0002, 0x0112); in cit_start_model3()
1954 cit_write_reg(gspca_dev, 0x0000, 0x0123); in cit_start_model3()
1955 cit_write_reg(gspca_dev, 0x0001, 0x0117); in cit_start_model3()
1956 cit_write_reg(gspca_dev, 0x0040, 0x0108); in cit_start_model3()
1957 cit_write_reg(gspca_dev, 0x0019, 0x012c); in cit_start_model3()
1958 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_model3()
1959 cit_write_reg(gspca_dev, 0x0002, 0x0115); in cit_start_model3()
1960 cit_write_reg(gspca_dev, 0x0003, 0x0115); in cit_start_model3()
1961 cit_read_reg(gspca_dev, 0x0115, 0); in cit_start_model3()
1962 cit_write_reg(gspca_dev, 0x000b, 0x0115); in cit_start_model3()
1967 cit_write_reg(gspca_dev, 0x0078, 0x012d); in cit_start_model3()
1968 cit_write_reg(gspca_dev, 0x0001, 0x012f); in cit_start_model3()
1969 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model3()
1970 cit_write_reg(gspca_dev, 0x0079, 0x012d); in cit_start_model3()
1971 cit_write_reg(gspca_dev, 0x00ff, 0x0130); in cit_start_model3()
1972 cit_write_reg(gspca_dev, 0xcd41, 0x0124); in cit_start_model3()
1973 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model3()
1974 cit_read_reg(gspca_dev, 0x0126, 1); in cit_start_model3()
1977 cit_model3_Packet1(gspca_dev, 0x000a, 0x0040); in cit_start_model3()
1978 cit_model3_Packet1(gspca_dev, 0x000b, 0x00f6); in cit_start_model3()
1979 cit_model3_Packet1(gspca_dev, 0x000c, 0x0002); in cit_start_model3()
1980 cit_model3_Packet1(gspca_dev, 0x000d, 0x0020); in cit_start_model3()
1981 cit_model3_Packet1(gspca_dev, 0x000e, 0x0033); in cit_start_model3()
1982 cit_model3_Packet1(gspca_dev, 0x000f, 0x0007); in cit_start_model3()
1983 cit_model3_Packet1(gspca_dev, 0x0010, 0x0000); in cit_start_model3()
1984 cit_model3_Packet1(gspca_dev, 0x0011, 0x0070); in cit_start_model3()
1985 cit_model3_Packet1(gspca_dev, 0x0012, 0x0030); in cit_start_model3()
1986 cit_model3_Packet1(gspca_dev, 0x0013, 0x0000); in cit_start_model3()
1987 cit_model3_Packet1(gspca_dev, 0x0014, 0x0001); in cit_start_model3()
1988 cit_model3_Packet1(gspca_dev, 0x0015, 0x0001); in cit_start_model3()
1989 cit_model3_Packet1(gspca_dev, 0x0016, 0x0001); in cit_start_model3()
1990 cit_model3_Packet1(gspca_dev, 0x0017, 0x0001); in cit_start_model3()
1991 cit_model3_Packet1(gspca_dev, 0x0018, 0x0000); in cit_start_model3()
1992 cit_model3_Packet1(gspca_dev, 0x001e, 0x00c3); in cit_start_model3()
1993 cit_model3_Packet1(gspca_dev, 0x0020, 0x0000); in cit_start_model3()
1994 cit_model3_Packet1(gspca_dev, 0x0028, 0x0010); in cit_start_model3()
1995 cit_model3_Packet1(gspca_dev, 0x0029, 0x0054); in cit_start_model3()
1996 cit_model3_Packet1(gspca_dev, 0x002a, 0x0013); in cit_start_model3()
1997 cit_model3_Packet1(gspca_dev, 0x002b, 0x0007); in cit_start_model3()
1998 cit_model3_Packet1(gspca_dev, 0x002d, 0x0028); in cit_start_model3()
1999 cit_model3_Packet1(gspca_dev, 0x002e, 0x0000); in cit_start_model3()
2000 cit_model3_Packet1(gspca_dev, 0x0031, 0x0000); in cit_start_model3()
2001 cit_model3_Packet1(gspca_dev, 0x0032, 0x0000); in cit_start_model3()
2002 cit_model3_Packet1(gspca_dev, 0x0033, 0x0000); in cit_start_model3()
2003 cit_model3_Packet1(gspca_dev, 0x0034, 0x0000); in cit_start_model3()
2004 cit_model3_Packet1(gspca_dev, 0x0035, 0x0038); in cit_start_model3()
2005 cit_model3_Packet1(gspca_dev, 0x003a, 0x0001); in cit_start_model3()
2006 cit_model3_Packet1(gspca_dev, 0x003c, 0x001e); in cit_start_model3()
2007 cit_model3_Packet1(gspca_dev, 0x003f, 0x000a); in cit_start_model3()
2008 cit_model3_Packet1(gspca_dev, 0x0041, 0x0000); in cit_start_model3()
2009 cit_model3_Packet1(gspca_dev, 0x0046, 0x003f); in cit_start_model3()
2010 cit_model3_Packet1(gspca_dev, 0x0047, 0x0000); in cit_start_model3()
2011 cit_model3_Packet1(gspca_dev, 0x0050, 0x0005); in cit_start_model3()
2012 cit_model3_Packet1(gspca_dev, 0x0052, 0x001a); in cit_start_model3()
2013 cit_model3_Packet1(gspca_dev, 0x0053, 0x0003); in cit_start_model3()
2014 cit_model3_Packet1(gspca_dev, 0x005a, 0x006b); in cit_start_model3()
2015 cit_model3_Packet1(gspca_dev, 0x005d, 0x001e); in cit_start_model3()
2016 cit_model3_Packet1(gspca_dev, 0x005e, 0x0030); in cit_start_model3()
2017 cit_model3_Packet1(gspca_dev, 0x005f, 0x0041); in cit_start_model3()
2018 cit_model3_Packet1(gspca_dev, 0x0064, 0x0008); in cit_start_model3()
2019 cit_model3_Packet1(gspca_dev, 0x0065, 0x0015); in cit_start_model3()
2020 cit_model3_Packet1(gspca_dev, 0x0068, 0x000f); in cit_start_model3()
2021 cit_model3_Packet1(gspca_dev, 0x0079, 0x0000); in cit_start_model3()
2022 cit_model3_Packet1(gspca_dev, 0x007a, 0x0000); in cit_start_model3()
2023 cit_model3_Packet1(gspca_dev, 0x007c, 0x003f); in cit_start_model3()
2024 cit_model3_Packet1(gspca_dev, 0x0082, 0x000f); in cit_start_model3()
2025 cit_model3_Packet1(gspca_dev, 0x0085, 0x0000); in cit_start_model3()
2026 cit_model3_Packet1(gspca_dev, 0x0099, 0x0000); in cit_start_model3()
2027 cit_model3_Packet1(gspca_dev, 0x009b, 0x0023); in cit_start_model3()
2028 cit_model3_Packet1(gspca_dev, 0x009c, 0x0022); in cit_start_model3()
2029 cit_model3_Packet1(gspca_dev, 0x009d, 0x0096); in cit_start_model3()
2030 cit_model3_Packet1(gspca_dev, 0x009e, 0x0096); in cit_start_model3()
2031 cit_model3_Packet1(gspca_dev, 0x009f, 0x000a); in cit_start_model3()
2033 switch (gspca_dev->pixfmt.width) { in cit_start_model3()
2035 cit_write_reg(gspca_dev, 0x0000, 0x0101); /* Same on 160x120, 320x240 */ in cit_start_model3()
2036 cit_write_reg(gspca_dev, 0x00a0, 0x0103); /* Same on 160x120, 320x240 */ in cit_start_model3()
2037 cit_write_reg(gspca_dev, 0x0078, 0x0105); /* Same on 160x120, 320x240 */ in cit_start_model3()
2038 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_model3()
2039 cit_write_reg(gspca_dev, 0x0024, 0x010b); /* Differs everywhere */ in cit_start_model3()
2040 cit_write_reg(gspca_dev, 0x00a9, 0x0119); in cit_start_model3()
2041 cit_write_reg(gspca_dev, 0x0016, 0x011b); in cit_start_model3()
2042 cit_write_reg(gspca_dev, 0x0002, 0x011d); /* Same on 160x120, 320x240 */ in cit_start_model3()
2043 cit_write_reg(gspca_dev, 0x0003, 0x011e); /* Same on 160x120, 640x480 */ in cit_start_model3()
2044 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_model3()
2045 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_model3()
2046 cit_write_reg(gspca_dev, 0x0018, 0x0102); in cit_start_model3()
2047 cit_write_reg(gspca_dev, 0x0004, 0x0104); in cit_start_model3()
2048 cit_write_reg(gspca_dev, 0x0004, 0x011a); in cit_start_model3()
2049 cit_write_reg(gspca_dev, 0x0028, 0x011c); in cit_start_model3()
2050 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_model3()
2051 cit_write_reg(gspca_dev, 0x0000, 0x0118); in cit_start_model3()
2052 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_model3()
2053 cit_model3_Packet1(gspca_dev, 0x0021, 0x0001); /* Same */ in cit_start_model3()
2054 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model3()
2058 cit_write_reg(gspca_dev, 0x0000, 0x0101); /* Same on 160x120, 320x240 */ in cit_start_model3()
2059 cit_write_reg(gspca_dev, 0x00a0, 0x0103); /* Same on 160x120, 320x240 */ in cit_start_model3()
2060 cit_write_reg(gspca_dev, 0x0078, 0x0105); /* Same on 160x120, 320x240 */ in cit_start_model3()
2061 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_model3()
2062 cit_write_reg(gspca_dev, 0x0028, 0x010b); /* Differs everywhere */ in cit_start_model3()
2063 cit_write_reg(gspca_dev, 0x0002, 0x011d); /* Same */ in cit_start_model3()
2064 cit_write_reg(gspca_dev, 0x0000, 0x011e); in cit_start_model3()
2065 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_model3()
2066 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_model3()
2068 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_model3()
2069 cit_model3_Packet1(gspca_dev, 0x0021, 0x0001); /* Same */ in cit_start_model3()
2070 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model3()
2071 cit_write_reg(gspca_dev, 0x00d9, 0x0119); in cit_start_model3()
2072 cit_write_reg(gspca_dev, 0x0006, 0x011b); in cit_start_model3()
2073 cit_write_reg(gspca_dev, 0x0021, 0x0102); /* Same on 320x240, 640x480 */ in cit_start_model3()
2074 cit_write_reg(gspca_dev, 0x0010, 0x0104); in cit_start_model3()
2075 cit_write_reg(gspca_dev, 0x0004, 0x011a); in cit_start_model3()
2076 cit_write_reg(gspca_dev, 0x003f, 0x011c); in cit_start_model3()
2077 cit_write_reg(gspca_dev, 0x001c, 0x0118); in cit_start_model3()
2078 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_model3()
2082 cit_write_reg(gspca_dev, 0x00f0, 0x0105); in cit_start_model3()
2083 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_model3()
2084 cit_write_reg(gspca_dev, 0x0038, 0x010b); /* Differs everywhere */ in cit_start_model3()
2085 cit_write_reg(gspca_dev, 0x00d9, 0x0119); /* Same on 320x240, 640x480 */ in cit_start_model3()
2086 cit_write_reg(gspca_dev, 0x0006, 0x011b); /* Same on 320x240, 640x480 */ in cit_start_model3()
2087 cit_write_reg(gspca_dev, 0x0004, 0x011d); /* NC */ in cit_start_model3()
2088 cit_write_reg(gspca_dev, 0x0003, 0x011e); /* Same on 160x120, 640x480 */ in cit_start_model3()
2089 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_model3()
2090 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_model3()
2091 cit_write_reg(gspca_dev, 0x0021, 0x0102); /* Same on 320x240, 640x480 */ in cit_start_model3()
2092 cit_write_reg(gspca_dev, 0x0016, 0x0104); /* NC */ in cit_start_model3()
2093 cit_write_reg(gspca_dev, 0x0004, 0x011a); /* Same on 320x240, 640x480 */ in cit_start_model3()
2094 cit_write_reg(gspca_dev, 0x003f, 0x011c); /* Same on 320x240, 640x480 */ in cit_start_model3()
2095 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_model3()
2096 cit_write_reg(gspca_dev, 0x001c, 0x0118); /* Same on 320x240, 640x480 */ in cit_start_model3()
2097 cit_model3_Packet1(gspca_dev, 0x0021, 0x0001); /* Same */ in cit_start_model3()
2098 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_model3()
2099 cit_write_reg(gspca_dev, 0x0040, 0x0101); in cit_start_model3()
2100 cit_write_reg(gspca_dev, 0x0040, 0x0103); in cit_start_model3()
2101 cit_write_reg(gspca_dev, 0x0000, 0x0132); /* Same on 320x240, 640x480 */ in cit_start_model3()
2106 cit_model3_Packet1(gspca_dev, 0x007e, 0x000e); /* Hue */ in cit_start_model3()
2107 cit_model3_Packet1(gspca_dev, 0x0036, 0x0011); /* Brightness */ in cit_start_model3()
2108 cit_model3_Packet1(gspca_dev, 0x0060, 0x0002); /* Sharpness */ in cit_start_model3()
2109 cit_model3_Packet1(gspca_dev, 0x0061, 0x0004); /* Sharpness */ in cit_start_model3()
2110 cit_model3_Packet1(gspca_dev, 0x0062, 0x0005); /* Sharpness */ in cit_start_model3()
2111 cit_model3_Packet1(gspca_dev, 0x0063, 0x0014); /* Sharpness */ in cit_start_model3()
2112 cit_model3_Packet1(gspca_dev, 0x0096, 0x00a0); /* Red sharpness */ in cit_start_model3()
2113 cit_model3_Packet1(gspca_dev, 0x0097, 0x0096); /* Blue sharpness */ in cit_start_model3()
2114 cit_model3_Packet1(gspca_dev, 0x0067, 0x0001); /* Contrast */ in cit_start_model3()
2115 cit_model3_Packet1(gspca_dev, 0x005b, 0x000c); /* Contrast */ in cit_start_model3()
2116 cit_model3_Packet1(gspca_dev, 0x005c, 0x0016); /* Contrast */ in cit_start_model3()
2117 cit_model3_Packet1(gspca_dev, 0x0098, 0x000b); in cit_start_model3()
2118 cit_model3_Packet1(gspca_dev, 0x002c, 0x0003); /* Was 1, broke 640x480 */ in cit_start_model3()
2119 cit_model3_Packet1(gspca_dev, 0x002f, 0x002a); in cit_start_model3()
2120 cit_model3_Packet1(gspca_dev, 0x0030, 0x0029); in cit_start_model3()
2121 cit_model3_Packet1(gspca_dev, 0x0037, 0x0002); in cit_start_model3()
2122 cit_model3_Packet1(gspca_dev, 0x0038, 0x0059); in cit_start_model3()
2123 cit_model3_Packet1(gspca_dev, 0x003d, 0x002e); in cit_start_model3()
2124 cit_model3_Packet1(gspca_dev, 0x003e, 0x0028); in cit_start_model3()
2125 cit_model3_Packet1(gspca_dev, 0x0078, 0x0005); in cit_start_model3()
2126 cit_model3_Packet1(gspca_dev, 0x007b, 0x0011); in cit_start_model3()
2127 cit_model3_Packet1(gspca_dev, 0x007d, 0x004b); in cit_start_model3()
2128 cit_model3_Packet1(gspca_dev, 0x007f, 0x0022); in cit_start_model3()
2129 cit_model3_Packet1(gspca_dev, 0x0080, 0x000c); in cit_start_model3()
2130 cit_model3_Packet1(gspca_dev, 0x0081, 0x000b); in cit_start_model3()
2131 cit_model3_Packet1(gspca_dev, 0x0083, 0x00fd); in cit_start_model3()
2132 cit_model3_Packet1(gspca_dev, 0x0086, 0x000b); in cit_start_model3()
2133 cit_model3_Packet1(gspca_dev, 0x0087, 0x000b); in cit_start_model3()
2134 cit_model3_Packet1(gspca_dev, 0x007e, 0x000e); in cit_start_model3()
2135 cit_model3_Packet1(gspca_dev, 0x0096, 0x00a0); /* Red sharpness */ in cit_start_model3()
2136 cit_model3_Packet1(gspca_dev, 0x0097, 0x0096); /* Blue sharpness */ in cit_start_model3()
2137 cit_model3_Packet1(gspca_dev, 0x0098, 0x000b); in cit_start_model3()
2142 cit_write_reg(gspca_dev, clock_div, 0x0111); /* Clock Divider */ in cit_start_model3()
2144 switch (gspca_dev->pixfmt.width) { in cit_start_model3()
2146 cit_model3_Packet1(gspca_dev, 0x001f, 0x0000); /* Same */ in cit_start_model3()
2147 cit_model3_Packet1(gspca_dev, 0x0039, 0x001f); /* Same */ in cit_start_model3()
2148 cit_model3_Packet1(gspca_dev, 0x003b, 0x003c); /* Same */ in cit_start_model3()
2149 cit_model3_Packet1(gspca_dev, 0x0040, 0x000a); in cit_start_model3()
2150 cit_model3_Packet1(gspca_dev, 0x0051, 0x000a); in cit_start_model3()
2153 cit_model3_Packet1(gspca_dev, 0x001f, 0x0000); /* Same */ in cit_start_model3()
2154 cit_model3_Packet1(gspca_dev, 0x0039, 0x001f); /* Same */ in cit_start_model3()
2155 cit_model3_Packet1(gspca_dev, 0x003b, 0x003c); /* Same */ in cit_start_model3()
2156 cit_model3_Packet1(gspca_dev, 0x0040, 0x0008); in cit_start_model3()
2157 cit_model3_Packet1(gspca_dev, 0x0051, 0x000b); in cit_start_model3()
2160 cit_model3_Packet1(gspca_dev, 0x001f, 0x0002); /* !Same */ in cit_start_model3()
2161 cit_model3_Packet1(gspca_dev, 0x0039, 0x003e); /* !Same */ in cit_start_model3()
2162 cit_model3_Packet1(gspca_dev, 0x0040, 0x0008); in cit_start_model3()
2163 cit_model3_Packet1(gspca_dev, 0x0051, 0x000a); in cit_start_model3()
2171 cit_read_reg(gspca_dev, rca_initdata[i][2], 0); in cit_start_model3()
2173 cit_write_reg(gspca_dev, rca_initdata[i][1], in cit_start_model3()
2181 static int cit_start_model4(struct gspca_dev *gspca_dev) in cit_start_model4() argument
2183 struct sd *sd = (struct sd *) gspca_dev; in cit_start_model4()
2185 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_start_model4()
2186 cit_write_reg(gspca_dev, 0x00c0, 0x0111); in cit_start_model4()
2187 cit_write_reg(gspca_dev, 0x00bc, 0x012c); in cit_start_model4()
2188 cit_write_reg(gspca_dev, 0x0080, 0x012b); in cit_start_model4()
2189 cit_write_reg(gspca_dev, 0x0000, 0x0108); in cit_start_model4()
2190 cit_write_reg(gspca_dev, 0x0001, 0x0133); in cit_start_model4()
2191 cit_write_reg(gspca_dev, 0x009b, 0x010f); in cit_start_model4()
2192 cit_write_reg(gspca_dev, 0x00bb, 0x010f); in cit_start_model4()
2193 cit_model4_Packet1(gspca_dev, 0x0038, 0x0000); in cit_start_model4()
2194 cit_model4_Packet1(gspca_dev, 0x000a, 0x005c); in cit_start_model4()
2196 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2197 cit_write_reg(gspca_dev, 0x0004, 0x012f); in cit_start_model4()
2198 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2199 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2200 cit_write_reg(gspca_dev, 0x00fb, 0x012e); in cit_start_model4()
2201 cit_write_reg(gspca_dev, 0x0000, 0x0130); in cit_start_model4()
2202 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2203 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2204 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2205 cit_write_reg(gspca_dev, 0x000c, 0x0127); in cit_start_model4()
2206 cit_write_reg(gspca_dev, 0x0009, 0x012e); in cit_start_model4()
2207 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2209 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2210 cit_write_reg(gspca_dev, 0x0012, 0x012f); in cit_start_model4()
2211 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2212 cit_write_reg(gspca_dev, 0x0008, 0x0127); in cit_start_model4()
2213 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2214 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2215 cit_write_reg(gspca_dev, 0x002a, 0x012d); in cit_start_model4()
2216 cit_write_reg(gspca_dev, 0x0000, 0x012f); in cit_start_model4()
2217 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2218 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2219 cit_model4_Packet1(gspca_dev, 0x0034, 0x0000); in cit_start_model4()
2221 switch (gspca_dev->pixfmt.width) { in cit_start_model4()
2223 cit_write_reg(gspca_dev, 0x0070, 0x0119); in cit_start_model4()
2224 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2225 cit_write_reg(gspca_dev, 0x0039, 0x010a); in cit_start_model4()
2226 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2227 cit_write_reg(gspca_dev, 0x0028, 0x0103); in cit_start_model4()
2228 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2229 cit_write_reg(gspca_dev, 0x001e, 0x0105); in cit_start_model4()
2230 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2231 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2232 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2233 cit_write_reg(gspca_dev, 0x000a, 0x0127); in cit_start_model4()
2234 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2235 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2236 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2237 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2238 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2239 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2240 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2241 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2242 cit_write_reg(gspca_dev, 0x005a, 0x012d); in cit_start_model4()
2243 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2244 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2245 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2246 cit_write_reg(gspca_dev, 0x0043, 0x0130); in cit_start_model4()
2247 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2248 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2249 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2250 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2251 cit_write_reg(gspca_dev, 0x00eb, 0x012e); in cit_start_model4()
2252 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2253 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2254 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2255 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2256 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2257 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2258 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2259 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2260 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2261 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2262 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2263 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2264 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2265 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2266 cit_write_reg(gspca_dev, 0x0017, 0x0127); in cit_start_model4()
2267 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2268 cit_write_reg(gspca_dev, 0x0031, 0x0130); in cit_start_model4()
2269 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2270 cit_write_reg(gspca_dev, 0x0017, 0x012d); in cit_start_model4()
2271 cit_write_reg(gspca_dev, 0x0078, 0x012f); in cit_start_model4()
2272 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2273 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2274 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2278 cit_write_reg(gspca_dev, 0x0038, 0x0119); in cit_start_model4()
2279 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2280 cit_write_reg(gspca_dev, 0x00b9, 0x010a); in cit_start_model4()
2281 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2282 cit_write_reg(gspca_dev, 0x0028, 0x0103); in cit_start_model4()
2283 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2284 cit_write_reg(gspca_dev, 0x001e, 0x0105); in cit_start_model4()
2285 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2286 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2287 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2288 cit_write_reg(gspca_dev, 0x000b, 0x0127); in cit_start_model4()
2289 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2290 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2291 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2292 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2293 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2294 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2295 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2296 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2297 cit_write_reg(gspca_dev, 0x005a, 0x012d); in cit_start_model4()
2298 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2299 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2300 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2301 cit_write_reg(gspca_dev, 0x0043, 0x0130); in cit_start_model4()
2302 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2303 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2304 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2305 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2306 cit_write_reg(gspca_dev, 0x00c7, 0x012e); in cit_start_model4()
2307 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2308 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2309 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2310 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2311 cit_write_reg(gspca_dev, 0x0025, 0x0127); in cit_start_model4()
2312 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2313 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2314 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2315 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2316 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2317 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2318 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2319 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2320 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2321 cit_write_reg(gspca_dev, 0x0048, 0x0127); in cit_start_model4()
2322 cit_write_reg(gspca_dev, 0x0035, 0x012e); in cit_start_model4()
2323 cit_write_reg(gspca_dev, 0x00d0, 0x0130); in cit_start_model4()
2324 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2325 cit_write_reg(gspca_dev, 0x0048, 0x012d); in cit_start_model4()
2326 cit_write_reg(gspca_dev, 0x0090, 0x012f); in cit_start_model4()
2327 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2328 cit_write_reg(gspca_dev, 0x0001, 0x0127); in cit_start_model4()
2329 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2333 cit_write_reg(gspca_dev, 0x0038, 0x0119); in cit_start_model4()
2334 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2335 cit_write_reg(gspca_dev, 0x00b9, 0x010a); in cit_start_model4()
2336 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2337 cit_write_reg(gspca_dev, 0x002c, 0x0103); in cit_start_model4()
2338 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2339 cit_write_reg(gspca_dev, 0x0024, 0x0105); in cit_start_model4()
2340 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2341 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2342 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2343 cit_write_reg(gspca_dev, 0x0007, 0x0127); in cit_start_model4()
2344 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2345 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2346 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2347 cit_write_reg(gspca_dev, 0x0001, 0x012f); in cit_start_model4()
2348 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2349 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2350 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2351 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2352 cit_write_reg(gspca_dev, 0x005e, 0x012d); in cit_start_model4()
2353 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2354 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2355 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2356 cit_write_reg(gspca_dev, 0x0049, 0x0130); in cit_start_model4()
2357 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2358 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2359 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2360 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2361 cit_write_reg(gspca_dev, 0x00c7, 0x012e); in cit_start_model4()
2362 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2363 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2364 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2365 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2366 cit_write_reg(gspca_dev, 0x0028, 0x0127); in cit_start_model4()
2367 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2368 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2369 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2370 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2371 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2372 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2373 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2374 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2375 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2376 cit_write_reg(gspca_dev, 0x0010, 0x0127); in cit_start_model4()
2377 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2378 cit_write_reg(gspca_dev, 0x002a, 0x0130); in cit_start_model4()
2379 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2380 cit_write_reg(gspca_dev, 0x0010, 0x012d); in cit_start_model4()
2381 cit_write_reg(gspca_dev, 0x006d, 0x012f); in cit_start_model4()
2382 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2383 cit_write_reg(gspca_dev, 0x0001, 0x0127); in cit_start_model4()
2384 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2390 cit_write_reg(gspca_dev, 0x0070, 0x0119); in cit_start_model4()
2391 cit_write_reg(gspca_dev, 0x00d0, 0x0111); in cit_start_model4()
2392 cit_write_reg(gspca_dev, 0x0039, 0x010a); in cit_start_model4()
2393 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2394 cit_write_reg(gspca_dev, 0x0028, 0x0103); in cit_start_model4()
2395 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2396 cit_write_reg(gspca_dev, 0x001e, 0x0105); in cit_start_model4()
2397 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2398 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2399 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2400 cit_write_reg(gspca_dev, 0x000a, 0x0127); in cit_start_model4()
2401 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2402 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2403 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2404 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2405 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2406 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2407 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2408 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2409 cit_write_reg(gspca_dev, 0x005a, 0x012d); in cit_start_model4()
2410 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2411 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2412 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2413 cit_write_reg(gspca_dev, 0x0043, 0x0130); in cit_start_model4()
2414 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2415 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2416 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2417 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2418 cit_write_reg(gspca_dev, 0x00eb, 0x012e); in cit_start_model4()
2419 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2420 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2421 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2422 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2423 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2424 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2425 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2426 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2427 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2428 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2429 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2430 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2431 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2432 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2433 cit_write_reg(gspca_dev, 0x0017, 0x0127); in cit_start_model4()
2434 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2435 cit_write_reg(gspca_dev, 0x0031, 0x0130); in cit_start_model4()
2436 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2437 cit_write_reg(gspca_dev, 0x0017, 0x012d); in cit_start_model4()
2438 cit_write_reg(gspca_dev, 0x0078, 0x012f); in cit_start_model4()
2439 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2440 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2441 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2445 cit_write_reg(gspca_dev, 0x0070, 0x0119); in cit_start_model4()
2446 cit_write_reg(gspca_dev, 0x00c0, 0x0111); in cit_start_model4()
2447 cit_write_reg(gspca_dev, 0x0039, 0x010a); in cit_start_model4()
2448 cit_write_reg(gspca_dev, 0x0001, 0x0102); in cit_start_model4()
2449 cit_write_reg(gspca_dev, 0x002c, 0x0103); in cit_start_model4()
2450 cit_write_reg(gspca_dev, 0x0000, 0x0104); in cit_start_model4()
2451 cit_write_reg(gspca_dev, 0x0024, 0x0105); in cit_start_model4()
2452 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2453 cit_write_reg(gspca_dev, 0x0016, 0x012f); in cit_start_model4()
2454 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2455 cit_write_reg(gspca_dev, 0x0006, 0x0127); in cit_start_model4()
2456 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2457 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2458 cit_write_reg(gspca_dev, 0x0014, 0x012d); in cit_start_model4()
2459 cit_write_reg(gspca_dev, 0x0002, 0x012f); in cit_start_model4()
2460 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2461 cit_write_reg(gspca_dev, 0x00aa, 0x012e); in cit_start_model4()
2462 cit_write_reg(gspca_dev, 0x001a, 0x0130); in cit_start_model4()
2463 cit_write_reg(gspca_dev, 0x8a0a, 0x0124); in cit_start_model4()
2464 cit_write_reg(gspca_dev, 0x005e, 0x012d); in cit_start_model4()
2465 cit_write_reg(gspca_dev, 0x9545, 0x0124); in cit_start_model4()
2466 cit_write_reg(gspca_dev, 0x00aa, 0x0127); in cit_start_model4()
2467 cit_write_reg(gspca_dev, 0x0018, 0x012e); in cit_start_model4()
2468 cit_write_reg(gspca_dev, 0x0049, 0x0130); in cit_start_model4()
2469 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2470 cit_write_reg(gspca_dev, 0x00aa, 0x012f); in cit_start_model4()
2471 cit_write_reg(gspca_dev, 0xd055, 0x0124); in cit_start_model4()
2472 cit_write_reg(gspca_dev, 0x001c, 0x0127); in cit_start_model4()
2473 cit_write_reg(gspca_dev, 0x00cf, 0x012e); in cit_start_model4()
2474 cit_write_reg(gspca_dev, 0xaa28, 0x0124); in cit_start_model4()
2475 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2476 cit_write_reg(gspca_dev, 0x0032, 0x012f); in cit_start_model4()
2477 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2478 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2479 cit_write_reg(gspca_dev, 0x00aa, 0x0130); in cit_start_model4()
2480 cit_write_reg(gspca_dev, 0x82a8, 0x0124); in cit_start_model4()
2481 cit_write_reg(gspca_dev, 0x0036, 0x012d); in cit_start_model4()
2482 cit_write_reg(gspca_dev, 0x0008, 0x012f); in cit_start_model4()
2483 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2484 cit_write_reg(gspca_dev, 0xfffa, 0x0124); in cit_start_model4()
2485 cit_write_reg(gspca_dev, 0x00aa, 0x012d); in cit_start_model4()
2486 cit_write_reg(gspca_dev, 0x001e, 0x012f); in cit_start_model4()
2487 cit_write_reg(gspca_dev, 0xd141, 0x0124); in cit_start_model4()
2488 cit_write_reg(gspca_dev, 0x0010, 0x0127); in cit_start_model4()
2489 cit_write_reg(gspca_dev, 0x0013, 0x012e); in cit_start_model4()
2490 cit_write_reg(gspca_dev, 0x0025, 0x0130); in cit_start_model4()
2491 cit_write_reg(gspca_dev, 0x8a28, 0x0124); in cit_start_model4()
2492 cit_write_reg(gspca_dev, 0x0010, 0x012d); in cit_start_model4()
2493 cit_write_reg(gspca_dev, 0x0048, 0x012f); in cit_start_model4()
2494 cit_write_reg(gspca_dev, 0xd145, 0x0124); in cit_start_model4()
2495 cit_write_reg(gspca_dev, 0x0000, 0x0127); in cit_start_model4()
2496 cit_write_reg(gspca_dev, 0xfea8, 0x0124); in cit_start_model4()
2501 cit_model4_Packet1(gspca_dev, 0x0038, 0x0004); in cit_start_model4()
2506 static int cit_start_ibm_netcam_pro(struct gspca_dev *gspca_dev) in cit_start_ibm_netcam_pro() argument
2511 clock_div = cit_get_clock_div(gspca_dev); in cit_start_ibm_netcam_pro()
2515 cit_write_reg(gspca_dev, 0x0003, 0x0133); in cit_start_ibm_netcam_pro()
2516 cit_write_reg(gspca_dev, 0x0000, 0x0117); in cit_start_ibm_netcam_pro()
2517 cit_write_reg(gspca_dev, 0x0008, 0x0123); in cit_start_ibm_netcam_pro()
2518 cit_write_reg(gspca_dev, 0x0000, 0x0100); in cit_start_ibm_netcam_pro()
2519 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_ibm_netcam_pro()
2521 cit_write_reg(gspca_dev, 0x0000, 0x0133); in cit_start_ibm_netcam_pro()
2522 cit_write_reg(gspca_dev, 0x0000, 0x0123); in cit_start_ibm_netcam_pro()
2523 cit_write_reg(gspca_dev, 0x0001, 0x0117); in cit_start_ibm_netcam_pro()
2524 cit_write_reg(gspca_dev, 0x0040, 0x0108); in cit_start_ibm_netcam_pro()
2525 cit_write_reg(gspca_dev, 0x0019, 0x012c); in cit_start_ibm_netcam_pro()
2526 cit_write_reg(gspca_dev, 0x0060, 0x0116); in cit_start_ibm_netcam_pro()
2529 cit_model3_Packet1(gspca_dev, 0x0049, 0x0000); in cit_start_ibm_netcam_pro()
2531 cit_write_reg(gspca_dev, 0x0000, 0x0101); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2532 cit_write_reg(gspca_dev, 0x003a, 0x0102); /* Hstart */ in cit_start_ibm_netcam_pro()
2533 cit_write_reg(gspca_dev, 0x00a0, 0x0103); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2534 cit_write_reg(gspca_dev, 0x0078, 0x0105); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2535 cit_write_reg(gspca_dev, 0x0000, 0x010a); /* Same */ in cit_start_ibm_netcam_pro()
2536 cit_write_reg(gspca_dev, 0x0002, 0x011d); /* Same on 160x120, 320x240 */ in cit_start_ibm_netcam_pro()
2537 cit_write_reg(gspca_dev, 0x0000, 0x0129); /* Same */ in cit_start_ibm_netcam_pro()
2538 cit_write_reg(gspca_dev, 0x00fc, 0x012b); /* Same */ in cit_start_ibm_netcam_pro()
2539 cit_write_reg(gspca_dev, 0x0022, 0x012a); /* Same */ in cit_start_ibm_netcam_pro()
2541 switch (gspca_dev->pixfmt.width) { in cit_start_ibm_netcam_pro()
2543 cit_write_reg(gspca_dev, 0x0024, 0x010b); in cit_start_ibm_netcam_pro()
2544 cit_write_reg(gspca_dev, 0x0089, 0x0119); in cit_start_ibm_netcam_pro()
2545 cit_write_reg(gspca_dev, 0x000a, 0x011b); in cit_start_ibm_netcam_pro()
2546 cit_write_reg(gspca_dev, 0x0003, 0x011e); in cit_start_ibm_netcam_pro()
2547 cit_write_reg(gspca_dev, 0x0007, 0x0104); in cit_start_ibm_netcam_pro()
2548 cit_write_reg(gspca_dev, 0x0009, 0x011a); in cit_start_ibm_netcam_pro()
2549 cit_write_reg(gspca_dev, 0x008b, 0x011c); in cit_start_ibm_netcam_pro()
2550 cit_write_reg(gspca_dev, 0x0008, 0x0118); in cit_start_ibm_netcam_pro()
2551 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_ibm_netcam_pro()
2554 cit_write_reg(gspca_dev, 0x0028, 0x010b); in cit_start_ibm_netcam_pro()
2555 cit_write_reg(gspca_dev, 0x00d9, 0x0119); in cit_start_ibm_netcam_pro()
2556 cit_write_reg(gspca_dev, 0x0006, 0x011b); in cit_start_ibm_netcam_pro()
2557 cit_write_reg(gspca_dev, 0x0000, 0x011e); in cit_start_ibm_netcam_pro()
2558 cit_write_reg(gspca_dev, 0x000e, 0x0104); in cit_start_ibm_netcam_pro()
2559 cit_write_reg(gspca_dev, 0x0004, 0x011a); in cit_start_ibm_netcam_pro()
2560 cit_write_reg(gspca_dev, 0x003f, 0x011c); in cit_start_ibm_netcam_pro()
2561 cit_write_reg(gspca_dev, 0x000c, 0x0118); in cit_start_ibm_netcam_pro()
2562 cit_write_reg(gspca_dev, 0x0000, 0x0132); in cit_start_ibm_netcam_pro()
2566 cit_model3_Packet1(gspca_dev, 0x0019, 0x0031); in cit_start_ibm_netcam_pro()
2567 cit_model3_Packet1(gspca_dev, 0x001a, 0x0003); in cit_start_ibm_netcam_pro()
2568 cit_model3_Packet1(gspca_dev, 0x001b, 0x0038); in cit_start_ibm_netcam_pro()
2569 cit_model3_Packet1(gspca_dev, 0x001c, 0x0000); in cit_start_ibm_netcam_pro()
2570 cit_model3_Packet1(gspca_dev, 0x0024, 0x0001); in cit_start_ibm_netcam_pro()
2571 cit_model3_Packet1(gspca_dev, 0x0027, 0x0001); in cit_start_ibm_netcam_pro()
2572 cit_model3_Packet1(gspca_dev, 0x002a, 0x0004); in cit_start_ibm_netcam_pro()
2573 cit_model3_Packet1(gspca_dev, 0x0035, 0x000b); in cit_start_ibm_netcam_pro()
2574 cit_model3_Packet1(gspca_dev, 0x003f, 0x0001); in cit_start_ibm_netcam_pro()
2575 cit_model3_Packet1(gspca_dev, 0x0044, 0x0000); in cit_start_ibm_netcam_pro()
2576 cit_model3_Packet1(gspca_dev, 0x0054, 0x0000); in cit_start_ibm_netcam_pro()
2577 cit_model3_Packet1(gspca_dev, 0x00c4, 0x0000); in cit_start_ibm_netcam_pro()
2578 cit_model3_Packet1(gspca_dev, 0x00e7, 0x0001); in cit_start_ibm_netcam_pro()
2579 cit_model3_Packet1(gspca_dev, 0x00e9, 0x0001); in cit_start_ibm_netcam_pro()
2580 cit_model3_Packet1(gspca_dev, 0x00ee, 0x0000); in cit_start_ibm_netcam_pro()
2581 cit_model3_Packet1(gspca_dev, 0x00f3, 0x00c0); in cit_start_ibm_netcam_pro()
2583 cit_write_reg(gspca_dev, compression, 0x0109); in cit_start_ibm_netcam_pro()
2584 cit_write_reg(gspca_dev, clock_div, 0x0111); in cit_start_ibm_netcam_pro()
2590 cit_read_reg(gspca_dev, rca_initdata[i][2], 0); in cit_start_ibm_netcam_pro()
2592 cit_write_reg(gspca_dev, rca_initdata[i][1], in cit_start_ibm_netcam_pro()
2601 static int sd_start(struct gspca_dev *gspca_dev) in sd_start() argument
2603 struct sd *sd = (struct sd *) gspca_dev; in sd_start()
2606 packet_size = cit_get_packet_size(gspca_dev); in sd_start()
2612 cit_start_model0(gspca_dev); in sd_start()
2615 cit_start_model1(gspca_dev); in sd_start()
2618 cit_start_model2(gspca_dev); in sd_start()
2621 cit_start_model3(gspca_dev); in sd_start()
2624 cit_start_model4(gspca_dev); in sd_start()
2627 cit_start_ibm_netcam_pro(gspca_dev); in sd_start()
2632 cit_write_reg(gspca_dev, packet_size >> 8, 0x0106); in sd_start()
2633 cit_write_reg(gspca_dev, packet_size & 0xff, 0x0107); in sd_start()
2635 cit_restart_stream(gspca_dev); in sd_start()
2640 static int sd_isoc_init(struct gspca_dev *gspca_dev) in sd_isoc_init() argument
2646 switch (gspca_dev->pixfmt.width) { in sd_isoc_init()
2658 intfc = gspca_dev->dev->actconfig->intf_cache[0]; in sd_isoc_init()
2674 static int sd_isoc_nego(struct gspca_dev *gspca_dev) in sd_isoc_nego() argument
2679 switch (gspca_dev->pixfmt.width) { in sd_isoc_nego()
2694 alt = &gspca_dev->dev->actconfig->intf_cache[0]->altsetting[1]; in sd_isoc_nego()
2704 ret = usb_set_interface(gspca_dev->dev, gspca_dev->iface, 1); in sd_isoc_nego()
2711 static void sd_stopN(struct gspca_dev *gspca_dev) in sd_stopN() argument
2713 cit_write_reg(gspca_dev, 0x0000, 0x010c); in sd_stopN()
2716 static void sd_stop0(struct gspca_dev *gspca_dev) in sd_stop0() argument
2718 struct sd *sd = (struct sd *) gspca_dev; in sd_stop0()
2720 if (!gspca_dev->present) in sd_stop0()
2729 cit_write_reg(gspca_dev, 0x00c0, 0x0100); /* LED Off */ in sd_stop0()
2732 cit_send_FF_04_02(gspca_dev); in sd_stop0()
2733 cit_read_reg(gspca_dev, 0x0100, 0); in sd_stop0()
2734 cit_write_reg(gspca_dev, 0x81, 0x0100); /* LED Off */ in sd_stop0()
2740 cit_model2_Packet1(gspca_dev, 0x0030, 0x0004); in sd_stop0()
2742 cit_write_reg(gspca_dev, 0x0080, 0x0100); /* LED Off */ in sd_stop0()
2743 cit_write_reg(gspca_dev, 0x0020, 0x0111); in sd_stop0()
2744 cit_write_reg(gspca_dev, 0x00a0, 0x0111); in sd_stop0()
2746 cit_model2_Packet1(gspca_dev, 0x0030, 0x0002); in sd_stop0()
2748 cit_write_reg(gspca_dev, 0x0020, 0x0111); in sd_stop0()
2749 cit_write_reg(gspca_dev, 0x0000, 0x0112); in sd_stop0()
2752 cit_write_reg(gspca_dev, 0x0006, 0x012c); in sd_stop0()
2753 cit_model3_Packet1(gspca_dev, 0x0046, 0x0000); in sd_stop0()
2754 cit_read_reg(gspca_dev, 0x0116, 0); in sd_stop0()
2755 cit_write_reg(gspca_dev, 0x0064, 0x0116); in sd_stop0()
2756 cit_read_reg(gspca_dev, 0x0115, 0); in sd_stop0()
2757 cit_write_reg(gspca_dev, 0x0003, 0x0115); in sd_stop0()
2758 cit_write_reg(gspca_dev, 0x0008, 0x0123); in sd_stop0()
2759 cit_write_reg(gspca_dev, 0x0000, 0x0117); in sd_stop0()
2760 cit_write_reg(gspca_dev, 0x0000, 0x0112); in sd_stop0()
2761 cit_write_reg(gspca_dev, 0x0080, 0x0100); in sd_stop0()
2764 cit_model3_Packet1(gspca_dev, 0x0049, 0x00ff); in sd_stop0()
2765 cit_write_reg(gspca_dev, 0x0006, 0x012c); in sd_stop0()
2766 cit_write_reg(gspca_dev, 0x0000, 0x0116); in sd_stop0()
2771 cit_write_reg(gspca_dev, 0x0008, 0x0123); in sd_stop0()
2772 cit_write_reg(gspca_dev, 0x0000, 0x0117); in sd_stop0()
2773 cit_write_reg(gspca_dev, 0x0003, 0x0133); in sd_stop0()
2774 cit_write_reg(gspca_dev, 0x0000, 0x0111); in sd_stop0()
2778 cit_write_reg(gspca_dev, 0x00c0, 0x0100); in sd_stop0()
2785 input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0); in sd_stop0()
2786 input_sync(gspca_dev->input_dev); in sd_stop0()
2792 static u8 *cit_find_sof(struct gspca_dev *gspca_dev, u8 *data, int len) in cit_find_sof() argument
2794 struct sd *sd = (struct sd *) gspca_dev; in cit_find_sof()
2803 switch (gspca_dev->pixfmt.width) { in cit_find_sof()
2886 gspca_dbg(gspca_dev, D_FRAM, in cit_find_sof()
2893 gspca_dbg(gspca_dev, D_FRAM, in cit_find_sof()
2907 static void sd_pkt_scan(struct gspca_dev *gspca_dev, in sd_pkt_scan() argument
2910 struct sd *sd = (struct sd *) gspca_dev; in sd_pkt_scan()
2913 sof = cit_find_sof(gspca_dev, data, len); in sd_pkt_scan()
2923 gspca_frame_add(gspca_dev, LAST_PACKET, in sd_pkt_scan()
2925 gspca_frame_add(gspca_dev, FIRST_PACKET, NULL, 0); in sd_pkt_scan()
2930 gspca_frame_add(gspca_dev, INTER_PACKET, data, len); in sd_pkt_scan()
2934 static void cit_check_button(struct gspca_dev *gspca_dev) in cit_check_button() argument
2937 struct sd *sd = (struct sd *)gspca_dev; in cit_check_button()
2948 cit_read_reg(gspca_dev, 0x0113, 0); in cit_check_button()
2949 new_button_state = !gspca_dev->usb_buf[0]; in cit_check_button()
2955 cit_write_reg(gspca_dev, 0x01, 0x0113); in cit_check_button()
2958 input_report_key(gspca_dev->input_dev, KEY_CAMERA, in cit_check_button()
2960 input_sync(gspca_dev->input_dev); in cit_check_button()
2968 struct gspca_dev *gspca_dev = in sd_s_ctrl() local
2969 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in sd_s_ctrl()
2970 struct sd *sd = (struct sd *)gspca_dev; in sd_s_ctrl()
2972 gspca_dev->usb_err = 0; in sd_s_ctrl()
2974 if (!gspca_dev->streaming) in sd_s_ctrl()
2978 sd_stopN(gspca_dev); in sd_s_ctrl()
2981 cit_set_brightness(gspca_dev, ctrl->val); in sd_s_ctrl()
2984 cit_set_contrast(gspca_dev, ctrl->val); in sd_s_ctrl()
2987 cit_set_hue(gspca_dev, ctrl->val); in sd_s_ctrl()
2990 cit_set_hflip(gspca_dev, ctrl->val); in sd_s_ctrl()
2993 cit_set_sharpness(gspca_dev, ctrl->val); in sd_s_ctrl()
2996 cit_set_lighting(gspca_dev, ctrl->val); in sd_s_ctrl()
3000 cit_restart_stream(gspca_dev); in sd_s_ctrl()
3001 return gspca_dev->usb_err; in sd_s_ctrl()
3008 static int sd_init_controls(struct gspca_dev *gspca_dev) in sd_init_controls() argument
3010 struct sd *sd = (struct sd *)gspca_dev; in sd_init_controls()
3011 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls()
3043 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()