From d1569e611438ce655d9c434e2627bba195bfd5cc Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 15 Jun 2017 13:20:22 +0200 Subject: [PATCH] fix compil --- azbox/hardware_caps.c | 1 + generic-pc/hardware_caps.c | 1 + include/hardware_caps.h | 1 + libspark/hardware_caps.c | 1 + libtriple/hardware_caps.c | 1 + raspi/hardware_caps.c | 1 + 6 files changed, 6 insertions(+) diff --git a/azbox/hardware_caps.c b/azbox/hardware_caps.c index 7b3d90a..da34ce1 100644 --- a/azbox/hardware_caps.c +++ b/azbox/hardware_caps.c @@ -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.can_set_display_brightness = 0; strcpy(caps.boxvendor, "AZBox"); const char *tmp; char buf[64]; diff --git a/generic-pc/hardware_caps.c b/generic-pc/hardware_caps.c index 6f76bdc..f0b9b8b 100644 --- a/generic-pc/hardware_caps.c +++ b/generic-pc/hardware_caps.c @@ -28,6 +28,7 @@ hw_caps_t *get_hwcaps(void) caps.display_type = HW_DISPLAY_LINE_TEXT; caps.has_HDMI = 1; caps.display_xres = 8; + caps.can_set_display_brightness = 0; strcpy(caps.boxvendor, "Generic"); strcpy(caps.boxname, "PC"); if (! uname(&u)) diff --git a/include/hardware_caps.h b/include/hardware_caps.h index 46c1c34..b6ec28f 100644 --- a/include/hardware_caps.h +++ b/include/hardware_caps.h @@ -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 can_set_display_brightness; char boxvendor[64]; char boxname[64]; char boxarch[64]; diff --git a/libspark/hardware_caps.c b/libspark/hardware_caps.c index 3f082fd..8be0b29 100644 --- a/libspark/hardware_caps.c +++ b/libspark/hardware_caps.c @@ -37,6 +37,7 @@ hw_caps_t *get_hwcaps(void) caps.has_HDMI = 1; caps.has_SCART = 1; 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 */ strcpy(caps.boxvendor, "SPARK"); const char *tmp; diff --git a/libtriple/hardware_caps.c b/libtriple/hardware_caps.c index fcc9dbd..79c7977 100644 --- a/libtriple/hardware_caps.c +++ b/libtriple/hardware_caps.c @@ -23,6 +23,7 @@ static hw_caps_t caps = { .display_type = HW_DISPLAY_GFX, .display_xres = 128, .display_yres = 64, + .can_set_display_brightness = 0, .boxvendor = "Armas", .boxname = "TripleDragon", .boxarch = "ppc405" diff --git a/raspi/hardware_caps.c b/raspi/hardware_caps.c index d04d836..34a15f7 100644 --- a/raspi/hardware_caps.c +++ b/raspi/hardware_caps.c @@ -29,6 +29,7 @@ hw_caps_t *get_hwcaps(void) caps.display_type = HW_DISPLAY_LINE_TEXT; caps.has_HDMI = 1; caps.display_xres = 8; + caps.can_set_display_brightness = 0; strcpy(caps.boxvendor, "Raspberry"); strcpy(caps.boxname, "Pi"); if (! uname(&u))