aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/frontend.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-26 21:46:10 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-26 21:46:10 +0000
commit8b6a8658b1ea5aa358947a488c80eff75295d0fb (patch)
treeb90badb653ba5e53b3251ea74d2febc601395bd7 /lib/dvb/frontend.cpp
parent31ee53b29f079a6e20688e20832896b497b19478 (diff)
downloadenigma2-8b6a8658b1ea5aa358947a488c80eff75295d0fb.tar.gz
enigma2-8b6a8658b1ea5aa358947a488c80eff75295d0fb.zip
add 5V handling for active DVB-T antennas (needs new drivers)
Diffstat (limited to 'lib/dvb/frontend.cpp')
-rw-r--r--lib/dvb/frontend.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index e495b1c5..8ba68a59 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -1,5 +1,6 @@
#include <lib/dvb/dvb.h>
#include <lib/base/eerror.h>
+#include <lib/base/nconfig.h> // access to python config
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
@@ -1731,6 +1732,14 @@ RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where)
if (!res)
{
m_sec_sequence.push_back( eSecCommand(eSecCommand::START_TUNE_TIMEOUT) );
+ eDVBRegisteredFrontend *linked_fe = (eDVBRegisteredFrontend*)m_data[LINKED_PREV_PTR];
+ if (linked_fe == (eDVBRegisteredFrontend*)-1)
+ {
+ std::string enable_5V;
+ ePythonConfigQuery::getConfigValue("config.terrestrial.enable_5V", enable_5V);
+ if (enable_5V == "yes")
+ m_sec_sequence.push_back( eSecCommand(eSecCommand::SET_VOLTAGE, iDVBFrontend::voltage13) );
+ }
m_sec_sequence.push_back( eSecCommand(eSecCommand::SET_FRONTEND) );
}
break;