mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
hw_caps: fix compile on coolstream
Origin commit data
------------------
Commit: 1ae305953c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)
This commit is contained in:
@@ -10,10 +10,8 @@
|
||||
#define __HARDWARE_CAPS_H__
|
||||
|
||||
#include "cs_api.h"
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
typedef enum
|
||||
{
|
||||
HW_DISPLAY_NONE,
|
||||
@@ -40,34 +38,5 @@ typedef struct hw_caps
|
||||
char boxname[64];
|
||||
} hw_caps_t;
|
||||
|
||||
hw_caps_t *get_hwcaps(void) {
|
||||
static int initialized = 0;
|
||||
static hw_caps_t caps;
|
||||
if (initialized)
|
||||
return ∩︀
|
||||
caps.has_fan = (cs_get_revision() < 8);
|
||||
caps.has_HDMI = 1;
|
||||
caps.has_SCART = (cs_get_revision() != 10);
|
||||
caps.has_SCART_input = 0;
|
||||
caps.has_YUV_cinch = 1;
|
||||
caps.can_shutdown = (cs_get_revision() > 7);
|
||||
caps.can_cec = 1;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.display_xres = 12;
|
||||
caps.display_yres = 0;
|
||||
caps.can_set_display_brightness = 1;
|
||||
strcpy(caps.boxvendor, "Coolstream");
|
||||
if (cs_get_revision() < 8)
|
||||
strcpy(caps.boxname, "HD1");
|
||||
else if (cs_get_revision() == 10)
|
||||
strcpy(caps.boxname, "ZEE");
|
||||
else
|
||||
strcpy(caps.boxname, "NEO");
|
||||
initialized = 1;
|
||||
return ∩︀
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
hw_caps_t *get_hwcaps(void);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user