diff options
author | Hans de Goede <j.w.r.degoede@hhs.nl> | 2008-07-06 05:40:55 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:17:20 -0400 |
commit | 80544d3c7a7ce32084c9137c96488704053772e3 (patch) | |
tree | f98159b0f54bede6ca6e2d3951b62e98f69d8e40 | |
parent | c2446b3eba97243acbe2ad0939a28b5edb97eae7 (diff) |
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 <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/gspca/pac207.c | 4 |
1 files changed, 3 insertions, 1 deletions
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[] = { | |||
166 | .priv = 1}, | 166 | .priv = 1}, |
167 | {352, 288, V4L2_PIX_FMT_PAC207, V4L2_FIELD_NONE, | 167 | {352, 288, V4L2_PIX_FMT_PAC207, V4L2_FIELD_NONE, |
168 | .bytesperline = 352, | 168 | .bytesperline = 352, |
169 | .sizeimage = 352 * 288 / 2, /* compressed */ | 169 | /* compressed, but only when needed (not compressed |
170 | when the framerate is low) */ | ||
171 | .sizeimage = (352 + 2) * 288, | ||
170 | .colorspace = V4L2_COLORSPACE_SRGB, | 172 | .colorspace = V4L2_COLORSPACE_SRGB, |
171 | .priv = 0}, | 173 | .priv = 0}, |
172 | }; | 174 | }; |