mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
- add display_can_deepstandby member
Signed-off-by: Thilo Graf <dbt@novatux.de>
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.display_can_deepstandby = 0;
|
||||||
strcpy(caps.boxvendor, "AZBox");
|
strcpy(caps.boxvendor, "AZBox");
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
char buf[64];
|
char buf[64];
|
||||||
|
@@ -32,6 +32,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.display_can_deepstandby = 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 display_can_deepstandby;
|
||||||
int can_set_display_brightness;
|
int can_set_display_brightness;
|
||||||
char boxvendor[64];
|
char boxvendor[64];
|
||||||
char boxname[64];
|
char boxname[64];
|
||||||
|
@@ -34,6 +34,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.can_shutdown = 1;
|
caps.can_shutdown = 1;
|
||||||
caps.display_xres = 16;
|
caps.display_xres = 16;
|
||||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
caps.can_set_display_brightness = 1;
|
caps.can_set_display_brightness = 1;
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
strcpy(caps.boxvendor, "AX-Technologies");
|
strcpy(caps.boxvendor, "AX-Technologies");
|
||||||
|
@@ -30,6 +30,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
int len = -1;
|
int len = -1;
|
||||||
int fd = open("/proc/stb/info/model", O_RDONLY);
|
int fd = open("/proc/stb/info/model", O_RDONLY);
|
||||||
caps.can_set_display_brightness = 0;
|
caps.can_set_display_brightness = 0;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
len = read(fd, buf, sizeof(buf) - 1);
|
len = read(fd, buf, sizeof(buf) - 1);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
@@ -35,6 +35,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
caps.can_shutdown = 1;
|
caps.can_shutdown = 1;
|
||||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||||
caps.can_set_display_brightness = 0;
|
caps.can_set_display_brightness = 0;
|
||||||
|
caps.display_can_deepstandby = 0;
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.has_SCART = 1;
|
caps.has_SCART = 1;
|
||||||
caps.display_xres = 4;
|
caps.display_xres = 4;
|
||||||
|
@@ -20,6 +20,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,
|
||||||
|
.display_can_deepstandby = 0;
|
||||||
.boxvendor = "Armas",
|
.boxvendor = "Armas",
|
||||||
.boxname = "TripleDragon"
|
.boxname = "TripleDragon"
|
||||||
};
|
};
|
||||||
|
@@ -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.display_can_deepstandby = 0;
|
||||||
strcpy(caps.boxvendor, "Raspberry");
|
strcpy(caps.boxvendor, "Raspberry");
|
||||||
strcpy(caps.boxname, "Pi");
|
strcpy(caps.boxname, "Pi");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user