camera: call shutter callback after configuring snapshot
Change-Id: I83dd678c0a80ada3c94074b90a38123be49d1d31
diff --git a/camera/QCameraHWI.cpp b/camera/QCameraHWI.cpp
index 3dd267a..74f791a 100755
--- a/camera/QCameraHWI.cpp
+++ b/camera/QCameraHWI.cpp
@@ -811,6 +811,14 @@
app_cb->argm_notify.ext1 = CAMERA_ERROR_UNKNOWN;
app_cb->argm_notify.cookie = mCallbackCookie;
break;
+ case MM_CAMERA_CTRL_EVT_SNAPSHOT_CONFIG_DONE:
+ ALOGV("%s: MM_CAMERA_CTRL_EVT_SNAPSHOT_CONFIG_DONE", __func__);
+ app_cb->notifyCb = mNotifyCb;
+ app_cb->argm_notify.msg_type = CAMERA_MSG_SHUTTER;
+ app_cb->argm_notify.ext1 = 0;
+ app_cb->argm_notify.ext2 = TRUE;
+ app_cb->argm_notify.cookie = mCallbackCookie;
+ mShutterSoundPlayed = TRUE;
default:
break;
}