camerad: log whether sync fails in IFE or BPS (#34854)

pull/34857/head
Adeeb Shihadeh 1 month ago committed by GitHub
parent 96641ac12c
commit 196eb50d23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      system/camerad/cameras/spectra.cc

@ -1406,7 +1406,9 @@ bool SpectraCamera::waitForFrameReady(uint64_t request_id) {
struct cam_sync_wait sync_wait = {}; struct cam_sync_wait sync_wait = {};
sync_wait.sync_obj = sync_obj; sync_wait.sync_obj = sync_obj;
sync_wait.timeout_ms = stress_test(sync_type) ? 1 : timeout_ms; sync_wait.timeout_ms = stress_test(sync_type) ? 1 : timeout_ms;
return do_sync_control(m->cam_sync_fd, CAM_SYNC_WAIT, &sync_wait, sizeof(sync_wait)) == 0; bool ret = do_sync_control(m->cam_sync_fd, CAM_SYNC_WAIT, &sync_wait, sizeof(sync_wait)) == 0;
if (!ret) LOGE("camera %d %s failed", cc.camera_num, sync_type);
return ret;
}; };
// wait for frame from IFE // wait for frame from IFE

Loading…
Cancel
Save