From 6a772df307a16fcb0821d68dab403b130daacea8 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Wed, 10 Jun 2020 16:31:52 +0200 Subject: [PATCH] use hdmi_cec device only for VU Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/6f85e1aab28015b4c00f44828ad21302f63225da Author: TangoCash Date: 2020-06-10 (Wed, 10 Jun 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/hdmi_cec.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libarmbox/hdmi_cec.cpp b/libarmbox/hdmi_cec.cpp index 26fa98c..85a8abe 100644 --- a/libarmbox/hdmi_cec.cpp +++ b/libarmbox/hdmi_cec.cpp @@ -121,6 +121,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 (hdmiFd == -1) { hdmiFd = ::open(CEC_HDMIDEV, O_RDWR | O_NONBLOCK | O_CLOEXEC); @@ -129,6 +130,7 @@ bool hdmi_cec::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType) ::ioctl(hdmiFd, 0); /* flush old messages */ } } +#endif if (hdmiFd == -1) { @@ -378,10 +380,13 @@ void hdmi_cec::SetCECState(bool state) message.length = 1; SendCECMessage(message); +#if BOXMODEL_VUPLUS_ALL int cnt = 0; while (tv_off && (cnt < 5)) { +#endif + message.initiator = logicalAddress; message.destination = CEC_OP_PRIM_DEVTYPE_TV; message.data[0] = CEC_MSG_IMAGE_VIEW_ON; @@ -394,8 +399,10 @@ void hdmi_cec::SetCECState(bool state) message.length = 1; SendCECMessage(message); +#if BOXMODEL_VUPLUS_ALL cnt++; } +#endif message.initiator = logicalAddress; message.destination = CEC_LOG_ADDR_BROADCAST;