[PATCH] Add VIDIOC_S_CTRL_OLD to matroxfb

From: Petr Vandrovec
Date: Sun Oct 17 2004 - 16:11:59 EST


Hello Andrew,
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.
Thanks,
Petr Vandrovec

Signed-off-by: Petr Vandrovec <vandrove@xxxxxxxxxx>

diff -urdN linux/drivers/video/matrox/matroxfb_base.c linux/drivers/video/matrox/matroxfb_base.c
--- linux/drivers/video/matrox/matroxfb_base.c 2004-10-17 22:15:06.000000000 +0200
+++ linux/drivers/video/matrox/matroxfb_base.c 2004-10-17 22:28:34.000000000 +0200
@@ -1143,6 +1143,7 @@
return -EFAULT;
return err;
}
+ case VIDIOC_S_CTRL_OLD:
case VIDIOC_S_CTRL:
{
struct v4l2_control ctrl;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/