let bandwidth_hz setting from application override setting from SR and rollof

This commit is contained in:
Ralph Metzler 2019-11-08 13:41:54 +01:00
parent 2186362136
commit f11ed620f2
1 changed files with 3 additions and 2 deletions

View File

@ -2148,8 +2148,9 @@ static int dtv_set_frontend(struct dvb_frontend *fe)
default:
break;
}
if (rolloff)
c->bandwidth_hz = mult_frac(c->symbol_rate, rolloff, 100);
if (!c->bandwidth_hz)
if (rolloff)
c->bandwidth_hz = mult_frac(c->symbol_rate, rolloff, 100);
/* force auto frequency inversion if requested */
if (dvb_force_auto_inversion)