summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/mt352.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2004-11-11 21:46:55 +0000
committerJohannes Stezenbach <devnull@localhost>2004-11-11 21:46:55 +0000
commitfed16c767f240aabd0ab2ab38fb36a783922b6c5 (patch)
treebbd682916148559ef19d8ab7a3905b6600dfb7e6 /linux/drivers/media/dvb/frontends/mt352.c
parent3a89beb2d27d5d92f79f9c0390b109c408b1b03b (diff)
downloadmediapointer-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.c4
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;
}