mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 19:31:53 +00:00
media: venus: hfi: add type argument to hfi flush function
Make hfi_flush function to receive an argument for the type of flush. Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
1e485ee5a7
commit
05dea7980d
@ -375,14 +375,14 @@ int hfi_session_unload_res(struct venus_inst *inst)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int hfi_session_flush(struct venus_inst *inst)
|
||||
int hfi_session_flush(struct venus_inst *inst, u32 type)
|
||||
{
|
||||
const struct hfi_ops *ops = inst->core->ops;
|
||||
int ret;
|
||||
|
||||
reinit_completion(&inst->done);
|
||||
|
||||
ret = ops->session_flush(inst, HFI_FLUSH_ALL);
|
||||
ret = ops->session_flush(inst, type);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@ -161,7 +161,7 @@ int hfi_session_continue(struct venus_inst *inst);
|
||||
int hfi_session_abort(struct venus_inst *inst);
|
||||
int hfi_session_load_res(struct venus_inst *inst);
|
||||
int hfi_session_unload_res(struct venus_inst *inst);
|
||||
int hfi_session_flush(struct venus_inst *inst);
|
||||
int hfi_session_flush(struct venus_inst *inst, u32 type);
|
||||
int hfi_session_set_buffers(struct venus_inst *inst,
|
||||
struct hfi_buffer_desc *bd);
|
||||
int hfi_session_unset_buffers(struct venus_inst *inst,
|
||||
|
Loading…
Reference in New Issue
Block a user