m_busDevices[addr]->SetActiveSource();
if (m_busDevices[addr]->GetPhysicalAddress(false) != 0xFFFF)
{
- bReturn = m_busDevices[addr]->TransmitActiveSource();
+ bReturn = m_busDevices[addr]->TransmitImageViewOn() &&
+ m_busDevices[addr]->TransmitActiveSource();
if (bReturn)
{
{
CLockObject lock(m_mutex);
- if (m_powerStatus != CEC_POWER_STATUS_ON)
+ if (m_powerStatus != CEC_POWER_STATUS_ON && m_powerStatus != CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON)
CLibCEC::AddLog(CEC_LOG_DEBUG, "<< %s (%X) is not powered on", GetLogicalAddressName(), m_iLogicalAddress);
else if (m_bActiveSource)
{
if (bSendActiveSource)
{
MarkBusy();
- m_handler->TransmitImageViewOn(m_iLogicalAddress, CECDEVICE_TV);
m_handler->TransmitActiveSource(m_iLogicalAddress, m_iPhysicalAddress);
MarkReady();
return true;
return bReturn;
}
+bool CCECBusDevice::TransmitImageViewOn(void)
+{
+ CLockObject lock(m_mutex);
+ if (m_powerStatus != CEC_POWER_STATUS_ON && m_powerStatus != CEC_POWER_STATUS_IN_TRANSITION_STANDBY_TO_ON)
+ {
+ CLibCEC::AddLog(CEC_LOG_DEBUG, "<< %s (%X) is not powered on", GetLogicalAddressName(), m_iLogicalAddress);
+ return false;
+ }
+ else
+ {
+ MarkBusy();
+ m_handler->TransmitImageViewOn(m_iLogicalAddress, CECDEVICE_TV);
+ MarkReady();
+ return true;
+ }
+}
+
bool CCECBusDevice::TransmitInactiveSource(void)
{
uint16_t iPhysicalAddress;
virtual bool TransmitActiveSource(void);
virtual bool TransmitCECVersion(cec_logical_address dest);
+ virtual bool TransmitImageViewOn(void);
virtual bool TransmitInactiveSource(void);
virtual bool TransmitMenuState(cec_logical_address dest);
virtual bool TransmitOSDName(cec_logical_address dest);
{
device->SetActiveSource();
return device->TransmitPhysicalAddress() &&
+ device->TransmitImageViewOn() &&
device->TransmitActiveSource();
}
}
if (device && m_busDevice->MyLogicalAddressContains(device->GetLogicalAddress()))
{
device->SetActiveSource();
+ device->TransmitImageViewOn();
device->TransmitActiveSource();
device->SetMenuState(CEC_MENU_STATE_ACTIVATED);
if (device->MyLogicalAddressContains(device->GetLogicalAddress()))
{
device->SetActiveSource();
+ device->TransmitImageViewOn();
device->TransmitActiveSource();
if (device->GetType() == CEC_DEVICE_TYPE_PLAYBACK_DEVICE ||
{
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
primary->SetActiveSource();
+ primary->TransmitImageViewOn();
primary->TransmitActiveSource();
return true;
}
CCECBusDevice *primary = m_processor->GetPrimaryDevice();
primary->SetActiveSource();
- TransmitImageViewOn(primary->GetLogicalAddress(), command.initiator);
TransmitVendorCommand05(primary->GetLogicalAddress(), command.initiator);
}