media: v4l2-ctrls: support g/s_ext_ctrls for requests
The v4l2_g/s_ext_ctrls functions now support control handlers that represent requests. The v4l2_ctrls_find_req_obj() function is responsible for finding the request from the fd. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
6fa6f831f0
commit
c41e9cff70
@@ -1179,11 +1179,12 @@ int v4l2_s_ctrl(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
|
||||
* :ref:`VIDIOC_G_EXT_CTRLS <vidioc_g_ext_ctrls>` ioctl
|
||||
*
|
||||
* @hdl: pointer to &struct v4l2_ctrl_handler
|
||||
* @mdev: pointer to &struct media_device
|
||||
* @c: pointer to &struct v4l2_ext_controls
|
||||
*
|
||||
* If hdl == NULL then they will all return -EINVAL.
|
||||
*/
|
||||
int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl, struct media_device *mdev,
|
||||
struct v4l2_ext_controls *c);
|
||||
|
||||
/**
|
||||
@@ -1191,11 +1192,13 @@ int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
* :ref:`VIDIOC_TRY_EXT_CTRLS <vidioc_g_ext_ctrls>` ioctl
|
||||
*
|
||||
* @hdl: pointer to &struct v4l2_ctrl_handler
|
||||
* @mdev: pointer to &struct media_device
|
||||
* @c: pointer to &struct v4l2_ext_controls
|
||||
*
|
||||
* If hdl == NULL then they will all return -EINVAL.
|
||||
*/
|
||||
int v4l2_try_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
struct media_device *mdev,
|
||||
struct v4l2_ext_controls *c);
|
||||
|
||||
/**
|
||||
@@ -1204,11 +1207,13 @@ int v4l2_try_ext_ctrls(struct v4l2_ctrl_handler *hdl,
|
||||
*
|
||||
* @fh: pointer to &struct v4l2_fh
|
||||
* @hdl: pointer to &struct v4l2_ctrl_handler
|
||||
* @mdev: pointer to &struct media_device
|
||||
* @c: pointer to &struct v4l2_ext_controls
|
||||
*
|
||||
* If hdl == NULL then they will all return -EINVAL.
|
||||
*/
|
||||
int v4l2_s_ext_ctrls(struct v4l2_fh *fh, struct v4l2_ctrl_handler *hdl,
|
||||
struct media_device *mdev,
|
||||
struct v4l2_ext_controls *c);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user