Media:wave5: set default format for display_fmt 94/299594/2
authorSom Qin <som.qin@starfivetech.com>
Thu, 12 Jan 2023 01:16:41 +0000 (09:16 +0800)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 5 Oct 2023 09:24:47 +0000 (18:24 +0900)
Signed-off-by: Som Qin <som.qin@starfivetech.com>
[sw0312.kim: cherry-pick the commit 6d80c00e9258 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic0f74bf12580e72ba3209c766e8d167c204702c5

drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c

index f722924..bba48cb 100644 (file)
@@ -1403,6 +1403,7 @@ static int wave5_vpu_open_dec(struct file *filp)
        v4l2_ctrl_handler_setup(&inst->v4l2_ctrl_hdl);
 
        wave5_set_default_format(&inst->src_fmt, &inst->dst_fmt);
+       memcpy((void *)&inst->display_fmt, (void *)&inst->dst_fmt, sizeof(struct v4l2_pix_format_mplane));
        inst->colorspace = V4L2_COLORSPACE_REC709;
        inst->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
        inst->hsv_enc = 0;