mirror of https://gitee.com/openkylin/linux.git
38beac65a2
- 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> |
||
---|---|---|
.. | ||
Makefile | ||
regs-mfc-v6.h | ||
regs-mfc-v7.h | ||
regs-mfc.h | ||
s5p_mfc.c | ||
s5p_mfc_cmd.c | ||
s5p_mfc_cmd.h | ||
s5p_mfc_cmd_v5.c | ||
s5p_mfc_cmd_v5.h | ||
s5p_mfc_cmd_v6.c | ||
s5p_mfc_cmd_v6.h | ||
s5p_mfc_common.h | ||
s5p_mfc_ctrl.c | ||
s5p_mfc_ctrl.h | ||
s5p_mfc_debug.h | ||
s5p_mfc_dec.c | ||
s5p_mfc_dec.h | ||
s5p_mfc_enc.c | ||
s5p_mfc_enc.h | ||
s5p_mfc_intr.c | ||
s5p_mfc_intr.h | ||
s5p_mfc_opr.c | ||
s5p_mfc_opr.h | ||
s5p_mfc_opr_v5.c | ||
s5p_mfc_opr_v5.h | ||
s5p_mfc_opr_v6.c | ||
s5p_mfc_opr_v6.h | ||
s5p_mfc_pm.c | ||
s5p_mfc_pm.h |