media: venus: vdec: Use output resolution on reconfigure
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Thu, 3 Mar 2022 15:06:36 +0000 (15:06 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:34:33 +0000 (08:34 +0100)
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>
drivers/media/platform/qcom/venus/vdec.c

index 2232969e709aa38e8dd15824a10d4b770852f4e3..ac0bb45d07f4bb14208d53112a583fc7955aa747 100644 (file)
@@ -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;