diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-07-05 10:49:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:17:15 -0400 |
commit | c2446b3eba97243acbe2ad0939a28b5edb97eae7 (patch) | |
tree | f7ff764cf48062c4ef7c243205b85ae73d69763e /drivers/media/video/gspca/zc3xx.c | |
parent | efab8211db79d20032fa7d09b8a3671e68a9c5b9 (diff) |
V4L/DVB (8201): gspca: v4l2_pix_format in each subdriver.
main: Parameter comp_fac removed.
main, pac207:
get_buff_size op removed.
(all) v4l2_pix_format in each subdriver.
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/zc3xx.c')
-rw-r--r-- | drivers/media/video/gspca/zc3xx.c | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c index 63dd8916d6b6..eed9a8baf4ee 100644 --- a/drivers/media/video/gspca/zc3xx.c +++ b/drivers/media/video/gspca/zc3xx.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) |
28 | static const char version[] = "2.1.4"; | 28 | static const char version[] = "2.1.5"; |
29 | 29 | ||
30 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>, " | 30 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>, " |
31 | "Serge A. Suchkov <Serge.A.S@tochka.ru>"); | 31 | "Serge A. Suchkov <Serge.A.S@tochka.ru>"); |
@@ -173,14 +173,30 @@ static struct ctrl sd_ctrls[] = { | |||
173 | }, | 173 | }, |
174 | }; | 174 | }; |
175 | 175 | ||
176 | static struct cam_mode vga_mode[] = { | 176 | static struct v4l2_pix_format vga_mode[] = { |
177 | {V4L2_PIX_FMT_JPEG, 320, 240, 1}, | 177 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
178 | {V4L2_PIX_FMT_JPEG, 640, 480, 0}, | 178 | .bytesperline = 320, |
179 | .sizeimage = 320 * 240 * 3 / 8 + 590, | ||
180 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
181 | .priv = 1}, | ||
182 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
183 | .bytesperline = 640, | ||
184 | .sizeimage = 640 * 480 * 3 / 8 + 590, | ||
185 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
186 | .priv = 0}, | ||
179 | }; | 187 | }; |
180 | 188 | ||
181 | static struct cam_mode sif_mode[] = { | 189 | static struct v4l2_pix_format sif_mode[] = { |
182 | {V4L2_PIX_FMT_JPEG, 176, 144, 1}, | 190 | {176, 144, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
183 | {V4L2_PIX_FMT_JPEG, 352, 288, 0}, | 191 | .bytesperline = 176, |
192 | .sizeimage = 176 * 144 * 3 / 8 + 590, | ||
193 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
194 | .priv = 1}, | ||
195 | {352, 288, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
196 | .bytesperline = 352, | ||
197 | .sizeimage = 352 * 288 * 3 / 8 + 590, | ||
198 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
199 | .priv = 0}, | ||
184 | }; | 200 | }; |
185 | 201 | ||
186 | /* usb exchanges */ | 202 | /* usb exchanges */ |
@@ -6602,7 +6618,7 @@ static int setlightfreq(struct gspca_dev *gspca_dev) | |||
6602 | }; | 6618 | }; |
6603 | 6619 | ||
6604 | i = sd->lightfreq * 2; | 6620 | i = sd->lightfreq * 2; |
6605 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].mode; | 6621 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
6606 | if (!mode) | 6622 | if (!mode) |
6607 | i++; /* 640x480 */ | 6623 | i++; /* 640x480 */ |
6608 | zc3_freq = freq_tb[(int) sd->sensor][i]; | 6624 | zc3_freq = freq_tb[(int) sd->sensor][i]; |
@@ -7170,7 +7186,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
7170 | /* 16 */ | 7186 | /* 16 */ |
7171 | }; | 7187 | }; |
7172 | 7188 | ||
7173 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].mode; | 7189 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
7174 | zc3_init = init_tb[(int) sd->sensor][mode]; | 7190 | zc3_init = init_tb[(int) sd->sensor][mode]; |
7175 | switch (sd->sensor) { | 7191 | switch (sd->sensor) { |
7176 | case SENSOR_HV7131B: | 7192 | case SENSOR_HV7131B: |