summaryrefslogtreecommitdiff
path: root/include/uapi/linux/uvcvideo.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <guennadi.liakhovetski@intel.com>2018-07-26 11:17:53 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-27 13:39:57 +0300
commite5225c820c057537dc780244760e2e24c7d27366 (patch)
treebf5329cd8cd42d4bf51573a94331c6b12c8887fb /include/uapi/linux/uvcvideo.h
parent8e7a1dbc7b0ae048bf3f4b9707fe1a845e69aab7 (diff)
downloadlinux-e5225c820c057537dc780244760e2e24c7d27366.tar.xz
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.h2
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 | \