upstream: [media] dib7000p: Add DVBv5 stats support
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 29 May 2014 17:44:56 +0000 (14:44 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:32:07 +0000 (14:32 +0900)
commit2c3cc03c18c90cffb3f10c9a02faa4d2eca328a8
tree650c82c269b1b5acc77cd53f4e5d9de76e8affcd
parent7bda1372c1a17e88021222f4b83fa4ce88f15a5a
upstream: [media] dib7000p: Add DVBv5 stats support

Adds DVBv5 stats support. For now, just mimic whatever dib8000
does, as they're very similar, with regards to statistics.

However, dib7000p_get_time_us() likely require some
adjustments, as I didn't actually reviewed the formula
for it to work with DVB-T. Still, better than nothing,
as latter patches can improve it.

This patch also doesn't show the signal strength in dB
yet. The code is already there, but it requires to be
callibrated.

A latter patch will do the calibration.

It seems that this patch is also a bug fix: Before this
patch, the frontend were not tuning with some userspace
tools. I suspect that dib7000p firmware or hardware
internally expects that the statistics to be collected,
in order for it to work. With this patch, the DVB core
will always retrive statistics, even if userspace doesn't
request. So, it makes the device work on all tested apps.

Backports http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=041ad449683b
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/dib7000p.c