diff options
author | Johannes Stezenbach <devnull@localhost> | 2004-11-11 21:46:55 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2004-11-11 21:46:55 +0000 |
commit | fed16c767f240aabd0ab2ab38fb36a783922b6c5 (patch) | |
tree | bbd682916148559ef19d8ab7a3905b6600dfb7e6 /linux/drivers/media/dvb/frontends/mt352.c | |
parent | 3a89beb2d27d5d92f79f9c0390b109c408b1b03b (diff) | |
download | mediapointer-dvb-s2-fed16c767f240aabd0ab2ab38fb36a783922b6c5.tar.gz mediapointer-dvb-s2-fed16c767f240aabd0ab2ab38fb36a783922b6c5.tar.bz2 |
don't report FE_HAS_LOCK w/o (FE_HAS_CARRIER && FE_HAS_VITERBI && FE_HAS_SYNC)
Diffstat (limited to 'linux/drivers/media/dvb/frontends/mt352.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/mt352.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt352.c b/linux/drivers/media/dvb/frontends/mt352.c index dfad921dd..e27591035 100644 --- a/linux/drivers/media/dvb/frontends/mt352.c +++ b/linux/drivers/media/dvb/frontends/mt352.c @@ -405,6 +405,10 @@ static int mt352_read_status(struct dvb_frontend* fe, fe_status_t* status) if (r & (1 << 6)) *status |= FE_HAS_SIGNAL; + if ((status & (FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC)) != + (FE_HAS_CARRIER | FE_HAS_VITERBI | FE_HAS_SYNC)) + status &= ~FE_HAS_LOCK; + return 0; } |