From bfc5e181884bd71df5bbbd8c88cdd5925917bb24 Mon Sep 17 00:00:00 2001 From: Evoke Zhang Date: Mon, 25 Mar 2019 19:49:03 +0800 Subject: [PATCH] vdin: fix vdin1 dest_cfmt for tl1 afbc preview support [1/1] PD#SWPL-5971 Problem: preview window color is green with 1080p & 4k hdmirx Solution: vdin1 dest_cfmt follow vdin0 for the software double write for preview Verify: x301 Change-Id: I2e45b5f838cddcac1ca1c4e6710a7cc1f45ae9b5 Signed-off-by: Evoke Zhang --- drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c b/drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c index 1043305067aa..25a4efc5571a 100644 --- a/drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c +++ b/drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c @@ -2423,7 +2423,8 @@ static long vdin_ioctl(struct file *file, unsigned int cmd, unsigned long arg) devp_vdin1->debug.scaler4w = 1280; devp_vdin1->debug.scaler4h = 720; - devp_vdin1->debug.dest_cfmt = TVIN_YUV422; + /* vdin1 follow vdin0 afbc dest_cfmt */ + devp_vdin1->debug.dest_cfmt = devp->prop.dest_cfmt; devp_vdin1->flags |= VDIN_FLAG_MANUAL_CONVERSION; vdin_start_dec(devp_vdin1);