mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
hardware_caps.cpp: Add hw ifdef for cs_get_chip_type()
Origin commit data
------------------
Branch: ni/coolstream
Commit: f5cdaff282
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-03-09 (Thu, 09 Mar 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -18,7 +18,6 @@ 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();
|
|
||||||
caps.has_fan = (rev < 8);
|
caps.has_fan = (rev < 8);
|
||||||
caps.has_HDMI = 1;
|
caps.has_HDMI = 1;
|
||||||
caps.has_SCART = (rev != 10);
|
caps.has_SCART = (rev != 10);
|
||||||
@@ -54,8 +53,9 @@ hw_caps_t *get_hwcaps(void) {
|
|||||||
strcpy(caps.boxname, "Zee");
|
strcpy(caps.boxname, "Zee");
|
||||||
caps.force_tuner_2G = 1;
|
caps.force_tuner_2G = 1;
|
||||||
break;
|
break;
|
||||||
|
#ifdef BOXMODEL_CS_HD2
|
||||||
case 11:
|
case 11:
|
||||||
if (chip == 33904 /*0x8470*/)
|
if (cs_get_chip_type() == CS_CHIP_SHINER)
|
||||||
{
|
{
|
||||||
strcpy(caps.boxname, "Trinity");
|
strcpy(caps.boxname, "Trinity");
|
||||||
strcpy(caps.boxarch, "Shiner");
|
strcpy(caps.boxarch, "Shiner");
|
||||||
@@ -78,6 +78,7 @@ hw_caps_t *get_hwcaps(void) {
|
|||||||
strcpy(caps.boxname, "Trinity Duo");
|
strcpy(caps.boxname, "Trinity Duo");
|
||||||
strcpy(caps.boxarch, "Kronos");
|
strcpy(caps.boxarch, "Kronos");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
strcpy(caps.boxname, "UNKNOWN_BOX");
|
strcpy(caps.boxname, "UNKNOWN_BOX");
|
||||||
strcpy(caps.boxarch, "Unknown");
|
strcpy(caps.boxarch, "Unknown");
|
||||||
|
Reference in New Issue
Block a user