summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/m88rs2000.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2013-12-28 18:00:40 +0100
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-07 12:38:01 +0100
commit7a9d6b43f81aa5ad89afdbb26a1d6fd4dff4d635 (patch)
tree25e31b332ac07e177d952c48cfa8a37cd5acbffb /drivers/media/dvb-frontends/m88rs2000.c
parent[media] m88rs2000: set symbol rate accurately (diff)
downloadlinux-7a9d6b43f81aa5ad89afdbb26a1d6fd4dff4d635.tar.xz
linux-7a9d6b43f81aa5ad89afdbb26a1d6fd4dff4d635.zip
[media] m88rs2000: correct read status lock value
The correct lock values is when bits of the value 0xee are set. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/m88rs2000.c')
-rw-r--r--drivers/media/dvb-frontends/m88rs2000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/m88rs2000.c b/drivers/media/dvb-frontends/m88rs2000.c
index 02699c111019..f9d04db7275c 100644
--- a/drivers/media/dvb-frontends/m88rs2000.c
+++ b/drivers/media/dvb-frontends/m88rs2000.c
@@ -469,7 +469,7 @@ static int m88rs2000_read_status(struct dvb_frontend *fe, fe_status_t *status)
*status = 0;
- if ((reg & 0x7) == 0x7) {
+ if ((reg & 0xee) == 0xee) {
*status = FE_HAS_CARRIER | FE_HAS_SIGNAL | FE_HAS_VITERBI
| FE_HAS_SYNC | FE_HAS_LOCK;
if (state->config->set_ts_params)
@@ -677,7 +677,7 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe)
for (i = 0; i < 25; i++) {
reg = m88rs2000_readreg(state, 0x8c);
- if ((reg & 0x7) == 0x7) {
+ if ((reg & 0xee) == 0xee) {
status = FE_HAS_LOCK;
break;
}