mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
hw_caps: introduce can_pip
Origin commit data
------------------
Branch: ni/coolstream
Commit: 997f5818c1
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-29 (Sat, 29 May 2021)
Origin message was:
------------------
- hw_caps: introduce can_pip
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -14,17 +14,21 @@
|
|||||||
static int initialized = 0;
|
static int initialized = 0;
|
||||||
static hw_caps_t caps;
|
static hw_caps_t caps;
|
||||||
|
|
||||||
hw_caps_t *get_hwcaps(void) {
|
hw_caps_t *get_hwcaps(void)
|
||||||
|
{
|
||||||
if (initialized)
|
if (initialized)
|
||||||
return ∩︀
|
return ∩︀
|
||||||
|
|
||||||
int rev = cs_get_revision();
|
int rev = cs_get_revision();
|
||||||
int chip = cs_get_chip_type();
|
int chip = cs_get_chip_type();
|
||||||
|
|
||||||
caps.has_fan = (rev < 8); // see dirty part of hw_caps in neutrino.cpp
|
caps.has_fan = (rev < 8); // see dirty part of hw_caps in neutrino.cpp
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.has_HDMI_input = 0;
|
caps.has_HDMI_input = 0;
|
||||||
caps.has_SCART = (rev != 10);
|
caps.has_SCART = (rev != 10);
|
||||||
caps.has_SCART_input = 0;
|
caps.has_SCART_input = 0;
|
||||||
caps.has_YUV_cinch = 1;
|
caps.has_YUV_cinch = 1;
|
||||||
|
caps.can_pip = 1;
|
||||||
caps.can_cpufreq = (rev < 9);
|
caps.can_cpufreq = (rev < 9);
|
||||||
caps.can_shutdown = (rev > 7);
|
caps.can_shutdown = (rev > 7);
|
||||||
caps.can_cec = 1;
|
caps.can_cec = 1;
|
||||||
@@ -98,6 +102,7 @@ hw_caps_t *get_hwcaps(void) {
|
|||||||
strcpy(caps.boxarch, "Unknown");
|
strcpy(caps.boxarch, "Unknown");
|
||||||
fprintf(stderr, "[%s] unhandled box revision %d\n", __func__, rev);
|
fprintf(stderr, "[%s] unhandled box revision %d\n", __func__, rev);
|
||||||
}
|
}
|
||||||
|
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
return ∩︀
|
return ∩︀
|
||||||
}
|
}
|
||||||
|
@@ -27,6 +27,7 @@ typedef struct hw_caps
|
|||||||
int has_SCART;
|
int has_SCART;
|
||||||
int has_SCART_input;
|
int has_SCART_input;
|
||||||
int has_YUV_cinch;
|
int has_YUV_cinch;
|
||||||
|
int can_pip;
|
||||||
int can_cpufreq;
|
int can_cpufreq;
|
||||||
int can_shutdown;
|
int can_shutdown;
|
||||||
int can_cec;
|
int can_cec;
|
||||||
|
Reference in New Issue
Block a user