From 360ff769a11277c5fc554bf8f052bbc88deb0f85 Mon Sep 17 00:00:00 2001 From: "tin_zhiyuan.liao_tmp" Date: Wed, 3 May 2023 18:55:05 +0800 Subject: [PATCH] bangkk: open Camera preview may be black sometimes details: Modyfy flash i2c function to fix cci timeout Change-Id: Idbdc2f3f0532c7449dacf1fe8d0fda3d74405a6a Reviewed-on: https://gerrit.mot.com/2594431 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Pengfei Qiao Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- drivers/cam_sensor_module/cam_flash/cam_flash_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cam_sensor_module/cam_flash/cam_flash_dev.c b/drivers/cam_sensor_module/cam_flash/cam_flash_dev.c index 6aae862ed4a5..db810e8f5484 100644 --- a/drivers/cam_sensor_module/cam_flash/cam_flash_dev.c +++ b/drivers/cam_sensor_module/cam_flash/cam_flash_dev.c @@ -176,10 +176,10 @@ static int32_t cam_flash_driver_cmd(struct cam_flash_ctrl *fctrl, CAM_ERR(CAM_FLASH, "Power Up Failed"); goto release_mutex; } - if (cam_flash_fill_i2c_default_setting(fctrl, flash_iic_supplier[0])){ + /*if (cam_flash_fill_i2c_default_setting(fctrl, flash_iic_supplier[0])){ CAM_ERR(CAM_FLASH, "Failed Flash Fill I2C Setting rc =%d",rc); goto release_mutex; - } + }*/ rc = camera_io_dev_read(&(fctrl->io_master_info), flash_iic_supplier[1],&flashid, CAMERA_SENSOR_I2C_TYPE_BYTE,