summaryrefslogtreecommitdiffstats
path: root/camera/ANativeWindowDisplayAdapter.cpp
diff options
context:
space:
mode:
authorSundar Raman <sunds@ti.com>2011-08-20 21:22:19 -0700
committerIliyan Malchev <malchev@google.com>2011-08-23 08:27:37 -0700
commit43e9a722b81da7d5e0fa32e7d72ecc53c71255c4 (patch)
tree43ba16cc464a8fca1ec2b669a64111646316071a /camera/ANativeWindowDisplayAdapter.cpp
parent1ddfb99b82cad545a0c27f34e1f43410dc8151fc (diff)
downloadhardware_ti_omap4-43e9a722b81da7d5e0fa32e7d72ecc53c71255c4.zip
hardware_ti_omap4-43e9a722b81da7d5e0fa32e7d72ecc53c71255c4.tar.gz
hardware_ti_omap4-43e9a722b81da7d5e0fa32e7d72ecc53c71255c4.tar.bz2
CameraHal: Remove the SW usage flags set in CameraHAL
With the SW usage flags gralloc is enabling caching for TILER buffers and using wrong memsets in the code which is causing DMM errors and results in reboots in es1.1 silicon. Change-Id: I819b40fee0521bafadff1d72c74a7b30d1de9a8e Signed-off-by: Sundar Raman <sunds@ti.com>
Diffstat (limited to 'camera/ANativeWindowDisplayAdapter.cpp')
-rwxr-xr-xcamera/ANativeWindowDisplayAdapter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/camera/ANativeWindowDisplayAdapter.cpp b/camera/ANativeWindowDisplayAdapter.cpp
index 38e641f..2e6b9a9 100755
--- a/camera/ANativeWindowDisplayAdapter.cpp
+++ b/camera/ANativeWindowDisplayAdapter.cpp
@@ -516,8 +516,7 @@ void* ANativeWindowDisplayAdapter::allocateBuffer(int width, int height, const c
int undequeued = 0;
// Set gralloc usage bits for window.
- err = mANativeWindow->set_usage(mANativeWindow, GRALLOC_USAGE_SW_READ_NEVER | GRALLOC_USAGE_SW_WRITE_OFTEN
- | GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
+ err = mANativeWindow->set_usage(mANativeWindow, GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
if (err != 0) {
LOGE("native_window_set_usage failed: %s (%d)", strerror(-err), -err);
return NULL;