diff options
author | Nipun Kwatra <nkwatra@google.com> | 2010-09-11 19:31:10 -0700 |
---|---|---|
committer | Nipun Kwatra <nkwatra@google.com> | 2010-09-14 13:57:59 -0700 |
commit | 088146a4213f5099b8fcc93e1b75538c53f61404 (patch) | |
tree | ef4e7f1a9b97228a48a8ff3db316236d17237820 /include | |
parent | 1510770165b7bc675e5171560e907c0269dbe0fa (diff) | |
download | frameworks_base-088146a4213f5099b8fcc93e1b75538c53f61404.zip frameworks_base-088146a4213f5099b8fcc93e1b75538c53f61404.tar.gz frameworks_base-088146a4213f5099b8fcc93e1b75538c53f61404.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/camera/Camera.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |