Merge "QCamera2: HAL3: Remove unnecessary cache ops for raw stream" into oc-dr1-dev
am: 617ff4b614

Change-Id: Ib01518ec06f319b22bf3e7007e230a49200d4fc0
diff --git a/msm8998/QCamera2/HAL3/QCamera3Channel.cpp b/msm8998/QCamera2/HAL3/QCamera3Channel.cpp
index f272045..0d9d3f6 100644
--- a/msm8998/QCamera2/HAL3/QCamera3Channel.cpp
+++ b/msm8998/QCamera2/HAL3/QCamera3Channel.cpp
@@ -2284,10 +2284,10 @@
             convertMipiToRaw16(super_frame->bufs[0]);
         else
             convertLegacyToRaw16(super_frame->bufs[0]);
-    }
 
-    //Make sure cache coherence because extra processing is done
-    mMemory.cleanInvalidateCache(super_frame->bufs[0]->buf_idx);
+        //Make sure cache coherence because extra processing is done
+        mMemory.cleanCache(super_frame->bufs[0]->buf_idx);
+    }
 
     QCamera3RegularChannel::streamCbRoutine(super_frame, stream);
     return;