Lines Matching refs:vbi

67 static void vivid_g_fmt_vbi_cap(struct vivid_dev *dev, struct v4l2_vbi_format *vbi)  in vivid_g_fmt_vbi_cap()  argument
71 vbi->sampling_rate = 27000000; in vivid_g_fmt_vbi_cap()
72 vbi->offset = 24; in vivid_g_fmt_vbi_cap()
73 vbi->samples_per_line = 1440; in vivid_g_fmt_vbi_cap()
74 vbi->sample_format = V4L2_PIX_FMT_GREY; in vivid_g_fmt_vbi_cap()
75 vbi->start[0] = is_60hz ? V4L2_VBI_ITU_525_F1_START + 9 : V4L2_VBI_ITU_625_F1_START + 5; in vivid_g_fmt_vbi_cap()
76 vbi->start[1] = is_60hz ? V4L2_VBI_ITU_525_F2_START + 9 : V4L2_VBI_ITU_625_F2_START + 5; in vivid_g_fmt_vbi_cap()
77 vbi->count[0] = vbi->count[1] = is_60hz ? 12 : 18; in vivid_g_fmt_vbi_cap()
78 vbi->flags = dev->vbi_cap_interlaced ? V4L2_VBI_INTERLACED : 0; in vivid_g_fmt_vbi_cap()
79 vbi->reserved[0] = 0; in vivid_g_fmt_vbi_cap()
80 vbi->reserved[1] = 0; in vivid_g_fmt_vbi_cap()
85 struct v4l2_vbi_format vbi; in vivid_raw_vbi_cap_process() local
88 vivid_g_fmt_vbi_cap(dev, &vbi); in vivid_raw_vbi_cap_process()
98 vivid_vbi_gen_raw(&dev->vbi_gen, &vbi, vbuf); in vivid_raw_vbi_cap_process()
241 struct v4l2_vbi_format *vbi = &f->fmt.vbi; in vidioc_g_fmt_vbi_cap() local
246 vivid_g_fmt_vbi_cap(dev, vbi); in vidioc_g_fmt_vbi_cap()
263 void vivid_fill_service_lines(struct v4l2_sliced_vbi_format *vbi, u32 service_set) in vivid_fill_service_lines() argument
265 vbi->io_size = sizeof(struct v4l2_sliced_vbi_data) * 36; in vivid_fill_service_lines()
266 vbi->service_set = service_set; in vivid_fill_service_lines()
267 memset(vbi->service_lines, 0, sizeof(vbi->service_lines)); in vivid_fill_service_lines()
268 memset(vbi->reserved, 0, sizeof(vbi->reserved)); in vivid_fill_service_lines()
270 if (vbi->service_set == 0) in vivid_fill_service_lines()
273 if (vbi->service_set & V4L2_SLICED_CAPTION_525) { in vivid_fill_service_lines()
274 vbi->service_lines[0][21] = V4L2_SLICED_CAPTION_525; in vivid_fill_service_lines()
275 vbi->service_lines[1][21] = V4L2_SLICED_CAPTION_525; in vivid_fill_service_lines()
277 if (vbi->service_set & V4L2_SLICED_WSS_625) { in vivid_fill_service_lines()
281 vbi->service_lines[0][i] = in vivid_fill_service_lines()
282 vbi->service_lines[1][i] = V4L2_SLICED_TELETEXT_B; in vivid_fill_service_lines()
283 vbi->service_lines[0][23] = V4L2_SLICED_WSS_625; in vivid_fill_service_lines()
290 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced; in vidioc_g_fmt_sliced_vbi_cap() local
295 vivid_fill_service_lines(vbi, dev->service_set_cap); in vidioc_g_fmt_sliced_vbi_cap()
302 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced; in vidioc_try_fmt_sliced_vbi_cap() local
304 u32 service_set = vbi->service_set; in vidioc_try_fmt_sliced_vbi_cap()
311 vivid_fill_service_lines(vbi, service_set); in vidioc_try_fmt_sliced_vbi_cap()
318 struct v4l2_sliced_vbi_format *vbi = &fmt->fmt.sliced; in vidioc_s_fmt_sliced_vbi_cap() local
325 dev->service_set_cap = vbi->service_set; in vidioc_s_fmt_sliced_vbi_cap()