diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2011-05-27 07:53:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:53:17 -0400 |
commit | 78866efe8ae2862fef7ff37af36c6972651c2d0b (patch) | |
tree | 20d910428ab1cd697a5bc87532a6374bd2352def /Documentation/video4linux | |
parent | ddac5c107942d9584a9f55701aad405b57618726 (diff) |
[media] v4l2-controls.txt: update to latest v4l2-ctrl.c changes
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/video4linux')
-rw-r--r-- | Documentation/video4linux/v4l2-controls.txt | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Documentation/video4linux/v4l2-controls.txt b/Documentation/video4linux/v4l2-controls.txt index 881e7f44491b..95a381309d08 100644 --- a/Documentation/video4linux/v4l2-controls.txt +++ b/Documentation/video4linux/v4l2-controls.txt | |||
@@ -277,16 +277,13 @@ implement g_volatile_ctrl like this: | |||
277 | { | 277 | { |
278 | switch (ctrl->id) { | 278 | switch (ctrl->id) { |
279 | case V4L2_CID_BRIGHTNESS: | 279 | case V4L2_CID_BRIGHTNESS: |
280 | ctrl->cur.val = read_reg(0x123); | 280 | ctrl->val = read_reg(0x123); |
281 | break; | 281 | break; |
282 | } | 282 | } |
283 | } | 283 | } |
284 | 284 | ||
285 | The 'new value' union is not used in g_volatile_ctrl. In general controls | 285 | Note that you use the 'new value' union as well in g_volatile_ctrl. In general |
286 | that need to implement g_volatile_ctrl are read-only controls. | 286 | controls that need to implement g_volatile_ctrl are read-only controls. |
287 | |||
288 | Note that if one or more controls in a control cluster are marked as volatile, | ||
289 | then all the controls in the cluster are seen as volatile. | ||
290 | 287 | ||
291 | To mark a control as volatile you have to set the is_volatile flag: | 288 | To mark a control as volatile you have to set the is_volatile flag: |
292 | 289 | ||
@@ -636,9 +633,7 @@ button controls are write-only controls. | |||
636 | -EINVAL as the spec says. | 633 | -EINVAL as the spec says. |
637 | 634 | ||
638 | 5) The spec does not mention what should happen when you try to set/get a | 635 | 5) The spec does not mention what should happen when you try to set/get a |
639 | control class controls. ivtv currently returns -EINVAL (indicating that the | 636 | control class controls. The framework will return -EACCES. |
640 | control ID does not exist) while the framework will return -EACCES, which | ||
641 | makes more sense. | ||
642 | 637 | ||
643 | 638 | ||
644 | Proposals for Extensions | 639 | Proposals for Extensions |