{
struct stk1160 *dev = video_drvdata(file);
- if (f->fmt.pix.pixelformat != format[0].fourcc) {
- stk1160_err("fourcc format 0x%08x invalid\n",
- f->fmt.pix.pixelformat);
- return -EINVAL;
- }
-
/*
* User can't choose size at his own will,
* so we just return him the current size chosen
* TODO: Implement frame scaling?
*/
+ f->fmt.pix.pixelformat = dev->fmt->fourcc;
f->fmt.pix.width = dev->width;
f->fmt.pix.height = dev->height;
f->fmt.pix.field = V4L2_FIELD_INTERLACED;
{
struct stk1160 *dev = video_drvdata(file);
struct vb2_queue *q = &dev->vb_vidq;
- int rc;
if (vb2_is_busy(q))
return -EBUSY;
- rc = vidioc_try_fmt_vid_cap(file, priv, f);
- if (rc < 0)
- return rc;
+ vidioc_try_fmt_vid_cap(file, priv, f);
/* We don't support any format changes */