mark a device as powered on when receiving a stream path or routing change
authorLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 01:33:36 +0000 (02:33 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Wed, 14 Nov 2012 01:33:36 +0000 (02:33 +0100)
src/lib/devices/CECBusDevice.cpp

index fd2a348a64a7bc6d87064fa2a298db9c1df59457..b304cb9c3e1a902b9a0ae2c0652fa93857bbb8ac 100644 (file)
@@ -1122,6 +1122,8 @@ bool CCECBusDevice::TransmitPendingActiveSourceCommands(void)
 
 void CCECBusDevice::SetActiveRoute(uint16_t iRoute)
 {
+  SetPowerStatus(CEC_POWER_STATUS_ON);
+
   CCECDeviceMap* map = m_processor->GetDevices();
   if (!map)
     return;
@@ -1142,6 +1144,8 @@ void CCECBusDevice::SetActiveRoute(uint16_t iRoute)
 
 void CCECBusDevice::SetStreamPath(uint16_t iNewAddress, uint16_t iOldAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */)
 {
+  SetPowerStatus(CEC_POWER_STATUS_ON);
+
   CLockObject lock(m_mutex);
   if (iNewAddress != m_iStreamPath)
   {