aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@linaro.org>2015-04-26 16:23:08 +0300
committerLaurent Pinchart <laurent.pinchart@linaro.org>2015-04-28 21:03:02 +0300
commit71bb077630e274320249950b4f750c034406d68f (patch)
treeb7860cc89941e2ac6d296c5cdd7e78c8e81342de
parent0de3cadda2c55b639ee1d18a52080f9efdfa5e90 (diff)
media: mv_sc2: Fix YUYV and YVYU support
The two formats are supported throughout the driver except when computing line and image sizes. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@linaro.org> Acked-By: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
-rw-r--r--drivers/media/platform/soc_camera/mv_sc2_camera.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/soc_camera/mv_sc2_camera.c b/drivers/media/platform/soc_camera/mv_sc2_camera.c
index 35ecc7bbc4dd..6eeedc22ebd0 100644
--- a/drivers/media/platform/soc_camera/mv_sc2_camera.c
+++ b/drivers/media/platform/soc_camera/mv_sc2_camera.c
@@ -981,6 +981,8 @@ static void mccic_setup_mp_pixfmt(struct device *dev,
switch (host_fmt->fourcc) {
case V4L2_PIX_FMT_UYVY:
case V4L2_PIX_FMT_VYUY:
+ case V4L2_PIX_FMT_YUYV:
+ case V4L2_PIX_FMT_YVYU:
bpl = pix_mp->width * 2;
lpp = pix_mp->height;
if (pix_mp->plane_fmt[0].bytesperline < bpl)