From 7b4d77f88caf46e29fabd3390e6aa06904ce4181 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 10 Jun 2005 10:57:18 +0000 Subject: Mostly corrected a bug when changing from audio <-> Tv mode and having separated tuners. * tuner-core.c: - Improved debug for radio/TV tuner calls. - Corrected set radio/TV mode calls to change status go to both tuners. - Improved V4L2_TUNER_CAP_LOW support (tv_range hack) * tea5767.c: - Included a new debug message. * cx88-video.c: - Enabled V4L2_TUNER_CAP_LOW to radio. --- linux/drivers/media/video/tea5767.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/video/tea5767.c') diff --git a/linux/drivers/media/video/tea5767.c b/linux/drivers/media/video/tea5767.c index 3539babce..153e4aa90 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.5 2005/06/08 01:28:09 mchehab Exp $ + * $Id: tea5767.c,v 1.6 2005/06/10 10:57:18 mchehab Exp $ * * Copyright (c) 2005 Mauro Carvalho Chehab (mchehab@brturbo.com.br) * This code is placed under the terms of the GNU General Public License @@ -28,6 +28,8 @@ #include #endif +#define PREFIX "TEA5767 " + /* Write mode register values */ /* First register */ @@ -146,6 +148,9 @@ static void set_radio_freq(struct i2c_client *c, unsigned int frq) unsigned div; int rc; + printk(PREFIX "radio freq counter %d\n",frq); + + /* Rounds freq to next decimal value */ frq = 20*(frq/16)+radio_frq[frq%16]; @@ -191,7 +196,6 @@ static void set_radio_freq(struct i2c_client *c, unsigned int frq) tuner_warn("i2c i/o error: rc == %d (should be 5)\n",rc); } -#define PREFIX "TEA5767 " static void tea5767_status_dump(unsigned char *buffer) { unsigned int div; -- cgit v1.2.3