hw_caps: add caps for 14:9 AR and broken tuner driver

This commit is contained in:
Stefan Seyfried
2017-02-26 19:43:42 +01:00
parent d812ac52c5
commit 4aed33ff9c
3 changed files with 8 additions and 0 deletions

View File

@@ -30,6 +30,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;

View File

@@ -37,6 +37,7 @@ hw_caps_t *get_hwcaps(void)
caps.has_HDMI = 1;
caps.has_SCART = 1;
caps.display_xres = 4;
caps.force_tuner_2G = 1; /* I have patched the drivers to fix this, but not everyone has */
strcpy(caps.boxvendor, "SPARK");
const char *tmp;
char buf[1024];

View File

@@ -17,6 +17,10 @@ static hw_caps_t caps = {
.has_YUV_cinch = 0,
.can_shutdown = 0,
.can_cec = 0,
.can_ar_14_9 = 0,
.can_ps_14_9 = 1,
.can_set_display_brightness = 0,
.force_tuner_2G = 0,
.display_type = HW_DISPLAY_GFX,
.display_xres = 128,
.display_yres = 64,