mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
fix compil
This commit is contained in:
@@ -30,6 +30,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.display_xres = 8;
|
caps.display_xres = 8;
|
||||||
|
caps.can_set_display_brightness = 0;
|
||||||
strcpy(caps.boxvendor, "AZBox");
|
strcpy(caps.boxvendor, "AZBox");
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
char buf[64];
|
char buf[64];
|
||||||
|
@@ -28,6 +28,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.display_xres = 8;
|
caps.display_xres = 8;
|
||||||
|
caps.can_set_display_brightness = 0;
|
||||||
strcpy(caps.boxvendor, "Generic");
|
strcpy(caps.boxvendor, "Generic");
|
||||||
strcpy(caps.boxname, "PC");
|
strcpy(caps.boxname, "PC");
|
||||||
if (! uname(&u))
|
if (! uname(&u))
|
||||||
|
@@ -36,6 +36,7 @@ typedef struct hw_caps
|
|||||||
display_type_t display_type;
|
display_type_t display_type;
|
||||||
int display_xres; /* x resolution or chars per line */
|
int display_xres; /* x resolution or chars per line */
|
||||||
int display_yres;
|
int display_yres;
|
||||||
|
int can_set_display_brightness;
|
||||||
char boxvendor[64];
|
char boxvendor[64];
|
||||||
char boxname[64];
|
char boxname[64];
|
||||||
char boxarch[64];
|
char boxarch[64];
|
||||||
|
@@ -37,6 +37,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.has_SCART = 1;
|
caps.has_SCART = 1;
|
||||||
caps.display_xres = 4;
|
caps.display_xres = 4;
|
||||||
|
caps.can_set_display_brightness = 0;
|
||||||
caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */
|
caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */
|
||||||
strcpy(caps.boxvendor, "SPARK");
|
strcpy(caps.boxvendor, "SPARK");
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
|
@@ -23,6 +23,7 @@ static hw_caps_t caps = {
|
|||||||
.display_type = HW_DISPLAY_GFX,
|
.display_type = HW_DISPLAY_GFX,
|
||||||
.display_xres = 128,
|
.display_xres = 128,
|
||||||
.display_yres = 64,
|
.display_yres = 64,
|
||||||
|
.can_set_display_brightness = 0,
|
||||||
.boxvendor = "Armas",
|
.boxvendor = "Armas",
|
||||||
.boxname = "TripleDragon",
|
.boxname = "TripleDragon",
|
||||||
.boxarch = "ppc405"
|
.boxarch = "ppc405"
|
||||||
|
@@ -29,6 +29,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.display_xres = 8;
|
caps.display_xres = 8;
|
||||||
|
caps.can_set_display_brightness = 0;
|
||||||
strcpy(caps.boxvendor, "Raspberry");
|
strcpy(caps.boxvendor, "Raspberry");
|
||||||
strcpy(caps.boxname, "Pi");
|
strcpy(caps.boxname, "Pi");
|
||||||
if (! uname(&u))
|
if (! uname(&u))
|
||||||
|
Reference in New Issue
Block a user