[init.cpp] fix spark

Origin commit data
------------------
Branch: master
Commit: 22ab9e6f89
Author: max_10 <max_10@gmx.de>
Date: 2014-05-01 (Thu, 01 May 2014)


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

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2014-05-01 17:01:44 +02:00
parent cf502446ca
commit e758234594

View File

@@ -268,8 +268,10 @@ void init_td_api()
{ {
cCpuFreqManager f; cCpuFreqManager f;
f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */ f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */
#if 0
create_input_devices(); create_input_devices();
start_inmux_thread(); start_inmux_thread();
#endif
/* this is a strange hack: the drivers seem to only work correctly after /* this is a strange hack: the drivers seem to only work correctly after
* demux0 has been used once. After that, we can use demux1,2,... */ * demux0 has been used once. After that, we can use demux1,2,... */
@@ -288,8 +290,11 @@ void init_td_api()
ioctl(dmx, DMX_STOP); ioctl(dmx, DMX_STOP);
close(dmx); close(dmx);
} }
} else }
#if 0
else
reopen_input_devices(); reopen_input_devices();
#endif
initialized = true; initialized = true;
lt_info("%s end\n", __FUNCTION__); lt_info("%s end\n", __FUNCTION__);
} }
@@ -297,9 +302,11 @@ void init_td_api()
void shutdown_td_api() void shutdown_td_api()
{ {
lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized); lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized);
#if 0
if (initialized) { if (initialized) {
stop_inmux_thread(); stop_inmux_thread();
close_input_devices(); close_input_devices();
} }
#endif
initialized = false; initialized = false;
} }