Skip to content

Commit

Permalink
Disable autofocus callbacks for U81xx devices
Browse files Browse the repository at this point in the history
  • Loading branch information
joilaroi committed May 6, 2012
1 parent 2bf0421 commit 3d8f1f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/camera/libcameraservice/CameraService.cpp
Expand Up @@ -1147,6 +1147,9 @@ bool CameraService::Client::recordingEnabled() {
}

status_t CameraService::Client::autoFocus() {
// disable auto focus for u81xx devices
notifyCallback(CAMERA_MSG_FOCUS, 1, 0, 0);
return NO_ERROR;
LOG1("autoFocus (pid %d)", getCallingPid());

Mutex::Autolock lock(mLock);
Expand All @@ -1157,6 +1160,8 @@ status_t CameraService::Client::autoFocus() {
}

status_t CameraService::Client::cancelAutoFocus() {
// disable auto focus for u81xx devices
return NO_ERROR;
LOG1("cancelAutoFocus (pid %d)", getCallingPid());

Mutex::Autolock lock(mLock);
Expand Down Expand Up @@ -1931,3 +1936,4 @@ extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo)
}
#endif
}; // namespace android

0 comments on commit 3d8f1f8

Please sign in to comment.