diff options
author | Andrew de Quincy <devnull@localhost> | 2005-07-24 14:45:29 +0000 |
---|---|---|
committer | Andrew de Quincy <devnull@localhost> | 2005-07-24 14:45:29 +0000 |
commit | 181c2e1c418a536fde236ba9303da19b6fee45f2 (patch) | |
tree | dbf3ace1d27d3659e9e2f0f17048fb360798b6a2 | |
parent | fd7d2f33f4ec2c7ed87809fab103cfee80f1a7a2 (diff) | |
download | mediapointer-dvb-s2-181c2e1c418a536fde236ba9303da19b6fee45f2.tar.gz mediapointer-dvb-s2-181c2e1c418a536fde236ba9303da19b6fee45f2.tar.bz2 |
Fix SNR reading
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda1004x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c index ab0c03247..74cea9f8d 100644 --- a/linux/drivers/media/dvb/frontends/tda1004x.c +++ b/linux/drivers/media/dvb/frontends/tda1004x.c @@ -1046,8 +1046,7 @@ static int tda1004x_read_snr(struct dvb_frontend* fe, u16 * snr) tmp = tda1004x_read_byte(state, TDA1004X_SNR); if (tmp < 0) return -EIO; - if (tmp) - tmp = 255 - tmp; + tmp = 255 - tmp; *snr = ((tmp << 8) | tmp); dprintk("%s: snr=0x%x\n", __FUNCTION__, *snr); |