mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libspark: drop irmp
This commit is contained in:
@@ -8,9 +8,7 @@ AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing
|
|||||||
AM_LDFLAGS = -lpthread -lasound
|
AM_LDFLAGS = -lpthread -lasound
|
||||||
|
|
||||||
libspark_la_SOURCES = \
|
libspark_la_SOURCES = \
|
||||||
irmp.c \
|
|
||||||
hardware_caps.c \
|
hardware_caps.c \
|
||||||
lirmp_input.cpp \
|
|
||||||
dmx.cpp \
|
dmx.cpp \
|
||||||
video.cpp \
|
video.cpp \
|
||||||
audio.cpp \
|
audio.cpp \
|
||||||
|
@@ -11,7 +11,9 @@
|
|||||||
|
|
||||||
#include <linux/dvb/dmx.h>
|
#include <linux/dvb/dmx.h>
|
||||||
|
|
||||||
|
#ifndef MARTII
|
||||||
#include "lirmp_input.h"
|
#include "lirmp_input.h"
|
||||||
|
#endif
|
||||||
#include "pwrmngr.h"
|
#include "pwrmngr.h"
|
||||||
|
|
||||||
#include "lt_debug.h"
|
#include "lt_debug.h"
|
||||||
@@ -278,15 +280,16 @@ 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 MARTII
|
||||||
|
count_input_devices();
|
||||||
|
create_input_devices();
|
||||||
|
start_inmux_thread();
|
||||||
|
#else
|
||||||
/* hack: if lircd pidfile is present, don't start input thread */
|
/* hack: if lircd pidfile is present, don't start input thread */
|
||||||
if (access("/var/run/lirc/lircd.pid", R_OK))
|
if (access("/var/run/lirc/lircd.pid", R_OK))
|
||||||
start_input_thread();
|
start_input_thread();
|
||||||
else
|
else
|
||||||
lt_info("%s: lircd pidfile present, not starting input thread\n", __func__);
|
lt_info("%s: lircd pidfile present, not starting input thread\n", __func__);
|
||||||
#ifdef MARTII
|
|
||||||
count_input_devices();
|
|
||||||
create_input_devices();
|
|
||||||
start_inmux_thread();
|
|
||||||
#endif
|
#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
|
||||||
@@ -320,7 +323,6 @@ void shutdown_td_api()
|
|||||||
lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized);
|
lt_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized);
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
if (initialized) {
|
if (initialized) {
|
||||||
stop_input_thread();
|
|
||||||
stop_inmux_thread();
|
stop_inmux_thread();
|
||||||
close_input_devices();
|
close_input_devices();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user