repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into release
[deb_libcec.git]
/
src
/
lib
/
implementations
/
SLCommandHandler.cpp
diff --git
a/src/lib/implementations/SLCommandHandler.cpp
b/src/lib/implementations/SLCommandHandler.cpp
index bc302aa8092bad94ee81de56682d9a48b130130a..67018a8e82b60a5ee27f812994d9d610e5f762ac 100644
(file)
--- a/
src/lib/implementations/SLCommandHandler.cpp
+++ b/
src/lib/implementations/SLCommandHandler.cpp
@@
-34,8
+34,6
@@
#include "../devices/CECBusDevice.h"
#include "../devices/CECPlaybackDevice.h"
#include "../CECProcessor.h"
#include "../devices/CECBusDevice.h"
#include "../devices/CECPlaybackDevice.h"
#include "../CECProcessor.h"
-#include "../platform/timeutils.h"
-#include "../platform/threads.h"
using namespace CEC;
using namespace CEC;
@@
-54,11
+52,12
@@
CSLCommandHandler::CSLCommandHandler(CCECBusDevice *busDevice) :
m_bSLEnabled(false),
m_bPowerStateReset(false)
{
m_bSLEnabled(false),
m_bPowerStateReset(false)
{
+ m_vendorId = CEC_VENDOR_LG;
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
/* imitate LG devices */
if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress())
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
/* imitate LG devices */
if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress())
- primary->SetVendorId(CEC_VENDOR_LG
, false
);
+ primary->SetVendorId(CEC_VENDOR_LG);
SetLGDeckStatus();
/* LG TVs don't always reply to CEC version requests, so just set it to 1.3a */
SetLGDeckStatus();
/* LG TVs don't always reply to CEC version requests, so just set it to 1.3a */
@@
-105,6
+104,14
@@
bool CSLCommandHandler::InitHandler(void)
return true;
}
return true;
}
+bool CSLCommandHandler::ActivateSource(void)
+{
+ CCECBusDevice *primary = m_processor->GetPrimaryDevice();
+ primary->SetActiveSource();
+ primary->TransmitActiveSource();
+ return true;
+}
+
bool CSLCommandHandler::HandleActiveSource(const cec_command &command)
{
if (command.parameters.size == 2)
bool CSLCommandHandler::HandleActiveSource(const cec_command &command)
{
if (command.parameters.size == 2)