summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media')
-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: