aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-22 11:30:17 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-08-26 17:52:04 -0400
commitc623ed63167adcbc16edac22260e1bff150e60df (patch)
tree9634da8aa5a9a22fdd7a08c1403a48c6b0132d8a
parent8dece35daf098e5d086b50724119ffbb24ceca7f (diff)
[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>
-rw-r--r--drivers/media/dvb-core/dvb_frontend.c17
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)
2072 case SYS_DVBC_ANNEX_C: 2072 case SYS_DVBC_ANNEX_C:
2073 rolloff = 113; 2073 rolloff = 113;
2074 break; 2074 break;
2075 case SYS_DVBS:
2076 case SYS_TURBO:
2077 rolloff = 135;
2078 break;
2079 case SYS_DVBS2:
2080 switch (c->rolloff) {
2081 case ROLLOFF_20:
2082 rolloff = 120;
2083 break;
2084 case ROLLOFF_25:
2085 rolloff = 125;
2086 break;
2087 default:
2088 case ROLLOFF_35:
2089 rolloff = 135;
2090 }
2091 break;
2075 default: 2092 default:
2076 break; 2093 break;
2077 } 2094 }