summaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil2018-05-21 10:54:40 +0200
committerMauro Carvalho Chehab2018-08-31 17:12:01 +0200
commit6fa6f831f0950bf46934e6c3a9766b258a9ea85f (patch)
tree28bf442b0fbfccb3aea988c81cbe040a526c1644 /drivers/media/v4l2-core/v4l2-ioctl.c
parentmedia: v4l2-ctrls: use ref in helper instead of ctrl (diff)
downloadkernel-qcow2-linux-6fa6f831f0950bf46934e6c3a9766b258a9ea85f.tar.gz
kernel-qcow2-linux-6fa6f831f0950bf46934e6c3a9766b258a9ea85f.tar.xz
kernel-qcow2-linux-6fa6f831f0950bf46934e6c3a9766b258a9ea85f.zip
media: v4l2-ctrls: add core request support
Integrate the request support. This adds the v4l2_ctrl_request_complete and v4l2_ctrl_request_setup functions to complete a request and (as a helper function) to apply a request to the hardware. It takes care of queuing requests and correctly chaining control values in the request queue. Note that when a request is marked completed it will copy control values to the internal request state. This can be optimized in the future since this is sub-optimal when dealing with large compound and/or array controls. For the initial 'stateless codec' use-case the current implementation is sufficient. 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>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions