Lines Matching refs:norm

606 static inline unsigned int norm_swidth(v4l2_std_id norm)  in norm_swidth()  argument
608 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth()
611 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument
613 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay()
616 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument
618 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay()
621 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument
623 if (norm & V4L2_STD_PAL_M) in norm_fsc8()
626 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8()
629 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8()
641 static inline unsigned int norm_htotal(v4l2_std_id norm) in norm_htotal() argument
644 unsigned int fsc4=norm_fsc8(norm)/2; in norm_htotal()
647 return (norm & V4L2_STD_625_50) ? in norm_htotal()
652 static inline unsigned int norm_vbipack(v4l2_std_id norm) in norm_vbipack() argument
654 return (norm & V4L2_STD_625_50) ? 511 : 400; in norm_vbipack()
805 v4l2_std_id norm = core->tvnorm; in set_tvaudio() local
811 if (V4L2_STD_PAL_BG & norm) { in set_tvaudio()
814 } else if (V4L2_STD_PAL_DK & norm) { in set_tvaudio()
817 } else if (V4L2_STD_PAL_I & norm) { in set_tvaudio()
820 } else if (V4L2_STD_SECAM_L & norm) { in set_tvaudio()
823 } else if ((V4L2_STD_SECAM_B | V4L2_STD_SECAM_G | V4L2_STD_SECAM_H) & norm) { in set_tvaudio()
826 } else if (V4L2_STD_SECAM_DK & norm) { in set_tvaudio()
829 } else if ((V4L2_STD_NTSC_M & norm) || in set_tvaudio()
830 (V4L2_STD_PAL_M & norm)) { in set_tvaudio()
833 } else if (V4L2_STD_NTSC_M_JP & norm) { in set_tvaudio()
857 int cx88_set_tvnorm(struct cx88_core *core, v4l2_std_id norm) in cx88_set_tvnorm() argument
867 if (norm == core->tvnorm) in cx88_set_tvnorm()
874 core->tvnorm = norm; in cx88_set_tvnorm()
875 fsc8 = norm_fsc8(norm); in cx88_set_tvnorm()
881 if (norm & V4L2_STD_NTSC_M_JP) { in cx88_set_tvnorm()
884 } else if (norm & V4L2_STD_NTSC_443) { in cx88_set_tvnorm()
887 } else if (norm & V4L2_STD_PAL_M) { in cx88_set_tvnorm()
890 } else if (norm & V4L2_STD_PAL_N) { in cx88_set_tvnorm()
893 } else if (norm & V4L2_STD_PAL_Nc) { in cx88_set_tvnorm()
896 } else if (norm & V4L2_STD_PAL_60) { in cx88_set_tvnorm()
899 } else if (norm & V4L2_STD_NTSC) { in cx88_set_tvnorm()
902 } else if (norm & V4L2_STD_SECAM) { in cx88_set_tvnorm()
923 norm & V4L2_STD_SECAM ? cxiformat : cxiformat | 0x400); in cx88_set_tvnorm()
959 tmp64 = norm_htotal(norm) * (u64)vdec_clock; in cx88_set_tvnorm()
968 cx_write(MO_VBI_PACKET, (10<<11) | norm_vbipack(norm)); in cx88_set_tvnorm()
977 call_all(core, video, s_std, norm); in cx88_set_tvnorm()