mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
HD1: Workaround for missing cs_get_chip_type
This commit is contained in:
@@ -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 ∩︀
|
return ∩︀
|
||||||
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);
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user