aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pwc/pwc.h
diff options
context:
space:
mode:
authorNam Phạm Thành <phamthanhnam.ptn@gmail.com>2009-01-12 00:50:17 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:22 -0400
commite32a7eccd7f016928dd864711ac654e6db62c5f3 (patch)
tree6eb71d883c91226c2f8dd0c7a6cc6a1c2c8e3c5f /drivers/media/video/pwc/pwc.h
parentbe4f4aecf8df39444535c9d9be2b74a8f34649b2 (diff)
V4L/DVB (10242): pwc: add support for webcam snapshot button
This patch adds support for Philips webcam snapshot button as an event input device, for consistency with other webcam drivers. Signed-off-by: Pham Thanh Nam <phamthanhnam.ptn@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc.h')
-rw-r--r--drivers/media/video/pwc/pwc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/pwc/pwc.h b/drivers/media/video/pwc/pwc.h
index 01411fb2337a..0be6f814f539 100644
--- a/drivers/media/video/pwc/pwc.h
+++ b/drivers/media/video/pwc/pwc.h
@@ -37,6 +37,9 @@
37#include <linux/videodev.h> 37#include <linux/videodev.h>
38#include <media/v4l2-common.h> 38#include <media/v4l2-common.h>
39#include <media/v4l2-ioctl.h> 39#include <media/v4l2-ioctl.h>
40#ifdef CONFIG_USB_PWC_INPUT_EVDEV
41#include <linux/input.h>
42#endif
40 43
41#include "pwc-uncompress.h" 44#include "pwc-uncompress.h"
42#include <media/pwc-ioctl.h> 45#include <media/pwc-ioctl.h>
@@ -255,6 +258,9 @@ struct pwc_device
255 int pan_angle; /* in degrees * 100 */ 258 int pan_angle; /* in degrees * 100 */
256 int tilt_angle; /* absolute angle; 0,0 is home position */ 259 int tilt_angle; /* absolute angle; 0,0 is home position */
257 int snapshot_button_status; /* set to 1 when the user push the button, reset to 0 when this value is read */ 260 int snapshot_button_status; /* set to 1 when the user push the button, reset to 0 when this value is read */
261#ifdef CONFIG_USB_PWC_INPUT_EVDEV
262 struct input_dev *button_dev; /* webcam snapshot button input */
263#endif
258 264
259 /*** Misc. data ***/ 265 /*** Misc. data ***/
260 wait_queue_head_t frameq; /* When waiting for a frame to finish... */ 266 wait_queue_head_t frameq; /* When waiting for a frame to finish... */