diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-05-21 04:54:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-31 11:12:01 -0400 |
commit | 6fa6f831f0950bf46934e6c3a9766b258a9ea85f (patch) | |
tree | 28bf442b0fbfccb3aea988c81cbe040a526c1644 /drivers/media/v4l2-core/v4l2-subdev.c | |
parent | dcea5601dbdfb13be91526eb898c0f9122381032 (diff) | |
download | linux-6fa6f831f0950bf46934e6c3a9766b258a9ea85f.tar.gz linux-6fa6f831f0950bf46934e6c3a9766b258a9ea85f.tar.bz2 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-subdev.c')
0 files changed, 0 insertions, 0 deletions