[media] v4l: s5k5baf: 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 03:59:18 +0000 (00:59 -0300)
The sensor is progressive, 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/i2c/s5k5baf.c

index 2d768ef67cc5046686f237a1d947ea32d275bae8..564f05f2c9efbe54d569c5030c7152ddc2f0390f 100644 (file)
@@ -1313,6 +1313,8 @@ static int s5k5baf_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
        const struct s5k5baf_pixfmt *pixfmt;
        int ret = 0;
 
+       mf->field = V4L2_FIELD_NONE;
+
        if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) {
                *v4l2_subdev_get_try_format(fh, fmt->pad) = *mf;
                return 0;