Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124084
b: refs/heads/master
c: eadf29b
h: refs/heads/master
v: v3
  • Loading branch information
Arvo Jarve authored and Mauro Carvalho Chehab committed Dec 29, 2008
1 parent 7f36eb7 commit 8e8a760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba8862a83f2db95cdd8e9193e83915e5e278927a
refs/heads/master: eadf29b941df1c0e0e585d7482e096ca608a7bb7
5 changes: 3 additions & 2 deletions trunk/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 8e8a760

Please sign in to comment.