From: Lars Op den Kamp Date: Mon, 13 Feb 2012 12:01:14 +0000 (+0100) Subject: cec: send power state 'standby->on' to the tv when initing the SL handler X-Git-Tag: upstream/2.2.0~1^2~35^2~79 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=871934d36a072fbb36fea8949b09158697ceb41a;p=deb_libcec.git cec: send power state 'standby->on' to the tv when initing the SL handler --- diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index f1e3d7e..7771b20 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -77,12 +77,17 @@ bool CSLCommandHandler::InitHandler(void) return true; m_bHandlerInited = true; - /* reply with LGs vendor id */ CCECBusDevice *primary = m_processor->GetPrimaryDevice(); if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress()) + { + /* start as 'in transition standby->on' */ + primary->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON); + primary->TransmitPowerState(CECDEVICE_TV); + + /* reply with LGs vendor id */ primary->TransmitVendorID(CECDEVICE_BROADCAST, false); + } - primary->SetPowerStatus(CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON); return true; }