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; }