Skip to content

Commit

Permalink
[media] v4l: Document EACCES in VIDIOC_[GS]_CTRL and VIDIOC_{G, S, TR…
Browse files Browse the repository at this point in the history
…Y}_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>
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 45f239a commit 82f7b59
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Documentation/DocBook/media/v4l/vidioc-g-ctrl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ because another applications took over control of the device function
this control belongs to.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorcode>EACCES</errorcode></term>
<listitem>
<para>Attempt to set a read-only control or to get a
write-only control.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
Expand Down
7 changes: 7 additions & 0 deletions Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,13 @@ The field <structfield>size</structfield> is set to a value that is enough
to store the payload and this error code is returned.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><errorcode>EACCES</errorcode></term>
<listitem>
<para>Attempt to try or set a read-only control or to get a
write-only control.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
Expand Down

0 comments on commit 82f7b59

Please sign in to comment.