}
lock.Leave();
- if (SetAckMask(m_logicalAddresses.AckMask()) &&
- SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
+
+ m_busDevices[CECDEVICE_TV]->GetVendorId();
+
+ if (SetHDMIPort(m_iBaseDevice, m_iHDMIPort, true))
{
m_controller->AddLog(CEC_LOG_DEBUG, "processor thread started");
m_busScan = new CCECBusScan(this);
}
else
{
- m_busDevices[CECDEVICE_TV]->GetVendorId();
- m_busDevices[m_logicalAddresses.primary]->TransmitVendorID(CECDEVICE_TV, false);
+ SetAckMask(m_logicalAddresses.AckMask());
CLockObject lock(&m_mutex);
m_bStarted = true;
{
bool bReturn(false);
- CStdString strLog;
- strLog.Format("setting HDMI port to %d on device %s (%d)", iPort, ToString(iBaseDevice), (int)iBaseDevice);
- AddLog(CEC_LOG_DEBUG, strLog);
-
m_iBaseDevice = iBaseDevice;
m_iHDMIPort = iPort;
if (!m_bStarted && !bForce)
return true;
+ CStdString strLog;
+ strLog.Format("setting HDMI port to %d on device %s (%d)", iPort, ToString(iBaseDevice), (int)iBaseDevice);
+ AddLog(CEC_LOG_DEBUG, strLog);
+
uint16_t iPhysicalAddress(0);
iPhysicalAddress = m_busDevices[iBaseDevice]->GetPhysicalAddress();
uint16_t iPos = 0;
CCECBusDevice *primary = m_processor->m_busDevices[m_processor->GetLogicalAddresses().primary];
if (m_busDevice->GetLogicalAddress() != primary->GetLogicalAddress())
+ {
primary->SetVendorId(CEC_VENDOR_LG, false);
+ primary->TransmitVendorID(CECDEVICE_TV, false);
+ }
if (m_busDevice->GetLogicalAddress() == CECDEVICE_TV)
{