diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-05-19 18:21:52 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-05-19 18:21:52 +0000 |
| commit | 65b45f75e4c14174a580a5345b85408fad826895 (patch) | |
| tree | b34fdaff5b6c3dff2366a253abf00737511fbf2a /lib/dvb/frontend.cpp | |
| parent | 8a285bbe432dc93c1eb6be8eb66bea1a55e8699f (diff) | |
| download | enigma2-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.cpp | 25 |
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; +} + |
