Lines Matching refs:norm
52 .norm = V4L2_STD_525_60,
57 .norm = V4L2_STD_625_50,
63 static int usbtv_configure_for_norm(struct usbtv *usbtv, v4l2_std_id norm) in usbtv_configure_for_norm() argument
69 if (norm_params[i].norm & norm) { in usbtv_configure_for_norm()
80 usbtv->norm = norm; in usbtv_configure_for_norm()
124 static uint16_t usbtv_norm_to_16f_reg(v4l2_std_id norm) in usbtv_norm_to_16f_reg() argument
127 if (norm & V4L2_STD_NTSC) in usbtv_norm_to_16f_reg()
130 if (norm & V4L2_STD_PAL) in usbtv_norm_to_16f_reg()
133 if (norm & V4L2_STD_SECAM) in usbtv_norm_to_16f_reg()
135 if (norm & V4L2_STD_NTSC_443) in usbtv_norm_to_16f_reg()
137 if (norm & (V4L2_STD_PAL_M | V4L2_STD_PAL_60)) in usbtv_norm_to_16f_reg()
143 static int usbtv_select_norm(struct usbtv *usbtv, v4l2_std_id norm) in usbtv_select_norm() argument
237 ret = usbtv_configure_for_norm(usbtv, norm); in usbtv_select_norm()
246 if (norm & ntsc_mask) in usbtv_select_norm()
248 else if (norm & pal_mask) in usbtv_select_norm()
250 else if (norm & V4L2_STD_SECAM) in usbtv_select_norm()
259 { USBTV_BASE + 0x016f, usbtv_norm_to_16f_reg(norm) } in usbtv_select_norm()
337 ret = usbtv_select_norm(usbtv, usbtv->norm); in usbtv_setup_capture()
656 static int usbtv_g_std(struct file *file, void *priv, v4l2_std_id *norm) in usbtv_g_std() argument
659 *norm = usbtv->norm; in usbtv_g_std()
663 static int usbtv_s_std(struct file *file, void *priv, v4l2_std_id norm) in usbtv_s_std() argument
668 if (norm & USBTV_TV_STD) in usbtv_s_std()
669 ret = usbtv_select_norm(usbtv, norm); in usbtv_s_std()