PD#TV-4358
Problem:
lc enable/disable not follow pq.db
Solution:
check the db reg vlaue,then adjust lc_en
Verify:
TL1
Change-Id: I0bf652eff96d75355c8fb1329291d1611e226b96
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
#include "amcm_regmap.h"
#include <linux/amlogic/media/amdolbyvision/dolby_vision.h>
#include "amcsc.h"
+#include "local_contrast.h"
#define pr_amcm_dbg(fmt, args...)\
do {\
} else {
if (p->am_reg[i].addr == 0x1d26)
break;
+ if (p->am_reg[i].addr == SRSHARP1_LC_TOP_CTRL) {
+ temp =
+ (p->am_reg[i].val & p->am_reg[i].mask)
+ >> 4;
+ temp &= 0x1;
+ if (!temp && lc_en)
+ lc_en = 0;
+ }
if (pq_reg_wr_rdma)
VSYNC_WR_MPEG_REG(p->am_reg[i].addr,
(aml_read_vcbus(p->am_reg[i].addr) &