Skip to contentSkip to conversation

m88rs2000: correct read status lock value.

PATCH New Malcolm Priestley 1 participant 1 message Dec 28, 2013

Subsystems (2)
lore
Share & tools
lore

Malcolm Priestley

author maintainer
#0 lore raw

PATCH 1/3 m88rs2000: correct read status lock value.

The correct lock values is when bits of the value 0xee are set.

---
 drivers/media/dvb-frontends/m88rs2000.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/dvb-frontends/m88rs2000.c +2 -2
index 02699c1..f9d04db 100644
@@ -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;
 		}
Signature · 1 line
1.8.5.2