]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: dvb-frontends/stv0910: read symbolrate in get_frontend()
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 26 Nov 2017 13:00:07 +0000 (08:00 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Dec 2017 13:37:07 +0000 (08:37 -0500)
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 <rascobie@slingshot.co.nz>
Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <rascobie@slingshot.co.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0910.c

index 299dd3533720d6a7645c24c813c9a187fcf3120f..55cddd01f779ff937445a7871b43c4f9443b96f1 100644 (file)
@@ -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;
 }