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/spca508.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/spca508.c')
-rw-r--r-- | drivers/media/video/gspca/spca508.c | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index 3b54f41d21c1..169238d40c97 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -22,8 +22,8 @@ | |||
22 | 22 | ||
23 | #include "gspca.h" | 23 | #include "gspca.h" |
24 | 24 | ||
25 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 4) | 25 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 5) |
26 | static const char version[] = "2.1.4"; | 26 | static const char version[] = "2.1.5"; |
27 | 27 | ||
28 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); | 28 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); |
29 | MODULE_DESCRIPTION("GSPCA/SPCA508 USB Camera Driver"); | 29 | MODULE_DESCRIPTION("GSPCA/SPCA508 USB Camera Driver"); |
@@ -69,11 +69,27 @@ static struct ctrl sd_ctrls[] = { | |||
69 | }, | 69 | }, |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static struct cam_mode sif_mode[] = { | 72 | static struct v4l2_pix_format sif_mode[] = { |
73 | {V4L2_PIX_FMT_YUYV, 160, 120, 3}, | 73 | {160, 120, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE, |
74 | {V4L2_PIX_FMT_YUYV, 176, 144, 2}, | 74 | .bytesperline = 160 * 2, |
75 | {V4L2_PIX_FMT_YUYV, 320, 240, 1}, | 75 | .sizeimage = 160 * 120 * 2, |
76 | {V4L2_PIX_FMT_YUYV, 352, 288, 0}, | 76 | .colorspace = V4L2_COLORSPACE_SRGB, |
77 | .priv = 3}, | ||
78 | {176, 144, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE, | ||
79 | .bytesperline = 176 * 2, | ||
80 | .sizeimage = 176 * 144 * 2, | ||
81 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
82 | .priv = 2}, | ||
83 | {320, 240, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE, | ||
84 | .bytesperline = 320 * 2, | ||
85 | .sizeimage = 320 * 240 * 2, | ||
86 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
87 | .priv = 1}, | ||
88 | {352, 288, V4L2_PIX_FMT_YUYV, V4L2_FIELD_NONE, | ||
89 | .bytesperline = 352 * 2, | ||
90 | .sizeimage = 352 * 288 * 2, | ||
91 | .colorspace = V4L2_COLORSPACE_SRGB, | ||
92 | .priv = 0}, | ||
77 | }; | 93 | }; |
78 | 94 | ||
79 | /* Frame packet header offsets for the spca508 */ | 95 | /* Frame packet header offsets for the spca508 */ |
@@ -1574,7 +1590,7 @@ static void sd_start(struct gspca_dev *gspca_dev) | |||
1574 | { | 1590 | { |
1575 | int mode; | 1591 | int mode; |
1576 | 1592 | ||
1577 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].mode; | 1593 | mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; |
1578 | reg_write(gspca_dev->dev, 0x8500, mode); | 1594 | reg_write(gspca_dev->dev, 0x8500, mode); |
1579 | switch (mode) { | 1595 | switch (mode) { |
1580 | case 0: | 1596 | case 0: |