summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2022-03-31 12:16:28 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-04-24 10:52:26 +0300
commitdaf3999c12dcef14151710052fca9adfbc3967bc (patch)
tree47d6d79dc7916550e6b0720a988e8993ce4b05c4 /scripts
parentacd134bca2ac4390eb4920d54bdfeecc7fe47bcb (diff)
downloadlinux-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