Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176802
b: refs/heads/master
c: 89dfc55
h: refs/heads/master
v: v3
  • Loading branch information
Olivier Grenie authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 6e82948 commit 002d8da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 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: acc5c9ee393952c00eb7fab8bdd529d45226f6ed
refs/heads/master: 89dfc557d1b85bbaf04ca4c9927c6ea22df72e04
28 changes: 15 additions & 13 deletions trunk/drivers/media/dvb/frontends/dib8000.c
Original file line number Diff line number Diff line change
Expand Up @@ -2083,29 +2083,31 @@ static int dib8000_read_status(struct dvb_frontend *fe, fe_status_t * stat)

*stat = 0;

if ((lock >> 14) & 1) // AGC
if ((lock >> 13) & 1)
*stat |= FE_HAS_SIGNAL;

if ((lock >> 8) & 1) // Equal
if ((lock >> 8) & 1) /* Equal */
*stat |= FE_HAS_CARRIER;

if ((lock >> 3) & 1) // TMCC_SYNC
if (((lock >> 1) & 0xf) == 0xf) /* TMCC_SYNC */
*stat |= FE_HAS_SYNC;

if ((lock >> 5) & 7) // FEC MPEG
if (((lock >> 12) & 1) && ((lock >> 5) & 7)) /* FEC MPEG */
*stat |= FE_HAS_LOCK;

lock = dib8000_read_word(state, 554); // Viterbi Layer A
if (lock & 0x01)
*stat |= FE_HAS_VITERBI;
if ((lock >> 12) & 1) {
lock = dib8000_read_word(state, 554); /* Viterbi Layer A */
if (lock & 0x01)
*stat |= FE_HAS_VITERBI;

lock = dib8000_read_word(state, 555); // Viterbi Layer B
if (lock & 0x01)
*stat |= FE_HAS_VITERBI;
lock = dib8000_read_word(state, 555); /* Viterbi Layer B */
if (lock & 0x01)
*stat |= FE_HAS_VITERBI;

lock = dib8000_read_word(state, 556); // Viterbi Layer C
if (lock & 0x01)
*stat |= FE_HAS_VITERBI;
lock = dib8000_read_word(state, 556); /* Viterbi Layer C */
if (lock & 0x01)
*stat |= FE_HAS_VITERBI;
}

return 0;
}
Expand Down

0 comments on commit 002d8da

Please sign in to comment.