mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
add display_can_deepstandby member
Origin commit data
------------------
Branch: master
Commit: c6b7cc8f99
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-01 (Wed, 01 Nov 2017)
Origin message was:
------------------
- add display_can_deepstandby member
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -30,6 +30,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 8;
|
||||
caps.display_can_deepstandby = 0;
|
||||
strcpy(caps.boxvendor, "AZBox");
|
||||
const char *tmp;
|
||||
char buf[64];
|
||||
|
@@ -32,6 +32,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 8;
|
||||
caps.display_can_deepstandby = 0;
|
||||
strcpy(caps.boxvendor, "Generic");
|
||||
strcpy(caps.boxname, "PC");
|
||||
if (! uname(&u))
|
||||
|
@@ -36,6 +36,7 @@ typedef struct hw_caps
|
||||
display_type_t display_type;
|
||||
int display_xres; /* x resolution or chars per line */
|
||||
int display_yres;
|
||||
int display_can_deepstandby;
|
||||
int can_set_display_brightness;
|
||||
char boxvendor[64];
|
||||
char boxname[64];
|
||||
|
@@ -34,6 +34,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 16;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.can_set_display_brightness = 1;
|
||||
caps.has_HDMI = 1;
|
||||
strcpy(caps.boxvendor, "AX-Technologies");
|
||||
|
@@ -30,6 +30,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
int len = -1;
|
||||
int fd = open("/proc/stb/info/model", O_RDONLY);
|
||||
caps.can_set_display_brightness = 0;
|
||||
caps.display_can_deepstandby = 0;
|
||||
if (fd != -1) {
|
||||
len = read(fd, buf, sizeof(buf) - 1);
|
||||
close(fd);
|
||||
|
@@ -35,6 +35,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
caps.can_set_display_brightness = 0;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.has_HDMI = 1;
|
||||
caps.has_SCART = 1;
|
||||
caps.display_xres = 4;
|
||||
|
@@ -20,6 +20,7 @@ static hw_caps_t caps = {
|
||||
.display_type = HW_DISPLAY_GFX,
|
||||
.display_xres = 128,
|
||||
.display_yres = 64,
|
||||
.display_can_deepstandby = 0;
|
||||
.boxvendor = "Armas",
|
||||
.boxname = "TripleDragon"
|
||||
};
|
||||
|
@@ -30,6 +30,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.has_HDMI = 1;
|
||||
caps.display_xres = 8;
|
||||
caps.display_can_deepstandby = 0;
|
||||
strcpy(caps.boxvendor, "Raspberry");
|
||||
strcpy(caps.boxname, "Pi");
|
||||
|
||||
|
Reference in New Issue
Block a user