From 1784a361ad1041576120c0a297f5eb27ac8cc6ae Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 4 Nov 2019 19:08:16 +0100 Subject: [PATCH] add block error counts --- frontends/mxl5xx.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontends/mxl5xx.c b/frontends/mxl5xx.c index 576252b..af60e1e 100644 --- a/frontends/mxl5xx.c +++ b/frontends/mxl5xx.c @@ -673,9 +673,15 @@ static int read_ber(struct dvb_frontend *fe, u32 *ber) p->pre_bit_error.stat[0].uvalue = reg[5]; p->pre_bit_count.len = 1; p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; - p->pre_bit_count.stat[0].uvalue = 8 * 188 * (u64)reg[6]; + p->pre_bit_count.stat[0].uvalue = 8 * 188 * (u64) reg[6]; break; case SYS_DVBS2: + p->block_error.len = 1; + p->block_error.stat[0].scale = FE_SCALE_COUNTER; + p->block_error.stat[0].uvalue = reg[1]; + p->block_count.len = 1; + p->block_count.stat[0].scale = FE_SCALE_COUNTER; + p->block_count.stat[0].uvalue = reg[2]; break; default: break;