[media] v4l: s3c-camif: Return V4L2_FIELD_NONE from pad-level set format
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 19 May 2014 15:04:32 +0000 (12:04 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 04:00:23 +0000 (01:00 -0300)
The bridge driver doesn't support interlaced formats, always return the
field order set to V4L2_FIELD_NONE.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/s3c-camif/camif-capture.c

index 8ea520935867abb59deebe4ca989ffb0f8fc892a..f33641384e15adf817542a689bb5df57082fe812 100644 (file)
@@ -1270,6 +1270,7 @@ static int s3c_camif_subdev_get_fmt(struct v4l2_subdev *sd,
        }
 
        mutex_unlock(&camif->lock);
+       mf->field = V4L2_FIELD_NONE;
        mf->colorspace = V4L2_COLORSPACE_JPEG;
        return 0;
 }
@@ -1318,6 +1319,7 @@ static int s3c_camif_subdev_set_fmt(struct v4l2_subdev *sd,
        v4l2_dbg(1, debug, sd, "pad%d: code: 0x%x, %ux%u\n",
                 fmt->pad, mf->code, mf->width, mf->height);
 
+       mf->field = V4L2_FIELD_NONE;
        mf->colorspace = V4L2_COLORSPACE_JPEG;
        mutex_lock(&camif->lock);