Lines Matching refs:norm
626 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument
628 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth()
631 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
633 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay()
636 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
638 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
641 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
643 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
646 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8()
649 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8()
662 static inline unsigned int norm_htotal(v4l2_std_id norm) in norm_htotal() argument
664 unsigned int fsc4 = norm_fsc8(norm) / 2; in norm_htotal()
667 return (norm & V4L2_STD_625_50) ? in norm_htotal()
672 static inline unsigned int norm_vbipack(v4l2_std_id norm) in norm_vbipack() argument
674 return (norm & V4L2_STD_625_50) ? 511 : 400; in norm_vbipack()
826 v4l2_std_id norm = core->tvnorm; in set_tvaudio() local
832 if (V4L2_STD_PAL_BG & norm) { in set_tvaudio()
835 } else if (V4L2_STD_PAL_DK & norm) { in set_tvaudio()
838 } else if (V4L2_STD_PAL_I & norm) { in set_tvaudio()
841 } else if (V4L2_STD_SECAM_L & norm) { in set_tvaudio()
845 norm) { in set_tvaudio()
848 } else if (V4L2_STD_SECAM_DK & norm) { in set_tvaudio()
851 } else if ((V4L2_STD_NTSC_M & norm) || in set_tvaudio()
852 (V4L2_STD_PAL_M & norm)) { in set_tvaudio()
855 } else if (V4L2_STD_NTSC_M_JP & norm) { in set_tvaudio()
877 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) in cx88_set_tvnorm() argument
887 if (norm == core->tvnorm) in cx88_set_tvnorm()
894 core->tvnorm = norm; in cx88_set_tvnorm()
895 fsc8 = norm_fsc8(norm); in cx88_set_tvnorm()
901 if (norm & V4L2_STD_NTSC_M_JP) { in cx88_set_tvnorm()
904 } else if (norm & V4L2_STD_NTSC_443) { in cx88_set_tvnorm()
907 } else if (norm & V4L2_STD_PAL_M) { in cx88_set_tvnorm()
910 } else if (norm & V4L2_STD_PAL_N) { in cx88_set_tvnorm()
913 } else if (norm & V4L2_STD_PAL_Nc) { in cx88_set_tvnorm()
916 } else if (norm & V4L2_STD_PAL_60) { in cx88_set_tvnorm()
919 } else if (norm & V4L2_STD_NTSC) { in cx88_set_tvnorm()
922 } else if (norm & V4L2_STD_SECAM) { in cx88_set_tvnorm()
945 norm & V4L2_STD_SECAM ? cxiformat : cxiformat | 0x400); in cx88_set_tvnorm()
983 tmp64 = norm_htotal(norm) * (u64)vdec_clock; in cx88_set_tvnorm()
993 cx_write(MO_VBI_PACKET, (10 << 11) | norm_vbipack(norm)); in cx88_set_tvnorm()
1002 call_all(core, video, s_std, norm); in cx88_set_tvnorm()