summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tea5767.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-06-10 10:57:18 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-06-10 10:57:18 +0000
commit7b4d77f88caf46e29fabd3390e6aa06904ce4181 (patch)
tree8f17a34b946ee2e0a0075aeb1f96276139cfe206 /linux/drivers/media/video/tea5767.c
parenta3fba27b25767905b9608ef9adf68ada1c04776e (diff)
downloadmediapointer-dvb-s2-7b4d77f88caf46e29fabd3390e6aa06904ce4181.tar.gz
mediapointer-dvb-s2-7b4d77f88caf46e29fabd3390e6aa06904ce4181.tar.bz2
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.
Diffstat (limited to 'linux/drivers/media/video/tea5767.c')
-rw-r--r--linux/drivers/media/video/tea5767.c8
1 files changed, 6 insertions, 2 deletions
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 <media/tuner.h>
#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;