/drivers/media/pci/cx88/ |
D | cx88-core.c | 619 static inline unsigned int norm_swidth(v4l2_std_id norm) in norm_swidth() argument 621 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 754 : 922; in norm_swidth() 624 static inline unsigned int norm_hdelay(v4l2_std_id norm) in norm_hdelay() argument 626 return (norm & (V4L2_STD_MN & ~V4L2_STD_PAL_Nc)) ? 135 : 186; in norm_hdelay() 629 static inline unsigned int norm_vdelay(v4l2_std_id norm) in norm_vdelay() argument 631 return (norm & V4L2_STD_625_50) ? 0x24 : 0x18; in norm_vdelay() 634 static inline unsigned int norm_fsc8(v4l2_std_id norm) in norm_fsc8() argument 636 if (norm & V4L2_STD_PAL_M) in norm_fsc8() 639 if (norm & (V4L2_STD_PAL_Nc)) in norm_fsc8() 642 if (norm & V4L2_STD_NTSC) // All NTSC/M and variants in norm_fsc8() [all …]
|
/drivers/media/usb/usbtv/ |
D | usbtv-video.c | 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() [all …]
|
/drivers/media/pci/saa7134/ |
D | saa7134-vbi.c | 42 struct saa7134_tvnorm *norm = dev->tvnorm; in task_init() local 45 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init() 46 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init() 47 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init() 48 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init() 49 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init() 50 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init() 51 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init() 52 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init()
|
D | saa7134-video.c | 361 static void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm) in set_tvnorm() argument 363 video_dbg("set tv norm = %s\n", norm->name); in set_tvnorm() 364 dev->tvnorm = norm; in set_tvnorm() 367 dev->crop_bounds.left = norm->h_start; in set_tvnorm() 368 dev->crop_defrect.left = norm->h_start; in set_tvnorm() 369 dev->crop_bounds.width = norm->h_stop - norm->h_start +1; in set_tvnorm() 370 dev->crop_defrect.width = norm->h_stop - norm->h_start +1; in set_tvnorm() 372 dev->crop_bounds.top = (norm->vbi_v_stop_0+1)*2; in set_tvnorm() 373 dev->crop_defrect.top = norm->video_v_start*2; in set_tvnorm() 374 dev->crop_bounds.height = ((norm->id & V4L2_STD_525_60) ? 524 : 624) in set_tvnorm() [all …]
|
/drivers/media/i2c/ |
D | tw9910.c | 235 v4l2_std_id norm; member 428 static const struct tw9910_scale_ctrl *tw9910_select_norm(v4l2_std_id norm, in tw9910_select_norm() argument 436 if (norm & V4L2_STD_NTSC) { in tw9910_select_norm() 439 } else if (norm & V4L2_STD_PAL) { in tw9910_select_norm() 501 static int tw9910_g_std(struct v4l2_subdev *sd, v4l2_std_id *norm) in tw9910_g_std() argument 506 *norm = priv->norm; in tw9910_g_std() 511 static int tw9910_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9910_s_std() argument 521 if (!(norm & (V4L2_STD_NTSC | V4L2_STD_PAL))) in tw9910_s_std() 524 priv->norm = norm; in tw9910_s_std() 525 if (norm & V4L2_STD_525_60) { in tw9910_s_std() [all …]
|
D | tw9906.c | 21 v4l2_std_id norm; member 85 static int tw9906_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9906_s_std() argument 88 bool is_60hz = norm & V4L2_STD_525_60; in tw9906_s_std() 105 dec->norm = norm; in tw9906_s_std() 133 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9906_log_status() 196 dec->norm = V4L2_STD_NTSC; in tw9906_probe()
|
D | tw9903.c | 30 v4l2_std_id norm; member 114 static int tw9903_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw9903_s_std() argument 117 bool is_60hz = norm & V4L2_STD_525_60; in tw9903_s_std() 134 dec->norm = norm; in tw9903_s_std() 163 bool is_60hz = dec->norm & V4L2_STD_525_60; in tw9903_log_status() 228 dec->norm = V4L2_STD_NTSC; in tw9903_probe()
|
D | bt856.c | 45 v4l2_std_id norm; member 96 if (encoder->norm & V4L2_STD_NTSC) in bt856_init() 124 encoder->norm = std; in bt856_s_std_output() 202 encoder->norm = V4L2_STD_NTSC; in bt856_probe() 212 if (encoder->norm & V4L2_STD_NTSC) in bt856_probe()
|
D | tw2804.c | 32 int norm; member 145 state->norm & V4L2_STD_525_60 ? "60 Hz" : "50 Hz"); in tw2804_log_status() 250 static int tw2804_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw2804_s_std() argument 254 bool is_60hz = norm & V4L2_STD_525_60; in tw2804_s_std() 270 dec->norm = norm; in tw2804_s_std() 364 state->norm = V4L2_STD_NTSC; in tw2804_probe()
|
D | adv7175.c | 39 v4l2_std_id norm; member 226 encoder->norm = std; in adv7175_s_std_output() 243 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing() 247 if (encoder->norm & V4L2_STD_SECAM) in adv7175_s_routing() 259 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing() 272 if (encoder->norm & V4L2_STD_NTSC) in adv7175_s_routing() 411 encoder->norm = V4L2_STD_NTSC; in adv7175_probe()
|
D | vpx3220.c | 37 v4l2_std_id norm; member 271 if (decoder->norm & V4L2_STD_NTSC) in vpx3220_init() 273 else if (decoder->norm & V4L2_STD_PAL) in vpx3220_init() 275 else if (decoder->norm & V4L2_STD_SECAM) in vpx3220_init() 361 decoder->norm = std; in vpx3220_s_std() 478 decoder->norm = V4L2_STD_PAL; in vpx3220_probe()
|
D | saa7185.c | 38 v4l2_std_id norm; member 212 if (encoder->norm & V4L2_STD_NTSC) in saa7185_init() 229 encoder->norm = std; in saa7185_s_std_output() 310 encoder->norm = V4L2_STD_NTSC; in saa7185_probe()
|
D | bt819.c | 45 v4l2_std_id norm; member 175 struct timing *timing = &timing_data[(decoder->norm & V4L2_STD_525_60) ? 1 : 0]; in bt819_init() 189 init[0x15 * 2 - 1] = (decoder->norm & V4L2_STD_625_50) ? 115 : 93; /* Chroma burst delay */ in bt819_init() 279 decoder->norm = std; in bt819_s_std() 421 decoder->norm = V4L2_STD_NTSC; in bt819_probe()
|
D | saa7110.c | 46 v4l2_std_id norm; member 242 status, (unsigned long long)decoder->norm); in saa7110_g_input_status() 262 if (decoder->norm != std) { in saa7110_s_std() 263 decoder->norm = std; in saa7110_s_std() 381 decoder->norm = V4L2_STD_PAL; in saa7110_probe()
|
/drivers/media/usb/dvb-usb/ |
D | cxusb-analog.c | 724 static u32 cxusb_medion_norm2field_order(v4l2_std_id norm) in cxusb_medion_norm2field_order() argument 726 bool is625 = norm & V4L2_STD_625_50; in cxusb_medion_norm2field_order() 727 bool is525 = norm & V4L2_STD_525_60; in cxusb_medion_norm2field_order() 746 v4l2_std_id norm; in cxusb_medion_field_order() local 752 field = cxusb_medion_norm2field_order(cxdev->norm); in cxusb_medion_field_order() 756 ret = v4l2_subdev_call(cxdev->cx25840, video, g_std, &norm); in cxusb_medion_field_order() 762 field = cxusb_medion_norm2field_order(norm); in cxusb_medion_field_order() 1130 v4l2_std_id norm) in cxusb_medion_set_norm() argument 1138 (unsigned long)norm); in cxusb_medion_set_norm() 1141 if (norm == V4L2_STD_UNKNOWN) in cxusb_medion_set_norm() [all …]
|
/drivers/gpu/drm/i2c/ |
D | ch7006_mode.c | 181 if (~mode->valid_norms & 1<<priv->norm) in ch7006_lookup_mode() 204 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_levels() local 210 if (norm->black_level < 339*fixed1/1000) { in ch7006_setup_levels() 220 black_level = round_fixed(norm->black_level*26625)/gain; in ch7006_setup_levels() 235 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_subcarrier() local 240 * (norm->subc_freq >> 24)); in ch7006_setup_subcarrier() 330 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_setup_properties() local 345 scale = norm->vtotal*fixed1; in ch7006_setup_properties() 351 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) in ch7006_setup_properties() 352 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; in ch7006_setup_properties() [all …]
|
D | ch7006_drv.c | 123 const struct ch7006_tv_norm_info *norm = &ch7006_tv_norms[priv->norm]; in ch7006_encoder_mode_set() local 128 regs[CH7006_DISPMODE] = norm->dispmode | mode->dispmode; in ch7006_encoder_mode_set() 234 ~mode->valid_norms & 1<<priv->norm) in ch7006_encoder_get_modes() 268 priv->norm); in ch7006_encoder_create_resources() 322 priv->norm = val; in ch7006_encoder_set_property() 454 priv->norm = TV_NORM_PAL; in ch7006_encoder_init() 469 priv->norm = i; in ch7006_encoder_init()
|
/drivers/media/usb/tm6000/ |
D | tm6000-stds.c | 353 if ((dev->norm & V4L2_STD_NTSC) == V4L2_STD_NTSC_M_KR) { in tm6000_set_audio_std() 355 } else if ((dev->norm & V4L2_STD_NTSC) == V4L2_STD_NTSC_M_JP) { in tm6000_set_audio_std() 357 } else if (dev->norm & V4L2_STD_MN) { in tm6000_set_audio_std() 362 if ((dev->norm & V4L2_STD_SECAM) == V4L2_STD_SECAM_L) in tm6000_set_audio_std() 369 if (dev->norm & V4L2_STD_DK) in tm6000_set_audio_std() 376 if (dev->norm & V4L2_STD_DK) { in tm6000_set_audio_std() 378 } else if (dev->norm & V4L2_STD_PAL_I) { in tm6000_set_audio_std() 380 } else if (dev->norm & V4L2_STD_SECAM_L) { in tm6000_set_audio_std() 389 if (dev->norm & V4L2_STD_DK) { in tm6000_set_audio_std() 437 if (dev->norm & V4L2_STD_525_60) in tm6000_get_std_res() [all …]
|
/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 110 if (dev->norm & V4L2_STD_525_60) { in stk1160_set_std() 378 base_height = (dev->norm & V4L2_STD_525_60) ? 480 : 576; in stk1160_try_fmt() 500 static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_querystd() argument 503 v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm); in vidioc_querystd() 507 static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) in vidioc_g_std() argument 511 *norm = dev->norm; in vidioc_g_std() 515 static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id norm) in vidioc_s_std() argument 520 if (dev->norm == norm) in vidioc_s_std() 532 dev->height = (norm & V4L2_STD_525_60) ? 480 : 576; in vidioc_s_std() 533 dev->norm = norm; in vidioc_s_std() [all …]
|
/drivers/media/pci/tw68/ |
D | tw68-video.c | 211 static void set_tvnorm(struct tw68_dev *dev, const struct tw68_tvnorm *norm) in set_tvnorm() argument 213 if (norm != dev->tvnorm) { in set_tvnorm() 215 dev->height = (norm->id & V4L2_STD_525_60) ? 480 : 576; in set_tvnorm() 216 dev->tvnorm = norm; in set_tvnorm() 253 const struct tw68_tvnorm *norm = dev->tvnorm; in tw68_set_scale() local 265 norm->h_delay, norm->h_start, norm->h_stop, in tw68_set_scale() 266 norm->v_delay, norm->video_v_start, in tw68_set_scale() 267 norm->video_v_stop); in tw68_set_scale() 271 hdelay = norm->h_delay0; in tw68_set_scale() 274 hdelay = norm->h_delay; in tw68_set_scale() [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-cards.c | 98 .norm = V4L2_STD_PAL, 138 .norm = V4L2_STD_NTSC, 178 .norm = V4L2_STD_PAL, 219 .norm = V4L2_STD_PAL, 249 .norm = V4L2_STD_PAL, 290 .norm = V4L2_STD_PAL, 318 .norm = V4L2_STD_NTSC, 346 .norm = V4L2_STD_NTSC, 376 .norm = V4L2_STD_NTSC, 411 .norm = V4L2_STD_PAL_M, [all …]
|
D | cx231xx-video.c | 923 *id = dev->norm; in vidioc_g_std() 927 static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id norm) in vidioc_s_std() argument 934 if (dev->norm == norm) in vidioc_s_std() 940 dev->norm = norm; in vidioc_s_std() 944 dev->height = (dev->norm & V4L2_STD_625_50) ? 576 : 480; in vidioc_s_std() 946 call_all(dev, video, s_std, dev->norm); in vidioc_s_std() 1083 call_all(dev, video, s_std, dev->norm); in cx231xx_s_input() 1169 if (dev->norm & (V4L2_STD_MN | V4L2_STD_NTSC_443)) in cx231xx_s_frequency() 1171 else if (dev->norm & V4L2_STD_B) in cx231xx_s_frequency() 1173 else if (dev->norm & (V4L2_STD_PAL_DK | V4L2_STD_SECAM_DK)) in cx231xx_s_frequency() [all …]
|
/drivers/staging/media/zoran/ |
D | zr36060.c | 480 static int zr36060_set_video(struct videocodec *codec, const struct tvnorm *norm, in zr36060_set_video() argument 546 reg = norm->ht - 1; /* Vtotal */ in zr36060_set_video() 550 reg = norm->wt - 1; /* Htotal */ in zr36060_set_video() 562 reg = norm->v_start - 1; /* BVstart */ in zr36060_set_video() 565 reg += norm->ha / 2; /* BVend */ in zr36060_set_video() 569 reg = norm->h_start - 1; /* BHstart */ in zr36060_set_video() 572 reg += norm->wa; /* BHend */ in zr36060_set_video() 577 reg = cap->y + norm->v_start; /* Vstart */ in zr36060_set_video() 585 reg = cap->x + norm->h_start; /* Hstart */ in zr36060_set_video() 594 reg = norm->v_start - 4; /* SVstart */ in zr36060_set_video() [all …]
|
D | zr36016.c | 241 static int zr36016_set_video(struct videocodec *codec, const struct tvnorm *norm, in zr36016_set_video() argument 247 ptr->name, norm->h_start, norm->v_start, in zr36016_set_video() 262 ptr->xoff = (norm->h_start ? norm->h_start : 1) + cap->x; in zr36016_set_video() 267 ptr->yoff = norm->v_start + cap->y; in zr36016_set_video()
|
/drivers/media/tuners/ |
D | tda9887.c | 404 struct tvnorm *norm = NULL; in tda9887_set_tvnorm() local 410 norm = &radio_mono; in tda9887_set_tvnorm() 412 norm = &radio_stereo; in tda9887_set_tvnorm() 416 norm = tvnorms+i; in tda9887_set_tvnorm() 421 if (NULL == norm) { in tda9887_set_tvnorm() 426 tuner_dbg("configure for: %s\n", norm->name); in tda9887_set_tvnorm() 427 buf[1] = norm->b; in tda9887_set_tvnorm() 428 buf[2] = norm->c; in tda9887_set_tvnorm() 429 buf[3] = norm->e; in tda9887_set_tvnorm()
|