amvecm: lc off not fit [1/1]

PD#SWPL-158582

Problem:
calling apis not fit for t3x.

Solution:
modify calling apis.

Verify:
t3x_revb

Change-Id: Ie900c4b0a1ae18163d6d31788c15d6e727353421
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
This commit is contained in:
qinghui.jiang
2024-04-02 09:37:48 +00:00
committed by gerrit autosubmit
parent ee9f3c1bb7
commit ccc0a60795
+20 -12
View File
@@ -11482,18 +11482,26 @@ void lc_load_curve(struct ve_lc_curve_parm_s *p)
lc_alg_parm.dbg_parm3 = p->param[lc_dbg_parm3];
lc_alg_parm.dbg_parm4 = p->param[lc_dbg_parm4];
/*load lc_saturation curve*/
lc_wr_reg(p->ve_lc_saturation, 0x1);
/*load lc_yminval_lmt*/
lc_wr_reg(p->ve_lc_yminval_lmt, 0x2);
/*load lc_ypkbv_ymaxval_lmt*/
lc_wr_reg(p->ve_lc_ypkbv_ymaxval_lmt, 0x4);
/*load lc_ypkbV_ratio*/
lc_wr_reg(p->ve_lc_ypkbv_ratio, 0x8);
/*load lc_ymaxval_ratio*/
lc_wr_reg(p->ve_lc_ymaxval_lmt, 0x10);
/*load lc_ypkbV_ratio*/
lc_wr_reg(p->ve_lc_ypkbv_lmt, 0x20);
if (chip_type_id != chip_t3x) {
/*load lc_saturation curve*/
lc_wr_reg(p->ve_lc_saturation, 0x1);
/*load lc_yminval_lmt*/
lc_wr_reg(p->ve_lc_yminval_lmt, 0x2);
/*load lc_ypkbv_ymaxval_lmt*/
lc_wr_reg(p->ve_lc_ypkbv_ymaxval_lmt, 0x4);
/*load lc_ypkbv_ratio*/
lc_wr_reg(p->ve_lc_ypkbv_ratio, 0x8);
/*load lc_ymaxval_ratio*/
lc_wr_reg(p->ve_lc_ymaxval_lmt, 0x10);
/*load lc_ypkbv_lmt*/
lc_wr_reg(p->ve_lc_ypkbv_lmt, 0x20);
} else {
ve_lc_sat_lut_set(p->ve_lc_saturation);
ve_lc_ymin_lmt_set(p->ve_lc_yminval_lmt);
ve_lc_ymax_lmt_set(p->ve_lc_ymaxval_lmt);
ve_lc_ypkbv_lmt_set(p->ve_lc_ypkbv_lmt);
ve_lc_ypkbv_rat_set(p->ve_lc_ypkbv_ratio);
}
}
static int lc_dbg_flag;