mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
CHROMIUM: videodev2.h: add config_store to v4l2_ext_controls
The ctrl_class is fairly pointless when used with drivers that use the control framework: you can just fill in 0 and it will just work fine. There are still some old unconverted drivers that do not support 0 and instead want the control class there. The idea being that all controls in the list all belong to that class. This was done to simplify drivers in the absence of the control framework. When using the control framework the framework itself is smart enough to allow controls of any class to be included in the control list. Since configuration store IDs are in the range 1..255 (or so, in any case a relatively small non-zero positive integer) it makes sense to effectively rename ctrl_class to config_store. Set it to 0 and you get the normal behavior (you change the current control value), set it to a configuration store ID and you get/set the control for that store. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> BUG=chrome-os-partner:33728 TEST=build Signed-off-by: Pawel Osciak <posciak@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/232582 Trybot-Ready: Tomasz Figa <tfiga@chromium.org> Tested-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Wu-cheng Li <wuchengli@chromium.org> Commit-Queue: Tomasz Figa <tfiga@chromium.org> Conflicts: include/uapi/linux/videodev2.h Change-Id: I862bb5796e27bcbbd055e22202ac9a1ed0cc6f7d Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Signed-off-by: Yakir Yang <ykk@rock-chips.com>
This commit is contained in:
parent
fe1b05dabd
commit
932660ce7e
|
|
@ -1481,6 +1481,7 @@ struct v4l2_ext_controls {
|
|||
__u32 ctrl_class;
|
||||
#endif
|
||||
__u32 which;
|
||||
__u32 config_store;
|
||||
};
|
||||
__u32 count;
|
||||
__u32 error_idx;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user