implement shutdown handling for azbox

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2be328ade2
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-06-23 (Sat, 23 Jun 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-06-23 22:23:02 +02:00
parent 33e3769bd7
commit bd7c2a5a04
3 changed files with 4 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ int CMiscMenue::showMiscSettingsMenu()
misc_menue->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_GENERAL, true, NULL, misc_menue_general, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED)); misc_menue->addItem(new CMenuForwarder(LOCALE_MISCSETTINGS_GENERAL, true, NULL, misc_menue_general, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED));
//energy, shutdown //energy, shutdown
#ifndef HAVE_SPARK_HARDWARE #if !defined(HAVE_SPARK_HARDWARE) && !defined(HAVE_AZBOX_HARDWARE)
if(cs_get_revision() > 7) if(cs_get_revision() > 7)
#endif #endif
{ {

View File

@@ -218,7 +218,7 @@ static void initGlobals(void)
g_Radiotext = NULL; g_Radiotext = NULL;
g_volume = NULL; g_volume = NULL;
#if HAVE_SPARK_HARDWARE #if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
/* spark has revision == 1 like tripledragon for now */ /* spark has revision == 1 like tripledragon for now */
can_deepstandby = true; can_deepstandby = true;
#else #else
@@ -655,7 +655,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
#if HAVE_TRIPLEDRAGON #if HAVE_TRIPLEDRAGON
g_settings.screen_preset = 0; /* does not make sense to have two configurations for that... */ g_settings.screen_preset = 0; /* does not make sense to have two configurations for that... */
#endif #endif
#if HAVE_SPARK_HARDWARE #if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
g_settings.screen_preset = 1; /* spark is now always using 1280x720 framebuffer */ g_settings.screen_preset = 1; /* spark is now always using 1280x720 framebuffer */
#endif #endif
g_settings.screen_StartX = g_settings.screen_preset ? g_settings.screen_StartX_lcd : g_settings.screen_StartX_crt; g_settings.screen_StartX = g_settings.screen_preset ? g_settings.screen_StartX_lcd : g_settings.screen_StartX_crt;

View File

@@ -132,7 +132,7 @@ void CNeutrinoApp::InitMenuMain()
dprintf(DEBUG_DEBUG, "init mainmenue\n"); dprintf(DEBUG_DEBUG, "init mainmenue\n");
unsigned int system_rev = cs_get_revision(); unsigned int system_rev = cs_get_revision();
#if HAVE_SPARK_HARDWARE #if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE
system_rev = 8; // :-) system_rev = 8; // :-)
#endif #endif