Skip to content

Commit

Permalink
V4L/DVB (9438): Bug! RTF is signed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arvo Jarve authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent ba8862a commit eadf29b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/media/dvb/frontends/stb0899_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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 {
Expand Down

0 comments on commit eadf29b

Please sign in to comment.