QCamera2: HAL: Featurize value added features
For features requiring camera frameworks enhancement, featurize
them such that HAL can compile against vanilla camera frameworks.
Change-Id: I6266aa4e7906e64d8c0f43acbb6274db882a5d76
diff --git a/QCamera2/HAL/QCameraStateMachine.cpp b/QCamera2/HAL/QCameraStateMachine.cpp
index 1f4c422..8c79757 100644
--- a/QCamera2/HAL/QCameraStateMachine.cpp
+++ b/QCamera2/HAL/QCameraStateMachine.cpp
@@ -1599,10 +1599,12 @@
rc = m_parent->sendCommand(cmd_payload->cmd,
cmd_payload->arg1,
cmd_payload->arg2);
+#ifndef VANILLA_HAL
if ( CAMERA_CMD_LONGSHOT_OFF == cmd_payload->cmd ) {
// move state to previewing state
m_state = QCAMERA_SM_STATE_PREVIEWING;
}
+#endif
result.status = rc;
result.request_api = evt;
result.result_type = QCAMERA_API_RESULT_TYPE_DEF;
@@ -2650,10 +2652,12 @@
rc = m_parent->sendCommand(cmd_payload->cmd,
cmd_payload->arg1,
cmd_payload->arg2);
+#ifndef VANILLA_HAL
if ( CAMERA_CMD_LONGSHOT_OFF == cmd_payload->cmd ) {
// move state to previewing state
m_state = QCAMERA_SM_STATE_PREVIEWING;
}
+#endif
result.status = rc;
result.request_api = evt;
result.result_type = QCAMERA_API_RESULT_TYPE_DEF;