gralloc: Update get behaviour for interlaced metadata

If the interlaced metadata is not set, return standard metadata
value Interlaced_None instead of Interlaced_Qti.

Change-Id: Ib3ea47c1a6883bc6a8c4751f7309d7e76af7f851
CRs-Fixed: 2685558
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp
index a557886..539bb00 100644
--- a/gralloc/gr_buf_mgr.cpp
+++ b/gralloc/gr_buf_mgr.cpp
@@ -1111,7 +1111,11 @@
       android::gralloc4::encodeDataspace(dataspace, out);
       break;
     case (int64_t)StandardMetadataType::INTERLACED:
-      android::gralloc4::encodeInterlaced(qtigralloc::Interlaced_Qti, out);
+      if (metadata->interlaced > 0) {
+        android::gralloc4::encodeInterlaced(qtigralloc::Interlaced_Qti, out);
+      } else {
+        android::gralloc4::encodeInterlaced(android::gralloc4::Interlaced_None, out);
+      }
       break;
     case (int64_t)StandardMetadataType::COMPRESSION:
       if (handle->flags & qtigralloc::PRIV_FLAGS_UBWC_ALIGNED ||