From 69a371a709477772d7aaecbd0da52f0462aac86a Mon Sep 17 00:00:00 2001 From: svenhoefer 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 Conflicts: libarmbox/hardware_caps.c Signed-off-by: Thilo Graf TODO: Maybe this commit makes behavior broken on boxes with line display eg. hd51. Observed in relation with simple_display.cpp, see neutrino source. --- include/hardware_caps.h | 1 + libarmbox/hardware_caps.c | 56 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 55 insertions(+), 2 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 07a3a05..faa891d 100644 --- a/libarmbox/hardware_caps.c +++ b/libarmbox/hardware_caps.c @@ -65,14 +65,32 @@ hw_caps_t *get_hwcaps(void) strcpy(caps.boxname, "DUO4K"); strcpy(caps.boxarch, "BCM7278"); #endif +#if BOXMODEL_VUULTIMO4K + initialized = 1; + caps.has_CI = 2; + caps.can_cec = 1; + caps.can_shutdown = 1; + caps.display_xres = 800; + caps.display_yres = 480; + caps.display_type = HW_DISPLAY_GFX; + caps.display_can_deepstandby = 0; // 0 because we use graphlcd/lcd4linux + caps.display_can_set_brightness = 0; // 0 because we use graphlcd/lcd4linux + caps.display_has_statusline = 0; // 0 because we use graphlcd/lcd4linux + caps.has_button_timer = 1; + caps.has_button_vformat = 0; + caps.has_HDMI = 2; + strcpy(caps.boxvendor, "VU+"); + strcpy(caps.boxname, "ULTIMO4K"); + strcpy(caps.boxarch, "BCM7444S"); +#endif #if BOXMODEL_VUZERO4K initialized = 1; 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; @@ -81,6 +99,40 @@ hw_caps_t *get_hwcaps(void) strcpy(caps.boxname, "ZERO4K"); strcpy(caps.boxarch, "BCM72604"); #endif +#if BOXMODEL_VUUNO4KSE + initialized = 1; + caps.has_CI = 1; + caps.can_cec = 1; + caps.can_shutdown = 1; + caps.display_xres = 400; + caps.display_yres = 240; + caps.display_type = HW_DISPLAY_GFX; + caps.display_can_deepstandby = 0; // 0 because we use graphlcd/lcd4linux + caps.display_can_set_brightness = 0; // 0 because we use graphlcd/lcd4linux + caps.display_has_statusline = 0; // 0 because we use graphlcd/lcd4linux + caps.has_button_timer = 1; + caps.has_button_vformat = 0; + caps.has_HDMI = 2; + strcpy(caps.boxvendor, "VU+"); + strcpy(caps.boxname, "UNO4KSE"); + strcpy(caps.boxarch, "BCM7252S"); +#endif +#if BOXMODEL_VUUNO4K + initialized = 1; + caps.has_CI = 1; + caps.can_cec = 1; + caps.can_shutdown = 1; + caps.display_type = HW_DISPLAY_LED_ONLY; + caps.display_can_deepstandby = 0; + caps.display_can_set_brightness = 1; + caps.display_has_statusline = 0; + caps.has_button_timer = 1; + caps.has_button_vformat = 0; + caps.has_HDMI = 1; + strcpy(caps.boxvendor, "VU+"); + strcpy(caps.boxname, "UNO4K"); + strcpy(caps.boxarch, "BCM7252S"); +#endif #if BOXMODEL_HD51 initialized = 1; caps.has_CI = 1;