[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>
This commit is contained in:
committed by
Linus Torvalds
parent
78639a3f81
commit
c2026b3af0
@@ -1046,7 +1046,6 @@ static int tda1004x_read_snr(struct dvb_frontend* fe, u16 * snr)
|
|||||||
tmp = tda1004x_read_byte(state, TDA1004X_SNR);
|
tmp = tda1004x_read_byte(state, TDA1004X_SNR);
|
||||||
if (tmp < 0)
|
if (tmp < 0)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
if (tmp)
|
|
||||||
tmp = 255 - tmp;
|
tmp = 255 - tmp;
|
||||||
|
|
||||||
*snr = ((tmp << 8) | tmp);
|
*snr = ((tmp << 8) | tmp);
|
||||||
|
Reference in New Issue
Block a user