OSDN Git Service

[media] ts2020: improve filter limit calc
authorAntti Palosaari <crope@iki.fi>
Thu, 26 Mar 2015 13:49:17 +0000 (10:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Jun 2015 13:55:58 +0000 (10:55 -0300)
commit2ca58f45cc986952dc2b2942fb170d9d7644735a
treed6de2e07785dedcc983047b6e6f4e5ef368d0f18
parentaf9d52555304979c7a3ce254e026bc76bd878f74
[media] ts2020: improve filter limit calc

* We don't need calculate channel bandwidth from symbol rate as it
is calculated by DVB core.

* Use clamp() to force upper/lower limit of filter 3dB frequency.
Upper limit should never exceeded 40MHz (80MHz BW) in any case,
though...

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