projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2f67e4
)
V4L/DVB (13713): [MB86A16] Fix: Initialize SNR/STATUS
author
Sigmund Augdal
<sigmund@snap.tv>
Thu, 3 Dec 2009 08:44:00 +0000
(
05:44
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:29 +0000
(11:55 -0200)
Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/mb86a16.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/mb86a16.c
b/drivers/media/dvb/frontends/mb86a16.c
index
361e476
..
4f8ef2e
100644
(file)
--- a/
drivers/media/dvb/frontends/mb86a16.c
+++ b/
drivers/media/dvb/frontends/mb86a16.c
@@
-595,6
+595,7
@@
static int mb86a16_read_status(struct dvb_frontend *fe, fe_status_t *status)
{
struct mb86a16_state *state = fe->demodulator_priv;
+ *status = 0;
if (state->signal & 0x02)
*status |= FE_HAS_VITERBI;
if (state->signal & 0x01)
@@
-1693,6
+1694,7
@@
static int mb86a16_read_snr(struct dvb_frontend *fe, u16 *snr)
int low_tide = 2, high_tide = 30, q_level;
u8 cn;
+ *snr = 0;
if (mb86a16_read(state, 0x26, &cn) != 2) {
dprintk(verbose, MB86A16_ERROR, 1, "I2C transfer error");
return -EREMOTEIO;