Lines Matching refs:tvnorm
98 const struct bttv_tvnorm *tvnorm; in vbi_buffer_prepare() local
107 tvnorm = fh->vbi_fmt.tvnorm; 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->cropcap.bounds.top) in vbi_buffer_prepare()
181 min_vdelay += fh->vbi_fmt.end - tvnorm->cropcap.bounds.top; in vbi_buffer_prepare()
233 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm, in try_fmt() argument
245 min_start = tvnorm->vbistart[0]; in try_fmt()
247 max_end = (tvnorm->cropcap.bounds.top in try_fmt()
248 + tvnorm->cropcap.bounds.height) >> 1; in try_fmt()
255 f->sampling_rate = tvnorm->Fsc; in try_fmt()
260 f2_offset = tvnorm->vbistart[1] - tvnorm->vbistart[0]; in try_fmt()
286 f->start[0] = tvnorm->vbistart[0]; in try_fmt()
287 f->start[1] = tvnorm->vbistart[1]; in try_fmt()
304 const struct bttv_tvnorm *tvnorm; in bttv_try_fmt_vbi_cap() local
309 tvnorm = &bttv_tvnorms[btv->tvnorm]; in bttv_try_fmt_vbi_cap()
314 return try_fmt(&frt->fmt.vbi, tvnorm, crop_start); in bttv_try_fmt_vbi_cap()
322 const struct bttv_tvnorm *tvnorm; in bttv_s_fmt_vbi_cap() local
332 tvnorm = &bttv_tvnorms[btv->tvnorm]; in bttv_s_fmt_vbi_cap()
334 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start); in bttv_s_fmt_vbi_cap()
338 start1 = frt->fmt.vbi.start[1] - tvnorm->vbistart[1] + in bttv_s_fmt_vbi_cap()
339 tvnorm->vbistart[0]; in bttv_s_fmt_vbi_cap()
352 fh->vbi_fmt.tvnorm = tvnorm; in bttv_s_fmt_vbi_cap()
369 const struct bttv_tvnorm *tvnorm; in bttv_g_fmt_vbi_cap() local
373 tvnorm = &bttv_tvnorms[fh->btv->tvnorm]; in bttv_g_fmt_vbi_cap()
375 if (tvnorm != fh->vbi_fmt.tvnorm) { in bttv_g_fmt_vbi_cap()
383 max_end = (tvnorm->cropcap.bounds.top in bttv_g_fmt_vbi_cap()
384 + tvnorm->cropcap.bounds.height) >> 1; in bttv_g_fmt_vbi_cap()
386 frt->fmt.vbi.sampling_rate = tvnorm->Fsc; in bttv_g_fmt_vbi_cap()
392 + tvnorm->vbistart[i] in bttv_g_fmt_vbi_cap()
393 - fh->vbi_fmt.tvnorm->vbistart[i]; in bttv_g_fmt_vbi_cap()
400 max_end += tvnorm->vbistart[1] in bttv_g_fmt_vbi_cap()
401 - tvnorm->vbistart[0]; in bttv_g_fmt_vbi_cap()
409 const struct bttv_tvnorm *tvnorm; in bttv_vbi_fmt_reset() local
413 tvnorm = &bttv_tvnorms[norm]; in bttv_vbi_fmt_reset()
415 f->fmt.sampling_rate = tvnorm->Fsc; in bttv_vbi_fmt_reset()
419 f->fmt.start[0] = tvnorm->vbistart[0]; in bttv_vbi_fmt_reset()
420 f->fmt.start[1] = tvnorm->vbistart[1]; in bttv_vbi_fmt_reset()
429 real_samples_per_line = 1024 + tvnorm->vbipack * 4; in bttv_vbi_fmt_reset()
430 real_count = ((tvnorm->cropcap.defrect.top >> 1) in bttv_vbi_fmt_reset()
431 - tvnorm->vbistart[0]); in bttv_vbi_fmt_reset()
436 f->tvnorm = tvnorm; in bttv_vbi_fmt_reset()
439 f->end = tvnorm->vbistart[0] * 2 + 2; in bttv_vbi_fmt_reset()