timermanager: add standby-on timer to wakeup from depstandby, is as silent wakeup without use CEC-on

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3a348b4b1d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-20 (Mon, 20 Jan 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2020-01-20 13:36:57 +01:00
committed by vanhofen
parent ad5ca58cf9
commit 9bb4ab6764

View File

@@ -749,17 +749,19 @@ bool CTimerManager::shutdown()
{
CTimerEvent *event = pos->second;
dprintf("shutdown: timer type %d state %d announceTime: %ld\n", event->eventType, event->eventState, event->announceTime);
bool standby_on_timer = (event->eventType == CTimerd::TIMER_STANDBY && static_cast<CTimerEvent_Standby*>(event)->standby_on);// wakeup without CEC-on from depstanby
if((event->eventType == CTimerd::TIMER_RECORD ||
event->eventType == CTimerd::TIMER_EXEC_PLUGIN || //NI
event->eventType == CTimerd::TIMER_ZAPTO ) &&
event->eventType == CTimerd::TIMER_ZAPTO || standby_on_timer ) &&
event->eventState < CTimerd::TIMERSTATE_ISRUNNING)
{
// Wir wachen nur f<>r Records und Zaptos wieder auf
// Wir wachen nur f<>r Records und Zaptos und Stanby-ON wieder auf
if(event->announceTime < nextAnnounceTime || nextAnnounceTime==0)
{
nextAnnounceTime=event->announceTime;
dprintf("shutdown: nextAnnounceTime %ld\n", nextAnnounceTime);
if ( event->eventType == CTimerd::TIMER_RECORD )
if ( event->eventType == CTimerd::TIMER_RECORD || standby_on_timer )
timer_is_rec = true;
else
timer_is_rec = false;