diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/media/0031-v4l-subdev-Generic-ioctl-support.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/media/0031-v4l-subdev-Generic-ioctl-support.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/media/0031-v4l-subdev-Generic-ioctl-support.patch b/extras/recipes-kernel/linux/linux-omap/media/0031-v4l-subdev-Generic-ioctl-support.patch new file mode 100644 index 00000000..d1bac037 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/media/0031-v4l-subdev-Generic-ioctl-support.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 3378e81670a983f084f6d8e6be654234b258e482 Mon Sep 17 00:00:00 2001 | ||
2 | From: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | ||
3 | Date: Fri, 26 Feb 2010 16:23:10 +0100 | ||
4 | Subject: [PATCH 31/43] v4l: subdev: Generic ioctl support | ||
5 | |||
6 | Instead of returning an error when receiving an ioctl call with an | ||
7 | unsupported command, forward the call to the subdev core::ioctl handler. | ||
8 | |||
9 | Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> | ||
10 | --- | ||
11 | Documentation/video4linux/v4l2-framework.txt | 5 +++++ | ||
12 | drivers/media/video/v4l2-subdev.c | 2 +- | ||
13 | 2 files changed, 6 insertions(+), 1 deletions(-) | ||
14 | |||
15 | diff --git a/Documentation/video4linux/v4l2-framework.txt b/Documentation/video4linux/v4l2-framework.txt | ||
16 | index d0fb880..1bb5f22 100644 | ||
17 | --- a/Documentation/video4linux/v4l2-framework.txt | ||
18 | +++ b/Documentation/video4linux/v4l2-framework.txt | ||
19 | @@ -407,6 +407,11 @@ VIDIOC_UNSUBSCRIBE_EVENT | ||
20 | To properly support events, the poll() file operation is also | ||
21 | implemented. | ||
22 | |||
23 | +Private ioctls | ||
24 | + | ||
25 | + All ioctls not in the above list are passed directly to the sub-device | ||
26 | + driver through the core::ioctl operation. | ||
27 | + | ||
28 | |||
29 | I2C sub-device drivers | ||
30 | ---------------------- | ||
31 | diff --git a/drivers/media/video/v4l2-subdev.c b/drivers/media/video/v4l2-subdev.c | ||
32 | index e706c4c..1710a64 100644 | ||
33 | --- a/drivers/media/video/v4l2-subdev.c | ||
34 | +++ b/drivers/media/video/v4l2-subdev.c | ||
35 | @@ -276,7 +276,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg) | ||
36 | } | ||
37 | #endif | ||
38 | default: | ||
39 | - return -ENOIOCTLCMD; | ||
40 | + return v4l2_subdev_call(sd, core, ioctl, cmd, arg); | ||
41 | } | ||
42 | |||
43 | return 0; | ||
44 | -- | ||
45 | 1.6.6.1 | ||
46 | |||