Mailing List archive

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

[linux-dvb] Re: AirStar2 and VHF



On Thu, Nov 11, 2004 at 07:47:09PM +0100, Nico Sabbi wrote:
> status 17 | signal 7abf | snr cece | ber 00000000 | unc 00000000 | FE_HAS_LOCK

That's a bug in the mt352 driver, then. It must not report FE_HAS_LOCK
when it hasn't found any sync bytes (FE_HAS_SYNC).

This might fix it:

Index: linux/drivers/media/dvb/frontends/mt352.c
===================================================================
RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/frontends/mt352.c,v
retrieving revision 1.17
diff -u -p -r1.17 mt352.c
--- linux/drivers/media/dvb/frontends/mt352.c	28 Oct 2004 17:37:08 -0000	1.17
+++ linux/drivers/media/dvb/frontends/mt352.c	11 Nov 2004 20:34:11 -0000
@@ -405,6 +405,10 @@ static int mt352_read_status(struct dvb_
 	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;
 }
 

Johannes




Home | Main Index | Thread Index