summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@gmail.com>2008-04-09 22:18:56 -0300
committerDouglas Schilling Landgraf <dougsland@gmail.com>2008-04-09 22:18:56 -0300
commitf579d3c318993d8c1407dc51a709e1cdf1b5cc75 (patch)
treec320d07d779bd5ef6219d2b60cd5399fae976f9f /linux/drivers/media/video/videodev.c
parente484ab203ee774632419faa227fcfc21c638edc9 (diff)
downloadmediapointer-dvb-s2-f579d3c318993d8c1407dc51a709e1cdf1b5cc75.tar.gz
mediapointer-dvb-s2-f579d3c318993d8c1407dc51a709e1cdf1b5cc75.tar.bz2
videodev: Add default vidioc handler
From: Douglas Schilling Landgraf <dougsland@gmail.com> Added default vidioc handler for other private ioctls Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r--linux/drivers/media/video/videodev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c
index 43cdb1de5..9c38b6b2f 100644
--- a/linux/drivers/media/video/videodev.c
+++ b/linux/drivers/media/video/videodev.c
@@ -1890,6 +1890,13 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
dbgarg (cmd, "chip_ident=%u, revision=0x%x\n", p->ident, p->revision);
break;
}
+ default:
+ {
+ if (!vfd->vidioc_default)
+ break;
+ ret = vfd->vidioc_default(file, fh, cmd, arg);
+ break;
+ }
} /* switch */
if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) {