mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
HD1: Workaround for missing cs_get_chip_type
Origin commit data
------------------
Branch: ni/coolstream
Commit: a6fe60d60a
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-06-07 (Wed, 07 Jun 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*
|
||||
* License: GPL v2 or later
|
||||
*/
|
||||
#include <config.h>
|
||||
#include "cs_api.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -20,7 +21,10 @@ hw_caps_t *get_hwcaps(void) {
|
||||
if (initialized)
|
||||
return ∩︀
|
||||
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_HDMI = 1;
|
||||
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 int cs_get_revision(void);
|
||||
/* Dummy function for compatibility with hd2 */
|
||||
unsigned int cs_get_chip_type(void);
|
||||
//unsigned int cs_get_chip_type(void);
|
||||
|
||||
|
||||
// library version functions
|
||||
|
Reference in New Issue
Block a user