aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/saa7146_fops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/common/saa7146_fops.c')
-rw-r--r--drivers/media/common/saa7146_fops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c
index dfb396568ab6..428a543ec2ce 100644
--- a/drivers/media/common/saa7146_fops.c
+++ b/drivers/media/common/saa7146_fops.c
@@ -478,7 +478,8 @@ int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv)
478 v4l2_ctrl_handler_free(hdl); 478 v4l2_ctrl_handler_free(hdl);
479 return -ENOMEM; 479 return -ENOMEM;
480 } 480 }
481 ext_vv->ops = saa7146_video_ioctl_ops; 481 ext_vv->vid_ops = saa7146_video_ioctl_ops;
482 ext_vv->vbi_ops = saa7146_vbi_ioctl_ops;
482 ext_vv->core_ops = &saa7146_video_ioctl_ops; 483 ext_vv->core_ops = &saa7146_video_ioctl_ops;
483 484
484 DEB_EE("dev:%p\n", dev); 485 DEB_EE("dev:%p\n", dev);
@@ -579,7 +580,10 @@ int saa7146_register_device(struct video_device **vid, struct saa7146_dev* dev,
579 return -ENOMEM; 580 return -ENOMEM;
580 581
581 vfd->fops = &video_fops; 582 vfd->fops = &video_fops;
582 vfd->ioctl_ops = &dev->ext_vv_data->ops; 583 if (type == VFL_TYPE_GRABBER)
584 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops;
585 else
586 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops;
583 vfd->release = video_device_release; 587 vfd->release = video_device_release;
584 /* Locking in file operations other than ioctl should be done by 588 /* Locking in file operations other than ioctl should be done by
585 the driver, not the V4L2 core. 589 the driver, not the V4L2 core.