From 8b5e50ecc41304c3d011c847bbf00829247d28f2 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 19 Mar 2012 16:30:12 +0100 Subject: [PATCH] cec: ensure that the vendor ID is sent before trying to activate any SL device. bugzid: 574 --- src/lib/implementations/SLCommandHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 692a5fd..9d938c2 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -411,6 +411,10 @@ bool CSLCommandHandler::PowerOn(const cec_logical_address iInitiator, const cec_ { /* LG devices only allow themselves to be woken up by the TV with a vendor command */ cec_command command; + + if (!m_bSLEnabled) + TransmitVendorID(CECDEVICE_TV, CEC_VENDOR_LG); + cec_command::Format(command, CECDEVICE_TV, iDestination, CEC_OPCODE_VENDOR_COMMAND); command.PushBack(SL_COMMAND_POWER_ON); command.PushBack(0); -- 2.34.1