]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[media] V4L: pxa-camera: try to force progressive video format
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 7 Jun 2011 08:44:19 +0000 (05:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:21 +0000 (17:53 -0300)
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>
drivers/media/video/pxa_camera.c

index bc8600b443bc203fee3971a6f5f94d14d3a077f1..c42aac132ebfa2da5c2db4cb93bbea0609752adb 100644 (file)
@@ -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;