summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2007-11-10 00:24:45 +0400
committerManu Abraham <manu@linuxtv.org>2007-11-10 00:24:45 +0400
commit724349efd2c5f986fef38941542d6405e0ab96b5 (patch)
treee27ed82be9ffb897e5483f1cb87754d26620c048
parentaad4416f47a53bd056bf3dbe28a62b2ec18750e1 (diff)
downloadmediapointer-dvb-s2-724349efd2c5f986fef38941542d6405e0ab96b5.tar.gz
mediapointer-dvb-s2-724349efd2c5f986fef38941542d6405e0ab96b5.tar.bz2
Bug! RTF is signed
From: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Manu Abraham <manu@linuxtv.org>
-rw-r--r--linux/drivers/media/dvb/frontends/stb0899_algo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb0899_algo.c b/linux/drivers/media/dvb/frontends/stb0899_algo.c
index 9d2c522de..d7ae832e2 100644
--- a/linux/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/linux/drivers/media/dvb/frontends/stb0899_algo.c
@@ -194,8 +194,9 @@ static void stb0899_first_subrange(struct stb0899_state *state)
static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state)
{
struct stb0899_internal *internal = &state->internal;
- int lock, timing;
+ int lock;
u8 reg;
+ s8 timing;
msleep(internal->t_timing);
@@ -207,7 +208,7 @@ static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state)
timing = stb0899_read_reg(state, STB0899_RTF);
if (lock >= 42) {
- if ((lock > 48) && (timing >= 110)) {
+ if ((lock > 48) && (ABS(timing) >= 110)) {
internal->status = ANALOGCARRIER;
dprintk(state->verbose, FE_DEBUG, 1, "-->ANALOG Carrier !");
} else {