media: hantro: sunxi: Fix VP9 steps
authorJernej Skrabec <jernej.skrabec@gmail.com>
Tue, 22 Feb 2022 18:03:28 +0000 (19:03 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 23 Feb 2022 07:53:08 +0000 (08:53 +0100)
It turns out that postproc on Allwinner H6 needs width and height to be
multiple of 32.

Fixes: 86790a4fdf4b ("media: hantro: Add support for Allwinner H6")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/hantro/sunxi_vpu_hw.c

index 9063340..c0edd58 100644 (file)
@@ -29,10 +29,10 @@ static const struct hantro_fmt sunxi_vpu_dec_fmts[] = {
                .frmsize = {
                        .min_width = 48,
                        .max_width = 3840,
-                       .step_width = MB_DIM,
+                       .step_width = 32,
                        .min_height = 48,
                        .max_height = 2160,
-                       .step_height = MB_DIM,
+                       .step_height = 32,
                },
        },
 };