]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB: gspca - gl860: use of real resolutions for MI2020 sensor
authorOlivier Lorin <o.lorin@laposte.net>
Thu, 24 Jun 2010 07:30:05 +0000 (04:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:50:24 +0000 (14:50 -0300)
- Change of rounded image resolutions to the real ones for MI2020 sensor
  in order to discard 2 random lines in the bottom of images

Signed-off-by: Olivier Lorin <o.lorin@laposte.net>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gl860/gl860.c

index 61319fa0d4e029f30e73ce90276a2869ef59f640..e86eb8b4aedc47eb7dbeb24e132a0656e47ebf54 100644 (file)
@@ -219,9 +219,9 @@ static struct v4l2_pix_format mi2020_mode[] = {
                .colorspace = V4L2_COLORSPACE_SRGB,
                .priv = 0
        },
-       { 800,  600, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
+       { 800,  598, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
                .bytesperline = 800,
-               .sizeimage = 800 * 600,
+               .sizeimage = 800 * 598,
                .colorspace = V4L2_COLORSPACE_SRGB,
                .priv = 1
        },
@@ -231,9 +231,9 @@ static struct v4l2_pix_format mi2020_mode[] = {
                .colorspace = V4L2_COLORSPACE_SRGB,
                .priv = 2
        },
-       {1600, 1200, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
+       {1600, 1198, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
                .bytesperline = 1600,
-               .sizeimage = 1600 * 1200,
+               .sizeimage = 1600 * 1198,
                .colorspace = V4L2_COLORSPACE_SRGB,
                .priv = 3
        },