diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-03 15:48:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:36:58 -0400 |
commit | 6a709749228c5f76f128c69c16f39a52d639bd96 (patch) | |
tree | 1fffc8a2fc92674153c9d065d8a9d134caf3a507 /drivers/media/video/gspca/gspca.h | |
parent | 5d05294ac8f6b5d592ee3379fbddd0fb9d1b4c87 (diff) |
V4L/DVB (8718): gspca: suspend/resume added.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.h')
-rw-r--r-- | drivers/media/video/gspca/gspca.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h index 5cb584546ee6..2596568e82fd 100644 --- a/drivers/media/video/gspca/gspca.h +++ b/drivers/media/video/gspca/gspca.h | |||
@@ -154,6 +154,9 @@ struct gspca_dev { | |||
154 | struct mutex queue_lock; /* ISOC queue protection */ | 154 | struct mutex queue_lock; /* ISOC queue protection */ |
155 | __u32 sequence; /* frame sequence number */ | 155 | __u32 sequence; /* frame sequence number */ |
156 | char streaming; | 156 | char streaming; |
157 | #ifdef CONFIG_PM | ||
158 | char frozen; /* suspend - resume */ | ||
159 | #endif | ||
157 | char users; /* number of opens */ | 160 | char users; /* number of opens */ |
158 | char present; /* device connected */ | 161 | char present; /* device connected */ |
159 | char nbufread; /* number of buffers for read() */ | 162 | char nbufread; /* number of buffers for read() */ |
@@ -173,6 +176,10 @@ struct gspca_frame *gspca_frame_add(struct gspca_dev *gspca_dev, | |||
173 | struct gspca_frame *frame, | 176 | struct gspca_frame *frame, |
174 | const __u8 *data, | 177 | const __u8 *data, |
175 | int len); | 178 | int len); |
179 | #ifdef CONFIG_PM | ||
180 | int gspca_suspend(struct usb_interface *intf, pm_message_t message); | ||
181 | int gspca_resume(struct usb_interface *intf); | ||
182 | #endif | ||
176 | int gspca_auto_gain_n_exposure(struct gspca_dev *gspca_dev, int avg_lum, | 183 | int gspca_auto_gain_n_exposure(struct gspca_dev *gspca_dev, int avg_lum, |
177 | int desired_avg_lum, int deadzone, int gain_knee, int exposure_knee); | 184 | int desired_avg_lum, int deadzone, int gain_knee, int exposure_knee); |
178 | #endif /* GSPCAV2_H */ | 185 | #endif /* GSPCAV2_H */ |