From 01d089cbd4d0baf6c2bbd2665e445995d8e67265 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Mon, 4 Jul 2005 22:34:39 +0000 Subject: Fix v4l1 call VIDIOCGTUNER to tuner --- linux/drivers/media/video/tuner-core.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'linux') 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; -- cgit v1.2.3