From b5ca4618a722a21f084fe8bfc1c2992749ccd3f0 Mon Sep 17 00:00:00 2001 From: Nipun Kwatra Date: Sat, 11 Sep 2010 19:31:10 -0700 Subject: Adding enable/disable option for sendCommand() - Added enum CAMERA_CMD_ENABLE_SHUTTER_SOUND which corresponds to command type for enabling/disabling shutter sound. - The implementation checks if it is legal to disable shutter sound. If it is, then any process can disable the sound. If not, then only the mediaserver process is allowed to do this. Currently time lapse capture needs this functionality to disable shutter sound when still mode is used to capture time lapse video. Change-Id: Id147a3bcc6a345c2c6a6d52bf98fd8292386bb19 --- include/camera/Camera.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/camera/Camera.h') diff --git a/include/camera/Camera.h b/include/camera/Camera.h index 75cf5ff..9ba5b3d 100644 --- a/include/camera/Camera.h +++ b/include/camera/Camera.h @@ -82,6 +82,11 @@ enum { CAMERA_CMD_START_SMOOTH_ZOOM = 1, CAMERA_CMD_STOP_SMOOTH_ZOOM = 2, CAMERA_CMD_SET_DISPLAY_ORIENTATION = 3, + + // cmdType to disable/enable shutter sound. + // In sendCommand passing arg1 = 0 will disable, + // while passing arg1 = 1 will enable the shutter sound. + CAMERA_CMD_ENABLE_SHUTTER_SOUND = 4, }; // camera fatal errors -- cgit v1.1