From 9a02b8e9d67929b06c05677731afedf272d18ec0 Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Mon, 27 Feb 2012 16:10:04 -0800 Subject: [PATCH] framebuffer: In enableHDMI, check if target supports true mirroring. - check if the target supports true mirroring in fb_enableHDMIOutput instead of framebuffer HAL initialization. - We check if the target can support true mirroring by using the RGB1 pipe, with new driver changes, RGB1 pipe is allocated only after first display update. - Hence moved this call to fb_enableHDMIOutput (cherry picked from commit db5225cc97b7c42871d5674702e1ca48a5a27904) Change-Id: I9838fb0bfe6d49c5de3a7b1f4c116bd93c7b375c Signed-off-by: Sudhir Sharma --- libgralloc/framebuffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp index bb45c5c..aea835b 100644 --- a/libgralloc/framebuffer.cpp +++ b/libgralloc/framebuffer.cpp @@ -362,6 +362,8 @@ static int fb_enableHDMIOutput(struct framebuffer_device_t* dev, int externaltyp dev->common.module); pthread_mutex_lock(&m->overlayLock); Overlay* pTemp = m->pobjOverlay; + //Check if true mirroring can be supported + m->trueMirrorSupport = FrameBufferInfo::getInstance()->canSupportTrueMirroring(); m->enableHDMIOutput = externaltype; LOGE("In fb_enableHDMIOutput: externaltype = %d", m->enableHDMIOutput); if(externaltype) { @@ -793,7 +795,7 @@ int mapFrameBufferLocked(struct private_module_t* module) pthread_t hdmiUIThread; pthread_create(&hdmiUIThread, NULL, &hdmi_ui_loop, (void *) module); module->hdmiMirroringState = HDMI_NO_MIRRORING; - module->trueMirrorSupport = FrameBufferInfo::getInstance()->canSupportTrueMirroring(); + module->trueMirrorSupport = false; #endif return 0;