add display_can_deepstandby member

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: master
Commit: 3b7613b778
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-01 (Wed, 01 Nov 2017)

Origin message was:
------------------
- add display_can_deepstandby member

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-01 15:09:42 +01:00
committed by Thilo Graf
parent 5aec4de05d
commit 8d43608efd
8 changed files with 8 additions and 0 deletions

View File

@@ -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];

View File

@@ -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))

View File

@@ -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];

View File

@@ -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");

View File

@@ -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);

View File

@@ -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;

View File

@@ -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"
}; };

View File

@@ -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");