cec: ensure that the vendor ID is sent before trying to activate any SL device. bugzi...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 19 Mar 2012 15:30:12 +0000 (16:30 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 19 Mar 2012 15:30:12 +0000 (16:30 +0100)
src/lib/implementations/SLCommandHandler.cpp

index 692a5fd824b51f722e1f89b728660bfa65c8eb9b..9d938c2f360587e4af918881441a290c03f91cce 100644 (file)
@@ -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);