From 490ecd582b6d743d97c13ac5821e474bd29f2c3f Mon Sep 17 00:00:00 2001 From: BPanther Date: Thu, 27 Sep 2018 13:23:43 +0200 Subject: [PATCH] fix/update hwcaps for hl101 Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/2644bc3a78f4b1f5abdac13808a445955ed8c294 Author: BPanther Date: 2018-09-27 (Thu, 27 Sep 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/video.cpp | 2 +- libduckbox/hardware_caps.c | 8 ++++++-- libeplayer3-arm/main/exteplayer.c | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index 1255b0c..f9991d0 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -379,7 +379,7 @@ int cVideo::setAspectRatio(int aspect, int mode) { static const char *a[] = { "n/a", "4:3", "14:9", "16:9" }; // static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" }; - static const char *m[] = { "letterbox", "panscan", "bestfit", "nonlinear", "(unset)" }; + static const char *m[] = { "letterbox", "panscan", "bestfit", "nonlinear", "(unset)" }; int n; int mo = (mode < 0||mode > 3) ? 4 : mode; diff --git a/libduckbox/hardware_caps.c b/libduckbox/hardware_caps.c index 643a963..5382929 100644 --- a/libduckbox/hardware_caps.c +++ b/libduckbox/hardware_caps.c @@ -282,10 +282,14 @@ hw_caps_t *get_hwcaps(void) strcpy(caps.boxname, buf); caps.can_shutdown = 1; caps.has_HDMI = 1; - caps.has_SCART = 2; - caps.can_cec = 0; + caps.has_SCART = 1; + caps.has_SCART_input = 1; + caps.can_cec = 1; caps.has_fan = 0; caps.has_CI = 2; + caps.display_can_set_brightness = 1; + caps.display_type = HW_DISPLAY_LINE_TEXT; + caps.display_xres = 8; } else if (!strncmp(buf, "arivalink200", 12)) { strcpy(caps.boxvendor, "DUCKBOX"); diff --git a/libeplayer3-arm/main/exteplayer.c b/libeplayer3-arm/main/exteplayer.c index 019a91d..8ebce36 100644 --- a/libeplayer3-arm/main/exteplayer.c +++ b/libeplayer3-arm/main/exteplayer.c @@ -678,7 +678,7 @@ static int ParseParams(int argc, char *argv[], PlayFiles_t *playbackFiles, int * int main(int argc, char *argv[]) { - system("echo 'encoder' > /proc/stb/avs/0/input"); + system("echo 'encoder' > /proc/stb/avs/0/input"); pthread_t termThread; int isTermThreadStarted = 0;