From 642a010be60f0dc8f0d3f9cc8dc32d120e46de94 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Tue, 16 Jan 2018 23:53:13 +0100 Subject: [PATCH] make get_frontend report current DVB-S2 roll-off --- frontends/stv0910.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontends/stv0910.c b/frontends/stv0910.c index e4908f5..649a9a6 100644 --- a/frontends/stv0910.c +++ b/frontends/stv0910.c @@ -1298,11 +1298,15 @@ static int get_frontend(struct dvb_frontend *fe, struct dtv_frontend_properties FEC_3_4, FEC_4_5, FEC_5_6, FEC_8_9, FEC_9_10 }; + enum fe_rolloff ro2ro[3] = { + ROLLOFF_35, ROLLOFF_25, ROLLOFF_20, ROLLOFF_15, + }; read_reg(state, RSTV0910_P2_DMDMODCOD + state->regoff, &tmp); mc = ((tmp & 0x7c) >> 2); p->pilot = (tmp & 0x01) ? PILOT_ON : PILOT_OFF; p->modulation = modcod2mod[mc]; p->fec_inner = modcod2fec[mc]; + p->rolloff = ro2ro[state->fe_roll_off]; } else if (state->receive_mode == RCVMODE_DVBS) { read_reg(state, RSTV0910_P2_VITCURPUN + state->regoff, &tmp); switch (tmp & 0x1f) {