media: venus: vdec: Sanitize vdec_set_work_route() per-VPU-version
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Tue, 30 May 2023 12:30:48 +0000 (14:30 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:35 +0000 (07:58 +0200)
Replace the general IS_V6 checks with more specific VPU version checks.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/qcom/venus/vdec.c

index f5676440dd36cf9d6357956ba7b6f6e83b305338..085f6967e7ab843808feda5344c211adc761c5e0 100644 (file)
@@ -727,7 +727,7 @@ static int vdec_set_work_route(struct venus_inst *inst)
        u32 ptype = HFI_PROPERTY_PARAM_WORK_ROUTE;
        struct hfi_video_work_route wr;
 
-       if (!IS_V6(inst->core))
+       if (!(IS_IRIS2(inst->core) || IS_IRIS2_1(inst->core)))
                return 0;
 
        wr.video_work_route = inst->core->res->num_vpp_pipes;