Loading include/camera/Camera.h +3 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,9 @@ enum { // In sendCommand passing arg1 = 0 will disable, // while passing arg1 = 1 will enable the shutter sound. CAMERA_CMD_ENABLE_SHUTTER_SOUND = 4, // cmdType to play recording sound. CAMERA_CMD_PLAY_RECORDING_SOUND = 5, }; // camera fatal errors Loading services/camera/libcameraservice/CameraService.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -840,6 +840,8 @@ status_t CameraService::Client::sendCommand(int32_t cmd, int32_t arg1, int32_t a return BAD_VALUE; } return OK; } else if (cmd == CAMERA_CMD_PLAY_RECORDING_SOUND) { mCameraService->playSound(SOUND_RECORDING); } return mHardware->sendCommand(cmd, arg1, arg2); Loading Loading
include/camera/Camera.h +3 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,9 @@ enum { // In sendCommand passing arg1 = 0 will disable, // while passing arg1 = 1 will enable the shutter sound. CAMERA_CMD_ENABLE_SHUTTER_SOUND = 4, // cmdType to play recording sound. CAMERA_CMD_PLAY_RECORDING_SOUND = 5, }; // camera fatal errors Loading
services/camera/libcameraservice/CameraService.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -840,6 +840,8 @@ status_t CameraService::Client::sendCommand(int32_t cmd, int32_t arg1, int32_t a return BAD_VALUE; } return OK; } else if (cmd == CAMERA_CMD_PLAY_RECORDING_SOUND) { mCameraService->playSound(SOUND_RECORDING); } return mHardware->sendCommand(cmd, arg1, arg2); Loading