summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-06-17 03:36:10 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-06-17 03:36:10 +0000
commitd1455834bfc1780bfc3ddba48a61adf3ff9ceab3 (patch)
treed17a5188bd39e3f214f22879c436d07c5a18736d /linux/drivers/media/video/cx88/cx88-video.c
parent6fc6c2066fd389f7f78b670e5d4ba7598ffe4b2d (diff)
downloadmediapointer-dvb-s2-d1455834bfc1780bfc3ddba48a61adf3ff9ceab3.tar.gz
mediapointer-dvb-s2-d1455834bfc1780bfc3ddba48a61adf3ff9ceab3.tar.bz2
Fixes a bug on frequency report for cx88 based cards. This bug produces
error on tvtime like: Tuner refuses to tell us the current frequency: Invalid argument videoinput: Please file a bug report at http://tvtime.net/ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index 72f8a17ef..3ceb8cb96 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-video.c,v 1.65 2005/06/16 21:15:06 mchehab Exp $
+ * $Id: cx88-video.c,v 1.66 2005/06/17 03:36:10 mchehab Exp $
*
* device driver for Conexant 2388x based TV cards
* video4linux video interface
@@ -1592,11 +1592,11 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
{
struct v4l2_frequency *f = arg;
+ memset(f,0,sizeof(*f));
+
if (UNSET == core->tuner_type)
return -EINVAL;
- if (f->tuner != 0)
- return -EINVAL;
- memset(f,0,sizeof(*f));
+
f->type = fh->radio ? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
f->frequency = dev->freq;
return 0;