mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
amvecm: fix local constrast open failed [1/1]
PD#TV-6846 Problem: local constrast open failed Solution: if the register in db is enbale,set lc_en to 1 Verify: TL1 Change-Id: Id0bde987d3a45056a86dfe2e758d82a509611b10 Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
This commit is contained in:
@@ -245,6 +245,13 @@ void am_set_regmap(struct am_regs_s *p)
|
||||
} else {
|
||||
if (p->am_reg[i].addr == 0x1d26)
|
||||
break;
|
||||
/*if the bit 4 of SRSHARP1_LC_TOP_CTRL is 1,
|
||||
*it means that lc is enable in db,
|
||||
*so need to change lc_en to 1;
|
||||
*else if the bit 4 of SRSHARP1_LC_TOP_CTRL is 0,
|
||||
*it means that lc is disable in db,
|
||||
*so need to change lc_en to 0
|
||||
*/
|
||||
if (p->am_reg[i].addr == SRSHARP1_LC_TOP_CTRL) {
|
||||
temp =
|
||||
(p->am_reg[i].val & p->am_reg[i].mask)
|
||||
@@ -252,6 +259,8 @@ void am_set_regmap(struct am_regs_s *p)
|
||||
temp &= 0x1;
|
||||
if (!temp && lc_en)
|
||||
lc_en = 0;
|
||||
else if (!lc_en && temp)
|
||||
lc_en = 1;
|
||||
}
|
||||
if (pq_reg_wr_rdma)
|
||||
VSYNC_WR_MPEG_REG(p->am_reg[i].addr,
|
||||
|
||||
Reference in New Issue
Block a user