QCamera2: HAL3: Initialize rotation_info.device_rotation

Default value of 0 will make imglib unhappy.

Bug: 30412029
Change-Id: Iebef7043030be1a8cdaa8326fa0affe2e974144f
diff --git a/QCamera2/HAL3/QCamera3Channel.cpp b/QCamera2/HAL3/QCamera3Channel.cpp
index 12b8930..9e7dd49 100644
--- a/QCamera2/HAL3/QCamera3Channel.cpp
+++ b/QCamera2/HAL3/QCamera3Channel.cpp
@@ -4324,6 +4324,7 @@
                 } else if (jpeg_settings->jpeg_orientation == 270) {
                    rotation_info.rotation = ROTATE_270;
                 }
+                rotation_info.device_rotation = ROTATE_0;
                 rotation_info.streamId = mStreams[0]->getMyServerID();
                 ADD_SET_PARAM_ENTRY_TO_BATCH(meta, CAM_INTF_PARM_ROTATION, rotation_info);
             }
diff --git a/QCamera2/HAL3/QCamera3HWI.cpp b/QCamera2/HAL3/QCamera3HWI.cpp
index 4c5a754..eed42ff 100644
--- a/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/QCamera2/HAL3/QCamera3HWI.cpp
@@ -9819,6 +9819,7 @@
         } else if (orientation == 270) {
            rotation_info.rotation = ROTATE_270;
         }
+        rotation_info.device_rotation = ROTATE_0;
         rotation_info.streamId = snapshotStreamId;
         ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_META_JPEG_ORIENTATION, orientation);
         if (ADD_SET_PARAM_ENTRY_TO_BATCH(hal_metadata, CAM_INTF_PARM_ROTATION, rotation_info)) {