mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
neutrino: Rename hardware defined macros for coolstream stb
BOXMODEL_NEVIS => BOXMODEL_CS_HD1
BOXMODEL_APOLLO => BOXMODEL_CS_HD2
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0d66899cbd
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-12 (Sun, 12 Feb 2017)
Origin message was:
------------------
neutrino: Rename hardware defined macros for coolstream stb
BOXMODEL_NEVIS => BOXMODEL_CS_HD1
BOXMODEL_APOLLO => BOXMODEL_CS_HD2
------------------
This commit was generated by Migit
This commit is contained in:
@@ -177,7 +177,7 @@ bool CFlashTool::program( const std::string & filename, int globalProgressEndEra
|
||||
std::string flashfile;
|
||||
|
||||
bool skipCopy = false;
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
if (strcmp(dn, "/tmp") != 0) {
|
||||
uint64_t btotal = 0, bused = 0;
|
||||
long bsize = 0;
|
||||
@@ -680,7 +680,7 @@ int CMTDInfo::getMTDEraseSize( const std::string & filename )
|
||||
|
||||
std::string CMTDInfo::findMTDsystem()
|
||||
{
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
std::string sysfs = "root0";
|
||||
#else
|
||||
std::string sysfs = "systemFS";
|
||||
|
@@ -528,7 +528,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
||||
CServiceManager::getInstance()->SatelliteList().clear();
|
||||
CZapit::getInstance()->LoadSettings();
|
||||
CZapit::getInstance()->GetConfig(zapitCfg);
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
/* flag file to erase /var partition on factory reset,
|
||||
will be done by init scripts */
|
||||
FILE * fp = fopen("/var_init/etc/.reset", "w");
|
||||
@@ -566,7 +566,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
|
||||
void CFanControlNotifier::setSpeed(unsigned int speed)
|
||||
{
|
||||
printf("FAN Speed %d\n", speed);
|
||||
#ifndef BOXMODEL_APOLLO
|
||||
#ifndef BOXMODEL_CS_HD2
|
||||
int cfd = open("/dev/cs_control", O_RDONLY);
|
||||
if(cfd < 0) {
|
||||
perror("Cannot open /dev/cs_control");
|
||||
@@ -607,7 +607,7 @@ bool CAutoModeNotifier::changeNotify(const neutrino_locale_t /*OptionName*/, voi
|
||||
memset(modes, 0, sizeof(int)*VIDEO_STD_MAX+1);
|
||||
|
||||
for(i = 0; i < VIDEOMENU_VIDEOMODE_OPTION_COUNT; i++)
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
modes[VIDEOMENU_VIDEOMODE_OPTIONS[i].key] = g_settings.enabled_auto_modes[i];
|
||||
#else
|
||||
modes[VIDEOMENU_VIDEOMODE_OPTIONS[i].key] = g_settings.enabled_video_modes[i];
|
||||
|
@@ -42,7 +42,7 @@
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 16
|
||||
#else
|
||||
#define VIDEOMENU_VIDEOMODE_OPTION_COUNT 12
|
||||
@@ -173,7 +173,7 @@ struct SNeutrinoSettings
|
||||
int analog_mode1;
|
||||
int analog_mode2;
|
||||
int video_43mode;
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
int brightness;
|
||||
int contrast;
|
||||
int saturation;
|
||||
|
Reference in New Issue
Block a user