diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-22 10:30:17 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-08-26 18:52:04 -0300 |
commit | c623ed63167adcbc16edac22260e1bff150e60df (patch) | |
tree | 9634da8aa5a9a22fdd7a08c1403a48c6b0132d8a /drivers/media/dvb-core | |
parent | 8dece35daf098e5d086b50724119ffbb24ceca7f (diff) | |
download | linux-c623ed63167adcbc16edac22260e1bff150e60df.tar.gz linux-c623ed63167adcbc16edac22260e1bff150e60df.tar.bz2 linux-c623ed63167adcbc16edac22260e1bff150e60df.zip |
[media] dvb_frontend: estimate bandwidth also for DVB-S/S2/Turbo
The needed bandwidth can be estimated using the symbol rate and
the rolloff factor. This could be useful for the frontend drivers,
as they don't need to calculate it themselves.
Reported-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index a5810391af61..c862ad732d9e 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -2072,6 +2072,23 @@ static int dtv_set_frontend(struct dvb_frontend *fe) case SYS_DVBC_ANNEX_C: rolloff = 113; break; + case SYS_DVBS: + case SYS_TURBO: + rolloff = 135; + break; + case SYS_DVBS2: + switch (c->rolloff) { + case ROLLOFF_20: + rolloff = 120; + break; + case ROLLOFF_25: + rolloff = 125; + break; + default: + case ROLLOFF_35: + rolloff = 135; + } + break; default: break; } |