From: Hans de Goede Date: Sun, 6 Jul 2008 09:40:55 +0000 (-0300) Subject: V4L/DVB (8202): gspca: PAC207 frames may be not compressed. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80544d3c7a7ce32084c9137c96488704053772e3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git V4L/DVB (8202): gspca: PAC207 frames may be not compressed. pac207: Set the sizeimage to the max value for 352x288. Signed-off-by: Hans de Goede Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index b580af92d231..4f197c1f4a76 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c @@ -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}, };