diff options
author | Sakari Ailus <sakari.ailus@maxwell.research.nokia.com> | 2011-05-15 11:33:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:52:19 -0400 |
commit | 82f7b59cb80679038e8e3a99738cce5e094f69b6 (patch) | |
tree | 7e70424805cfe23611aac4ff9eadb136b65f146f | |
parent | 45f239ab82b2a808103a0fae02594961b09c5c8b (diff) |
[media] v4l: Document EACCES in VIDIOC_[GS]_CTRL and VIDIOC_{G, S, TRY}_EXT_CTRLS
VIDIOC_S_CTRL and VIDIOC_S_EXT_CTRLS return EACCES when setting a read-only
control VIDIOC_TRY_EXT_CTRLS when trying a read-only control and
VIDIOC_G_CTRL and VIDIOC_G_EXT_CTRLS when getting a write-only control.
Document this.
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml | 7 | ||||
-rw-r--r-- | Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml b/Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml index 8b5e6ff7f3df..5146d00782e3 100644 --- a/Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml +++ b/Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml | |||
@@ -117,6 +117,13 @@ because another applications took over control of the device function | |||
117 | this control belongs to.</para> | 117 | this control belongs to.</para> |
118 | </listitem> | 118 | </listitem> |
119 | </varlistentry> | 119 | </varlistentry> |
120 | <varlistentry> | ||
121 | <term><errorcode>EACCES</errorcode></term> | ||
122 | <listitem> | ||
123 | <para>Attempt to set a read-only control or to get a | ||
124 | write-only control.</para> | ||
125 | </listitem> | ||
126 | </varlistentry> | ||
120 | </variablelist> | 127 | </variablelist> |
121 | </refsect1> | 128 | </refsect1> |
122 | </refentry> | 129 | </refentry> |
diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml index 3aa7f8f9ff0c..5e73517fa232 100644 --- a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml +++ b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | |||
@@ -294,6 +294,13 @@ The field <structfield>size</structfield> is set to a value that is enough | |||
294 | to store the payload and this error code is returned.</para> | 294 | to store the payload and this error code is returned.</para> |
295 | </listitem> | 295 | </listitem> |
296 | </varlistentry> | 296 | </varlistentry> |
297 | <varlistentry> | ||
298 | <term><errorcode>EACCES</errorcode></term> | ||
299 | <listitem> | ||
300 | <para>Attempt to try or set a read-only control or to get a | ||
301 | write-only control.</para> | ||
302 | </listitem> | ||
303 | </varlistentry> | ||
297 | </variablelist> | 304 | </variablelist> |
298 | </refsect1> | 305 | </refsect1> |
299 | </refentry> | 306 | </refentry> |