From 3b44e78bd003299f038b754b0554286942868eb7 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Tue, 12 Dec 2017 01:38:22 +0100 Subject: [PATCH] Move get_cur_symbol_rate call to get_frontend() --- frontends/stv0910.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontends/stv0910.c b/frontends/stv0910.c index 531ee18..34f3397 100644 --- a/frontends/stv0910.c +++ b/frontends/stv0910.c @@ -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; }