diff --git a/aosp_diff/caas_cfc/frameworks/av/0002-WA-for-rotation-issue.patch b/aosp_diff/caas_cfc/frameworks/av/0002-WA-for-rotation-issue.patch new file mode 100644 index 0000000000..b97f212af2 --- /dev/null +++ b/aosp_diff/caas_cfc/frameworks/av/0002-WA-for-rotation-issue.patch @@ -0,0 +1,27 @@ +From 7ebc1473b2ded978d38728519569d8e5e5a03e0b Mon Sep 17 00:00:00 2001 +From: gkdeepa +Date: Sat, 30 Oct 2021 13:43:42 +0530 +Subject: [PATCH] WA for rotation issue + +Tracked-On: +--- + services/camera/libcameraservice/api1/client2/Parameters.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/services/camera/libcameraservice/api1/client2/Parameters.cpp b/services/camera/libcameraservice/api1/client2/Parameters.cpp +index dbc863b3ad..1802ad30f1 100644 +--- a/services/camera/libcameraservice/api1/client2/Parameters.cpp ++++ b/services/camera/libcameraservice/api1/client2/Parameters.cpp +@@ -2830,7 +2830,8 @@ bool Parameters::boolFromString(const char *boolStr) { + int Parameters::degToTransform(int degrees, bool mirror) { + if (!mirror) { + if (degrees == 0) return 0; +- else if (degrees == 90) return HAL_TRANSFORM_ROT_90; ++ //else if (degrees == 90) return HAL_TRANSFORM_ROT_90; ++ else if (degrees == 90) return 0; + else if (degrees == 180) return HAL_TRANSFORM_ROT_180; + else if (degrees == 270) return HAL_TRANSFORM_ROT_270; + } else { // Do mirror (horizontal flip) +-- +2.17.1 +