From 22ab9e6f897c6ff423b4f49f4c3897839ea09a48 Mon Sep 17 00:00:00 2001 From: max10 Date: Thu, 1 May 2014 17:01:44 +0200 Subject: [PATCH] [init.cpp] fix spark --- libspark/init.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libspark/init.cpp b/libspark/init.cpp index d358995..dcbca24 100644 --- a/libspark/init.cpp +++ b/libspark/init.cpp @@ -268,8 +268,10 @@ void init_td_api() { cCpuFreqManager f; f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */ +#if 0 create_input_devices(); start_inmux_thread(); +#endif /* 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,... */ @@ -288,8 +290,11 @@ void init_td_api() ioctl(dmx, DMX_STOP); close(dmx); } - } else + } +#if 0 + else reopen_input_devices(); +#endif initialized = true; lt_info("%s end\n", __FUNCTION__); } @@ -297,9 +302,11 @@ void init_td_api() void shutdown_td_api() { lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized); +#if 0 if (initialized) { stop_inmux_thread(); close_input_devices(); } +#endif initialized = false; }