media: docs: Document the behaviour of uvcvideo driver
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 18 Jun 2021 12:29:18 +0000 (14:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:48 +0000 (10:07 +0200)
The uvc driver relies on the camera firmware to keep the control states
and therefore is not capable of changing an inactive control.

Allow returning -EACCES in those cases.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/userspace-api/media/v4l/vidioc-g-ctrl.rst
Documentation/userspace-api/media/v4l/vidioc-g-ext-ctrls.rst

index 80e8c63d530f879ad9ad8e9830bd315fb87467dc..fd09677f64f8d711e3fbe59bef5d0b7c5ba23a3e 100644 (file)
@@ -95,3 +95,6 @@ EBUSY
 
 EACCES
     Attempt to set a read-only control or to get a write-only control.
+
+    Or if there is an attempt to set an inactive control and the driver is
+    not capable of caching the new value until the control is active again.
index 2d6bc8d943806f8e50fe7d9e95527526bcd855a6..fdde0ae6d5214f4d129466801688b85ec715041a 100644 (file)
@@ -470,3 +470,6 @@ EACCES
 
     Or the ``which`` field was set to ``V4L2_CTRL_WHICH_REQUEST_VAL`` but the
     device does not support requests.
+
+    Or if there is an attempt to set an inactive control and the driver is
+    not capable of caching the new value until the control is active again.