aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/frontend.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-28 14:34:10 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-06-28 14:34:10 +0000
commitb0423085db164b3bc28291fab6bd5741182a6859 (patch)
tree9acbc36112183a25237c0ea48b1e7d3bdee3674d /lib/dvb/frontend.cpp
parentecfd1ddb49626d2a0f42c9b774fd9f0e147b204b (diff)
downloadenigma2-b0423085db164b3bc28291fab6bd5741182a6859.tar.gz
enigma2-b0423085db164b3bc28291fab6bd5741182a6859.zip
setVoltage is now possible on -S and -T frontend
Diffstat (limited to 'lib/dvb/frontend.cpp')
-rw-r--r--lib/dvb/frontend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index 1318a0c3..1040d7cd 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -1774,7 +1774,7 @@ RESULT eDVBFrontend::connectStateChange(const Slot1<void,iDVBFrontend*> &stateCh
RESULT eDVBFrontend::setVoltage(int voltage)
{
- if (m_type != feSatellite)
+ if (m_type == feCable)
return -1;
#if HAVE_DVB_API_VERSION < 3
secVoltage vlt;
@@ -1816,7 +1816,7 @@ RESULT eDVBFrontend::setVoltage(int voltage)
#if HAVE_DVB_API_VERSION < 3
return ::ioctl(m_secfd, SEC_SET_VOLTAGE, vlt);
#else
- if (::ioctl(m_fd, FE_ENABLE_HIGH_LNB_VOLTAGE, increased) < 0)
+ if (m_type == feSatellite && ::ioctl(m_fd, FE_ENABLE_HIGH_LNB_VOLTAGE, increased) < 0)
perror("FE_ENABLE_HIGH_LNB_VOLTAGE");
return ::ioctl(m_fd, FE_SET_VOLTAGE, vlt);
#endif