[Patch] tda10021: The ber counting must be reinitialized after reading of the values

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

 



Hi,

the attached patch fixes the not working ber counting of the tda10021 frontend.

- Hartmut


signed-off-by: Hartmut Birr <e9hack@xxxxxxxxxxxxxx>
- The ber counting must be reinitialized after reading of the values.
diff -r bba8d9fd6196 linux/drivers/media/dvb/frontends/tda10021.c
--- a/linux/drivers/media/dvb/frontends/tda10021.c	Tue Sep 11 11:20:30 2007 -0300
+++ b/linux/drivers/media/dvb/frontends/tda10021.c	Tue Sep 11 21:47:20 2007 +0200
@@ -301,6 +301,7 @@ static int tda10021_read_ber(struct dvb_
 	u32 _ber = tda10021_readreg(state, 0x14) |
 		(tda10021_readreg(state, 0x15) << 8) |
 		((tda10021_readreg(state, 0x16) & 0x0f) << 16);
+	_tda10021_writereg (state, 0x10, (tda10021_readreg(state, 0x10) & ~0xc0) | (tda10021_inittab[0x10] & 0xc0));
 	*ber = 10 * _ber;
 
 	return 0;
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux