diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-05-19 11:04:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-21 23:59:18 -0400 |
commit | 2f7844ecb753b352ef8db56b443618a45e478f28 (patch) | |
tree | b4465f022e0d7c3619396916a3d977fe304c400f | |
parent | 776a347df61780111574ee8875e5f7d756817de8 (diff) |
[media] v4l: s5k5baf: Return V4L2_FIELD_NONE from pad-level set format
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>
-rw-r--r-- | drivers/media/i2c/s5k5baf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/i2c/s5k5baf.c b/drivers/media/i2c/s5k5baf.c index 2d768ef67cc5..564f05f2c9ef 100644 --- a/drivers/media/i2c/s5k5baf.c +++ b/drivers/media/i2c/s5k5baf.c | |||
@@ -1313,6 +1313,8 @@ static int s5k5baf_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh, | |||
1313 | const struct s5k5baf_pixfmt *pixfmt; | 1313 | const struct s5k5baf_pixfmt *pixfmt; |
1314 | int ret = 0; | 1314 | int ret = 0; |
1315 | 1315 | ||
1316 | mf->field = V4L2_FIELD_NONE; | ||
1317 | |||
1316 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { | 1318 | if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { |
1317 | *v4l2_subdev_get_try_format(fh, fmt->pad) = *mf; | 1319 | *v4l2_subdev_get_try_format(fh, fmt->pad) = *mf; |
1318 | return 0; | 1320 | return 0; |