From a121cd60a6685916039989a0b9ad95431144fe48 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 4 Oct 2020 13:27:52 +0200 Subject: [PATCH] enable CEC for HD60/61 Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/d684296e452ebd580095b390142e569cc0fba7ff Author: TangoCash Date: 2020-10-04 (Sun, 04 Oct 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/hdmi_cec.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libarmbox/hdmi_cec.cpp b/libarmbox/hdmi_cec.cpp index 9f33ac0..2cbb7e9 100644 --- a/libarmbox/hdmi_cec.cpp +++ b/libarmbox/hdmi_cec.cpp @@ -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