enable CEC for HD60/61

Origin commit data
------------------
Branch: master
Commit: d684296e45
Author: TangoCash <eric@loxat.de>
Date: 2020-10-04 (Sun, 04 Oct 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2020-10-04 13:27:52 +02:00
committed by vanhofen
parent 7d55dbef96
commit a121cd60a6

View File

@@ -123,7 +123,7 @@ bool hdmi_cec::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType)
hal_info(GREEN "[CEC] switch on %s\n" NORMAL, __func__);
#if BOXMODEL_VUPLUS_ALL
#if BOXMODEL_VUPLUS_ALL || BOXMODEL_HISILICON
if (hdmiFd == -1)
{
hdmiFd = ::open(CEC_HDMIDEV, O_RDWR | O_NONBLOCK | O_CLOEXEC);
@@ -141,7 +141,7 @@ bool hdmi_cec::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType)
if (hdmiFd >= 0)
{
fallback = true;
#if BOXMODEL_VUPLUS_ALL
#if BOXMODEL_VUPLUS_ALL || BOXMODEL_HISILICON
hal_info(RED "[CEC] fallback on %s\n" NORMAL, __func__);
#endif
@@ -384,7 +384,7 @@ void hdmi_cec::SetCECState(bool state)
message.length = 1;
SendCECMessage(message);
#if BOXMODEL_VUPLUS_ALL
#if BOXMODEL_VUPLUS_ALL || BOXMODEL_HISILICON
int cnt = 0;
while (tv_off && (cnt < 5))
@@ -403,7 +403,7 @@ void hdmi_cec::SetCECState(bool state)
message.length = 1;
SendCECMessage(message);
#if BOXMODEL_VUPLUS_ALL
#if BOXMODEL_VUPLUS_ALL || BOXMODEL_HISILICON
cnt++;
}
#endif