From b2c32ac24bc34c007feda477284e346e1038e6cd Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 4 Mar 2017 20:28:21 +0100 Subject: [PATCH] hw_caps: add caps for 14:9 AR and broken tuner driver Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3a7a20281851be6589d6a67877440cd66ac60571 Author: Stefan Seyfried Date: 2017-03-04 (Sat, 04 Mar 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- lib/libcoolstream/hardware_caps.cpp | 6 ++++++ lib/libcoolstream/hardware_caps.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/lib/libcoolstream/hardware_caps.cpp b/lib/libcoolstream/hardware_caps.cpp index 879efffc3..216a6dcae 100644 --- a/lib/libcoolstream/hardware_caps.cpp +++ b/lib/libcoolstream/hardware_caps.cpp @@ -29,6 +29,9 @@ hw_caps_t *get_hwcaps(void) { caps.display_xres = 12; caps.display_yres = 0; caps.can_set_display_brightness = 1; + caps.can_ar_14_9 = 1; + caps.can_ps_14_9 = 1; + caps.force_tuner_2G = 0; strcpy(caps.boxvendor, "Coolstream"); /* list of boxnames from neutrinoyparser.cpp */ strcpy(caps.boxarch, "Nevis"); @@ -36,9 +39,11 @@ hw_caps_t *get_hwcaps(void) { case 6: case 7: // Black Stallion Edition strcpy(caps.boxname, "HD1"); + caps.force_tuner_2G = 1; break; case 8: strcpy(caps.boxname, "Neo"); + caps.force_tuner_2G = 1; break; case 9: strcpy(caps.boxname, "Tank"); @@ -46,6 +51,7 @@ hw_caps_t *get_hwcaps(void) { break; case 10: strcpy(caps.boxname, "Zee"); + caps.force_tuner_2G = 1; break; case 11: strcpy(caps.boxname, "Trinity"); diff --git a/lib/libcoolstream/hardware_caps.h b/lib/libcoolstream/hardware_caps.h index 69865e954..aaea1334e 100644 --- a/lib/libcoolstream/hardware_caps.h +++ b/lib/libcoolstream/hardware_caps.h @@ -27,6 +27,9 @@ typedef struct hw_caps int has_YUV_cinch; int can_shutdown; int can_cec; + int can_ar_14_9; /* video drivers have 14:9 aspect ratio mode */ + int can_ps_14_9; /* video drivers have 14:9 panscan mode */ + int force_tuner_2G; /* force DVB-S2 even though driver may not advertise it */ display_type_t display_type; int display_xres; /* x resolution or chars per line */ int display_yres;