summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorngchuang <horngchuang@google.com>2020-08-25 11:05:09 +0800
committerhorngchuang <horngchuang@google.com>2020-08-25 11:05:09 +0800
commitb122fe6046966c53653e37e38cb296dd661f9d81 (patch)
tree7d44254041e76734d7cb24703e8f7cc311ddb3a2
parent4b51c72f2a9611bab9651a74f7870bc9feb927e7 (diff)
downloadcamera-kernel-b122fe6046966c53653e37e38cb296dd661f9d81.tar.gz
techpack: camera: Correct Gyro calibration check rule
Follow HW request to correct Gyro calibration check rule Bug: 165872052 Test: build pass, local verified Signed-off-by: horngchuang <horngchuang@google.com> Change-Id: I8792c003b4b23e76ae137b614988ee0d92a279d3
-rw-r--r--drivers/cam_sensor_module/cam_fw_update/fw_update.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cam_sensor_module/cam_fw_update/fw_update.c b/drivers/cam_sensor_module/cam_fw_update/fw_update.c
index f68bbc7..7697a8a 100644
--- a/drivers/cam_sensor_module/cam_fw_update/fw_update.c
+++ b/drivers/cam_sensor_module/cam_fw_update/fw_update.c
@@ -306,9 +306,7 @@ int GyroReCalibrate(struct camera_io_master *io_master_info,
cal_result->SsDiffY, cal_result->SsDiffY);
if (abs(cal_result->SsRecalOffX) >= 0x600 ||
- abs(cal_result->SsRecalOffY) >= 0x600 ||
- abs(cal_result->SsDiffX) >= 0x1000 ||
- abs(cal_result->SsDiffY) >= 0x1000) {
+ abs(cal_result->SsRecalOffY) >= 0x600) {
CAM_ERR(CAM_SENSOR,
"[OISCali] Check failed.");
return -EINVAL;