From: Daniel Scheller Date: Sun, 26 Nov 2017 13:00:07 +0000 (-0500) Subject: media: dvb-frontends/stv0910: read symbolrate in get_frontend() X-Git-Tag: v5.15~9456^2~278 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b885ded9c6a9d991d217a8dacca45141cb46825;p=platform%2Fkernel%2Flinux-starfive.git media: dvb-frontends/stv0910: read symbolrate in get_frontend() Utilise get_cur_symbol_rate() in get_frontend() to update the dtv_frontend_properties with the current symbol rate as reported by the demodulator. Reported-by: Richard Scobie Cc: Ralph Metzler Signed-off-by: Daniel Scheller Tested-by: Richard Scobie Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index 299dd35..55cddd0 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -1539,6 +1539,7 @@ static int get_frontend(struct dvb_frontend *fe, { struct stv *state = fe->demodulator_priv; u8 tmp; + u32 symbolrate; if (state->receive_mode == RCVMODE_DVBS2) { u32 mc; @@ -1592,6 +1593,10 @@ static int get_frontend(struct dvb_frontend *fe, p->rolloff = ROLLOFF_35; } + if (state->receive_mode != RCVMODE_NONE) { + get_cur_symbol_rate(state, &symbolrate); + p->symbol_rate = symbolrate; + } return 0; }