aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHartmut Birr <e9hack@googlemail.com>2007-10-31 00:50:47 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-04 18:41:24 -0500
commit3de0e18b3a5860a296bcff3d94400f3b30b02c86 (patch)
treeb8a9e11f8aba76c268e948b63c0d1700898d8c55
parent4a3625b22129d076a754bb366d0c31fa1b078317 (diff)
V4L/DVB (6499): tda10021: Bit error counting fixed
Bit error counting fixed for the tda10021. Signed-off-by: Hartmut Birr <e9hack@googlemail.com> Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/dvb/frontends/tda10021.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda10021.c b/drivers/media/dvb/frontends/tda10021.c
index 4cd9e82c4669..5ee729846a9f 100644
--- a/drivers/media/dvb/frontends/tda10021.c
+++ b/drivers/media/dvb/frontends/tda10021.c
@@ -301,6 +301,8 @@ static int tda10021_read_ber(struct dvb_frontend* fe, u32* ber)
301 u32 _ber = tda10021_readreg(state, 0x14) | 301 u32 _ber = tda10021_readreg(state, 0x14) |
302 (tda10021_readreg(state, 0x15) << 8) | 302 (tda10021_readreg(state, 0x15) << 8) |
303 ((tda10021_readreg(state, 0x16) & 0x0f) << 16); 303 ((tda10021_readreg(state, 0x16) & 0x0f) << 16);
304 _tda10021_writereg(state, 0x10, (tda10021_readreg(state, 0x10) & ~0xc0)
305 | (tda10021_inittab[0x10] & 0xc0));
304 *ber = 10 * _ber; 306 *ber = 10 * _ber;
305 307
306 return 0; 308 return 0;