diff options
Diffstat (limited to 'drivers/media/video/gspca/t613.c')
-rw-r--r-- | drivers/media/video/gspca/t613.c | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index 96f01d267475..299f84584e82 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -26,8 +26,8 @@ | |||
26 | 26 | ||
27 | #define MODULE_NAME "t613" | 27 | #define MODULE_NAME "t613" |
28 | #include "gspca.h" | 28 | #include "gspca.h" |
29 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4) | 29 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 5) |
30 | static const char version[] = "2.1.4"; | 30 | static const char version[] = "2.1.5"; |
31 | 31 | ||
32 | #define MAX_GAMMA 0x10 /* 0 to 15 */ | 32 | #define MAX_GAMMA 0x10 /* 0 to 15 */ |
33 | 33 | ||
@@ -232,12 +232,32 @@ static char *effects_control[] = { | |||
232 | "Negative", | 232 | "Negative", |
233 | }; | 233 | }; |
234 | 234 | ||
235 | static struct cam_mode vga_mode_t16[] = { | 235 | static struct v4l2_pix_format vga_mode_t16[] = { |
236 | {V4L2_PIX_FMT_JPEG, 160, 120, 4}, | 236 | {160, 120, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
237 | {V4L2_PIX_FMT_JPEG, 176, 144, 3}, | 237 | .bytesperline = 160, |
238 | {V4L2_PIX_FMT_JPEG, 320, 240, 2}, | 238 | .sizeimage = 160 * 120 * 3 / 8 + 590, |
239 | {V4L2_PIX_FMT_JPEG, 352, 288, 1}, | 239 | .colorspace = V4L2_COLORSPACE_JPEG, |
240 | {V4L2_PIX_FMT_JPEG, 640, 480, 0}, | 240 | .priv = 4}, |
241 | {176, 144, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
242 | .bytesperline = 176, | ||
243 | .sizeimage = 176 * 144 * 3 / 8 + 590, | ||
244 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
245 | .priv = 3}, | ||
246 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
247 | .bytesperline = 320, | ||
248 | .sizeimage = 320 * 240 * 3 / 8 + 590, | ||
249 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
250 | .priv = 2}, | ||
251 | {352, 288, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
252 | .bytesperline = 352, | ||
253 | .sizeimage = 352 * 288 * 3 / 8 + 590, | ||
254 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
255 | .priv = 1}, | ||
256 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
257 | .bytesperline = 640, | ||
258 | .sizeimage = 640 * 480 * 3 / 8 + 590, | ||
259 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
260 | .priv = 0}, | ||
241 | }; | 261 | }; |
242 | 262 | ||
243 | #define T16_OFFSET_DATA 631 | 263 | #define T16_OFFSET_DATA 631 |
@@ -848,7 +868,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
848 | 0xb8, 0x00, 0xb9, 0xe7, 0xba, 0x01 }; | 868 | 0xb8, 0x00, 0xb9, 0xe7, 0xba, 0x01 }; |
849 | static const __u8 t4[] = { 0x0b, 0x04, 0x0a, 0x40 }; | 869 | static const __u8 t4[] = { 0x0b, 0x04, 0x0a, 0x40 }; |
850 | 870 | ||
851 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode]. mode; | 871 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode]. priv; |
852 | switch (mode) { | 872 | switch (mode) { |
853 | case 1: /* 352x288 */ | 873 | case 1: /* 352x288 */ |
854 | t2[1] = 0x40; | 874 | t2[1] = 0x40; |