summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorHans Verkuil <devnull@localhost>2005-12-28 14:56:39 +0000
committerHans Verkuil <devnull@localhost>2005-12-28 14:56:39 +0000
commita9fe21a26905beb2f2322f432b64d767a1bd2aeb (patch)
tree933bca822d3d5286a92b320ae71c4e7187d3290f /linux/drivers
parent294898f44f8c338be011b698475b8594fd5c9b3e (diff)
downloadmediapointer-dvb-s2-a9fe21a26905beb2f2322f432b64d767a1bd2aeb.tar.gz
mediapointer-dvb-s2-a9fe21a26905beb2f2322f432b64d767a1bd2aeb.tar.bz2
tea5767: move signal strength level to the 0-65535 range
- Move signal strength level to the 0-65535 range as per V4L2 spec. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tea5767.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tea5767.c b/linux/drivers/media/video/tea5767.c
index f4cadd2b4..a32f8dfe0 100644
--- a/linux/drivers/media/video/tea5767.c
+++ b/linux/drivers/media/video/tea5767.c
@@ -2,7 +2,7 @@
* For Philips TEA5767 FM Chip used on some TV Cards like Prolink Pixelview
* I2C address is allways 0xC0.
*
- * $Id: tea5767.c,v 1.32 2005/12/25 19:06:18 mkrufky Exp $
+ * $Id: tea5767.c,v 1.33 2005/12/28 14:56:39 hverkuil Exp $
*
* Copyright (c) 2005 Mauro Carvalho Chehab (mchehab@brturbo.com.br)
* This code is placed under the terms of the GNU General Public License
@@ -269,7 +269,7 @@ static int tea5767_signal(struct i2c_client *c)
if (5 != (rc = i2c_master_recv(c, buffer, 5)))
tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc);
- return ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << (13 - 4));
+ return ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << 8);
}
static int tea5767_stereo(struct i2c_client *c)