sdm: Reset the state in case of multiple HDR playbacks
- Fix the state machine handling to cover the case where there are two
consecutive HDR video playbacks with not enough non-HDR frames (at least
2 sec) in between to reset the HDR metadata.
Change-Id: I69417dc0c2847092f17ec629d1c33a3d4cd299de
CRs-Fixed: 2547647
diff --git a/sdm/libs/core/drm/hw_tv_drm.cpp b/sdm/libs/core/drm/hw_tv_drm.cpp
index e324d7b..162e3f0 100644
--- a/sdm/libs/core/drm/hw_tv_drm.cpp
+++ b/sdm/libs/core/drm/hw_tv_drm.cpp
@@ -341,6 +341,7 @@
// will cause flicker.
InitMaxHDRMetaData();
in_multiset_ = true;
+ reset_hdr_flag_ = false;
drm_atomic_intf_->Perform(DRMOps::CONNECTOR_SET_HDR_METADATA, token_.conn_id, &hdr_metadata_);
DumpHDRMetaData(hdr_op);
} else if (hdr_op == HWHDRLayerInfo::kReset) {