From a9fe21a26905beb2f2322f432b64d767a1bd2aeb Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Wed, 28 Dec 2005 14:56:39 +0000 Subject: 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 --- linux/drivers/media/video/tea5767.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media') 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) -- cgit v1.2.3