[media] cxd2841er: Do some changes at the dvbv5 stats logic
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 30 Jun 2016 03:34:59 +0000 (00:34 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 21:55:08 +0000 (18:55 -0300)
commitd0e20e13b715da83a9630916d283d63e9c514870
tree7991b881d8b89869d2b1609ca7bbc519d6088b1c
parent9ad52b4db79d168867a2ca105eca00fb9cb28fe5
[media] cxd2841er: Do some changes at the dvbv5 stats logic

It is a good idea to measure the signal strength while
tuning, as this helps to identify if the antenna is ok.
Also, such measure helps to identify the quality of the
signal.

Do some changes to enable it before signal lock. While
here, optimize the code to only initialize the stats
length once, and make sure that, just after set_frontend,
any reading for the stats that depends on lock to return
FE_SCALE_NOT_AVAILABLE.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/cxd2841er.c