From b389713f24e4835c6895d8424feaca107b064a83 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 28 Oct 2019 22:34:11 +0100 Subject: [PATCH] vuplus: allow to control led brightness for zero4k and uno4k maybe this is also usefull for the other vuplus4k boxes Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/cd09c780b7bad33b926c1b915a989a725803b8c3 Author: vanhofen Date: 2019-10-28 (Mon, 28 Oct 2019) Origin message was: ------------------ - vuplus: allow to control led brightness for zero4k and uno4k maybe this is also usefull for the other vuplus4k boxes ------------------ This commit was generated by Migit --- include/hardware_caps.h | 1 + libarmbox/hardware_caps.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/hardware_caps.h b/include/hardware_caps.h index 39079dd..44c3a98 100644 --- a/include/hardware_caps.h +++ b/include/hardware_caps.h @@ -15,6 +15,7 @@ extern "C" { typedef enum { HW_DISPLAY_NONE, + HW_DISPLAY_LED_ONLY, HW_DISPLAY_LED_NUM, /* simple 7 segment LED display */ HW_DISPLAY_LINE_TEXT, /* 1 line text display */ HW_DISPLAY_GFX diff --git a/libarmbox/hardware_caps.c b/libarmbox/hardware_caps.c index 95cb76d..64e3eb6 100644 --- a/libarmbox/hardware_caps.c +++ b/libarmbox/hardware_caps.c @@ -88,9 +88,9 @@ hw_caps_t *get_hwcaps(void) caps.has_CI = 1; caps.can_cec = 1; caps.can_shutdown = 1; - caps.display_type = HW_DISPLAY_NONE; + caps.display_type = HW_DISPLAY_LED_ONLY; caps.display_can_deepstandby = 0; - caps.display_can_set_brightness = 0; + caps.display_can_set_brightness = 1; caps.display_has_statusline = 0; caps.has_button_timer = 1; caps.has_button_vformat = 0; @@ -122,9 +122,9 @@ hw_caps_t *get_hwcaps(void) caps.has_CI = 1; caps.can_cec = 1; caps.can_shutdown = 1; - caps.display_type = HW_DISPLAY_NONE; + caps.display_type = HW_DISPLAY_LED_ONLY; caps.display_can_deepstandby = 0; - caps.display_can_set_brightness = 0; + caps.display_can_set_brightness = 1; caps.display_has_statusline = 0; caps.has_button_timer = 1; caps.has_button_vformat = 0;