summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-09-19 17:12:50 -0700
committerEino-Ville Talvala <etalvala@google.com>2012-09-19 17:12:50 -0700
commita4247b833599882b23db39e9f773746dc2fd9693 (patch)
tree38c9a092d6899a8a5f6baddbd32ba47506140674 /services/camera/libcameraservice
parent9d5f5c2a6a2af953de5b091e00bf59cae7f8d481 (diff)
downloadframeworks_av-a4247b833599882b23db39e9f773746dc2fd9693.zip
frameworks_av-a4247b833599882b23db39e9f773746dc2fd9693.tar.gz
frameworks_av-a4247b833599882b23db39e9f773746dc2fd9693.tar.bz2
Camera2: ZSL captures should also make some noise.
Change-Id: If7aff7223db41b4b7edeeb4c32e40ef3197b180b
Diffstat (limited to 'services/camera/libcameraservice')
-rw-r--r--services/camera/libcameraservice/camera2/CaptureSequencer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/camera2/CaptureSequencer.cpp b/services/camera/libcameraservice/camera2/CaptureSequencer.cpp
index eb9eb5b..24ecf28 100644
--- a/services/camera/libcameraservice/camera2/CaptureSequencer.cpp
+++ b/services/camera/libcameraservice/camera2/CaptureSequencer.cpp
@@ -285,6 +285,11 @@ CaptureSequencer::CaptureState CaptureSequencer::manageZslStart(
return STANDARD_START;
}
+ SharedParameters::Lock l(client->getParameters());
+ if (l.mParameters.playShutterSound) {
+ client->getCameraService()->playSound(CameraService::SOUND_SHUTTER);
+ }
+
mTimeoutCount = kMaxTimeoutsForCaptureEnd;
return STANDARD_CAPTURE_WAIT;
}