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.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index c6486aa59..67f956a4f 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.47 2005/07/03 18:29:45 mchehab Exp $
+ * $Id: tuner-core.c,v 1.48 2005/07/04 22:34:39 nsh Exp $
*
* i2c tv tuner chip device driver
* core core, i.e. kernel interfaces, registering and so on
@@ -411,7 +411,10 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode,
return EINVAL;
} else {
t->admin_status &= ~T_STANDBY;
- set_freq (client, t->freq);
+ if (t->mode == V4L2_TUNER_RADIO)
+ set_freq (client, t->freq * 1000);
+ else
+ set_freq (client, t->freq / 1000);
}
}
return 0;
@@ -524,7 +527,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
vt->flags &=
~VIDEO_TUNER_STEREO_ON;
}
- vt->flags |= V4L2_TUNER_CAP_LOW; /* Allow freqs at 62.5 Hz */
+ vt->flags |= VIDEO_TUNER_LOW; /* Allow freqs at 62.5 Hz */
vt->rangelow = radio_range[0] * 16000;
vt->rangehigh = radio_range[1] * 16000;