vdin: fix vdin1 dest_cfmt for tl1 afbc preview support [1/1]
authorEvoke Zhang <evoke.zhang@amlogic.com>
Mon, 25 Mar 2019 11:49:03 +0000 (19:49 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 27 Mar 2019 13:56:57 +0000 (06:56 -0700)
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>
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c

index 1043305..25a4efc 100644 (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);