- hw_caps: introduce can_pip

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-05-29 21:16:57 +02:00
committed by Thilo Graf
parent 06dd9d5f16
commit d7957143ca
2 changed files with 7 additions and 1 deletions

View File

@@ -14,17 +14,21 @@
static int initialized = 0;
static hw_caps_t caps;
hw_caps_t *get_hwcaps(void) {
hw_caps_t *get_hwcaps(void)
{
if (initialized)
return &caps;
int rev = cs_get_revision();
int chip = cs_get_chip_type();
caps.has_fan = (rev < 8); // see dirty part of hw_caps in neutrino.cpp
caps.has_HDMI = 1;
caps.has_HDMI_input = 0;
caps.has_SCART = (rev != 10);
caps.has_SCART_input = 0;
caps.has_YUV_cinch = 1;
caps.can_pip = 1;
caps.can_cpufreq = (rev < 9);
caps.can_shutdown = (rev > 7);
caps.can_cec = 1;
@@ -98,6 +102,7 @@ hw_caps_t *get_hwcaps(void) {
strcpy(caps.boxarch, "Unknown");
fprintf(stderr, "[%s] unhandled box revision %d\n", __func__, rev);
}
initialized = 1;
return &caps;
}

View File

@@ -27,6 +27,7 @@ typedef struct hw_caps
int has_SCART;
int has_SCART_input;
int has_YUV_cinch;
int can_pip;
int can_cpufreq;
int can_shutdown;
int can_cec;