aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/spca561.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/spca561.c')
-rw-r--r--drivers/media/video/gspca/spca561.c32
1 files changed, 24 insertions, 8 deletions
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c
index 8e39cbdda2a5..f0770ee595d8 100644
--- a/drivers/media/video/gspca/spca561.c
+++ b/drivers/media/video/gspca/spca561.c
@@ -24,8 +24,8 @@
24 24
25#include "gspca.h" 25#include "gspca.h"
26 26
27#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4) 27#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 5)
28static const char version[] = "2.1.4"; 28static const char version[] = "2.1.5";
29 29
30MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); 30MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>");
31MODULE_DESCRIPTION("GSPCA/SPCA561 USB Camera Driver"); 31MODULE_DESCRIPTION("GSPCA/SPCA561 USB Camera Driver");
@@ -97,11 +97,27 @@ static struct ctrl sd_ctrls[] = {
97 }, 97 },
98}; 98};
99 99
100static struct cam_mode sif_mode[] = { 100static struct v4l2_pix_format sif_mode[] = {
101 {V4L2_PIX_FMT_SGBRG8, 160, 120, 3}, 101 {160, 120, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
102 {V4L2_PIX_FMT_SGBRG8, 176, 144, 2}, 102 .bytesperline = 160,
103 {V4L2_PIX_FMT_SPCA561, 320, 240, 1}, 103 .sizeimage = 160 * 120,
104 {V4L2_PIX_FMT_SPCA561, 352, 288, 0}, 104 .colorspace = V4L2_COLORSPACE_SRGB,
105 .priv = 3},
106 {176, 144, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
107 .bytesperline = 176,
108 .sizeimage = 176 * 144,
109 .colorspace = V4L2_COLORSPACE_SRGB,
110 .priv = 2},
111 {320, 240, V4L2_PIX_FMT_SPCA561, V4L2_FIELD_NONE,
112 .bytesperline = 320,
113 .sizeimage = 320 * 240 * 4 / 8,
114 .colorspace = V4L2_COLORSPACE_SRGB,
115 .priv = 1},
116 {352, 288, V4L2_PIX_FMT_SPCA561, V4L2_FIELD_NONE,
117 .bytesperline = 352,
118 .sizeimage = 352 * 288 * 4 / 8,
119 .colorspace = V4L2_COLORSPACE_SRGB,
120 .priv = 0},
105}; 121};
106 122
107/* 123/*
@@ -655,7 +671,7 @@ static void sd_start(struct gspca_dev *gspca_dev)
655 __u8 Reg8307[] = { 0xaa, 0x00 }; 671 __u8 Reg8307[] = { 0xaa, 0x00 };
656 int mode; 672 int mode;
657 673
658 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].mode; 674 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
659 switch (sd->chip_revision) { 675 switch (sd->chip_revision) {
660 case Rev072A: 676 case Rev072A:
661 switch (mode) { 677 switch (mode) {