Lines Matching refs:norm

619 static inline unsigned int norm_swidth(v4l2_std_id norm)  in norm_swidth()  argument
621 if (norm & (V4L2_STD_NTSC | V4L2_STD_PAL_M)) in norm_swidth()
624 if (norm & V4L2_STD_PAL_Nc) in norm_swidth()
630 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
632 if (norm & (V4L2_STD_NTSC | V4L2_STD_PAL_M)) in norm_hdelay()
635 if (norm & V4L2_STD_PAL_Nc) in norm_hdelay()
641 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
643 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
646 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
648 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
651 if (norm & V4L2_STD_PAL_Nc) in norm_fsc8()
654 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8()
667 static inline unsigned int norm_htotal(v4l2_std_id norm) in norm_htotal() argument
669 unsigned int fsc4 = norm_fsc8(norm) / 2; in norm_htotal()
672 return (norm & V4L2_STD_625_50) ? in norm_htotal()
677 static inline unsigned int norm_vbipack(v4l2_std_id norm) in norm_vbipack() argument
679 return (norm & V4L2_STD_625_50) ? 511 : 400; in norm_vbipack()
831 v4l2_std_id norm = core->tvnorm; in set_tvaudio() local
837 if (V4L2_STD_PAL_BG & norm) { in set_tvaudio()
840 } else if (V4L2_STD_PAL_DK & norm) { in set_tvaudio()
843 } else if (V4L2_STD_PAL_I & norm) { in set_tvaudio()
846 } else if (V4L2_STD_SECAM_L & norm) { in set_tvaudio()
850 norm) { in set_tvaudio()
853 } else if (V4L2_STD_SECAM_DK & norm) { in set_tvaudio()
857 norm) { in set_tvaudio()
860 } else if (V4L2_STD_NTSC_M_JP & norm) { in set_tvaudio()
882 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) in cx88_set_tvnorm() argument
892 if (norm == core->tvnorm) in cx88_set_tvnorm()
899 core->tvnorm = norm; in cx88_set_tvnorm()
900 fsc8 = norm_fsc8(norm); in cx88_set_tvnorm()
906 if (norm & V4L2_STD_NTSC_M_JP) { in cx88_set_tvnorm()
909 } else if (norm & V4L2_STD_NTSC_443) { in cx88_set_tvnorm()
912 } else if (norm & V4L2_STD_PAL_M) { in cx88_set_tvnorm()
915 } else if (norm & V4L2_STD_PAL_N) { in cx88_set_tvnorm()
918 } else if (norm & V4L2_STD_PAL_Nc) { in cx88_set_tvnorm()
921 } else if (norm & V4L2_STD_PAL_60) { in cx88_set_tvnorm()
924 } else if (norm & V4L2_STD_NTSC) { in cx88_set_tvnorm()
927 } else if (norm & V4L2_STD_SECAM) { in cx88_set_tvnorm()
950 norm & V4L2_STD_SECAM ? cxiformat : cxiformat | 0x400); in cx88_set_tvnorm()
988 tmp64 = norm_htotal(norm) * (u64)vdec_clock; in cx88_set_tvnorm()
998 cx_write(MO_VBI_PACKET, (10 << 11) | norm_vbipack(norm)); in cx88_set_tvnorm()
1007 call_all(core, video, s_std, norm); in cx88_set_tvnorm()