vdin: fix the green point problem.
authorxuhua zhang <xuhua.zhang@amlogic.com>
Tue, 5 Jun 2018 08:37:01 +0000 (16:37 +0800)
committerxuhua zhang <xuhua.zhang@amlogic.com>
Tue, 5 Jun 2018 08:37:01 +0000 (16:37 +0800)
PD#167113: vdin: fix the green point problem.

When the vdin probe function is open,
there will be a green point at coordinate(0,0).
We need close vdin probe function default.

Change-Id: I47d1c4787a6633d2b044df5c8c0690137acce4f7
Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c

index eaf278b..c0bc38d 100644 (file)
@@ -1496,6 +1496,8 @@ void vdin_set_matrix(struct vdin_dev_s *devp)
                        wr_bits(offset, VDIN_MATRIX_CTRL, 0,
                                VDIN_MATRIX_EN_BIT, VDIN_MATRIX_EN_WID);
 #endif
+               wr_bits(offset, VDIN_MATRIX_CTRL, 3,
+                       VDIN_PROBE_SEL_BIT, VDIN_PROBE_SEL_WID);
        } else {
                format_convert_matrix0 = vdin_get_format_convert_matrix0(devp);
                format_convert_matrix1 = vdin_get_format_convert_matrix1(devp);