summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-06-25 08:26:46 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-25 09:10:06 -0300
commit87b467107438423b4dcbcece7ec1bced57992b25 (patch)
treeb9413e801707a593a1d9baada46d7da0d408bfb0 /drivers/media
parentf5a1ba833ddfd801b4adc463b0705938a8ff632f (diff)
downloadlinux-87b467107438423b4dcbcece7ec1bced57992b25.tar.bz2
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: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb-frontends/stv0367.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/dvb-frontends/stv0367.c b/drivers/media/dvb-frontends/stv0367.c
index e7bed20e80f6..1983c87d7d22 100644
--- a/drivers/media/dvb-frontends/stv0367.c
+++ b/drivers/media/dvb-frontends/stv0367.c
@@ -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)) {
+ /* 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 ret;
- }
-
- stv0367ddb_read_ucblocks(fe);
return 0;
}