aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvo Jarve <arvo@softshark.ee>2007-11-09 15:24:45 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 14:53:20 -0500
commiteadf29b941df1c0e0e585d7482e096ca608a7bb7 (patch)
treebfbd87e49a75581f81cc7d86e019c88c8f24270d
parentba8862a83f2db95cdd8e9193e83915e5e278927a (diff)
V4L/DVB (9438): Bug! RTF is signed
Signed-off-by: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/stb0899_algo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c
index 1363ae396f9e..2256fc70c85a 100644
--- a/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/drivers/media/dvb/frontends/stb0899_algo.c
@@ -194,8 +194,9 @@ static void stb0899_first_subrange(struct stb0899_state *state)
194static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state) 194static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state)
195{ 195{
196 struct stb0899_internal *internal = &state->internal; 196 struct stb0899_internal *internal = &state->internal;
197 int lock, timing; 197 int lock;
198 u8 reg; 198 u8 reg;
199 s8 timing;
199 200
200 msleep(internal->t_timing); 201 msleep(internal->t_timing);
201 202
@@ -207,7 +208,7 @@ static enum stb0899_status stb0899_check_tmg(struct stb0899_state *state)
207 timing = stb0899_read_reg(state, STB0899_RTF); 208 timing = stb0899_read_reg(state, STB0899_RTF);
208 209
209 if (lock >= 42) { 210 if (lock >= 42) {
210 if ((lock > 48) && (timing >= 110)) { 211 if ((lock > 48) && (ABS(timing) >= 110)) {
211 internal->status = ANALOGCARRIER; 212 internal->status = ANALOGCARRIER;
212 dprintk(state->verbose, FE_DEBUG, 1, "-->ANALOG Carrier !"); 213 dprintk(state->verbose, FE_DEBUG, 1, "-->ANALOG Carrier !");
213 } else { 214 } else {