linux/drivers/media/platform/s5p-mfc
Pawel Osciak 38beac65a2 [media] s5p-mfc: Fixes for decode REQBUFS
- Honor return values from vb2_reqbufs on REQBUFS(0).

- Do not set the number of allocated buffers to 0 if userspace tries
  to request buffers again without freeing them.

- There is no need to verify correct instance state on reqbufs, as we will
  verify this in queue_setup().

- There is also no need to verify that vb2_reqbufs() was able to allocate enough
  buffers (pb_count) and call buf_init on that many buffers (i.e. dst_buf_count
  is at least pb_count), because this will be verified by second queue_setup()
  call as well and vb2_reqbufs() will fail otherwise.

- Only verify state is MFCINST_INIT when allocating, not when freeing.

- Refactor and simplify code.

Signed-off-by: Pawel Osciak <posciak@chromium.org>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-05-23 14:59:28 -03:00
..
Makefile [media] s5p makefiles: don't override other selections on obj-[ym] 2013-06-20 05:46:00 -03:00
regs-mfc-v6.h [media] s5p-mfc: Add Horizontal and Vertical MV Search Range 2014-02-28 15:18:00 -03:00
regs-mfc-v7.h [media] s5p-mfc: Update driver for v7 firmware 2013-08-18 07:12:31 -03:00
regs-mfc.h [media] media_tree: Fix spelling errors 2013-11-29 14:43:50 -02:00
s5p_mfc.c [media] s5p-mfc: Copy timestamps only when a frame is produced 2014-05-23 14:58:40 -03:00
s5p_mfc_cmd.c [media] s5p-mfc: Rename IS_MFCV6 macro 2013-08-18 07:08:34 -03:00
s5p_mfc_cmd.h [media] s5p-mfc: Update MFCv5 driver for callback based architecture 2012-10-05 22:53:37 -03:00
s5p_mfc_cmd_v5.c [media] media: Remove unnecessary semicolons 2013-10-17 05:51:57 -03:00
s5p_mfc_cmd_v5.h [media] s5p-mfc: Update MFCv5 driver for callback based architecture 2012-10-05 22:53:37 -03:00
s5p_mfc_cmd_v6.c [media] media: Remove unnecessary semicolons 2013-10-17 05:51:57 -03:00
s5p_mfc_cmd_v6.h [media] s5p-mfc: Update MFC v4l2 driver to support MFC6.x 2012-10-05 23:08:31 -03:00
s5p_mfc_common.h [media] s5p-mfc: Add Horizontal and Vertical MV Search Range 2014-02-28 15:18:00 -03:00
s5p_mfc_ctrl.c [media] s5p-mfc: remove meaningless memory bank assignment 2014-03-11 10:29:09 -03:00
s5p_mfc_ctrl.h [media] s5p-mfc: Move firmware allocation point to avoid allocation problems 2013-01-06 09:57:57 -02:00
s5p_mfc_debug.h [media] s5p-mfc: added missing end-of-lines in debug messages 2013-06-03 15:56:54 -03:00
s5p_mfc_dec.c [media] s5p-mfc: Fixes for decode REQBUFS 2014-05-23 14:59:28 -03:00
s5p_mfc_dec.h [media] s5p-mfc: Update MFCv5 driver for callback based architecture 2012-10-05 22:53:37 -03:00
s5p_mfc_enc.c [media] s5p-mfc: fix encoder crash after VIDIOC_STREAMOFF 2014-05-23 14:56:34 -03:00
s5p_mfc_enc.h [media] s5p-mfc: Update MFCv5 driver for callback based architecture 2012-10-05 22:53:37 -03:00
s5p_mfc_intr.c [media] s5p-mfc: Update MFCv5 driver for callback based architecture 2012-10-05 22:53:37 -03:00
s5p_mfc_intr.h
s5p_mfc_opr.c [media] s5p-mfc: Rename IS_MFCV6 macro 2013-08-18 07:08:34 -03:00
s5p_mfc_opr.h [media] s5p-mfc: Change internal buffer allocation from vb2 ops to dma_alloc_coherent 2013-01-06 09:59:02 -02:00
s5p_mfc_opr_v5.c [media] media: Remove unnecessary semicolons 2013-10-17 05:51:57 -03:00
s5p_mfc_opr_v5.h [media] s5p-mfc: Update MFCv5 driver for callback based architecture 2012-10-05 22:53:37 -03:00
s5p_mfc_opr_v6.c [media] s5p-mfc: Add Horizontal and Vertical MV Search Range 2014-02-28 15:18:00 -03:00
s5p_mfc_opr_v6.h [media] s5p-mfc: Update MFC v4l2 driver to support MFC6.x 2012-10-05 23:08:31 -03:00
s5p_mfc_pm.c [media] s5p-mfc: added missing end-of-lines in debug messages 2013-06-03 15:56:54 -03:00
s5p_mfc_pm.h