diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2005-09-09 16:02:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:38 -0400 |
commit | c2026b3af0c8ad33ef253a950c271f2d0da111b6 (patch) | |
tree | a130cfd8970a611ef64bed69a2bd62e718a2719d /drivers/media/dvb | |
parent | 78639a3f81d14117d1841476771d7a4736e7b9d1 (diff) |
[PATCH] dvb: frontend: tda1004x: fix SNR reading
Fix SNR reading
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/tda1004x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda1004x.c b/drivers/media/dvb/frontends/tda1004x.c index ab0c032472cc..74cea9f8d721 100644 --- a/drivers/media/dvb/frontends/tda1004x.c +++ b/drivers/media/dvb/frontends/tda1004x.c | |||
@@ -1046,8 +1046,7 @@ static int tda1004x_read_snr(struct dvb_frontend* fe, u16 * snr) | |||
1046 | tmp = tda1004x_read_byte(state, TDA1004X_SNR); | 1046 | tmp = tda1004x_read_byte(state, TDA1004X_SNR); |
1047 | if (tmp < 0) | 1047 | if (tmp < 0) |
1048 | return -EIO; | 1048 | return -EIO; |
1049 | if (tmp) | 1049 | tmp = 255 - tmp; |
1050 | tmp = 255 - tmp; | ||
1051 | 1050 | ||
1052 | *snr = ((tmp << 8) | tmp); | 1051 | *snr = ((tmp << 8) | tmp); |
1053 | dprintk("%s: snr=0x%x\n", __FUNCTION__, *snr); | 1052 | dprintk("%s: snr=0x%x\n", __FUNCTION__, *snr); |