From: Guennadi Liakhovetski Date: Tue, 7 Jun 2011 08:44:19 +0000 (-0300) Subject: [media] V4L: pxa-camera: try to force progressive video format X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91401219c073a565af79223215a84250bbc8c79e;p=mv-sheeva.git [media] V4L: pxa-camera: try to force progressive video format The pxa-camera driver only supports progressive video so far. Passing down to the client the same format, as what the user has requested can result in interlaced video, even if the client supports both. This patch avoids such cases. Signed-off-by: Guennadi Liakhovetski Acked-by: Robert Jarzmik Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index bc8600b443b..c42aac132eb 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c @@ -1501,7 +1501,8 @@ static int pxa_camera_try_fmt(struct soc_camera_device *icd, /* limit to sensor capabilities */ mf.width = pix->width; mf.height = pix->height; - mf.field = pix->field; + /* Only progressive video supported so far */ + mf.field = V4L2_FIELD_NONE; mf.colorspace = pix->colorspace; mf.code = xlate->code;