summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-06-30 21:46:28 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-06-30 21:46:28 +0000
commit8c085981b15c74fd71be6a962cafb5c6fb27475b (patch)
treed36389f5df1b0c231ed66582b7d3971b85478617 /linux/drivers
parentf90f70357b8b7939070e72fa47969c6fc27a62e0 (diff)
downloadmediapointer-dvb-s2-8c085981b15c74fd71be6a962cafb5c6fb27475b.tar.gz
mediapointer-dvb-s2-8c085981b15c74fd71be6a962cafb5c6fb27475b.tar.bz2
* tuner-core.c:
- Included two new debug msgs for showing I2C set_type calls when tuner_debug is on. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/tuner-core.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index 54692bc64..ae5c0ceb6 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -1,5 +1,5 @@
/*
- * $Id: tuner-core.c,v 1.34 2005/06/30 17:16:03 mchehab Exp $
+ * $Id: tuner-core.c,v 1.35 2005/06/30 21:46:28 mchehab Exp $
*
* i2c tv tuner chip device driver
* core core, i.e. kernel interfaces, registering and so on
@@ -408,9 +408,18 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
switch (cmd) {
/* --- configuration --- */
case TUNER_SET_TYPE:
+ if (tuner_debug)
+ tuner_dbg("Calling set_type for type=%d\n",*iarg);
+
set_type(client, *iarg, T_RADIO | T_ANALOG_TV | T_DIGITAL_TV);
break;
case TUNER_SET_TYPE_ADDR:
+ if (tuner_debug)
+ tuner_dbg("Calling set_type_addr for type=%d, addr=0x%02x, mode=0x%02x\n",
+ ((struct tuner_addr *)arg)->type,
+ ((struct tuner_addr *)arg)->addr,
+ ((struct tuner_addr *)arg)->v4l2_tuner);
+
set_addr(client, (struct tuner_addr *)arg);
break;
case AUDC_SET_RADIO: