diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2017-10-15 16:51:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-11 13:04:48 -0500 |
commit | 9cc6544718b738bd7dd2c3c885814304bab2d253 (patch) | |
tree | 22cbbceb9c500c6f5ea755ace03f4b2e9fb64b7b /drivers/media/dvb-frontends/stv0910.c | |
parent | 1c71450151c488bffe3de31af317113a036aa7ad (diff) | |
download | talos-obmc-linux-9cc6544718b738bd7dd2c3c885814304bab2d253.tar.gz talos-obmc-linux-9cc6544718b738bd7dd2c3c885814304bab2d253.zip |
media: stv0910: read and update mod_cod in read_status()
Add missing state->modcod update from upstream driver which needs to be
done when manage_matype_info() sets is_vcm on certain S2 transponders.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv0910.c')
-rw-r--r-- | drivers/media/dvb-frontends/stv0910.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index 8bf855c301f5..73f6df0abbfe 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -1498,6 +1498,19 @@ static int read_status(struct dvb_frontend *fe, enum fe_status *status) enable_puncture_rate(state, state->puncture_rate); } + + /* Use highest signaled ModCod for quality */ + if (state->is_vcm) { + u8 tmp; + enum fe_stv0910_mod_cod mod_cod; + + read_reg(state, RSTV0910_P2_DMDMODCOD + state->regoff, + &tmp); + mod_cod = (enum fe_stv0910_mod_cod)((tmp & 0x7c) >> 2); + + if (mod_cod > state->mod_cod) + state->mod_cod = mod_cod; + } } /* read signal statistics */ |