diff options
author | Guennadi Liakhovetski | 2018-07-26 04:17:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-07-27 06:39:57 -0400 |
commit | e5225c820c057537dc780244760e2e24c7d27366 (patch) | |
tree | bf5329cd8cd42d4bf51573a94331c6b12c8887fb /include/uapi/linux/uvcvideo.h | |
parent | 8e7a1dbc7b0ae048bf3f4b9707fe1a845e69aab7 (diff) |
media: uvcvideo: Send a control event when a Control Change interrupt arrives
UVC defines a method of handling asynchronous controls, which sends a
USB packet over the interrupt pipe. This patch implements support for
such packets by sending a control event to the user. Since this can
involve USB traffic and, therefore, scheduling, this has to be done
in a work queue.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/uapi/linux/uvcvideo.h')
-rw-r--r-- | include/uapi/linux/uvcvideo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/uvcvideo.h b/include/uapi/linux/uvcvideo.h index 020714d2c5bd..f80f05b3c423 100644 --- a/include/uapi/linux/uvcvideo.h +++ b/include/uapi/linux/uvcvideo.h @@ -28,6 +28,8 @@ #define UVC_CTRL_FLAG_RESTORE (1 << 6) /* Control can be updated by the camera. */ #define UVC_CTRL_FLAG_AUTO_UPDATE (1 << 7) +/* Control supports asynchronous reporting */ +#define UVC_CTRL_FLAG_ASYNCHRONOUS (1 << 8) #define UVC_CTRL_FLAG_GET_RANGE \ (UVC_CTRL_FLAG_GET_CUR | UVC_CTRL_FLAG_GET_MIN | \ |