Docbook: media: new ioctl VIDIOC_G_DEF_EXT_CTRLS
Subsystems (2)
RFC v4 18/19 Docbook: media: new ioctl VIDIOC_G_DEF_EXT_CTRLS
Add documentation for new ioctl.
Signed-off-by Ricardo Ribalda Delgado <[email protected]>
---
v4:
-Add Author information
-Set kernel version to 4,3
Documentation/DocBook/media/v4l/v4l2.xml | 20 ++++++++++++++++++++ .../DocBook/media/v4l/vidioc-g-ext-ctrls.xml | 13 +++++++++---- Documentation/video4linux/v4l2-controls.txt | 3 ++- Documentation/video4linux/v4l2-framework.txt | 1 + Documentation/zh_CN/video4linux/v4l2-framework.txt | 1 + 5 files changed, 33 insertions(+), 5 deletions(-)
Documentation/DocBook/media/v4l/v4l2.xml +20 -0
@@ -117,6 +117,18 @@ Remote Controller chapter.</contrib> </address> </affiliation> </author> + + <author> + <firstname>Ricardo</firstname> + <surname>Ribalda Delgado</surname> + <contrib>Designed and documented the VIDIOC_G_DEF_EXT_CTRLS ioctl + </contrib> + <affiliation> + <address> + <email>[email protected]</email> + </address> + </affiliation> + </author> </authorgroup> <copyright>
@@ -153,6 +165,14 @@ structs, ioctls) must be noted in more detail in the history chapter applications. --> <revision> + <revnumber>4.3</revnumber> + <date>2015-06-12</date> + <authorinitials>rr</authorinitials> + <revremark>Extend &vidioc-g-ext-ctrls;. Add ioctl <constant>VIDIOC_G_DEF_EXT_CTRLS</constant> +to get the default value of multiple controls. + </revremark> + </revision> + <revision> <revnumber>3.21</revnumber> <date>2015-02-13</date> <authorinitials>mcc</authorinitials>
Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml +9 -4
@@ -1,12 +1,13 @@ <refentry id="vidioc-g-ext-ctrls"> <refmeta> <refentrytitle>ioctl VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS, -VIDIOC_TRY_EXT_CTRLS</refentrytitle> +VIDIOC_TRY_EXT_CTRLS, VIDIOC_G_DEF_EXT_CTRLS</refentrytitle> &manvol; </refmeta> <refnamediv> <refname>VIDIOC_G_EXT_CTRLS</refname> + <refname>VIDIOC_G_DEF_EXT_CTRLS</refname> <refname>VIDIOC_S_EXT_CTRLS</refname> <refname>VIDIOC_TRY_EXT_CTRLS</refname> <refpurpose>Get or set the value of several controls, try control
@@ -39,7 +40,7 @@ values</refpurpose> <term><parameter>request</parameter></term> <listitem> <para>VIDIOC_G_EXT_CTRLS, VIDIOC_S_EXT_CTRLS, -VIDIOC_TRY_EXT_CTRLS</para> +VIDIOC_TRY_EXT_CTRLS, VIDIOC_G_DEF_EXT_CTRLS</para> </listitem> </varlistentry> <varlistentry>
@@ -74,7 +75,10 @@ of each &v4l2-ext-control; and call the <constant>VIDIOC_G_EXT_CTRLS</constant> ioctl. String controls controls must also set the <structfield>string</structfield> field. Controls of compound types (<constant>V4L2_CTRL_FLAG_HAS_PAYLOAD</constant> is set) -must set the <structfield>ptr</structfield> field.</para> +must set the <structfield>ptr</structfield> field. To get the default value +instead of the current value, call the +<constant>VIDIOC_G_DEF_EXT_CTRLS</constant> ioctl with the same arguments. +</para> <para>If the <structfield>size</structfield> is too small to receive the control result (only relevant for pointer-type controls
@@ -141,7 +145,8 @@ application.</entry> <entry>The total size in bytes of the payload of this control. This is normally 0, but for pointer controls this should be set to the size of the memory containing the payload, or that will -receive the payload. If <constant>VIDIOC_G_EXT_CTRLS</constant> finds +receive the payload. If <constant>VIDIOC_G_EXT_CTRLS</constant> +or <constant>VIDIOC_G_DEF_EXT_CTRLS</constant> finds that this value is less than is required to store the payload result, then it is set to a value large enough to store the payload result and ENOSPC is returned. Note that for string controls
Documentation/video4linux/v4l2-controls.txt +2 -1
@@ -79,7 +79,8 @@ Basic usage for V4L2 and sub-device drivers Finally, remove all control functions from your v4l2_ioctl_ops (if any): vidioc_queryctrl, vidioc_query_ext_ctrl, vidioc_querymenu, vidioc_g_ctrl, - vidioc_s_ctrl, vidioc_g_ext_ctrls, vidioc_try_ext_ctrls and vidioc_s_ext_ctrls. + vidioc_s_ctrl, vidioc_g_ext_ctrls, vidioc_try_ext_ctrls, + vidioc_g_def_ext_ctrls, and vidioc_s_ext_ctrls. Those are now no longer needed. 1.3.2) For sub-device drivers do this:
Documentation/video4linux/v4l2-framework.txt +1 -0
@@ -462,6 +462,7 @@ VIDIOC_QUERYMENU VIDIOC_G_CTRL VIDIOC_S_CTRL VIDIOC_G_EXT_CTRLS +VIDIOC_G_DEF_EXT_CTRLS VIDIOC_S_EXT_CTRLS VIDIOC_TRY_EXT_CTRLS
Documentation/zh_CN/video4linux/v4l2-framework.txt +1 -0
@@ -401,6 +401,7 @@ VIDIOC_QUERYMENU VIDIOC_G_CTRL VIDIOC_S_CTRL VIDIOC_G_EXT_CTRLS +VIDIOC_G_DEF_EXT_CTRLS VIDIOC_S_EXT_CTRLS VIDIOC_TRY_EXT_CTRLS
Signature · 1 line
2.1.4