diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml
index 7e61643358de..42e626d6c936 100644
--- a/Documentation/DocBook/media/v4l/v4l2.xml
+++ b/Documentation/DocBook/media/v4l/v4l2.xml
@@ -151,6 +151,16 @@ Rubli, Andy Walls, Muralidharan Karicheri, Mauro Carvalho Chehab,
structs, ioctls) must be noted in more detail in the history chapter
(compat.xml), along with the possible impact on existing drivers and
applications. -->
+
+ 4.5
+ 2015-10-29
+ rr
+ Extend vidioc-g-ext-ctrls;. Replace ctrl_class with a new
+union with ctrl_class and which. Which is used to select the current value of
+the control or the default value.
+
+
+
4.4
2015-05-26
diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
index 47f9fee91442..eb82f7e7d06b 100644
--- a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
+++ b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml
@@ -223,7 +223,12 @@ Valid if V4L2_CTRL_FLAG_HAS_PAYLOAD is set for this control
&cs-str;
+
+ union
+ (anonymous)
+
+
__u32
ctrl_class
The control class to which all controls belong, see
@@ -233,6 +238,23 @@ belong to any control class. Whether drivers support this can be tested by setti
ctrl_class to 0 and calling VIDIOC_TRY_EXT_CTRLS
with a count of 0. If that succeeds, then the driver
supports this feature.
+
+
+
+ __u32
+ which
+ Which value of the control to get/set/try. V4L2_CTRL_WHICH_CUR_VAL
+will return the current value of the control and V4L2_CTRL_WHICH_DEF_VAL will
+return the default value of the control. Please note that you can only get the default value of the
+control, you cannot set or try it.
+For backwards compatibility you can also use a control class here (see
+). In that case all controls have to belong to that
+control class. This usage is deprecated, instead just use V4L2_CTRL_WHICH_CUR_VAL.
+There are some very old drivers that do not yet support V4L2_CTRL_WHICH_CUR_VAL
+and that require a control class here. You can test for such drivers by setting ctrl_class to
+V4L2_CTRL_WHICH_CUR_VAL and calling VIDIOC_TRY_EXT_CTRLS with a count of 0.
+If that fails, then the driver does not support V4L2_CTRL_WHICH_CUR_VAL.
+
__u32