提交 bc8c479a 编写于 作者: S Stanimir Varbanov 提交者: Mauro Carvalho Chehab

media: venus: helpers: fix dynamic buffer mode for v4

Venus v4 doesn't send ALLOC_MODE property and thus parser doesn't
recognize it as dynamic buffer (for OUTPUT/OUTPUT2 type of buffers)
make it obvious in the helper function.
Signed-off-by: NStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 3d7f0d71
...@@ -467,6 +467,13 @@ static bool is_dynamic_bufmode(struct venus_inst *inst) ...@@ -467,6 +467,13 @@ static bool is_dynamic_bufmode(struct venus_inst *inst)
struct venus_core *core = inst->core; struct venus_core *core = inst->core;
struct venus_caps *caps; struct venus_caps *caps;
/*
* v4 doesn't send BUFFER_ALLOC_MODE_SUPPORTED property and supports
* dynamic buffer mode by default for HFI_BUFFER_OUTPUT/OUTPUT2.
*/
if (IS_V4(core))
return true;
caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type);
if (!caps) if (!caps)
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册