MMCAM_CAMERA_AF_SCAN_RANGE, MM_CAMCORDER_AUTO_FOCUS_MACRO,
NULL);
break;
- case CAMERA_ATTR_AF_FULL:
+ default: /* CAMERA_ATTR_AF_FULL */
ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
MMCAM_CAMERA_AF_SCAN_RANGE, MM_CAMCORDER_AUTO_FOCUS_FULL,
NULL);
break;
- default:
- LOGE("invalid mode %d", mode);
- return CAMERA_ERROR_INVALID_PARAMETER;
}
return __convert_camera_error_code(__func__, ret);
int ret = MM_ERROR_NONE;
camera_s *handle = (camera_s *)camera;
- if (mode < CAMERA_ATTR_EXPOSURE_MODE_OFF || mode > CAMERA_ATTR_EXPOSURE_MODE_CUSTOM) {
- LOGE("INVALID_PARAMETER(0x%08x)", CAMERA_ERROR_INVALID_PARAMETER);
- return CAMERA_ERROR_INVALID_PARAMETER;
- }
-
ret = mm_camcorder_set_attributes(handle->mm_handle, NULL,
MMCAM_CAMERA_EXPOSURE_MODE, maptable[mode],
NULL);