[media] tuner-xc2028: Better report signal strength
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 29 Nov 2011 16:33:52 +0000 (13:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 30 Nov 2011 16:43:36 +0000 (14:43 -0200)
Fix lock bit to better indicate signal strength, from 4096 to
65535.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c

index 3acbaa04e1b3b3c6a4711211b5bf9acfe1e1dbe8..e531267babce35b22a305b1491e72008addcd4fa 100644 (file)
@@ -891,7 +891,7 @@ static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
 
        /* Frequency is locked */
        if (frq_lock == 1)
-               signal = 32768;
+               signal = 1 << 11;
 
        /* Get SNR of the video signal */
        rc = xc2028_get_reg(priv, 0x0040, &signal);