[system/displayd] rk322x : support hdmi-cec

Signed-off-by: Firefly <service@t-firefly.com>
This commit is contained in:
Firefly
2016-01-28 09:17:07 +08:00
committed by cjp
parent 3b8d626796
commit 62f4900ad1
5 changed files with 909 additions and 1 deletions

View File

@ -20,6 +20,8 @@
#include "Config.h"
#include "DisplayManager.h"
#include "ResponseCode.h"
#include "Cecmanager.h"
#define DISPLAY_SYSFS_NODE "/sys/class/display/"
#define DISPLAY_TYPE_LCD "LCD"
@ -72,6 +74,14 @@ DisplayManager::DisplayManager() {
powerup = 0;
#if (DISPLAY_UNTIL_WAKEUP == 0)
init();
#if defined(RK3228) && defined(ANDROID_4_4)
if (access(HDMI_DEV_PATH, R_OK | W_OK) == 0) {
HdmicecManage *mHdmicecManage = HdmicecManage::GetInstance();
if (mHdmicecManage->isconnected())
mHdmicecManage->cecenumeration();
mHdmicecManage->init_uevent_thread();
}
#endif
#endif
ALOGD("[%s] success", __FUNCTION__);
}