HD1: Workaround for missing cs_get_chip_type

This commit is contained in:
M. Liebmann
2017-06-07 14:12:27 +02:00
parent ab829a61b6
commit a6fe60d60a
2 changed files with 6 additions and 2 deletions

View File

@@ -6,6 +6,7 @@
* *
* License: GPL v2 or later * License: GPL v2 or later
*/ */
#include <config.h>
#include "cs_api.h" #include "cs_api.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@@ -20,7 +21,10 @@ hw_caps_t *get_hwcaps(void) {
if (initialized) if (initialized)
return &caps; return &caps;
int rev = cs_get_revision(); int rev = cs_get_revision();
int chip = cs_get_chip_type(); int chip = 0;
#ifdef BOXMODEL_CS_HD2
chip = cs_get_chip_type();
#endif
caps.has_fan = (rev < 8 && CFEManager::getInstance()->getFE(0)->hasSat()); // only SAT-HD1 before rev 8 has fan caps.has_fan = (rev < 8 && CFEManager::getInstance()->getFE(0)->hasSat()); // only SAT-HD1 before rev 8 has fan
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.has_SCART = (rev != 10); caps.has_SCART = (rev != 10);

View File

@@ -82,7 +82,7 @@ int cs_get_tsp_config(unsigned int port, tsrouter_tsp_config_t *tsp_config);
unsigned long long cs_get_serial(void); unsigned long long cs_get_serial(void);
unsigned int cs_get_revision(void); unsigned int cs_get_revision(void);
/* Dummy function for compatibility with hd2 */ /* Dummy function for compatibility with hd2 */
unsigned int cs_get_chip_type(void); //unsigned int cs_get_chip_type(void);
// library version functions // library version functions