mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user