summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@gmail.com>2013-08-21 05:14:28 +0300
committerMichael Bestas <mikeioannina@gmail.com>2013-08-21 07:39:26 +0300
commit382b61cca02458a09f5e83718e82966b930ce7a0 (patch)
tree5e2d3dfd476007ce178368ec34028ddba05c9d55
parentd8f7a185d0c541edcc229a21fce3661becdbab59 (diff)
downloadframeworks_av-jellybean.tar.gz
frameworks_av-jellybean.tar.bz2
frameworks_av-jellybean.zip
camera: Fix preview on SEMC msm7x30 devicesjellybean
Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: I79039636ae188131b491c90cfe7894ff32d8ef2a
-rwxr-xr-xservices/camera/libcameraservice/CameraHardwareInterface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/CameraHardwareInterface.h b/services/camera/libcameraservice/CameraHardwareInterface.h
index a3400919e5..356bc303cf 100755
--- a/services/camera/libcameraservice/CameraHardwareInterface.h
+++ b/services/camera/libcameraservice/CameraHardwareInterface.h
@@ -664,6 +664,9 @@ private:
static int __set_usage(struct preview_stream_ops* w, int usage)
{
+#ifdef SEMC_ICS_CAMERA_BLOB
+ usage |= GRALLOC_USAGE_PRIVATE_0;
+#endif
ANativeWindow *a = anw(w);
return native_window_set_usage(a, usage);
}