diff options
Diffstat (limited to 'drivers/media/common/saa7146_fops.c')
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index f14e218bed16..68047c93fd9d 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -436,6 +436,7 @@ static const struct v4l2_ctrl_ops saa7146_ctrl_ops = { | |||
436 | int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv) | 436 | int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv) |
437 | { | 437 | { |
438 | struct v4l2_ctrl_handler *hdl = &dev->ctrl_handler; | 438 | struct v4l2_ctrl_handler *hdl = &dev->ctrl_handler; |
439 | struct v4l2_pix_format *fmt; | ||
439 | struct saa7146_vv *vv; | 440 | struct saa7146_vv *vv; |
440 | int err; | 441 | int err; |
441 | 442 | ||
@@ -496,6 +497,15 @@ int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv) | |||
496 | if (dev->ext_vv_data->capabilities & V4L2_CAP_VBI_CAPTURE) | 497 | if (dev->ext_vv_data->capabilities & V4L2_CAP_VBI_CAPTURE) |
497 | saa7146_vbi_uops.init(dev,vv); | 498 | saa7146_vbi_uops.init(dev,vv); |
498 | 499 | ||
500 | fmt = &vv->ov_fb.fmt; | ||
501 | fmt->width = vv->standard->h_max_out; | ||
502 | fmt->height = vv->standard->v_max_out; | ||
503 | fmt->pixelformat = V4L2_PIX_FMT_RGB565; | ||
504 | fmt->bytesperline = 2 * fmt->width; | ||
505 | fmt->sizeimage = fmt->bytesperline * fmt->height; | ||
506 | fmt->colorspace = V4L2_COLORSPACE_SRGB; | ||
507 | vv->ov_fb.capability = V4L2_FBUF_CAP_LIST_CLIPPING; | ||
508 | vv->ov_fb.flags = V4L2_FBUF_FLAG_PRIMARY; | ||
499 | dev->vv_data = vv; | 509 | dev->vv_data = vv; |
500 | dev->vv_callback = &vv_callback; | 510 | dev->vv_callback = &vv_callback; |
501 | 511 | ||