summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/tuner-xc2028.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-11-29 17:33:52 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-30 17:43:36 +0100
commit884b0515dcbcd9e574d385c97f80243805b5b0f3 (patch)
treecfa1e8406746a67a12554e4faf0e3b70ee254439 /drivers/media/common/tuners/tuner-xc2028.c
parent[media] tm6000: Fix IR register names (diff)
downloadlinux-884b0515dcbcd9e574d385c97f80243805b5b0f3.tar.xz
linux-884b0515dcbcd9e574d385c97f80243805b5b0f3.zip
[media] tuner-xc2028: Better report signal strength
Fix lock bit to better indicate signal strength, from 4096 to 65535. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tuner-xc2028.c')
-rw-r--r--drivers/media/common/tuners/tuner-xc2028.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c
index 3acbaa04e1b3..e531267babce 100644
--- a/drivers/media/common/tuners/tuner-xc2028.c
+++ b/drivers/media/common/tuners/tuner-xc2028.c
@@ -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);