Lines Matching refs:norm

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