adopt hw_caps

This commit is contained in:
TangoCash
2017-03-10 21:38:31 +01:00
parent c4c5564b91
commit ae3cc86f0b
3 changed files with 7 additions and 0 deletions

View File

@@ -30,11 +30,16 @@ typedef struct hw_caps
int has_YUV_cinch; int has_YUV_cinch;
int can_shutdown; int can_shutdown;
int can_cec; 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; display_type_t display_type;
int display_xres; /* x resolution or chars per line */ int display_xres; /* x resolution or chars per line */
int display_yres; int display_yres;
int can_set_display_brightness;
char boxvendor[64]; char boxvendor[64];
char boxname[64]; char boxname[64];
char boxarch[64];
int boxtype; int boxtype;
int has_CI; int has_CI;
} hw_caps_t; } hw_caps_t;

View File

@@ -283,5 +283,6 @@ hw_caps_t *get_hwcaps(void)
else else
strcpy(caps.boxname, "(unknown model)"); strcpy(caps.boxname, "(unknown model)");
strcpy(caps.boxarch,caps.boxname);
return ∩︀ return ∩︀
} }

View File

@@ -155,5 +155,6 @@ hw_caps_t *get_hwcaps(void)
tmp = "(NO STB_ID FOUND)"; tmp = "(NO STB_ID FOUND)";
strcpy(caps.boxname, tmp); strcpy(caps.boxname, tmp);
} }
strcpy(caps.boxarch,caps.boxname);
return ∩︀ return ∩︀
} }