From 6b681a5c71e5a884b48f9d42cd37a8f125c91b96 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 25 May 2018 17:05:09 +0200 Subject: [PATCH] fix CEC TV ON after deepstandby Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/19b27c9a7e5347a954d1b36d3be6f76bfba16c80 Author: Jacek Jendrzej Date: 2018-05-25 (Fri, 25 May 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/video.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index 4017b10..a807eb0 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -1125,7 +1125,7 @@ bool cVideo::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType) physicalAddress[0] = 0x10; physicalAddress[1] = 0x00; logicalAddress = 1; - + if (_deviceType == VIDEO_HDMI_CEC_MODE_OFF) { if (hdmiFd >= 0) { @@ -1209,11 +1209,15 @@ bool cVideo::SetCECMode(VIDEO_HDMI_CEC_MODE _deviceType) if (ioctl(hdmiFd, CEC_S_MODE, &monitor) < 0) lt_info("%s: CEC monitor failed (%m)\n", __func__); + GetCECAddressInfo(); + + if(autoview_cec_activ) + SetCECState(false); + + return true; + } - - GetCECAddressInfo(); - - return true; + return false; } void cVideo::GetCECAddressInfo()