diff options
author | Sigmund Augdal <sigmund@snap.tv> | 2009-12-03 03:44:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 08:55:29 -0500 |
commit | 1fa1f107852484157c5453cc6c4a60c792f06c35 (patch) | |
tree | 07bd8a8897f33f59aa114c145fdcf59b75c8eee5 /drivers/media/dvb/frontends | |
parent | e2f67e4fb931b975058b3bd48eaac43780c92c88 (diff) |
V4L/DVB (13713): [MB86A16] Fix: Initialize SNR/STATUS
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>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/mb86a16.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/mb86a16.c b/drivers/media/dvb/frontends/mb86a16.c index 361e47623467..4f8ef2e2ecd1 100644 --- 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) | |||
595 | { | 595 | { |
596 | struct mb86a16_state *state = fe->demodulator_priv; | 596 | struct mb86a16_state *state = fe->demodulator_priv; |
597 | 597 | ||
598 | *status = 0; | ||
598 | if (state->signal & 0x02) | 599 | if (state->signal & 0x02) |
599 | *status |= FE_HAS_VITERBI; | 600 | *status |= FE_HAS_VITERBI; |
600 | if (state->signal & 0x01) | 601 | if (state->signal & 0x01) |
@@ -1693,6 +1694,7 @@ static int mb86a16_read_snr(struct dvb_frontend *fe, u16 *snr) | |||
1693 | int low_tide = 2, high_tide = 30, q_level; | 1694 | int low_tide = 2, high_tide = 30, q_level; |
1694 | u8 cn; | 1695 | u8 cn; |
1695 | 1696 | ||
1697 | *snr = 0; | ||
1696 | if (mb86a16_read(state, 0x26, &cn) != 2) { | 1698 | if (mb86a16_read(state, 0x26, &cn) != 2) { |
1697 | dprintk(verbose, MB86A16_ERROR, 1, "I2C transfer error"); | 1699 | dprintk(verbose, MB86A16_ERROR, 1, "I2C transfer error"); |
1698 | return -EREMOTEIO; | 1700 | return -EREMOTEIO; |