diff options
author | Stanimir Varbanov <stanimir.varbanov@linaro.org> | 2022-03-03 15:06:36 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-24 08:34:33 +0100 |
commit | ef15219c3e25e1c4427ffebd2de9ab5f73b29b45 (patch) | |
tree | ab5684b2c98640a3d55aaa074dcee8653b9371f4 /drivers/media/platform/qcom/venus/vdec.c | |
parent | cef92b14e6535d550d571b99e753b04e44423286 (diff) | |
download | linux-stable-ef15219c3e25e1c4427ffebd2de9ab5f73b29b45.tar.gz linux-stable-ef15219c3e25e1c4427ffebd2de9ab5f73b29b45.tar.bz2 linux-stable-ef15219c3e25e1c4427ffebd2de9ab5f73b29b45.zip |
media: venus: vdec: Use output resolution on reconfigure
When recalculate output buffer size we have to take into account
the output resolution from the firmware received during event change
notification.
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/qcom/venus/vdec.c')
-rw-r--r-- | drivers/media/platform/qcom/venus/vdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 2232969e709a..ac0bb45d07f4 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -701,8 +701,8 @@ static int vdec_output_conf(struct venus_inst *inst) struct venus_core *core = inst->core; struct hfi_enable en = { .enable = 1 }; struct hfi_buffer_requirements bufreq; - u32 width = inst->out_width; - u32 height = inst->out_height; + u32 width = inst->width; + u32 height = inst->height; u32 out_fmt, out2_fmt; bool ubwc = false; u32 ptype; |