tvin: vdin: fix vdin histgram error on tl1 [1/1]
authorXuhua Zhang <xuhua.zhang@amlogic.com>
Mon, 21 Jan 2019 08:59:10 +0000 (16:59 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 22 Jan 2019 01:46:00 +0000 (17:46 -0800)
PD#TV-2263

Problem:
vdin histgram error on tl1

Solution:
tl1 use TVIN_PORT_VIU1_WB0_VPP

Verify:
verify on tl1

Change-Id: I225a85a1debee0e8c42f60751524661fc5c986bd
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c

index dcab5d0..d6ef83e 100644 (file)
@@ -2486,7 +2486,10 @@ static long vdin_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                        return -EFAULT;
                }
                memset(&param, 0, sizeof(struct vdin_parm_s));
-               param.port = TVIN_PORT_VIU1;
+               if (is_meson_tl1_cpu())
+                       param.port = TVIN_PORT_VIU1_WB0_VPP;
+               else
+                       param.port = TVIN_PORT_VIU1;
                param.reserved |= PARAM_STATE_HISTGRAM;
                param.h_active = vdin_v4l2_param.width;
                param.v_active = vdin_v4l2_param.height;