git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set state on removal and insert
[enigma2.git]
/
lib
/
dvb
/
frontend.cpp
diff --git
a/lib/dvb/frontend.cpp
b/lib/dvb/frontend.cpp
index a4ad170da539afd1279abbe75139b0c489d5d1c4..b8debd81c21754a4caec1b6459a63ceeab047f4c 100644
(file)
--- a/
lib/dvb/frontend.cpp
+++ b/
lib/dvb/frontend.cpp
@@
-6,6
+6,10
@@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#ifndef I2C_SLAVE_FORCE
+#define I2C_SLAVE_FORCE 0x0706
+#endif
+
#if HAVE_DVB_API_VERSION < 3
#include <ost/frontend.h>
#include <ost/sec.h>
#if HAVE_DVB_API_VERSION < 3
#include <ost/frontend.h>
#include <ost/sec.h>
@@
-337,7
+341,12
@@
void eDVBFrontend::feEvent(int w)
if (m_tuning)
state = stateTuning;
else
if (m_tuning)
state = stateTuning;
else
- state = stateFailed;
+ {
+ state = stateLostLock;
+
+ if (m_state != stateLostLock)
+ eDebug("FIXME: we lost lock, so we might have to retune.");
+ }
}
if (m_state != state)
{
}
if (m_state != state)
{
@@
-359,6
+368,7
@@
void eDVBFrontend::timeout()
m_state = state;
m_stateChanged(this);
}
m_state = state;
m_stateChanged(this);
}
+ m_tuning = 0;
} else
m_tuning = 0;
}
} else
m_tuning = 0;
}
@@
-606,8
+616,6
@@
RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where)
m_sec_sequence.clear();
m_sec_sequence.clear();
- eDebug("eDVBFrontend::tune. type: %d", m_type);
-
switch (m_type)
{
case feSatellite:
switch (m_type)
{
case feSatellite: