Lines Matching refs:norm
619 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument
621 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth()
624 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
626 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay()
629 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
631 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
634 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
636 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
639 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8()
642 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8()
655 static inline unsigned int norm_htotal(v4l2_std_id norm) in norm_htotal() argument
657 unsigned int fsc4 = norm_fsc8(norm) / 2; in norm_htotal()
660 return (norm & V4L2_STD_625_50) ? in norm_htotal()
665 static inline unsigned int norm_vbipack(v4l2_std_id norm) in norm_vbipack() argument
667 return (norm & V4L2_STD_625_50) ? 511 : 400; in norm_vbipack()
819 v4l2_std_id norm = core->tvnorm; in set_tvaudio() local
825 if (V4L2_STD_PAL_BG & norm) { in set_tvaudio()
828 } else if (V4L2_STD_PAL_DK & norm) { in set_tvaudio()
831 } else if (V4L2_STD_PAL_I & norm) { in set_tvaudio()
834 } else if (V4L2_STD_SECAM_L & norm) { in set_tvaudio()
838 norm) { in set_tvaudio()
841 } else if (V4L2_STD_SECAM_DK & norm) { in set_tvaudio()
844 } else if ((V4L2_STD_NTSC_M & norm) || in set_tvaudio()
845 (V4L2_STD_PAL_M & norm)) { in set_tvaudio()
848 } else if (V4L2_STD_NTSC_M_JP & norm) { in set_tvaudio()
870 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) in cx88_set_tvnorm() argument
880 if (norm == core->tvnorm) in cx88_set_tvnorm()
887 core->tvnorm = norm; in cx88_set_tvnorm()
888 fsc8 = norm_fsc8(norm); in cx88_set_tvnorm()
894 if (norm & V4L2_STD_NTSC_M_JP) { in cx88_set_tvnorm()
897 } else if (norm & V4L2_STD_NTSC_443) { in cx88_set_tvnorm()
900 } else if (norm & V4L2_STD_PAL_M) { in cx88_set_tvnorm()
903 } else if (norm & V4L2_STD_PAL_N) { in cx88_set_tvnorm()
906 } else if (norm & V4L2_STD_PAL_Nc) { in cx88_set_tvnorm()
909 } else if (norm & V4L2_STD_PAL_60) { in cx88_set_tvnorm()
912 } else if (norm & V4L2_STD_NTSC) { in cx88_set_tvnorm()
915 } else if (norm & V4L2_STD_SECAM) { in cx88_set_tvnorm()
938 norm & V4L2_STD_SECAM ? cxiformat : cxiformat | 0x400); in cx88_set_tvnorm()
976 tmp64 = norm_htotal(norm) * (u64)vdec_clock; in cx88_set_tvnorm()
986 cx_write(MO_VBI_PACKET, (10 << 11) | norm_vbipack(norm)); in cx88_set_tvnorm()
995 call_all(core, video, s_std, norm); in cx88_set_tvnorm()