Lines Matching refs:gspca_dev
355 static int mi2020_init_at_startup(struct gspca_dev *gspca_dev);
356 static int mi2020_configure_alt(struct gspca_dev *gspca_dev);
357 static int mi2020_init_pre_alt(struct gspca_dev *gspca_dev);
358 static int mi2020_init_post_alt(struct gspca_dev *gspca_dev);
359 static void mi2020_post_unset_alt(struct gspca_dev *gspca_dev);
360 static int mi2020_camera_settings(struct gspca_dev *gspca_dev);
363 void mi2020_init_settings(struct gspca_dev *gspca_dev) in mi2020_init_settings() argument
365 struct sd *sd = (struct sd *) gspca_dev; in mi2020_init_settings()
400 static void common(struct gspca_dev *gspca_dev) in common() argument
402 fetch_validx(gspca_dev, tbl_common_0B, ARRAY_SIZE(tbl_common_0B)); in common()
403 fetch_idxdata(gspca_dev, tbl_common_3B, ARRAY_SIZE(tbl_common_3B)); in common()
404 ctrl_out(gspca_dev, 0x40, 1, 0x0041, 0x0000, 0, NULL); in common()
407 static int mi2020_init_at_startup(struct gspca_dev *gspca_dev) in mi2020_init_at_startup() argument
411 ctrl_in(gspca_dev, 0xc0, 2, 0x0000, 0x0004, 1, &c); in mi2020_init_at_startup()
412 ctrl_in(gspca_dev, 0xc0, 2, 0x0000, 0x0004, 1, &c); in mi2020_init_at_startup()
414 fetch_validx(gspca_dev, tbl_init_at_startup, in mi2020_init_at_startup()
417 ctrl_out(gspca_dev, 0x40, 1, 0x7a00, 0x8030, 0, NULL); in mi2020_init_at_startup()
418 ctrl_in(gspca_dev, 0xc0, 2, 0x7a00, 0x8030, 1, &c); in mi2020_init_at_startup()
420 common(gspca_dev); in mi2020_init_at_startup()
425 ctrl_out(gspca_dev, 0x40, 1, 0x0001, 0x0000, 0, NULL); in mi2020_init_at_startup()
430 static int mi2020_init_pre_alt(struct gspca_dev *gspca_dev) in mi2020_init_pre_alt() argument
432 struct sd *sd = (struct sd *) gspca_dev; in mi2020_init_pre_alt()
446 mi2020_init_post_alt(gspca_dev); in mi2020_init_pre_alt()
451 static int mi2020_init_post_alt(struct gspca_dev *gspca_dev) in mi2020_init_post_alt() argument
453 struct sd *sd = (struct sd *) gspca_dev; in mi2020_init_post_alt()
454 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi2020_init_post_alt()
490 ctrl_out(gspca_dev, 0x40, 5, 0x0001, 0x0000, 0, NULL); in mi2020_init_post_alt()
493 common(gspca_dev); in mi2020_init_post_alt()
496 ctrl_out(gspca_dev, 0x40, 1, 0x0010, 0x0010, 0, NULL); in mi2020_init_post_alt()
497 ctrl_out(gspca_dev, 0x40, 1, 0x0003, 0x00c1, 0, NULL); in mi2020_init_post_alt()
498 ctrl_out(gspca_dev, 0x40, 1, 0x0042, 0x00c2, 0, NULL); in mi2020_init_post_alt()
499 ctrl_out(gspca_dev, 0x40, 1, 0x006a, 0x000d, 0, NULL); in mi2020_init_post_alt()
505 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, in mi2020_init_post_alt()
508 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, in mi2020_init_post_alt()
511 fetch_idxdata(gspca_dev, tbl_init_post_alt_low1, in mi2020_init_post_alt()
515 fetch_idxdata(gspca_dev, tbl_init_post_alt_low2, in mi2020_init_post_alt()
518 fetch_idxdata(gspca_dev, tbl_init_post_alt_low3, in mi2020_init_post_alt()
521 ctrl_out(gspca_dev, 0x40, 1, 0x0010, 0x0010, 0, NULL); in mi2020_init_post_alt()
522 ctrl_out(gspca_dev, 0x40, 1, 0x0000, 0x00c1, 0, NULL); in mi2020_init_post_alt()
523 ctrl_out(gspca_dev, 0x40, 1, 0x0041, 0x00c2, 0, NULL); in mi2020_init_post_alt()
530 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, in mi2020_init_post_alt()
532 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
534 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
536 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
538 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
541 ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, in mi2020_init_post_alt()
543 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
545 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
547 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
549 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, in mi2020_init_post_alt()
553 fetch_idxdata(gspca_dev, tbl_init_post_alt_big, in mi2020_init_post_alt()
556 ctrl_out(gspca_dev, 0x40, 1, 0x0001, 0x0010, 0, NULL); in mi2020_init_post_alt()
557 ctrl_out(gspca_dev, 0x40, 1, 0x0000, 0x00c1, 0, NULL); in mi2020_init_post_alt()
558 ctrl_out(gspca_dev, 0x40, 1, 0x0041, 0x00c2, 0, NULL); in mi2020_init_post_alt()
562 ctrl_out(gspca_dev, 0x40, 1, 0x0040, 0x0000, 0, NULL); in mi2020_init_post_alt()
566 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_freq1); in mi2020_init_post_alt()
567 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_freq2); in mi2020_init_post_alt()
570 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi1); in mi2020_init_post_alt()
571 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi2); in mi2020_init_post_alt()
572 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi3); in mi2020_init_post_alt()
573 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi4); in mi2020_init_post_alt()
574 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_wbal1); in mi2020_init_post_alt()
575 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_wbal2); in mi2020_init_post_alt()
576 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi5); in mi2020_init_post_alt()
577 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi6); in mi2020_init_post_alt()
579 ctrl_in(gspca_dev, 0xc0, 2, 0x0000, 0x0000, 1, &c); in mi2020_init_post_alt()
581 fetch_idxdata(gspca_dev, tbl_init_post_alt_3B, in mi2020_init_post_alt()
585 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip1); in mi2020_init_post_alt()
586 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip2); in mi2020_init_post_alt()
587 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip3); in mi2020_init_post_alt()
588 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip4); in mi2020_init_post_alt()
589 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip5); in mi2020_init_post_alt()
590 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip6); in mi2020_init_post_alt()
594 fetch_idxdata(gspca_dev, tbl_middle_hvflip_low, in mi2020_init_post_alt()
597 fetch_idxdata(gspca_dev, tbl_middle_hvflip_big, in mi2020_init_post_alt()
600 fetch_idxdata(gspca_dev, tbl_end_hvflip, in mi2020_init_post_alt()
610 mi2020_camera_settings(gspca_dev); in mi2020_init_post_alt()
615 static int mi2020_configure_alt(struct gspca_dev *gspca_dev) in mi2020_configure_alt() argument
617 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi2020_configure_alt()
621 gspca_dev->alt = 3 + 1; in mi2020_configure_alt()
627 gspca_dev->alt = 1 + 1; in mi2020_configure_alt()
633 static int mi2020_camera_settings(struct gspca_dev *gspca_dev) in mi2020_camera_settings() argument
635 struct sd *sd = (struct sd *) gspca_dev; in mi2020_camera_settings()
636 s32 reso = gspca_dev->cam.cam_mode[(s32) gspca_dev->curr_mode].priv; in mi2020_camera_settings()
671 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_freq1); in mi2020_camera_settings()
672 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_freq2); in mi2020_camera_settings()
693 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi1); in mi2020_camera_settings()
694 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi2); in mi2020_camera_settings()
695 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi3); in mi2020_camera_settings()
696 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi4); in mi2020_camera_settings()
697 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_wbal1); in mi2020_camera_settings()
698 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_wbal2); in mi2020_camera_settings()
699 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi5); in mi2020_camera_settings()
700 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi6); in mi2020_camera_settings()
710 fetch_idxdata(gspca_dev, tbl_init_post_alt_3B, in mi2020_camera_settings()
713 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip1); in mi2020_camera_settings()
714 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip2); in mi2020_camera_settings()
715 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip3); in mi2020_camera_settings()
716 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip4); in mi2020_camera_settings()
717 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip5); in mi2020_camera_settings()
718 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_hvflip6); in mi2020_camera_settings()
722 fetch_idxdata(gspca_dev, tbl_middle_hvflip_low, in mi2020_camera_settings()
725 fetch_idxdata(gspca_dev, tbl_middle_hvflip_big, in mi2020_camera_settings()
728 fetch_idxdata(gspca_dev, tbl_end_hvflip, in mi2020_camera_settings()
738 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_bright1); in mi2020_camera_settings()
739 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_bright2); in mi2020_camera_settings()
740 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_bright3); in mi2020_camera_settings()
741 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_bright4); in mi2020_camera_settings()
742 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_bright5); in mi2020_camera_settings()
743 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_bright6); in mi2020_camera_settings()
759 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi1); in mi2020_camera_settings()
760 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi2); in mi2020_camera_settings()
761 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi3); in mi2020_camera_settings()
762 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi4); in mi2020_camera_settings()
763 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi5); in mi2020_camera_settings()
764 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi6); in mi2020_camera_settings()
775 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi1); in mi2020_camera_settings()
776 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi2); in mi2020_camera_settings()
777 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi3); in mi2020_camera_settings()
778 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi4); in mi2020_camera_settings()
779 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi5); in mi2020_camera_settings()
780 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0033, 3, dat_multi6); in mi2020_camera_settings()
789 ctrl_out(gspca_dev, 0x40, 3, 0x7a00, 0x0032, 3, dat_sharp); in mi2020_camera_settings()
800 static void mi2020_post_unset_alt(struct gspca_dev *gspca_dev) in mi2020_post_unset_alt() argument
802 ctrl_out(gspca_dev, 0x40, 5, 0x0000, 0x0000, 0, NULL); in mi2020_post_unset_alt()
804 ctrl_out(gspca_dev, 0x40, 1, 0x0001, 0x0000, 0, NULL); in mi2020_post_unset_alt()