mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
Move get_cur_symbol_rate call to get_frontend()
This commit is contained in:
parent
f7fbeed21e
commit
3b44e78bd0
@ -524,10 +524,8 @@ static int get_signal_parameters(struct stv *state)
|
||||
|
||||
static int tracking_optimization(struct stv *state)
|
||||
{
|
||||
u32 symbol_rate = 0;
|
||||
u8 tmp;
|
||||
|
||||
get_cur_symbol_rate(state, &symbol_rate);
|
||||
read_reg(state, RSTV0910_P2_DMDCFGMD + state->regoff, &tmp);
|
||||
tmp &= ~0xC0;
|
||||
|
||||
@ -1321,6 +1319,12 @@ static int get_frontend(struct dvb_frontend *fe, struct dtv_frontend_properties
|
||||
}
|
||||
p->rolloff = ROLLOFF_35;
|
||||
}
|
||||
if (state->receive_mode != RCVMODE_NONE) {
|
||||
u32 symbolrate = 0;
|
||||
|
||||
get_cur_symbol_rate(state, &symbolrate);
|
||||
p->symbol_rate = symbolrate;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user