From 65b45f75e4c14174a580a5345b85408fad826895 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 19 May 2005 18:21:52 +0000 Subject: diseqc 1.1 should be working now --- lib/dvb/frontend.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'lib/dvb/frontend.cpp') 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; +} + -- cgit v1.2.3