diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-06-17 14:11:51 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 18:33:55 (GMT) |
commit | 1b4e21c4f62eae6bdcb3e7bfdfc52171a24f3689 (patch) | |
tree | c06dabaeb7c4bcbcc1b734dda461c738e27d73d8 /include | |
parent | 561474c2d2a1e212ea186e0b65cc69fb330e7bd5 (diff) | |
download | linux-1b4e21c4f62eae6bdcb3e7bfdfc52171a24f3689.tar.xz |
V4L/DVB: uvcvideo: Define control information bits using macros
Use the macros instead of hardcoding numerical constants for the
controls information bitfield.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/video.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/usb/video.h b/include/linux/usb/video.h index be436d9..2d5b7fc 100644 --- a/include/linux/usb/video.h +++ b/include/linux/usb/video.h @@ -160,5 +160,12 @@ #define UVC_STATUS_TYPE_CONTROL 1 #define UVC_STATUS_TYPE_STREAMING 2 +/* 4.1.2. Control Capabilities */ +#define UVC_CONTROL_CAP_GET (1 << 0) +#define UVC_CONTROL_CAP_SET (1 << 1) +#define UVC_CONTROL_CAP_DISABLED (1 << 2) +#define UVC_CONTROL_CAP_AUTOUPDATE (1 << 3) +#define UVC_CONTROL_CAP_ASYNCHRONOUS (1 << 4) + #endif /* __LINUX_USB_VIDEO_H */ |