return m_powerStatus;
}
-const cec_vendor_id CCECBusDevice::GetVendorId(void)
+cec_vendor_id CCECBusDevice::GetVendorId(void)
{
if (m_vendor == CEC_VENDOR_UNKNOWN)
{
}
}
+void CCECBusDevice::SetInactiveDevice(void)
+{
+ CLockObject lock(&m_mutex);
+ m_bActiveSource = false;
+}
+
+void CCECBusDevice::SetActiveDevice(void)
+{
+ CLockObject lock(&m_mutex);
+
+ for (int iPtr = 0; iPtr < 16; iPtr++)
+ if (iPtr != m_iLogicalAddress)
+ m_processor->m_busDevices[iPtr]->SetInactiveDevice();
+
+ m_bActiveSource = true;
+ m_powerStatus = CEC_POWER_STATUS_ON;
+}
+
void CCECBusDevice::SetPhysicalAddress(uint16_t iNewAddress)
{
if (iNewAddress > 0)