Lines Matching refs:norm
608 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument
610 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth()
613 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
615 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay()
618 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
620 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
623 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
625 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
628 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8()
631 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8()
643 static inline unsigned int norm_htotal(v4l2_std_id norm) in norm_htotal() argument
646 unsigned int fsc4=norm_fsc8(norm)/2; in norm_htotal()
649 return (norm & V4L2_STD_625_50) ? in norm_htotal()
654 static inline unsigned int norm_vbipack(v4l2_std_id norm) in norm_vbipack() argument
656 return (norm & V4L2_STD_625_50) ? 511 : 400; in norm_vbipack()
807 v4l2_std_id norm = core->tvnorm; in set_tvaudio() local
813 if (V4L2_STD_PAL_BG & norm) { in set_tvaudio()
816 } else if (V4L2_STD_PAL_DK & norm) { in set_tvaudio()
819 } else if (V4L2_STD_PAL_I & norm) { in set_tvaudio()
822 } else if (V4L2_STD_SECAM_L & norm) { in set_tvaudio()
825 } else if ((V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H) & norm) { in set_tvaudio()
828 } else if (V4L2_STD_SECAM_DK & norm) { in set_tvaudio()
831 } else if ((V4L2_STD_NTSC_M & norm) || in set_tvaudio()
832 (V4L2_STD_PAL_M & norm)) { in set_tvaudio()
835 } else if (V4L2_STD_NTSC_M_JP & norm) { in set_tvaudio()
859 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) in cx88_set_tvnorm() argument
869 if (norm == core->tvnorm) in cx88_set_tvnorm()
876 core->tvnorm = norm; in cx88_set_tvnorm()
877 fsc8 = norm_fsc8(norm); in cx88_set_tvnorm()
883 if (norm & V4L2_STD_NTSC_M_JP) { in cx88_set_tvnorm()
886 } else if (norm & V4L2_STD_NTSC_443) { in cx88_set_tvnorm()
889 } else if (norm & V4L2_STD_PAL_M) { in cx88_set_tvnorm()
892 } else if (norm & V4L2_STD_PAL_N) { in cx88_set_tvnorm()
895 } else if (norm & V4L2_STD_PAL_Nc) { in cx88_set_tvnorm()
898 } else if (norm & V4L2_STD_PAL_60) { in cx88_set_tvnorm()
901 } else if (norm & V4L2_STD_NTSC) { in cx88_set_tvnorm()
904 } else if (norm & V4L2_STD_SECAM) { in cx88_set_tvnorm()
925 norm & V4L2_STD_SECAM ? cxiformat : cxiformat | 0x400); in cx88_set_tvnorm()
961 tmp64 = norm_htotal(norm) * (u64)vdec_clock; in cx88_set_tvnorm()
970 cx_write(MO_VBI_PACKET, (10<<11) | norm_vbipack(norm)); in cx88_set_tvnorm()
979 call_all(core, video, s_std, norm); in cx88_set_tvnorm()