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/vc032x.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/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 4144e11c60bb..afbbbd290560 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.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 | MODULE_DESCRIPTION("GSPCA/VC032X USB Camera Driver"); | 31 | MODULE_DESCRIPTION("GSPCA/VC032X USB Camera Driver"); |
@@ -88,13 +88,29 @@ static struct ctrl sd_ctrls[] = { | |||
88 | }, | 88 | }, |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static struct cam_mode vc0321_mode[] = { | 91 | static struct v4l2_pix_format vc0321_mode[] = { |
92 | {V4L2_PIX_FMT_YUYV, 320, 240, 1}, | 92 | {320, 240, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE, |
93 | {V4L2_PIX_FMT_YUYV, 640, 480, 0}, | 93 | .bytesperline = 320 * 2, |
94 | .sizeimage = 320 * 240 * 2, | ||
95 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
96 | .priv = 1}, | ||
97 | {640, 480, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE, | ||
98 | .bytesperline = 640 * 2, | ||
99 | .sizeimage = 640 * 480 * 2, | ||
100 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
101 | .priv = 0}, | ||
94 | }; | 102 | }; |
95 | static struct cam_mode vc0323_mode[] = { | 103 | static struct v4l2_pix_format vc0323_mode[] = { |
96 | {V4L2_PIX_FMT_JPEG, 320, 240, 1}, | 104 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
97 | {V4L2_PIX_FMT_JPEG, 640, 480, 0}, | 105 | .bytesperline = 320, |
106 | .sizeimage = 320 * 240 * 3 / 8 + 590, | ||
107 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
108 | .priv = 1}, | ||
109 | {640, 480, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | ||
110 | .bytesperline = 640, | ||
111 | .sizeimage = 640 * 480 * 3 / 8 + 590, | ||
112 | .colorspace = V4L2_COLORSPACE_JPEG, | ||
113 | .priv = 0}, | ||
98 | }; | 114 | }; |
99 | 115 | ||
100 | static const __u8 mi1310_socinitVGA_JPG[][4] = { | 116 | static const __u8 mi1310_socinitVGA_JPG[][4] = { |
@@ -1535,7 +1551,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
1535 | reg_w(gspca_dev->dev, 0xa0, 0xff, 0xbfef); | 1551 | reg_w(gspca_dev->dev, 0xa0, 0xff, 0xbfef); |
1536 | } | 1552 | } |
1537 | 1553 | ||
1538 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].mode; | 1554 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
1539 | switch (sd->sensor) { | 1555 | switch (sd->sensor) { |
1540 | case SENSOR_HV7131R: | 1556 | case SENSOR_HV7131R: |
1541 | GammaT = hv7131r_gamma; | 1557 | GammaT = hv7131r_gamma; |