diff options
author | Holger Waechtler <devnull@localhost> | 2003-11-27 07:45:11 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2003-11-27 07:45:11 +0000 |
commit | ab58663121813b1db9b00c06879d70472ca67700 (patch) | |
tree | c774813c6fb10af090da6c5909e04ce6deb6c2ce | |
parent | a38bee0624c90e30e21190e600d676f6e8ce1737 (diff) | |
download | mediapointer-dvb-s2-ab58663121813b1db9b00c06879d70472ca67700.tar.gz mediapointer-dvb-s2-ab58663121813b1db9b00c06879d70472ca67700.tar.bz2 |
fix typo in code rate table lookup for FE_GET_FRONTEND
- p->code_rate_LP = fec_tab[val >> 3];
+ p->code_rate_LP = fec_tab[val & 0x07];
-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); |