]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Add VIDIOC_S_CTRL_OLD to matroxfb
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Tue, 19 Oct 2004 01:09:53 +0000 (18:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:09:53 +0000 (18:09 -0700)
For several months I'm receiving complaints from matroxfb users that v4lctl
suddenly stops working for them on kernel upgrade.

Problem is that VIDIOC_S_CTRL was renumbered, but all distros still use old
VIDIOC_S_CTRL value (f.e.  even xawtv-3.94 in Debian unstable still uses
old VIDIOC_S_CTRL definition).

So let's add this old VIDIOC_S_CTRL value (now named VIDIOC_S_CTRL_OLD) to
matroxfb's v4l handling.

Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/matrox/matroxfb_base.c

index 84eea6057cbc47e62c6c66189983988db0e9681f..47439c4d276a3b35e463c3b10c95ec436af4c50a 100644 (file)
@@ -1143,6 +1143,7 @@ static int matroxfb_ioctl(struct inode *inode, struct file *file,
                                        return -EFAULT;
                                return err;
                        }
+               case VIDIOC_S_CTRL_OLD:
                case VIDIOC_S_CTRL:
                        {
                                struct v4l2_control ctrl;