linux/drivers/media/platform/qcom/venus
Stanimir Varbanov e69b987a97 media: venus: reimplement decoder stop command
This addresses the wrong behavior of decoder stop command by
rewriting it. These new implementation enqueue an empty buffer
on the decoder input buffer queue to signal end-of-stream. The
client should stop queuing buffers on the V4L2 Output queue
and continue queuing/dequeuing buffers on Capture queue. This
process will continue until the client receives a buffer with
V4L2_BUF_FLAG_LAST flag raised, which means that this is last
decoded buffer with data.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Tested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org>      # for v4.13 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2017-10-27 14:01:09 +02:00
..
core.c media: venus: don't abuse dma_alloc for non-DMA allocations 2017-07-20 15:55:14 -04:00
core.h media: venus: reimplement decoder stop command 2017-10-27 14:01:09 +02:00
firmware.c media: venus: don't abuse dma_alloc for non-DMA allocations 2017-07-20 15:55:14 -04:00
firmware.h media: venus: don't abuse dma_alloc for non-DMA allocations 2017-07-20 15:55:14 -04:00
helpers.c media: venus: reimplement decoder stop command 2017-10-27 14:01:09 +02:00
helpers.h media: venus: add helper to check supported codecs 2017-08-26 08:45:03 -04:00
hfi_cmds.c [media] media: venus: hfi_cmds: fix variable dereferenced before check 2017-06-20 08:53:40 -03:00
hfi_cmds.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
hfi_helper.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
hfi_msgs.c media: venus: hfi: fix error handling in hfi_sys_init_done() 2017-07-20 15:53:50 -04:00
hfi_msgs.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
hfi_venus_io.h [media] media: venus: hfi: add Venus HFI files 2017-06-20 08:53:40 -03:00
hfi_venus.c media: venus: fix wrong size on dma_free 2017-10-24 17:17:18 +02:00
hfi_venus.h [media] media: venus: hfi: add Venus HFI files 2017-06-20 08:53:40 -03:00
hfi.c media: venus: reimplement decoder stop command 2017-10-27 14:01:09 +02:00
hfi.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
Makefile [media] media: venus: enable building of Venus video driver 2017-06-20 08:53:40 -03:00
vdec_ctrls.c [media] media: venus: vdec: add support for min buffers for capture 2017-06-20 08:53:41 -03:00
vdec.c media: venus: reimplement decoder stop command 2017-10-27 14:01:09 +02:00
vdec.h
venc_ctrls.c [media] media: venus: venc: add video encoder files 2017-06-20 08:53:39 -03:00
venc.c media: venus: venc: fix bytesused v4l2_plane field 2017-10-27 13:59:25 +02:00
venc.h [media] media: venus: venc: add video encoder files 2017-06-20 08:53:39 -03:00