V4L/DVB (8202): gspca: PAC207 frames may be not compressed.
authorHans de Goede <j.w.r.degoede@hhs.nl>
Sun, 6 Jul 2008 09:40:55 +0000 (06:40 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:17:20 +0000 (07:17 -0300)
pac207:   Set the sizeimage to the max value for 352x288.

Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/gspca/pac207.c

index b580af9..4f197c1 100644 (file)
@@ -166,7 +166,9 @@ static struct v4l2_pix_format sif_mode[] = {
                .priv = 1},
        {352, 288, V4L2_PIX_FMT_PAC207, V4L2_FIELD_NONE,
                .bytesperline = 352,
-               .sizeimage = 352 * 288 / 2,     /* compressed */
+                       /* compressed, but only when needed (not compressed
+                          when the framerate is low) */
+               .sizeimage = (352 + 2) * 288,
                .colorspace = V4L2_COLORSPACE_SRGB,
                .priv = 0},
 };