From d05c5f387b4eb93857694a7cb7f3c5e4312d7eda Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 5 Nov 2017 14:25:01 +0100 Subject: [PATCH] armbox: tryfix cec Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/dfeace50a5e25ce6503b93d6f027659ca13b243f Author: TangoCash Date: 2017-11-05 (Sun, 05 Nov 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/video.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index e810efa..8bf87b1 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -994,8 +994,10 @@ void cVideo::SetCECState(bool state) usleep(10000); message.address = 0x0f; /* broadcast */ message.data[0] = CEC_MSG_ACTIVE_SOURCE; - message.data[1] = ((((int)physicalAddress >> 12) & 0xf) << 4) + (((int)physicalAddress >> 8) & 0xf); - message.data[2] = ((((int)physicalAddress >> 4) & 0xf) << 4) + (((int)physicalAddress >> 0) & 0xf); + //message.data[1] = ((((int)physicalAddress >> 12) & 0xf) << 4) + (((int)physicalAddress >> 8) & 0xf); + //message.data[2] = ((((int)physicalAddress >> 4) & 0xf) << 4) + (((int)physicalAddress >> 0) & 0xf); + message.data[1] = physicalAddress[0]; + message.data[2] = physicalAddress[1]; message.length = 3; SendCECMessage(message); }