summaryrefslogtreecommitdiff
path: root/moorefield_hdmi/ips
diff options
context:
space:
mode:
authorTianmi Chen <tianmi.chen@intel.com>2015-04-22 16:29:24 +0800
committerPat Tjin <pattjin@google.com>2015-04-24 15:04:03 +0000
commit244c2f4bfa28df1be490dafc3a21fabd8d2c302f (patch)
tree7eaa5309867f4998005509ba3e17b56fe2fac49b /moorefield_hdmi/ips
parent462a713d89feb98515932caac924dc2b8c9923a4 (diff)
downloadhwcomposer-244c2f4bfa28df1be490dafc3a21fabd8d2c302f.tar.gz
Update interlace register in backbuffer when stream changes
Interlace bit in backbuffer should be updated when switch from interlace video to progressive video if they are in one stream. In this case, ANativeWindows are the same. Bug: 19576398 Change-Id: Ibfa6ab6757c3073e5f603c5806350821be5da812 Signed-off-by: Tianmi Chen <tianmi.chen@intel.com>
Diffstat (limited to 'moorefield_hdmi/ips')
-rwxr-xr-xmoorefield_hdmi/ips/common/OverlayPlaneBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/moorefield_hdmi/ips/common/OverlayPlaneBase.cpp b/moorefield_hdmi/ips/common/OverlayPlaneBase.cpp
index 6ef76ae..8d6ee39 100755
--- a/moorefield_hdmi/ips/common/OverlayPlaneBase.cpp
+++ b/moorefield_hdmi/ips/common/OverlayPlaneBase.cpp
@@ -1181,6 +1181,10 @@ bool OverlayPlaneBase::setDataBuffer(BufferMapper& grallocMapper)
backBuffer->OCMD |= FIELD0;
backBuffer->OCMD &= ~(BUFFER_SELECT);
backBuffer->OCMD |= BUFFER0;
+ } else {
+ backBuffer->OCMD &= ~BUF_TYPE;
+ backBuffer->OCMD &= ~FIELD_SELECT;
+ backBuffer->OCMD &= ~(BUFFER_SELECT);
}
// add to active ttm buffers if it's a rotated buffer