aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/frontend.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-05-19 18:21:52 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-05-19 18:21:52 +0000
commit65b45f75e4c14174a580a5345b85408fad826895 (patch)
treeb34fdaff5b6c3dff2366a253abf00737511fbf2a /lib/dvb/frontend.cpp
parent8a285bbe432dc93c1eb6be8eb66bea1a55e8699f (diff)
downloadenigma2-65b45f75e4c14174a580a5345b85408fad826895.tar.gz
enigma2-65b45f75e4c14174a580a5345b85408fad826895.zip
diseqc 1.1 should be working now
Diffstat (limited to 'lib/dvb/frontend.cpp')
-rw-r--r--lib/dvb/frontend.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp
index cdbf8a58..a2730962 100644
--- a/lib/dvb/frontend.cpp
+++ b/lib/dvb/frontend.cpp
@@ -284,6 +284,8 @@ eDVBFrontend::eDVBFrontend(int adap, int fe, int &ok): m_type(-1)
m_tuneTimer = new eTimer(eApp);
CONNECT(m_tuneTimer->timeout, eDVBFrontend::tuneLoop);
+ memset(m_data, 0xFFFF, sizeof(m_data));
+
return;
}
@@ -656,6 +658,8 @@ RESULT eDVBFrontend::setTone(int t)
RESULT eDVBFrontend::sendDiseqc(const eDVBDiseqcCommand &diseqc)
{
+ eDebug("send %02x %02x %02x %02x",
+ diseqc.data[0], diseqc.data[1], diseqc.data[2], diseqc.data[3]);
#if HAVE_DVB_API_VERSION < 3
struct secCommand cmd;
cmd.type = SEC_CMDTYPE_DISEQC_RAW;
@@ -703,3 +707,24 @@ RESULT eDVBFrontend::setSecSequence(const eSecCommandList &list)
m_sec_sequence = list;
return 0;
}
+
+RESULT eDVBFrontend::getData(int num, int &data)
+{
+ if ( num < 4 )
+ {
+ data = m_data[num];
+ return 0;
+ }
+ return -EINVAL;
+}
+
+RESULT eDVBFrontend::setData(int num, int val)
+{
+ if ( num < 4 )
+ {
+ m_data[num] = val;
+ return 0;
+ }
+ return -EINVAL;
+}
+