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/spca501.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/spca501.c')
-rw-r--r-- | drivers/media/video/gspca/spca501.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 417fbe2214be..2064dc008af1 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -23,8 +23,8 @@ | |||
23 | 23 | ||
24 | #include "gspca.h" | 24 | #include "gspca.h" |
25 | 25 | ||
26 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4) | 26 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 5) |
27 | static const char version[] = "2.1.4"; | 27 | static const char version[] = "2.1.5"; |
28 | 28 | ||
29 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); | 29 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); |
30 | MODULE_DESCRIPTION("GSPCA/SPCA501 USB Camera Driver"); | 30 | MODULE_DESCRIPTION("GSPCA/SPCA501 USB Camera Driver"); |
@@ -101,10 +101,22 @@ static struct ctrl sd_ctrls[] = { | |||
101 | }, | 101 | }, |
102 | }; | 102 | }; |
103 | 103 | ||
104 | static struct cam_mode vga_mode[] = { | 104 | static struct v4l2_pix_format vga_mode[] = { |
105 | {V4L2_PIX_FMT_SPCA501, 160, 120, 2}, | 105 | {160, 120, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, |
106 | {V4L2_PIX_FMT_SPCA501, 320, 240, 1}, | 106 | .bytesperline = 160, |
107 | {V4L2_PIX_FMT_SPCA501, 640, 480, 0}, | 107 | .sizeimage = 160 * 120 * 3 / 8, |
108 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
109 | .priv = 2}, | ||
110 | {320, 240, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, | ||
111 | .bytesperline = 320, | ||
112 | .sizeimage = 320 * 240 * 3 / 8, | ||
113 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
114 | .priv = 1}, | ||
115 | {640, 480, V4L2_PIX_FMT_SPCA501, V4L2_FIELD_NONE, | ||
116 | .bytesperline = 640, | ||
117 | .sizeimage = 640 * 480 * 3 / 8, | ||
118 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
119 | .priv = 0}, | ||
108 | }; | 120 | }; |
109 | 121 | ||
110 | #define SPCA50X_REG_USB 0x2 /* spca505 501 */ | 122 | #define SPCA50X_REG_USB 0x2 /* spca505 501 */ |
@@ -2029,7 +2041,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
2029 | int mode; | 2041 | int mode; |
2030 | 2042 | ||
2031 | /* memorize the wanted pixel format */ | 2043 | /* memorize the wanted pixel format */ |
2032 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].mode; | 2044 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
2033 | 2045 | ||
2034 | /* Enable ISO packet machine CTRL reg=2, | 2046 | /* Enable ISO packet machine CTRL reg=2, |
2035 | * index=1 bitmask=0x2 (bit ordinal 1) */ | 2047 | * index=1 bitmask=0x2 (bit ordinal 1) */ |