Skip to content

Commit c623ed6

Browse files
committed
[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>
1 parent 8dece35 commit c623ed6

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎drivers/media/dvb-core/dvb_frontend.c‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,6 +2072,23 @@ static int dtv_set_frontend(struct dvb_frontend *fe)
20722072
case SYS_DVBC_ANNEX_C:
20732073
rolloff = 113;
20742074
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;
20752092
default:
20762093
break;
20772094
}

0 commit comments

Comments
 (0)