diff options
| author | Chen-Yu Tsai <wenst@chromium.org> | 2022-03-31 12:16:28 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 10:52:26 +0300 |
| commit | daf3999c12dcef14151710052fca9adfbc3967bc (patch) | |
| tree | 47d6d79dc7916550e6b0720a988e8993ce4b05c4 /scripts | |
| parent | acd134bca2ac4390eb4920d54bdfeecc7fe47bcb (diff) | |
| download | linux-daf3999c12dcef14151710052fca9adfbc3967bc.tar.xz | |
media: hantro: Implement support for encoder commands
The V4L2 stateful encoder uAPI specification requires that drivers
support the ENCODER_CMD ioctl to allow draining of buffers. This
however was not implemented, and causes issues for some userspace
applications.
Implement support for the ENCODER_CMD ioctl using v4l2-mem2mem helpers.
This is entirely based on existing code found in the vicodec test
driver.
Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
