hwcomposer: 7x30: disable overlays for video playback

check MDP revision and disable overlays for video playback usecase
on 7x30.

Change-Id: I8b179512b4aff136834dd80e4da7227a6b2aff4e
This commit is contained in:
Prabhanjan Kandula 2012-10-05 18:44:05 +05:30 committed by andrew.boren
parent fe67379a7f
commit 2a02aa1d3d

View File

@ -20,6 +20,7 @@
#include "hwc_qbuf.h"
#include "hwc_video.h"
#include "hwc_external.h"
#include <mdp_version.h>
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;
}