Commit 7a9d6b43 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Mauro Carvalho Chehab

[media] m88rs2000: correct read status lock value

The correct lock values is when bits of the value 0xee are set.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent dd4491df
...@@ -469,7 +469,7 @@ static int m88rs2000_read_status(struct dvb_frontend *fe, fe_status_t *status) ...@@ -469,7 +469,7 @@ static int m88rs2000_read_status(struct dvb_frontend *fe, fe_status_t *status)
*status = 0; *status = 0;
if ((reg & 0x7) == 0x7) { if ((reg & 0xee) == 0xee) {
*status = FE_HAS_CARRIER | FE_HAS_SIGNAL | FE_HAS_VITERBI *status = FE_HAS_CARRIER | FE_HAS_SIGNAL | FE_HAS_VITERBI
| FE_HAS_SYNC | FE_HAS_LOCK; | FE_HAS_SYNC | FE_HAS_LOCK;
if (state->config->set_ts_params) if (state->config->set_ts_params)
...@@ -677,7 +677,7 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe) ...@@ -677,7 +677,7 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe)
for (i = 0; i < 25; i++) { for (i = 0; i < 25; i++) {
reg = m88rs2000_readreg(state, 0x8c); reg = m88rs2000_readreg(state, 0x8c);
if ((reg & 0x7) == 0x7) { if ((reg & 0xee) == 0xee) {
status = FE_HAS_LOCK; status = FE_HAS_LOCK;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment