diff options
author | Antti Palosaari <crope@iki.fi> | 2016-11-13 05:25:54 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-22 16:04:30 -0200 |
commit | 69ace6ee3e3d088c6c8bd4aab42001fc6ba9d701 (patch) | |
tree | b9b23b732936b4ea9e108b531af4273688ed6a85 /drivers/media/dvb-frontends/mn88473_priv.h | |
parent | 61393b0732fadc1efb2682c92062a54ff9f8fe0b (diff) |
[media] mn88473: refactor and fix statistics
Remove DVB-T2 BER as it does not work at all and I didn't find
how to fix.
Fix DVB-T and DVB-C BER. It seems to return new some realistic
looking values.
Use (1 << 24) base for CNR calculations to keep it in line with
dvb logarithm functions.
Move all statistic logic to mn88473_read_status() function.
Use regmap_bulk_read() for reading multiple registers as a one go.
Many more and less minor changes.
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/mn88473_priv.h')
-rw-r--r-- | drivers/media/dvb-frontends/mn88473_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/mn88473_priv.h b/drivers/media/dvb-frontends/mn88473_priv.h index 7cbef7b7fb39..5fc463d147c8 100644 --- a/drivers/media/dvb-frontends/mn88473_priv.h +++ b/drivers/media/dvb-frontends/mn88473_priv.h @@ -20,6 +20,7 @@ #include "dvb_frontend.h" #include "dvb_math.h" #include "mn88473.h" +#include <linux/math64.h> #include <linux/firmware.h> #include <linux/regmap.h> |