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 <sudsha@codeaurora.org>
This commit is contained in:
parent
f6d6c9b301
commit
9a02b8e9d6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user