Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d869cbe authored by junwen.ye's avatar junwen.ye Committed by android-t1
Browse files

[ALM:11087279] [FP4]:ois gain offset

&&&%%%comment:[FP4]:ois gain offset
&&&%%%bug number:10872982
&&&%%%jira id:FP4-1868
&&&%%%product name:sm7225_r_fp4
&&&%%%root cause:coding
&&&%%%Bug category:T2M
&&&%%%Module_Impact:chi-cdk
&&&%%%Test_Suggestion:NA
&&&%%%Solution:NA
&&&%%%Test_Report:ok in native
&&&%%%VAL Can Test:NA
parent bed79efc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -320,6 +320,7 @@ static int cam_ois_gyro_calibration(struct cam_ois_ctrl_t *o_ctrl)
  	uint32_t                           fw_size;
	uint32_t cmd_adress=0,cmd_data=0;
	uint32_t c=0;
	float gain = 0.0;
	
	const REGSETTING cml_ois_gyro_calibration[]= {
		//gyro cali mode
@@ -389,8 +390,8 @@ static int cam_ois_gyro_calibration(struct cam_ois_ctrl_t *o_ctrl)
	CAM_ERR(CAM_OIS, "write 0x0024 -> 0x0001");

	mdelay(50);
	gyro_gain_X = gyro_gain_X -0.075;
	c = (int) (gyro_gain_X*8192);
	gain = gyro_gain_X -0.075;
	c = (int) (gain*8192);
	if (c > 0)
	{
		i2c_reg_setting.reg_setting[0].reg_addr = cml_ois_gyro_calibration[16].reg;