mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- hw_caps: remove CFEManager-code; ...
the relevant boxmodels are handled now in a "dirty part of hw_caps" in neutrino.cpp after zapit-start
This commit is contained in:
@@ -1,13 +1,6 @@
|
|||||||
AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing
|
AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_builddir) \
|
|
||||||
-I$(top_srcdir) \
|
|
||||||
-I$(top_srcdir)/src \
|
|
||||||
-I$(top_srcdir)/src/zapit/include \
|
|
||||||
-I$(top_srcdir)/lib \
|
|
||||||
-I$(top_srcdir)/lib/libconfigfile \
|
|
||||||
-I$(top_srcdir)/lib/libeventserver \
|
|
||||||
@HWLIB_CFLAGS@
|
@HWLIB_CFLAGS@
|
||||||
|
|
||||||
noinst_LIBRARIES = libhwcaps.a
|
noinst_LIBRARIES = libhwcaps.a
|
||||||
|
@@ -11,8 +11,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "hardware_caps.h"
|
#include "hardware_caps.h"
|
||||||
|
|
||||||
#include <zapit/femanager.h>
|
|
||||||
|
|
||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
static hw_caps_t caps;
|
static hw_caps_t caps;
|
||||||
|
|
||||||
@@ -21,7 +19,7 @@ hw_caps_t *get_hwcaps(void) {
|
|||||||
return ∩︀
|
return ∩︀
|
||||||
int rev = cs_get_revision();
|
int rev = cs_get_revision();
|
||||||
int chip = cs_get_chip_type();
|
int chip = cs_get_chip_type();
|
||||||
caps.has_fan = (rev < 8 && CFEManager::getInstance()->getFE(0)->hasSat()); // only SAT-HD1 before rev 8 has fan
|
caps.has_fan = (rev < 8); // see dirty part of hw_caps in neutrino.cpp
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.has_SCART = (rev != 10);
|
caps.has_SCART = (rev != 10);
|
||||||
caps.has_SCART_input = 0;
|
caps.has_SCART_input = 0;
|
||||||
@@ -44,14 +42,7 @@ hw_caps_t *get_hwcaps(void) {
|
|||||||
caps.force_tuner_2G = 1;
|
caps.force_tuner_2G = 1;
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
if (CFEManager::getInstance()->getFrontendCount() < 2)
|
strcpy(caps.boxname, "Neo"); // see dirty part of hw_caps in neutrino.cpp
|
||||||
{
|
|
||||||
strcpy(caps.boxname, "Neo");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
strcpy(caps.boxname, "Neo Twin");
|
|
||||||
}
|
|
||||||
strcpy(caps.boxarch, "Nevis");
|
strcpy(caps.boxarch, "Nevis");
|
||||||
caps.force_tuner_2G = 1;
|
caps.force_tuner_2G = 1;
|
||||||
break;
|
break;
|
||||||
|
@@ -2239,6 +2239,20 @@ TIMER_START();
|
|||||||
|
|
||||||
CheckFastScan();
|
CheckFastScan();
|
||||||
|
|
||||||
|
// dirty part of hw_caps - specify some details after zapit start
|
||||||
|
if (strcmp(g_info.hw_caps->boxname, "HD1") == 0)
|
||||||
|
{
|
||||||
|
// only SAT-HD1 has fan
|
||||||
|
if (!CFEManager::getInstance()->getFE(0)->hasSat())
|
||||||
|
g_info.hw_caps->has_fan = 0;
|
||||||
|
}
|
||||||
|
if (strcmp(g_info.hw_caps->boxname, "Neo") == 0)
|
||||||
|
{
|
||||||
|
// detecting Neo Twin by counting frontends
|
||||||
|
if (CFEManager::getInstance()->getFrontendCount() > 1)
|
||||||
|
strcpy(g_info.hw_caps->boxname, "Neo Twin");
|
||||||
|
}
|
||||||
|
|
||||||
//timer start
|
//timer start
|
||||||
timer_wakeup = false;//init
|
timer_wakeup = false;//init
|
||||||
wake_up( timer_wakeup );
|
wake_up( timer_wakeup );
|
||||||
|
Reference in New Issue
Block a user