diff options
Diffstat (limited to 'linux/drivers/media/dvb/frontends/alps_tdmb7.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/alps_tdmb7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c index 749de1aad..a7f11c305 100644 --- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c +++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c @@ -281,15 +281,15 @@ static int cx22700_get_tps (struct dvb_i2c_bus *i2c, struct dvb_ofdm_parameters val = cx22700_readreg (i2c, 0x02); - if ((val >> 3) > 4) + if (((val >> 3) & 0x07) > 4) p->code_rate_HP = FEC_AUTO; else - p->code_rate_HP = fec_tab[val >> 3]; + p->code_rate_HP = fec_tab[(val >> 3) & 0x07]; - if ((val & 0x7) > 4) + if ((val & 0x07) > 4) p->code_rate_LP = FEC_AUTO; else - p->code_rate_LP = fec_tab[val >> 3]; + p->code_rate_LP = fec_tab[val & 0x07]; val = cx22700_readreg (i2c, 0x03); |