aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2008-09-03 16:12:22 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-03 17:37:48 -0400
commit5c51518da2cabc08af535cf041c6a3697f9e931f (patch)
treeea9ac28a76d19aeda56228e85153ce6b1287fe96 /drivers/media/video/gspca
parentf45f06b648bad82430c64a2e1ad67dc616eb54c6 (diff)
V4L/DVB (8834): gspca: Have a bigger buffer for sn9c10x compressed images.
Under certain conditions sonixb compressed frame size can get bigger then the uncompressed size (seen with 0c45:6028), so make the buffers slightly bigger. 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@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r--drivers/media/video/gspca/sonixb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c
index 8eaeaa3a96d7..346305b12647 100644
--- a/drivers/media/video/gspca/sonixb.c
+++ b/drivers/media/video/gspca/sonixb.c
@@ -207,29 +207,29 @@ static struct ctrl sd_ctrls[] = {
207static struct v4l2_pix_format vga_mode[] = { 207static struct v4l2_pix_format vga_mode[] = {
208 {160, 120, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE, 208 {160, 120, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
209 .bytesperline = 160, 209 .bytesperline = 160,
210 .sizeimage = 160 * 120, 210 .sizeimage = 160 * 120 * 5 / 4,
211 .colorspace = V4L2_COLORSPACE_SRGB, 211 .colorspace = V4L2_COLORSPACE_SRGB,
212 .priv = 2}, 212 .priv = 2},
213 {320, 240, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE, 213 {320, 240, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
214 .bytesperline = 320, 214 .bytesperline = 320,
215 .sizeimage = 320 * 240, 215 .sizeimage = 320 * 240 * 5 / 4,
216 .colorspace = V4L2_COLORSPACE_SRGB, 216 .colorspace = V4L2_COLORSPACE_SRGB,
217 .priv = 1}, 217 .priv = 1},
218 {640, 480, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE, 218 {640, 480, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
219 .bytesperline = 640, 219 .bytesperline = 640,
220 .sizeimage = 640 * 480, 220 .sizeimage = 640 * 480 * 5 / 4,
221 .colorspace = V4L2_COLORSPACE_SRGB, 221 .colorspace = V4L2_COLORSPACE_SRGB,
222 .priv = 0}, 222 .priv = 0},
223}; 223};
224static struct v4l2_pix_format sif_mode[] = { 224static struct v4l2_pix_format sif_mode[] = {
225 {176, 144, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE, 225 {176, 144, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
226 .bytesperline = 176, 226 .bytesperline = 176,
227 .sizeimage = 176 * 144, 227 .sizeimage = 176 * 144 * 5 / 4,
228 .colorspace = V4L2_COLORSPACE_SRGB, 228 .colorspace = V4L2_COLORSPACE_SRGB,
229 .priv = 1}, 229 .priv = 1},
230 {352, 288, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE, 230 {352, 288, V4L2_PIX_FMT_SN9C10X, V4L2_FIELD_NONE,
231 .bytesperline = 352, 231 .bytesperline = 352,
232 .sizeimage = 352 * 288, 232 .sizeimage = 352 * 288 * 5 / 4,
233 .colorspace = V4L2_COLORSPACE_SRGB, 233 .colorspace = V4L2_COLORSPACE_SRGB,
234 .priv = 0}, 234 .priv = 0},
235}; 235};