-bool CSLCommandHandler::ActivateSource(void)
-{
- if (!m_processor->GetPrimaryDevice()->IsActiveSource())
- {
- CLibCEC::AddLog(CEC_LOG_NOTICE, "not activating the source because we're not marked as active");
- return true;
- }
-
- {
- CLockObject lock(m_SLMutex);
- m_bActiveSourceSent = true;
- }
-
- CCECBusDevice *primary = m_processor->GetPrimaryDevice();
- primary->SetActiveSource();
- primary->SetPowerStatus(CEC_POWER_STATUS_ON);
- primary->TransmitPowerState(CECDEVICE_TV);
- primary->TransmitImageViewOn();
- primary->TransmitActiveSource();
- return true;
-}
-