summarylogtreecommitdiffstats
path: root/2.6.38.patch
blob: 34d06c974326f3c244aeabc8bdf3c71a46ceab68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Only in sc/contrib/sasc-ng: config.mak
diff -ru sc/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c sc-build/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c
--- sc/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c	2011-04-27 09:36:37.197065902 +0300
+++ sc-build/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c	2011-04-27 09:42:23.640415717 +0300
@@ -166,9 +166,9 @@
 	struct file *ftmp = find_forwardmap(lbdev, f->private_data);
 	if (!ftmp || IS_ERR(ftmp))
 		return -EFAULT;
-	if (lbdev->forward_dev->fops &&lbdev->forward_dev->fops->ioctl)
-		return lbdev->forward_dev->fops->ioctl(
-		           ftmp->f_dentry->d_inode, ftmp, cmd, arg);
+	if (lbdev->forward_dev->fops &&lbdev->forward_dev->fops->unlocked_ioctl)
+		return lbdev->forward_dev->fops->unlocked_ioctl(
+		           ftmp, cmd, arg);
 	return -EFAULT;
 }
 
diff -ru sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c sc-build/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c
--- sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c	2011-04-27 09:36:37.197065902 +0300
+++ sc-build/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c	2011-04-27 09:41:54.984751422 +0300
@@ -118,9 +118,9 @@
 /* This is a copy of dvb_usercopy.  We need to do this because it isn't exported
    by dvbdev
 */
-static int dvblb_usercopy(struct inode *inode, struct file *file,
+static int dvblb_usercopy(struct file *file,
 		     unsigned int cmd, unsigned long arg,
-		     int (*func)(struct inode *inode, struct file *file,
+		     int (*func)(struct file *file,
 		     unsigned int cmd, void *arg))
 {
 	char    sbuf[128];
@@ -180,7 +180,7 @@
 	}
 
 	/* call driver */
-	if ((err = func(inode, file, cmd, parg)) == -ENOIOCTLCMD)
+	if ((err = func(file, cmd, parg)) == -ENOIOCTLCMD)
 		err = -EINVAL;
 
 	if (err < 0)
@@ -663,7 +663,7 @@
    dvb_generic_ioctl) which is called by dvblb_ioctl for device-0.  It is
    used to forward ioctl commands back to the userspace application
 */
-static int dvblb_looped_ioctl(struct inode *inode, struct file *f,
+static int dvblb_looped_ioctl(struct file *f,
 	unsigned int cmd, void *parg)
 {
 	int ret;
@@ -692,7 +692,7 @@
 	return ret;
 }
 
-static int dvblb_ioctl(struct inode *inode, struct file *f,
+static int dvblb_ioctl(struct file *f,
 	unsigned int cmd, unsigned long arg)
 {
 	void * parg = (void *)arg;
@@ -722,8 +722,7 @@
 		/* This is the looped device */
 		if (lbdev->forward_dev)
 			return dvblb_forward_ioctl(lbdev, f, cmd, arg);
-
-		return dvblb_usercopy (inode, f, cmd, arg,
+			return dvblb_usercopy (f, cmd, arg,
 		                       dvbdev->kernel_ioctl);
 	}
 	/* This is the userspace control device */
@@ -978,7 +977,7 @@
 	.write		= dvblb_write,
 	.poll		= dvblb_poll,
 	.mmap		= dvblb_mmap,
-	.ioctl		= dvblb_ioctl,
+	.unlocked_ioctl	= dvblb_ioctl,
 };
 
 static struct dvb_device dvbdev_looped = {
@@ -998,7 +997,7 @@
 	.write		= dvblb_write,
 	.poll		= dvblb_poll,
 	.mmap		= dvblb_mmap,
-	.ioctl		= dvblb_ioctl,
+        .unlocked_ioctl = dvblb_ioctl,
 };
 
 static struct dvb_device dvbdev_userspace = {
diff -ru sc/contrib/sasc-ng/Makefile sc-build/contrib/sasc-ng/Makefile
--- sc/contrib/sasc-ng/Makefile	2011-04-27 09:36:37.193734235 +0300
+++ sc-build/contrib/sasc-ng/Makefile	2011-04-27 09:44:40.072162363 +0300
@@ -8,7 +8,7 @@
 
 CC       ?= gcc
 CXX      ?= g++
-CXXFLAGS ?= -Wall -D__user= -Werror 
+CXXFLAGS ?= -Wall -D__user= 
 CFLAGS   ?= -Wall -D__user= 
 
 ifdef DVB_DIR
@@ -57,7 +57,7 @@
 INC_DEPS := $(shell ls $(LBDIR)/*.h) dvbloopback/module/dvbloopback.h
 INC_DEPS_LB := $(shell ls dvblb_plugins/*.h)
 
-LIBS = -lpthread -lcrypto -lcrypt
+LIBS = -lpthread -lcrypto -lcrypt -lv4l1
 
 all: $(TOOL) libscanwrap.so
 
diff -ru sc/contrib/sasc-ng/sc/dvbdevice.cpp sc-build/contrib/sasc-ng/sc/dvbdevice.cpp
--- sc/contrib/sasc-ng/sc/dvbdevice.cpp	2011-04-27 09:36:37.207060903 +0300
+++ sc-build/contrib/sasc-ng/sc/dvbdevice.cpp	2011-04-27 09:42:51.956250022 +0300
@@ -10,7 +10,7 @@
 #include "include/vdr/dvbdevice.h"
 #include <errno.h>
 #include <limits.h>
-#include <linux/videodev.h>
+#include <libv4l1-videodev.h>
 #include <linux/dvb/audio.h>
 #include <linux/dvb/dmx.h>
 #include <linux/dvb/frontend.h>