summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/qcom/venus/helpers.h
diff options
context:
space:
mode:
authorStanimir Varbanov <stanimir.varbanov@linaro.org>2020-03-31 17:47:38 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-05-05 13:04:59 +0200
commit0febf9236970b5282588147961b068b889a77563 (patch)
treeb51adb72568e02bc122978fc6041c45cfc82a972 /drivers/media/platform/qcom/venus/helpers.h
parent18cf8ba1d3e6faf8db8c6e49f4014b657ac96888 (diff)
downloadlinux-0febf9236970b5282588147961b068b889a77563.tar.bz2
media: venus: helpers: Done buffers per queue type
Currently calling venus_helper_buffers_done() will return buffers to user for both capture and output queues in the same call. This is wrong because both queues are really separate and calling stop_streaming on one queue shouldn't return buffers for the other. Solve this by add a new queue type argument and fix the clients of the helper function. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/platform/qcom/venus/helpers.h')
-rw-r--r--drivers/media/platform/qcom/venus/helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/helpers.h b/drivers/media/platform/qcom/venus/helpers.h
index b64875564064..8fbbda12a4fe 100644
--- a/drivers/media/platform/qcom/venus/helpers.h
+++ b/drivers/media/platform/qcom/venus/helpers.h
@@ -14,7 +14,7 @@ struct venus_core;
bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt);
struct vb2_v4l2_buffer *venus_helper_find_buf(struct venus_inst *inst,
unsigned int type, u32 idx);
-void venus_helper_buffers_done(struct venus_inst *inst,
+void venus_helper_buffers_done(struct venus_inst *inst, unsigned int type,
enum vb2_buffer_state state);
int venus_helper_vb2_buf_init(struct vb2_buffer *vb);
int venus_helper_vb2_buf_prepare(struct vb2_buffer *vb);