[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/3] m88rs2000 move test for lock to after offset force.



Sometimes, a otherwise good lock is lost after offset force.

Signed-off-by: Malcolm Priestley <tvboxspy@xxxxxxxxx>
---
 drivers/media/dvb/frontends/m88rs2000.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/media/dvb/frontends/m88rs2000.c b/drivers/media/dvb/frontends/m88rs2000.c
index 033b89d..75fe26b 100644
--- a/drivers/media/dvb/frontends/m88rs2000.c
+++ b/drivers/media/dvb/frontends/m88rs2000.c
@@ -709,12 +709,6 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe)
 	if (ret < 0)
 		return -ENODEV;
 
-	for (i = 0; i < 20; i++) {
-		m88rs2000_read_status(fe, &status);
-		if (status & FE_HAS_LOCK)
-			break;
-	}
-
 	offset = (s16)((m88rs2000_demod_read(state, 0x9c) << 8)|
 			m88rs2000_demod_read(state, 0x9d));
 
@@ -730,6 +724,12 @@ static int m88rs2000_set_frontend(struct dvb_frontend *fe)
 	if (ret < 0)
 		return -ENODEV;
 
+	for (i = 0; i < 20; i++) {
+		m88rs2000_read_status(fe, &status);
+		if (status & FE_HAS_LOCK)
+			break;
+	}
+
 	state->tuner_frequency = c->frequency;
 	state->symbol_rate = c->symbol_rate;
 	return 0;
-- 
1.7.5.4




--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux Input]     [Video for Linux]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Yosemite Backpacking]

Add to Google Powered by Linux