Commit 1fa1f107 authored by Sigmund Augdal's avatar Sigmund Augdal Committed by Mauro Carvalho Chehab

V4L/DVB (13713): [MB86A16] Fix: Initialize SNR/STATUS

Signed-off-by: default avatarSigmund Augdal <sigmund@snap.tv>
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e2f67e4f
...@@ -595,6 +595,7 @@ static int mb86a16_read_status(struct dvb_frontend *fe, fe_status_t *status) ...@@ -595,6 +595,7 @@ static int mb86a16_read_status(struct dvb_frontend *fe, fe_status_t *status)
{ {
struct mb86a16_state *state = fe->demodulator_priv; struct mb86a16_state *state = fe->demodulator_priv;
*status = 0;
if (state->signal & 0x02) if (state->signal & 0x02)
*status |= FE_HAS_VITERBI; *status |= FE_HAS_VITERBI;
if (state->signal & 0x01) if (state->signal & 0x01)
...@@ -1693,6 +1694,7 @@ static int mb86a16_read_snr(struct dvb_frontend *fe, u16 *snr) ...@@ -1693,6 +1694,7 @@ static int mb86a16_read_snr(struct dvb_frontend *fe, u16 *snr)
int low_tide = 2, high_tide = 30, q_level; int low_tide = 2, high_tide = 30, q_level;
u8 cn; u8 cn;
*snr = 0;
if (mb86a16_read(state, 0x26, &cn) != 2) { if (mb86a16_read(state, 0x26, &cn) != 2) {
dprintk(verbose, MB86A16_ERROR, 1, "I2C transfer error"); dprintk(verbose, MB86A16_ERROR, 1, "I2C transfer error");
return -EREMOTEIO; return -EREMOTEIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment