aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2008-07-16 09:00:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:27:10 -0400
commit5c6644f305650d3d533b67fc74a96e4a2ea0aa89 (patch)
tree3cfd58c0d3e91a812eb97d0496062660cd103953 /drivers/media/video/gspca
parentc36260ee27dff9a0236ddaaee0e3524ecd389645 (diff)
V4L/DVB (8363): gspca: Bad image size with spca501.
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>
Diffstat (limited to 'drivers/media/video/gspca')
-rw-r--r--drivers/media/video/gspca/spca501.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c
index 8cee6748d38f..50e929de0203 100644
--- a/drivers/media/video/gspca/spca501.c
+++ b/drivers/media/video/gspca/spca501.c
@@ -104,17 +104,17 @@ static struct ctrl sd_ctrls[] = {
104static struct v4l2_pix_format vga_mode[] = { 104static struct v4l2_pix_format vga_mode[] = {
105 {160, 120, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, 105 {160, 120, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE,
106 .bytesperline = 160, 106 .bytesperline = 160,
107 .sizeimage = 160 * 120 * 3 / 8, 107 .sizeimage = 160 * 120 * 3 / 2,
108 .colorspace = V4L2_COLORSPACE_SRGB, 108 .colorspace = V4L2_COLORSPACE_SRGB,
109 .priv = 2}, 109 .priv = 2},
110 {320, 240, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, 110 {320, 240, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE,
111 .bytesperline = 320, 111 .bytesperline = 320,
112 .sizeimage = 320 * 240 * 3 / 8, 112 .sizeimage = 320 * 240 * 3 / 2,
113 .colorspace = V4L2_COLORSPACE_SRGB, 113 .colorspace = V4L2_COLORSPACE_SRGB,
114 .priv = 1}, 114 .priv = 1},
115 {640, 480, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, 115 {640, 480, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE,
116 .bytesperline = 640, 116 .bytesperline = 640,
117 .sizeimage = 640 * 480 * 3 / 8, 117 .sizeimage = 640 * 480 * 3 / 2,
118 .colorspace = V4L2_COLORSPACE_SRGB, 118 .colorspace = V4L2_COLORSPACE_SRGB,
119 .priv = 0}, 119 .priv = 0},
120}; 120};