/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
H A D | bttv-vbi.c | 38 really stores 1024 + tvnorm->vbipack * 4 samples per line in the 39 buffer. Note tvnorm->vbipack is <= 0xFF (limit of VBIPACK_LO + HI 98 const struct bttv_tvnorm *tvnorm; in vbi_buffer_prepare() local 107 tvnorm = fh->vbi_fmt.tvnorm; in vbi_buffer_prepare() 112 standard changes while capturing, so we use vbi_fmt.tvnorm in vbi_buffer_prepare() 113 instead of btv->tvnorm to skip zero lines after video in vbi_buffer_prepare() 121 - tvnorm->vbistart[0])); in vbi_buffer_prepare() 124 - tvnorm->vbistart[1])); in vbi_buffer_prepare() 180 if (fh->vbi_fmt.end >= tvnorm in vbi_buffer_prepare() 233 try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm, __s32 crop_start) try_fmt() argument 304 const struct bttv_tvnorm *tvnorm; bttv_try_fmt_vbi_cap() local 322 const struct bttv_tvnorm *tvnorm; bttv_s_fmt_vbi_cap() local 369 const struct bttv_tvnorm *tvnorm; bttv_g_fmt_vbi_cap() local 409 const struct bttv_tvnorm *tvnorm; bttv_vbi_fmt_reset() local [all...] |
H A D | bttv-risc.c | 328 const struct bttv_tvnorm *tvnorm) in bttv_calc_geo_old() 333 int swidth = tvnorm->swidth; in bttv_calc_geo_old() 334 int totalwidth = tvnorm->totalwidth; in bttv_calc_geo_old() 335 int scaledtwidth = tvnorm->scaledtwidth; in bttv_calc_geo_old() 343 vdelay = tvnorm->vdelay; in bttv_calc_geo_old() 347 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 350 sr = ((tvnorm->sheight >> (interleaved?0:1))*512)/height - 512; in bttv_calc_geo_old() 353 ((tvnorm->sheight>>4)&0x30) | ((vdelay>>2)&0xc0); in bttv_calc_geo_old() 357 geo->sheight = tvnorm->sheight; in bttv_calc_geo_old() 358 geo->vtotal = tvnorm in bttv_calc_geo_old() 326 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, int width, int height, int interleaved, const struct bttv_tvnorm *tvnorm) bttv_calc_geo_old() argument 370 bttv_calc_geo(struct bttv * btv, struct bttv_geometry * geo, unsigned int width, unsigned int height, int both_fields, const struct bttv_tvnorm * tvnorm, const struct v4l2_rect * crop) bttv_calc_geo() argument 699 const struct bttv_tvnorm *tvnorm = bttv_tvnorms + buf->tvnorm; bttv_buffer_risc() local [all...] |
H A D | bttvp.h | 150 unsigned int tvnorm; member 169 unsigned int tvnorm; member 181 const struct bttv_tvnorm *tvnorm; member 420 unsigned int tvnorm; member
|
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
H A D | bttv-vbi.c | 179 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm, in try_fmt() argument 191 min_start = tvnorm->vbistart[0]; in try_fmt() 193 max_end = (tvnorm->cropcap.bounds.top in try_fmt() 194 + tvnorm->cropcap.bounds.height) >> 1; in try_fmt() 201 f->sampling_rate = tvnorm->Fsc; in try_fmt() 206 f2_offset = tvnorm->vbistart[1] - tvnorm->vbistart[0]; in try_fmt() 232 f->start[0] = tvnorm->vbistart[0]; in try_fmt() 233 f->start[1] = tvnorm->vbistart[1]; in try_fmt() 249 const struct bttv_tvnorm *tvnorm; in bttv_try_fmt_vbi_cap() local 266 const struct bttv_tvnorm *tvnorm; bttv_s_fmt_vbi_cap() local 308 const struct bttv_tvnorm *tvnorm; bttv_g_fmt_vbi_cap() local 348 const struct bttv_tvnorm *tvnorm; bttv_vbi_fmt_reset() local [all...] |
H A D | bttv-risc.c | 239 const struct bttv_tvnorm *tvnorm) in bttv_calc_geo_old() 244 int swidth = tvnorm->swidth; in bttv_calc_geo_old() 245 int totalwidth = tvnorm->totalwidth; in bttv_calc_geo_old() 246 int scaledtwidth = tvnorm->scaledtwidth; in bttv_calc_geo_old() 254 vdelay = tvnorm->vdelay; in bttv_calc_geo_old() 258 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 261 sr = ((tvnorm->sheight >> (interleaved?0:1))*512)/height - 512; in bttv_calc_geo_old() 264 ((tvnorm->sheight>>4)&0x30) | ((vdelay>>2)&0xc0); in bttv_calc_geo_old() 268 geo->sheight = tvnorm->sheight; in bttv_calc_geo_old() 269 geo->vtotal = tvnorm in bttv_calc_geo_old() 237 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, int width, int height, int interleaved, const struct bttv_tvnorm *tvnorm) bttv_calc_geo_old() argument 281 bttv_calc_geo(struct bttv * btv, struct bttv_geometry * geo, unsigned int width, unsigned int height, int both_fields, const struct bttv_tvnorm * tvnorm, const struct v4l2_rect * crop) bttv_calc_geo() argument 517 const struct bttv_tvnorm *tvnorm = btv->vbi_fmt.tvnorm; bttv_buffer_risc_vbi() local 663 const struct bttv_tvnorm *tvnorm = bttv_tvnorms + btv->tvnorm; bttv_buffer_risc() local [all...] |
H A D | bttv-driver.c | 710 const struct bttv_tvnorm *tvnorm; in disclaim_video_lines() local 713 tvnorm = &bttv_tvnorms[btv->tvnorm]; in disclaim_video_lines() 714 btv->crop_start = tvnorm->cropcap.bounds.top in disclaim_video_lines() 715 + tvnorm->cropcap.bounds.height; in disclaim_video_lines() 835 int table_idx = bttv_tvnorms[btv->tvnorm].sram; in bt848A_set_timing() 836 int fsc = bttv_tvnorms[btv->tvnorm].Fsc; in bt848A_set_timing() 1103 const struct bttv_tvnorm *tvnorm; in set_tvnorm() local 1107 WARN_ON(btv->tvnorm >= BTTV_TVNORMS); in set_tvnorm() 1109 tvnorm in set_tvnorm() [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 671 unsigned int swidth = norm_swidth(core->tvnorm); in cx88_set_scale() 672 unsigned int sheight = norm_maxh(core->tvnorm); in cx88_set_scale() 678 v4l2_norm_to_name(core->tvnorm)); in cx88_set_scale() 683 value = (width * norm_hdelay(core->tvnorm)) / swidth; in cx88_set_scale() 699 cx_write(MO_VDELAY_EVEN, norm_vdelay(core->tvnorm)); in cx88_set_scale() 700 cx_write(MO_VDELAY_ODD, norm_vdelay(core->tvnorm)); in cx88_set_scale() 701 dprintk(1, "set_scale: vdelay 0x%04x\n", norm_vdelay(core->tvnorm)); in cx88_set_scale() 715 if (core->tvnorm & V4L2_STD_SECAM) { in cx88_set_scale() 817 v4l2_std_id norm = core->tvnorm; in set_tvaudio() 851 v4l2_norm_to_name(core->tvnorm)); in set_tvaudio() [all...] |
H A D | cx88-vbi.c | 32 if (dev->core->tvnorm & V4L2_STD_525_60) { in cx8800_vbi_fmt() 40 } else if (dev->core->tvnorm & V4L2_STD_625_50) { in cx8800_vbi_fmt() 122 if (dev->core->tvnorm & V4L2_STD_525_60) in queue_setup() 138 if (dev->core->tvnorm & V4L2_STD_525_60) in buffer_prepare()
|
/kernel/linux/linux-6.6/drivers/media/pci/cx88/ |
H A D | cx88-core.c | 685 unsigned int swidth = norm_swidth(core->tvnorm); in cx88_set_scale() 686 unsigned int sheight = norm_maxh(core->tvnorm); in cx88_set_scale() 692 v4l2_norm_to_name(core->tvnorm)); in cx88_set_scale() 697 value = (width * norm_hdelay(core->tvnorm)) / swidth; in cx88_set_scale() 713 cx_write(MO_VDELAY_EVEN, norm_vdelay(core->tvnorm)); in cx88_set_scale() 714 cx_write(MO_VDELAY_ODD, norm_vdelay(core->tvnorm)); in cx88_set_scale() 715 dprintk(1, "set_scale: vdelay 0x%04x\n", norm_vdelay(core->tvnorm)); in cx88_set_scale() 729 if (core->tvnorm & V4L2_STD_SECAM) { in cx88_set_scale() 831 v4l2_std_id norm = core->tvnorm; in set_tvaudio() 865 v4l2_norm_to_name(core->tvnorm)); in set_tvaudio() [all...] |
H A D | cx88-vbi.c | 32 if (dev->core->tvnorm & V4L2_STD_525_60) { in cx8800_vbi_fmt() 40 } else if (dev->core->tvnorm & V4L2_STD_625_50) { in cx8800_vbi_fmt() 122 if (dev->core->tvnorm & V4L2_STD_525_60) in queue_setup() 138 if (dev->core->tvnorm & V4L2_STD_525_60) in buffer_prepare()
|
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/ |
H A D | saa7134-tvaudio.c | 245 if (dev->tvnorm->id == V4L2_STD_NTSC) { in tvaudio_setmode() 321 if (!(dev->tvnorm->id & scan->std)) { in tvaudio_checkcarrier() 500 if (!(dev->tvnorm->id & mainscan[i].std)) in tvaudio_thread() 535 dev->tvnorm->name, carrier/1000, carrier%1000, in tvaudio_thread() 559 if (dev->tvnorm->id != UNSET && in tvaudio_thread() 560 !(dev->tvnorm->id & tvaudio[i].std)) in tvaudio_thread() 794 if (dev->tvnorm->id & (V4L2_STD_B | V4L2_STD_GH)) in tvaudio_thread_ddep() 796 if (dev->tvnorm->id & V4L2_STD_PAL_I) in tvaudio_thread_ddep() 798 if (dev->tvnorm->id & V4L2_STD_DK) in tvaudio_thread_ddep() 800 if (dev->tvnorm in tvaudio_thread_ddep() [all...] |
H A D | saa7134-vbi.c | 42 struct saa7134_tvnorm *norm = dev->tvnorm; in task_init() 136 dev->vbi_vlen = dev->tvnorm->vbi_v_stop_0 - dev->tvnorm->vbi_v_start_0 + 1; in queue_setup()
|
/kernel/linux/linux-6.6/drivers/media/pci/saa7134/ |
H A D | saa7134-tvaudio.c | 245 if (dev->tvnorm->id == V4L2_STD_NTSC) { in tvaudio_setmode() 321 if (!(dev->tvnorm->id & scan->std)) { in tvaudio_checkcarrier() 500 if (!(dev->tvnorm->id & mainscan[i].std)) in tvaudio_thread() 535 dev->tvnorm->name, carrier/1000, carrier%1000, in tvaudio_thread() 559 if (dev->tvnorm->id != UNSET && in tvaudio_thread() 560 !(dev->tvnorm->id & tvaudio[i].std)) in tvaudio_thread() 794 if (dev->tvnorm->id & (V4L2_STD_B | V4L2_STD_GH)) in tvaudio_thread_ddep() 796 if (dev->tvnorm->id & V4L2_STD_PAL_I) in tvaudio_thread_ddep() 798 if (dev->tvnorm->id & V4L2_STD_DK) in tvaudio_thread_ddep() 800 if (dev->tvnorm in tvaudio_thread_ddep() [all...] |
H A D | saa7134-vbi.c | 42 struct saa7134_tvnorm *norm = dev->tvnorm; in task_init() 136 dev->vbi_vlen = dev->tvnorm->vbi_v_stop_0 - dev->tvnorm->vbi_v_start_0 + 1; in queue_setup()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/ |
H A D | cx23885-video.c | 118 if (dev->tvnorm == norm) in cx23885_set_tvnorm() 121 if (dev->tvnorm != norm) { in cx23885_set_tvnorm() 127 dev->tvnorm = norm; in cx23885_set_tvnorm() 371 if (dev->tvnorm & V4L2_STD_525_60) in buffer_prepare() 562 maxh = norm_maxh(dev->tvnorm); in vidioc_try_fmt_vid_cap() 672 bool is_50hz = dev->tvnorm & V4L2_STD_625_50; in vidioc_g_pixelaspect() 697 sel->r.height = norm_maxh(dev->tvnorm); in vidioc_g_selection() 710 *id = dev->tvnorm; in vidioc_g_std() 1019 .std = dev->tvnorm, in cx23885_set_freq_via_ops() 1054 call_all(dev, video, s_std, dev->tvnorm); in cx23885_set_freq_via_ops() [all...] |
H A D | cx23885-vbi.c | 46 if (dev->tvnorm & V4L2_STD_525_60) { in cx23885_vbi_fmt() 52 } else if (dev->tvnorm & V4L2_STD_625_50) { in cx23885_vbi_fmt() 121 if (dev->tvnorm & V4L2_STD_525_60) in queue_setup() 137 if (dev->tvnorm & V4L2_STD_525_60) in buffer_prepare()
|
/kernel/linux/linux-6.6/drivers/media/pci/cx23885/ |
H A D | cx23885-video.c | 118 if (dev->tvnorm == norm) in cx23885_set_tvnorm() 121 if (dev->tvnorm != norm) { in cx23885_set_tvnorm() 127 dev->tvnorm = norm; in cx23885_set_tvnorm() 372 if (dev->tvnorm & V4L2_STD_525_60) in buffer_prepare() 563 maxh = norm_maxh(dev->tvnorm); in vidioc_try_fmt_vid_cap() 673 bool is_50hz = dev->tvnorm & V4L2_STD_625_50; in vidioc_g_pixelaspect() 698 sel->r.height = norm_maxh(dev->tvnorm); in vidioc_g_selection() 711 *id = dev->tvnorm; in vidioc_g_std() 1020 .std = dev->tvnorm, in cx23885_set_freq_via_ops() 1055 call_all(dev, video, s_std, dev->tvnorm); in cx23885_set_freq_via_ops() [all...] |
H A D | cx23885-vbi.c | 46 if (dev->tvnorm & V4L2_STD_525_60) { in cx23885_vbi_fmt() 52 } else if (dev->tvnorm & V4L2_STD_625_50) { in cx23885_vbi_fmt() 121 if (dev->tvnorm & V4L2_STD_525_60) in queue_setup() 137 if (dev->tvnorm & V4L2_STD_525_60) in buffer_prepare()
|
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
H A D | cx25821-video.c | 170 if (dev->tvnorm & V4L2_STD_625_50) in cx25821_buffer_prepare() 346 maxh = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_cap() 440 *tvnorms = chan->dev->tvnorm; in cx25821_vidioc_g_std() 450 if (dev->tvnorm == tvnorms) in cx25821_vidioc_s_std() 453 dev->tvnorm = tvnorms; in cx25821_vidioc_s_std() 455 chan->height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_s_std() 544 f->fmt.pix.height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_out() 673 dev->tvnorm = V4L2_STD_NTSC_M; in cx25821_video_register() 712 if (dev->tvnorm & V4L2_STD_625_50) in cx25821_video_register()
|
/kernel/linux/linux-6.6/drivers/media/pci/cx25821/ |
H A D | cx25821-video.c | 170 if (dev->tvnorm & V4L2_STD_625_50) in cx25821_buffer_prepare() 346 maxh = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_cap() 440 *tvnorms = chan->dev->tvnorm; in cx25821_vidioc_g_std() 450 if (dev->tvnorm == tvnorms) in cx25821_vidioc_s_std() 453 dev->tvnorm = tvnorms; in cx25821_vidioc_s_std() 455 chan->height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_s_std() 544 f->fmt.pix.height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; in cx25821_vidioc_try_fmt_vid_out() 673 dev->tvnorm = V4L2_STD_NTSC_M; in cx25821_video_register() 712 if (dev->tvnorm & V4L2_STD_625_50) in cx25821_video_register()
|
/kernel/linux/linux-5.10/drivers/staging/media/zoran/ |
H A D | zoran_card.c | 268 // struct tvnorm { 272 static const struct tvnorm f50sqpixel = { 944, 768, 83, 880, 625, 576, 16 }; 273 static const struct tvnorm f60sqpixel = { 780, 640, 51, 716, 525, 480, 12 }; 274 static const struct tvnorm f50ccir601 = { 864, 720, 75, 804, 625, 576, 18 }; 275 static const struct tvnorm f60ccir601 = { 858, 720, 57, 788, 525, 480, 16 }; 277 static const struct tvnorm f50ccir601_lml33 = { 864, 720, 75 + 34, 804, 625, 576, 18 }; 278 static const struct tvnorm f60ccir601_lml33 = { 858, 720, 57 + 34, 788, 525, 480, 16 }; 281 static const struct tvnorm f50sqpixel_dc10 = { 944, 768, 0, 880, 625, 576, 0 }; 282 static const struct tvnorm f60sqpixel_dc10 = { 780, 640, 0, 716, 525, 480, 12 }; 288 static const struct tvnorm f50ccir601_lm33r1 [all...] |
H A D | videocodec.h | 220 struct tvnorm { struct 259 int (*set_video)(struct videocodec *codec, const struct tvnorm *norm,
|
/kernel/linux/linux-6.6/drivers/media/pci/zoran/ |
H A D | zoran_card.c | 330 static const struct tvnorm f50sqpixel = { 944, 768, 83, 880, 625, 576, 16 }; 331 static const struct tvnorm f60sqpixel = { 780, 640, 51, 716, 525, 480, 12 }; 332 static const struct tvnorm f50ccir601 = { 864, 720, 75, 804, 625, 576, 18 }; 333 static const struct tvnorm f60ccir601 = { 858, 720, 57, 788, 525, 480, 16 }; 335 static const struct tvnorm f50ccir601_lml33 = { 864, 720, 75 + 34, 804, 625, 576, 18 }; 336 static const struct tvnorm f60ccir601_lml33 = { 858, 720, 57 + 34, 788, 525, 480, 16 }; 339 static const struct tvnorm f50sqpixel_dc10 = { 944, 768, 0, 880, 625, 576, 0 }; 340 static const struct tvnorm f60sqpixel_dc10 = { 780, 640, 0, 716, 525, 480, 12 }; 346 static const struct tvnorm f50ccir601_lm33r10 = { 864, 720, 74 + 54, 804, 625, 576, 18 }; 347 static const struct tvnorm f60ccir601_lm33r1 [all...] |
/kernel/linux/linux-5.10/drivers/media/tuners/ |
H A D | tda9887.c | 48 struct tvnorm { struct 137 static struct tvnorm tvnorms[] = { 245 static struct tvnorm radio_stereo = { 257 static struct tvnorm radio_mono = { 404 struct tvnorm *norm = NULL; in tda9887_set_tvnorm() 422 tuner_dbg("Unsupported tvnorm entry - audio muted\n"); in tda9887_set_tvnorm() 558 overwriting any changes made by the tvnorm. This means that it in tda9887_configure() 560 these values in case of changes in the tvnorm. in tda9887_configure()
|
/kernel/linux/linux-6.6/drivers/media/tuners/ |
H A D | tda9887.c | 48 struct tvnorm { struct 137 static struct tvnorm tvnorms[] = { 245 static struct tvnorm radio_stereo = { 257 static struct tvnorm radio_mono = { 404 struct tvnorm *norm = NULL; in tda9887_set_tvnorm() 422 tuner_dbg("Unsupported tvnorm entry - audio muted\n"); in tda9887_set_tvnorm() 558 overwriting any changes made by the tvnorm. This means that it in tda9887_configure() 560 these values in case of changes in the tvnorm. in tda9887_configure()
|