Lines Matching refs:vv

13 	(((vv->video_status & STATUS_CAPTURE) != 0) && (vv->video_fh == fh))
16 (((vv->video_status & STATUS_OVERLAY) != 0) && (vv->video_fh == fh))
109 struct saa7146_vv *vv = dev->vv_data; in saa7146_start_preview() local
129 if (vv->video_fh == fh) { in saa7146_start_preview()
145 saa7146_res_free(vv->video_fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP); in saa7146_start_preview()
149 vv->ov_data = &fh->ov; in saa7146_start_preview()
154 vv->ov_fmt->name, v4l2_field_names[fh->ov.win.field]); in saa7146_start_preview()
158 saa7146_res_free(vv->video_fh, RESOURCE_DMA1_HPS|RESOURCE_DMA2_CLP); in saa7146_start_preview()
162 vv->video_status = STATUS_OVERLAY; in saa7146_start_preview()
163 vv->video_fh = fh; in saa7146_start_preview()
172 struct saa7146_vv *vv = dev->vv_data; in saa7146_stop_preview() local
183 if ((vv->video_status & STATUS_OVERLAY) == 0) { in saa7146_stop_preview()
188 if (vv->video_fh != fh) { in saa7146_stop_preview()
193 vv->video_status = 0; in saa7146_stop_preview()
194 vv->video_fh = NULL; in saa7146_stop_preview()
390 struct saa7146_vv *vv = dev->vv_data; in video_begin() local
397 if ((vv->video_status & STATUS_CAPTURE) != 0) { in video_begin()
398 if (vv->video_fh == fh) { in video_begin()
406 if ((vv->video_status & STATUS_OVERLAY) != 0) { in video_begin()
408 vv->ov_suspend = vv->video_fh; in video_begin()
409 …err = saa7146_stop_preview(vv->video_fh); /* side effect: video_status is now 0, video_fh is NULL … in video_begin()
429 if (vv->ov_suspend != NULL) { in video_begin()
430 saa7146_start_preview(vv->ov_suspend); in video_begin()
431 vv->ov_suspend = NULL; in video_begin()
442 vv->video_fh = fh; in video_begin()
443 vv->video_status = STATUS_CAPTURE; in video_begin()
451 struct saa7146_vv *vv = dev->vv_data; in video_end() local
458 if ((vv->video_status & STATUS_CAPTURE) != STATUS_CAPTURE) { in video_end()
463 if (vv->video_fh != fh) { in video_end()
492 vv->video_fh = NULL; in video_end()
493 vv->video_status = 0; in video_end()
497 if (vv->ov_suspend != NULL) { in video_end()
498 saa7146_start_preview(vv->ov_suspend); in video_end()
499 vv->ov_suspend = NULL; in video_end()
525 struct saa7146_vv *vv = dev->vv_data; in vidioc_g_fbuf() local
527 *fb = vv->ov_fb; in vidioc_g_fbuf()
535 struct saa7146_vv *vv = dev->vv_data; in vidioc_s_fbuf() local
555 if (vv->video_fh != fh) { in vidioc_s_fbuf()
562 vv->ov_fb = *fb; in vidioc_s_fbuf()
563 vv->ov_fmt = fmt; in vidioc_s_fbuf()
565 if (vv->ov_fb.fmt.bytesperline < vv->ov_fb.fmt.width) { in vidioc_s_fbuf()
566 vv->ov_fb.fmt.bytesperline = vv->ov_fb.fmt.width * fmt->depth / 8; in vidioc_s_fbuf()
567 DEB_D("setting bytesperline to %d\n", vv->ov_fb.fmt.bytesperline); in vidioc_s_fbuf()
604 struct saa7146_vv *vv = dev->vv_data; in vidioc_g_ctrl() local
628 c->value = vv->vflip; in vidioc_g_ctrl()
632 c->value = vv->hflip; in vidioc_g_ctrl()
644 struct saa7146_vv *vv = dev->vv_data; in vidioc_s_ctrl() local
697 vv->hflip = c->value; in vidioc_s_ctrl()
704 vv->vflip = c->value; in vidioc_s_ctrl()
721 struct saa7146_vv *vv = dev->vv_data; in vidioc_g_parm() local
724 v4l2_video_std_frame_period(vv->standard->id, in vidioc_g_parm()
750 struct saa7146_vv *vv = dev->vv_data; in vidioc_try_fmt_vid_cap() local
763 maxw = vv->standard->h_max_out; in vidioc_try_fmt_vid_cap()
764 maxh = vv->standard->v_max_out; in vidioc_try_fmt_vid_cap()
773 vv->last_field = V4L2_FIELD_TOP; in vidioc_try_fmt_vid_cap()
778 vv->last_field = V4L2_FIELD_INTERLACED; in vidioc_try_fmt_vid_cap()
782 vv->last_field = V4L2_FIELD_INTERLACED; in vidioc_try_fmt_vid_cap()
815 struct saa7146_vv *vv = dev->vv_data; in vidioc_try_fmt_vid_overlay() local
822 if (NULL == vv->ov_fb.base) { in vidioc_try_fmt_vid_overlay()
826 if (NULL == vv->ov_fmt) { in vidioc_try_fmt_vid_overlay()
841 maxw = vv->standard->h_max_out; in vidioc_try_fmt_vid_overlay()
842 maxh = vv->standard->v_max_out; in vidioc_try_fmt_vid_overlay()
875 struct saa7146_vv *vv = dev->vv_data; in vidioc_s_fmt_vid_cap() local
896 struct saa7146_vv *vv = dev->vv_data; in vidioc_s_fmt_vid_overlay() local
926 struct saa7146_vv *vv = dev->vv_data; in vidioc_g_std() local
928 *norm = vv->standard->id; in vidioc_g_std()
953 struct saa7146_vv *vv = dev->vv_data; in vidioc_s_std() local
959 if ((vv->video_status & STATUS_CAPTURE) == STATUS_CAPTURE) { in vidioc_s_std()
964 if ((vv->video_status & STATUS_OVERLAY) != 0) { in vidioc_s_std()
965 vv->ov_suspend = vv->video_fh; in vidioc_s_std()
966 …err = saa7146_stop_preview(vv->video_fh); /* side effect: video_status is now 0, video_fh is NULL … in vidioc_s_std()
977 vv->standard = &dev->ext_vv_data->stds[i]; in vidioc_s_std()
979 dev->ext_vv_data->std_callback(dev, vv->standard); in vidioc_s_std()
983 if (vv->ov_suspend != NULL) { in vidioc_s_std()
984 saa7146_start_preview(vv->ov_suspend); in vidioc_s_std()
985 vv->ov_suspend = NULL; in vidioc_s_std()
993 DEB_EE("VIDIOC_S_STD: set to standard to '%s'\n", vv->standard->name); in vidioc_s_std()
1074 struct saa7146_vv *vv = dev->vv_data; in vidioc_streamoff() local
1082 if ((vv->video_status & STATUS_CAPTURE) != STATUS_CAPTURE) { in vidioc_streamoff()
1087 if (vv->video_fh != fh) { in vidioc_streamoff()
1159 struct saa7146_vv *vv = dev->vv_data; in buffer_activate() local
1164 mod_timer(&vv->video_q.timeout, jiffies+BUFFER_TIMEOUT); in buffer_activate()
1181 struct saa7146_vv *vv = dev->vv_data; in buffer_prepare() local
1190 fh->video_fmt.width > vv->standard->h_max_out || in buffer_prepare()
1191 fh->video_fmt.height > vv->standard->v_max_out) { in buffer_prepare()
1238 err = videobuf_iolock(q,&buf->vb, &vv->ov_fb); in buffer_prepare()
1282 struct saa7146_vv *vv = dev->vv_data; in buffer_queue() local
1286 saa7146_buffer_queue(fh->dev,&vv->video_q,buf); in buffer_queue()
1313 static void video_init(struct saa7146_dev *dev, struct saa7146_vv *vv) in video_init() argument
1315 INIT_LIST_HEAD(&vv->video_q.queue); in video_init()
1317 init_timer(&vv->video_q.timeout); in video_init()
1318 vv->video_q.timeout.function = saa7146_buffer_timeout; in video_init()
1319 vv->video_q.timeout.data = (unsigned long)(&vv->video_q); in video_init()
1320 vv->video_q.dev = dev; in video_init()
1323 vv->standard = &dev->ext_vv_data->stds[0]; in video_init()
1326 vv->current_hps_source = SAA7146_HPS_SOURCE_PORT_A; in video_init()
1327 vv->current_hps_sync = SAA7146_HPS_SYNC_PORT_A; in video_init()
1358 struct saa7146_vv *vv = dev->vv_data; in video_close() local
1373 struct saa7146_vv *vv = dev->vv_data; in video_irq_done() local
1374 struct saa7146_dmaqueue *q = &vv->video_q; in video_irq_done()
1392 struct saa7146_vv *vv = dev->vv_data; in video_read() local
1397 if ((vv->video_status & STATUS_CAPTURE) != 0) { in video_read()
1399 if (vv->video_fh == fh) { in video_read()
1421 if (vv->ov_suspend != NULL) { in video_read()
1422 saa7146_start_preview(vv->ov_suspend); in video_read()
1423 vv->ov_suspend = NULL; in video_read()