diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 14:43:54 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 14:43:54 +0400 |
commit | 0d49e7761173520ff02cec6f11d581f8ebca764d (patch) | |
tree | c4a2c6bff6ceb45b0e559514e316a41b00e42e63 /drivers/media/dvb-frontends/drx39xyj | |
parent | ee0f4a144423cdb5744ceca4ed9e91582c39becf (diff) | |
download | linux-0d49e7761173520ff02cec6f11d581f8ebca764d.tar.xz |
drx-j: Fix post-BER calculus on QAM modulation
There are two troubles there:
1) the bit error measure were not accumulating;
2) it was missing the bit count.
Fix them.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/drx39xyj')
-rw-r--r-- | drivers/media/dvb-frontends/drx39xyj/drxj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c index 41d4bfe66764..b8c5a851c29e 100644 --- a/drivers/media/dvb-frontends/drx39xyj/drxj.c +++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c @@ -9620,7 +9620,8 @@ ctrl_get_qam_sig_quality(struct drx_demod_instance *demod) p->pre_bit_count.stat[0].uvalue += rs_bit_cnt >> e; } - p->post_bit_error.stat[0].uvalue = qam_post_rs_ber; + p->post_bit_error.stat[0].uvalue += qam_post_rs_ber; + p->post_bit_count.stat[0].uvalue += rs_bit_cnt >> e; p->block_error.stat[0].uvalue += pkt_errs; |