camerad: assert isp started successfully (#31385)

* isp assert

* disable this for testing

* Revert "disable this for testing"

This reverts commit e65cf6d4b4.

* move below
old-commit-hash: c9951e9d6c
chrysler-long2
Justin Newberry 1 year ago committed by GitHub
parent 83bfa0a50d
commit de4644aa73
  1. 1
      system/camerad/cameras/camera_qcom2.cc

@ -606,6 +606,7 @@ void CameraState::camera_open(MultiCameraState *multi_cam_state_, int camera_num
LOGD("start csiphy: %d", ret); LOGD("start csiphy: %d", ret);
ret = device_control(multi_cam_state->isp_fd, CAM_START_DEV, session_handle, isp_dev_handle); ret = device_control(multi_cam_state->isp_fd, CAM_START_DEV, session_handle, isp_dev_handle);
LOGD("start isp: %d", ret); LOGD("start isp: %d", ret);
assert(ret == 0);
// TODO: this is unneeded, should we be doing the start i2c in a different way? // TODO: this is unneeded, should we be doing the start i2c in a different way?
//ret = device_control(sensor_fd, CAM_START_DEV, session_handle, sensor_dev_handle); //ret = device_control(sensor_fd, CAM_START_DEV, session_handle, sensor_dev_handle);

Loading…
Cancel
Save