mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
Reset CI after standby option
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@493 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 60d6db15d4
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-03-17 (Wed, 17 Mar 2010)
This commit is contained in:
@@ -1362,6 +1362,7 @@ cam.init_ok CAM init complete
|
||||
cam.waiting Waiting for CI answer
|
||||
cam.timeout Timeout waiting CI menu ready
|
||||
cam.reset Reset
|
||||
cam.reset_standby Reset after standby
|
||||
subtitles.head Subtitles
|
||||
subtitles.stop Stop subtitles
|
||||
favorites.copy Copy bouquet to Favorites
|
||||
|
@@ -81,14 +81,26 @@ printf("CCAMMenuHandler::exec: actionkey %s\n", actionkey.c_str());
|
||||
} else if(actionkey == "cam2") {
|
||||
return doMenu(1);
|
||||
} else if(actionkey == "reset1") {
|
||||
ci->Reset(0);
|
||||
if(ci->CamPresent(0))
|
||||
ci->Reset(0);
|
||||
} else if(actionkey == "reset2") {
|
||||
ci->Reset(1);
|
||||
if(ci->CamPresent(1))
|
||||
ci->Reset(1);
|
||||
}
|
||||
|
||||
if(!parent)
|
||||
return 0;
|
||||
|
||||
return doMainMenu ();
|
||||
}
|
||||
|
||||
#define OPTIONS_OFF0_ON1_OPTION_COUNT 2
|
||||
const CMenuOptionChooser::keyval OPTIONS_OFF0_ON1_OPTIONS[OPTIONS_OFF0_ON1_OPTION_COUNT] =
|
||||
{
|
||||
{ 0, LOCALE_OPTIONS_OFF },
|
||||
{ 1, LOCALE_OPTIONS_ON }
|
||||
};
|
||||
|
||||
int CCAMMenuHandler::doMainMenu ()
|
||||
{
|
||||
int ret;
|
||||
@@ -104,6 +116,9 @@ int CCAMMenuHandler::doMainMenu ()
|
||||
cammenu->addItem( GenericMenuBack );
|
||||
cammenu->addItem( GenericMenuSeparatorLine );
|
||||
|
||||
cammenu->addItem( new CMenuOptionChooser(LOCALE_CAM_RESET_STANDBY, &g_settings.ci_standby_reset, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true));
|
||||
cammenu->addItem( GenericMenuSeparatorLine );
|
||||
|
||||
CMenuWidget * tempMenu;
|
||||
if(ci->CamPresent(0)) {
|
||||
ci->GetName(0, name1);
|
||||
|
@@ -776,6 +776,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.cpufreq = configfile.getInt32("cpufreq", 0);
|
||||
g_settings.standby_cpufreq = configfile.getInt32("standby_cpufreq", 100);
|
||||
g_settings.rounded_corners = configfile.getInt32("rounded_corners", 1);
|
||||
g_settings.ci_standby_reset = configfile.getInt32("ci_standby_reset", 0);
|
||||
|
||||
//FIXME
|
||||
g_settings.cpufreq = 0;
|
||||
@@ -1293,6 +1294,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
configfile.setInt32( "cpufreq", g_settings.cpufreq);
|
||||
configfile.setInt32( "standby_cpufreq", g_settings.standby_cpufreq);
|
||||
configfile.setInt32("rounded_corners", g_settings.rounded_corners);
|
||||
configfile.setInt32("ci_standby_reset", g_settings.ci_standby_reset);
|
||||
|
||||
configfile.setInt32( "make_hd_list", g_settings.make_hd_list);
|
||||
//fb-alpha values for gtx
|
||||
@@ -4005,6 +4007,11 @@ void CNeutrinoApp::standbyMode( bool bOnOff )
|
||||
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
||||
|
||||
powerManager->SetStandby(false, false);
|
||||
|
||||
if(g_settings.ci_standby_reset) {
|
||||
g_CamHandler->exec(NULL, "reset1");
|
||||
g_CamHandler->exec(NULL, "reset2");
|
||||
}
|
||||
frameBuffer->setActive(true);
|
||||
|
||||
funNotifier->changeNotify(NONEXISTANT_LOCALE, (void*) &g_settings.fan_speed);
|
||||
|
@@ -1378,6 +1378,7 @@ typedef enum {
|
||||
LOCALE_CAM_WAITING,
|
||||
LOCALE_CAM_TIMEOUT,
|
||||
LOCALE_CAM_RESET,
|
||||
LOCALE_CAM_RESET_STANDBY,
|
||||
LOCALE_SUBTITLES_HEAD,
|
||||
LOCALE_SUBTITLES_STOP,
|
||||
LOCALE_FAN_SPEED,
|
||||
|
@@ -1378,6 +1378,7 @@ const char *locale_real_names[] = {
|
||||
"cam.waiting",
|
||||
"cam.timeout",
|
||||
"cam.reset",
|
||||
"cam.reset_standby",
|
||||
"subtitles.head",
|
||||
"subtitles.stop",
|
||||
"fan_speed",
|
||||
|
@@ -91,6 +91,7 @@ struct SNeutrinoSettings
|
||||
int avsync;
|
||||
int clockrec;
|
||||
int rounded_corners;
|
||||
int ci_standby_reset;
|
||||
|
||||
//vcr
|
||||
int vcr_AutoSwitch;
|
||||
|
Reference in New Issue
Block a user