mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
CHROMIUM: [media] v4l: Add private compound control type.
V4L2_CTRL_TYPE_PRIVATE is to be used for private driver compound controls that use the "ptr" member of struct v4l2_ext_control. BUG=chrome-os-partner:33728 TEST=build Signed-off-by: Pawel Osciak <posciak@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/228988 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> Change-Id: I44083b0216ef32629d12f0910e972a3e827a599a 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
a2e9b787cf
commit
62879f6787
|
|
@ -1435,6 +1435,10 @@ static int std_validate(const struct v4l2_ctrl *ctrl, u32 idx,
|
|||
return -ERANGE;
|
||||
return 0;
|
||||
|
||||
/* FIXME:just return 0 for now */
|
||||
case V4L2_CTRL_TYPE_PRIVATE:
|
||||
return 0;
|
||||
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1516,6 +1516,8 @@ enum v4l2_ctrl_type {
|
|||
V4L2_CTRL_TYPE_U8 = 0x0100,
|
||||
V4L2_CTRL_TYPE_U16 = 0x0101,
|
||||
V4L2_CTRL_TYPE_U32 = 0x0102,
|
||||
|
||||
V4L2_CTRL_TYPE_PRIVATE = 0xffff,
|
||||
};
|
||||
|
||||
/* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user