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/gspca.h | |
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/gspca.h')
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 05e8ee06071b..945f1ab4c9eb 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -52,15 +52,9 @@ extern int gspca_debug; | |||
52 | #define ISO_MAX_SIZE 0x8000 /* max size of one URB buffer (32 Kb) */ | 52 | #define ISO_MAX_SIZE 0x8000 /* max size of one URB buffer (32 Kb) */ |
53 | 53 | ||
54 | /* device information - set at probe time */ | 54 | /* device information - set at probe time */ |
55 | struct cam_mode { | ||
56 | __u32 pixfmt; | ||
57 | short width; | ||
58 | short height; | ||
59 | short mode; /* subdriver value */ | ||
60 | }; | ||
61 | struct cam { | 55 | struct cam { |
62 | char *dev_name; | 56 | char *dev_name; |
63 | struct cam_mode *cam_mode; /* size nmodes */ | 57 | struct v4l2_pix_format *cam_mode; /* size nmodes */ |
64 | char nmodes; | 58 | char nmodes; |
65 | __u8 epaddr; | 59 | __u8 epaddr; |
66 | }; | 60 | }; |
@@ -80,7 +74,6 @@ typedef void (*cam_pkt_op) (struct gspca_dev *gspca_dev, | |||
80 | struct gspca_frame *frame, | 74 | struct gspca_frame *frame, |
81 | __u8 *data, | 75 | __u8 *data, |
82 | int len); | 76 | int len); |
83 | typedef int (*cam_get_buff_size_op) (struct gspca_dev *gspca_dev, int mode); | ||
84 | 77 | ||
85 | struct ctrl { | 78 | struct ctrl { |
86 | struct v4l2_queryctrl qctrl; | 79 | struct v4l2_queryctrl qctrl; |
@@ -102,12 +95,12 @@ struct sd_desc { | |||
102 | cam_v_op stopN; /* called on stream off - main alt */ | 95 | cam_v_op stopN; /* called on stream off - main alt */ |
103 | cam_v_op stop0; /* called on stream off - alt 0 */ | 96 | cam_v_op stop0; /* called on stream off - alt 0 */ |
104 | cam_v_op close; /* called on close */ | 97 | cam_v_op close; /* called on close */ |
105 | cam_v_op dq_callback; /* called when a frame has been dequeued */ | ||
106 | cam_pkt_op pkt_scan; | 98 | cam_pkt_op pkt_scan; |
99 | /* optional operations */ | ||
100 | cam_v_op dq_callback; /* called when a frame has been dequeued */ | ||
107 | cam_jpg_op get_jcomp; | 101 | cam_jpg_op get_jcomp; |
108 | cam_jpg_op set_jcomp; | 102 | cam_jpg_op set_jcomp; |
109 | cam_qmnu_op querymenu; | 103 | cam_qmnu_op querymenu; |
110 | cam_get_buff_size_op get_buff_size; /* optional */ | ||
111 | }; | 104 | }; |
112 | 105 | ||
113 | /* packet types when moving from iso buf to frame buf */ | 106 | /* packet types when moving from iso buf to frame buf */ |