From 2a02aa1d3d1de54422de15693fc6bbe44cb0ca3d Mon Sep 17 00:00:00 2001 From: Prabhanjan Kandula Date: Fri, 5 Oct 2012 18:44:05 +0530 Subject: [PATCH] hwcomposer: 7x30: disable overlays for video playback check MDP revision and disable overlays for video playback usecase on 7x30. Change-Id: I8b179512b4aff136834dd80e4da7227a6b2aff4e --- libhwcomposer/hwc_video.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libhwcomposer/hwc_video.cpp b/libhwcomposer/hwc_video.cpp index 62749ba..8186875 100644 --- a/libhwcomposer/hwc_video.cpp +++ b/libhwcomposer/hwc_video.cpp @@ -20,6 +20,7 @@ #include "hwc_qbuf.h" #include "hwc_video.h" #include "hwc_external.h" +#include namespace qhwc { @@ -34,7 +35,9 @@ bool VideoOverlay::sIsModeOn = false; //Cache stats, figure out the state, config overlay bool VideoOverlay::prepare(hwc_context_t *ctx, hwc_layer_list_t *list) { sIsModeOn = false; - if(!ctx->mMDP.hasOverlay) { + if((!ctx->mMDP.hasOverlay) || + (qdutils::MDPVersion::getInstance().getMDPVersion() + <= qdutils::MDP_V4_0)) { ALOGD_IF(VIDEO_DEBUG,"%s, this hw doesnt support overlay", __FUNCTION__); return false; }