aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-01-26 17:13:05 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:27 -0400
commitd0852ed27c650237800470b5cbde368316813406 (patch)
tree3c1e911ba54b71ef317ccd9a5996167fb7c4fe85 /drivers/media/common
parente22ed887ee18fde79c013825017521ec64eb8ed5 (diff)
V4L/DVB (10313): saa7146: fix VIDIOC_ENUMSTD.
The previous conversion to video_ioctl2 broke VIDIOC_ENUMSTD. This is now fixed. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/saa7146_fops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c
index 4a27d4eda628..fec799d2600f 100644
--- a/drivers/media/common/saa7146_fops.c
+++ b/drivers/media/common/saa7146_fops.c
@@ -511,6 +511,7 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
511 struct saa7146_vv *vv = dev->vv_data; 511 struct saa7146_vv *vv = dev->vv_data;
512 struct video_device *vfd; 512 struct video_device *vfd;
513 int err; 513 int err;
514 int i;
514 515
515 DEB_EE(("dev:%p, name:'%s', type:%d\n",dev,name,type)); 516 DEB_EE(("dev:%p, name:'%s', type:%d\n",dev,name,type));
516 517
@@ -520,9 +521,11 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
520 return -ENOMEM; 521 return -ENOMEM;
521 522
522 vfd->fops = &video_fops; 523 vfd->fops = &video_fops;
523 vfd->ioctl_ops = dev->ext_vv_data ? &dev->ext_vv_data->ops : 524 vfd->ioctl_ops = &dev->ext_vv_data->ops;
524 &saa7146_video_ioctl_ops;
525 vfd->release = video_device_release; 525 vfd->release = video_device_release;
526 vfd->tvnorms = 0;
527 for (i = 0; i < dev->ext_vv_data->num_stds; i++)
528 vfd->tvnorms |= dev->ext_vv_data->stds[i].id;
526 strlcpy(vfd->name, name, sizeof(vfd->name)); 529 strlcpy(vfd->name, name, sizeof(vfd->name));
527 video_set_drvdata(vfd, dev); 530 video_set_drvdata(vfd, dev);
528 531