From d1455834bfc1780bfc3ddba48a61adf3ff9ceab3 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 17 Jun 2005 03:36:10 +0000 Subject: 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 --- linux/drivers/media/video/cx88/cx88-video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linux/drivers') 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; -- cgit v1.2.3