[media] v4l: s5k6a3: 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:35 +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/s5k6a3.c

index 7bc2271ca009697e75641ca32601c301d12e9896..c11a40850ed15cc307b51bd2934cafac091d99a5 100644 (file)
@@ -115,6 +115,7 @@ static void s5k6a3_try_format(struct v4l2_mbus_framefmt *mf)
 
        fmt = find_sensor_format(mf);
        mf->code = fmt->code;
+       mf->field = V4L2_FIELD_NONE;
        v4l_bound_align_image(&mf->width, S5K6A3_SENSOR_MIN_WIDTH,
                              S5K6A3_SENSOR_MAX_WIDTH, 0,
                              &mf->height, S5K6A3_SENSOR_MIN_HEIGHT,