amvecm: fix screen flashing while applying gamma [1/1]

PD#TV-6785

Problem:
screen flash while applying gamma

Solution:
apply gamma directly without disable/enable

Verify:
TL1

Change-Id: Iedce17b97608542630dc21d603f3d9c813322375
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
This commit is contained in:
Xihai Zhu
2019-06-20 05:59:20 -04:00
committed by Tao Zeng
parent 6e55859a19
commit 90cd1714a2

View File

@@ -292,9 +292,6 @@ void vpp_set_lcd_gamma_table(u16 *data, u32 rgb_mask)
spin_lock_irqsave(&vpp_lcd_gamma_lock, flags);
WRITE_VPP_REG_BITS(L_GAMMA_CNTL_PORT,
0, GAMMA_EN, 1);
while (!(READ_VPP_REG(L_GAMMA_CNTL_PORT) & (0x1 << ADR_RDY))) {
udelay(10);
if (cnt++ > GAMMA_RETRY)
@@ -322,9 +319,6 @@ void vpp_set_lcd_gamma_table(u16 *data, u32 rgb_mask)
(0x1 << rgb_mask) |
(0x23 << HADR));
VSYNC_WR_MPEG_REG_BITS(L_GAMMA_CNTL_PORT,
gamma_en, GAMMA_EN, 1);
spin_unlock_irqrestore(&vpp_lcd_gamma_lock, flags);
}