Fix VP9 configuration in mtk-vcodec-mt8167
The minimum width/height should be multiples of the step size. Fix the
configuration following MT8173 implementation.
Bug: 164147474
Change-Id: Ibde617623e4c36990f4a7829e056644306081e22
diff --git a/drivers/media/platform/mtk-vcodec-mt8167/mtk_vcodec_dec.c b/drivers/media/platform/mtk-vcodec-mt8167/mtk_vcodec_dec.c
index 6c9fb84..72e1254f 100644
--- a/drivers/media/platform/mtk-vcodec-mt8167/mtk_vcodec_dec.c
+++ b/drivers/media/platform/mtk-vcodec-mt8167/mtk_vcodec_dec.c
@@ -73,7 +73,8 @@
},
{
.fourcc = V4L2_PIX_FMT_VP9,
- .stepwise = { 1, MTK_VDEC_MAX_W, 16, 1, MTK_VDEC_MAX_H, 16 },
+ .stepwise = { MTK_VDEC_MIN_W, MTK_VDEC_MAX_W, 16,
+ MTK_VDEC_MIN_H, MTK_VDEC_MAX_H, 16 },
},
};