summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pxa_camera.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-06-07 10:44:19 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 22:53:21 +0200
commit91401219c073a565af79223215a84250bbc8c79e (patch)
treed49943925f20b6fdb14c4916bd562d260d8450a3 /drivers/media/video/pxa_camera.c
parent[media] V4L: pxa_camera: remove redundant calculations (diff)
downloadlinux-91401219c073a565af79223215a84250bbc8c79e.tar.xz
linux-91401219c073a565af79223215a84250bbc8c79e.zip
[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 <g.liakhovetski@gmx.de> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pxa_camera.c')
-rw-r--r--drivers/media/video/pxa_camera.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index bc8600b443bc..c42aac132ebf 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;