mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
streamts: set CPU freq to 'high' for streaming
This commit is contained in:
committed by
svenhoefer
parent
8c0cb5b96e
commit
c9a3b34810
@@ -58,6 +58,10 @@
|
|||||||
#include <driver/streamts.h>
|
#include <driver/streamts.h>
|
||||||
#include <driver/record.h>
|
#include <driver/record.h>
|
||||||
#include <driver/genpsi.h>
|
#include <driver/genpsi.h>
|
||||||
|
#include <pwrmngr.h>
|
||||||
|
|
||||||
|
/* defined in neutrino.cpp */
|
||||||
|
extern cCpuFreqManager * cpuFreq;
|
||||||
|
|
||||||
/* experimental mode:
|
/* experimental mode:
|
||||||
* stream not possible, if record running
|
* stream not possible, if record running
|
||||||
@@ -334,6 +338,7 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid)
|
|||||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||||
if (mode == NeutrinoMessages::mode_standby && streams.empty()) {
|
if (mode == NeutrinoMessages::mode_standby && streams.empty()) {
|
||||||
printf("CStreamManager::Parse: wakeup zapit..\n");
|
printf("CStreamManager::Parse: wakeup zapit..\n");
|
||||||
|
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
||||||
g_Zapit->setStandby(false);
|
g_Zapit->setStandby(false);
|
||||||
g_Zapit->getMode();
|
g_Zapit->getMode();
|
||||||
}
|
}
|
||||||
@@ -514,6 +519,7 @@ void CStreamManager::run()
|
|||||||
if (g_Zapit->getMode() != 0) {
|
if (g_Zapit->getMode() != 0) {
|
||||||
printf("CStreamManager::run: put zapit into standby...\n");
|
printf("CStreamManager::run: put zapit into standby...\n");
|
||||||
g_Zapit->setStandby(true);
|
g_Zapit->setStandby(true);
|
||||||
|
cpuFreq->SetCpuFreq(g_settings.standby_cpufreq * 1000 * 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user