update for spark uinput

Origin commit data
------------------
Branch: master
Commit: 0215a673f5
Author: max_10 <max_10@gmx.de>
Date: 2016-06-12 (Sun, 12 Jun 2016)


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

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2016-06-12 16:53:31 +02:00
parent 2157b6c5f6
commit 42189d2e99

View File

@@ -271,10 +271,8 @@ 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 */
#ifdef BOXMODEL_SPARK7162
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,... */
@@ -294,10 +292,8 @@ void init_td_api()
close(dmx); close(dmx);
} }
} }
#ifdef BOXMODEL_SPARK7162
else else
reopen_input_devices(); reopen_input_devices();
#endif
initialized = true; initialized = true;
lt_info("%s end\n", __FUNCTION__); lt_info("%s end\n", __FUNCTION__);
} }
@@ -305,11 +301,9 @@ 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);
#ifdef BOXMODEL_SPARK7162
if (initialized) { if (initialized) {
stop_inmux_thread(); stop_inmux_thread();
close_input_devices(); close_input_devices();
} }
#endif
initialized = false; initialized = false;
} }