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 <evoke.zhang@amlogic.com>
This commit is contained in:
Evoke Zhang
2019-03-25 19:49:03 +08:00
committed by Jianxin Pan
parent b15da7ef6a
commit bfc5e18188

View File

@@ -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);