diff options
author | Som Qin <som.qin@starfivetech.com> | 2023-01-12 09:16:41 +0800 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2024-02-19 09:14:03 +0900 |
commit | 8c491732029c20296567010ee28130d048e08ce2 (patch) | |
tree | 7673e93c803dd74e891019c42d1e73f3bfef4b07 | |
parent | e0e3ee9f568b648cb3f07c121676652798d32b1e (diff) | |
download | linux-starfive-8c491732029c20296567010ee28130d048e08ce2.tar.gz linux-starfive-8c491732029c20296567010ee28130d048e08ce2.tar.bz2 linux-starfive-8c491732029c20296567010ee28130d048e08ce2.zip |
Media:wave5: set default format for display_fmt
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
-rw-r--r-- | drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c index f722924413b5..bba48cbc8080 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c +++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c @@ -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; |