From b02137288e5c05b9f941fbab4450222b5bcd11d2 Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Wed, 27 Mar 2013 11:19:10 -0400 Subject: [PATCH] Bug 851823 - Disable shutter sound in CameraService. r=sotaro --- dom/camera/GonkCameraHwMgr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dom/camera/GonkCameraHwMgr.cpp b/dom/camera/GonkCameraHwMgr.cpp index b1843741f1c..4f9836c42ea 100644 --- a/dom/camera/GonkCameraHwMgr.cpp +++ b/dom/camera/GonkCameraHwMgr.cpp @@ -173,6 +173,9 @@ GonkCameraHardware::Init() } DOM_CAMERA_LOGI("Sensor orientation: base=%d, offset=%d, final=%d\n", info.orientation, offset, mSensorOrientation); + // Disable shutter sound in android CameraService because gaia camera app will play it + mCamera->sendCommand(CAMERA_CMD_ENABLE_SHUTTER_SOUND, 0, 0); + mNativeWindow = new GonkNativeWindow(); mNativeWindow->setNewFrameCallback(this); mCamera->setListener(this);