提交 87b46710 编写于 作者: D Daniel Scheller 提交者: Mauro Carvalho Chehab

media: dvb-frontends/stv0367: update UCB readout condition logic

Since the other statistics are read when fe_status conditions are TRUE,
change the ucblocks readout logic to match this aswell.
Signed-off-by: NDaniel Scheller <d.scheller@gmx.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 f5a1ba83
......@@ -3081,13 +3081,11 @@ static int stv0367ddb_read_status(struct dvb_frontend *fe,
else
p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
/* stop if demod isn't locked */
if (!(*status & FE_HAS_LOCK)) {
p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
return ret;
}
/* read uncorrected blocks on FE_HAS_LOCK */
if (*status & FE_HAS_LOCK)
stv0367ddb_read_ucblocks(fe);
else
p->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册