]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] ts2020: Provide DVBv5 API signal strength
authorDavid Howells <dhowells@redhat.com>
Tue, 26 May 2015 15:04:07 +0000 (12:04 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Jun 2015 14:11:03 +0000 (11:11 -0300)
commit3366cd5d72c664aa5e447f41ed2f7dac69f6a94e
tree8f981cfd9aa99e85fe87e7f12cb36a46ff8861e6
parent0f91c9d6bab956fe55c32f143b21cbcc3538f699
[media] ts2020: Provide DVBv5 API signal strength

Provide a DVBv5 API signal strength.  This is in units of 0.001 dBm rather
than a percentage.

>From Antti Palosaari's testing with a signal generator, it appears that the
gain calculated according to Montage's specification if negated is a
reasonable representation of the signal strength of the generator.

To this end:

 (1) Polled statistic gathering needed to be implemented in the TS2020 driver.
     This is done in the ts2020_stat_work() function.

 (2) The calculated gain is placed as the signal strength in the
     dtv_property_cache associated with the front end with the scale set to
     FE_SCALE_DECIBEL.

 (3) The DVBv3 format signal strength then needed to be calculated from the
     signal strength stored in the dtv_property_cache rather than accessing
     the value when ts2020_read_signal_strength() is called.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/ts2020.c