mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
update for spark uinput
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user