1 Only in sc/contrib/sasc-ng: config.mak
2 diff -ru sc/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c sc-build/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c
3 --- sc/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c 2011-04-27 09:36:37.197065902 +0300
4 +++ sc-build/contrib/sasc-ng/dvbloopback/module/dvblb_forward.c 2011-04-27 09:42:23.640415717 +0300
6 struct file *ftmp = find_forwardmap(lbdev, f->private_data);
7 if (!ftmp || IS_ERR(ftmp))
9 - if (lbdev->forward_dev->fops &&lbdev->forward_dev->fops->ioctl)
10 - return lbdev->forward_dev->fops->ioctl(
11 - ftmp->f_dentry->d_inode, ftmp, cmd, arg);
12 + if (lbdev->forward_dev->fops &&lbdev->forward_dev->fops->unlocked_ioctl)
13 + return lbdev->forward_dev->fops->unlocked_ioctl(
18 diff -ru sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c sc-build/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c
19 --- sc/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c 2011-04-27 09:36:37.197065902 +0300
20 +++ sc-build/contrib/sasc-ng/dvbloopback/module/dvb_loopback.c 2011-04-27 09:41:54.984751422 +0300
22 /* This is a copy of dvb_usercopy. We need to do this because it isn't exported
25 -static int dvblb_usercopy(struct inode *inode, struct file *file,
26 +static int dvblb_usercopy(struct file *file,
27 unsigned int cmd, unsigned long arg,
28 - int (*func)(struct inode *inode, struct file *file,
29 + int (*func)(struct file *file,
30 unsigned int cmd, void *arg))
37 - if ((err = func(inode, file, cmd, parg)) == -ENOIOCTLCMD)
38 + if ((err = func(file, cmd, parg)) == -ENOIOCTLCMD)
43 dvb_generic_ioctl) which is called by dvblb_ioctl for device-0. It is
44 used to forward ioctl commands back to the userspace application
46 -static int dvblb_looped_ioctl(struct inode *inode, struct file *f,
47 +static int dvblb_looped_ioctl(struct file *f,
48 unsigned int cmd, void *parg)
55 -static int dvblb_ioctl(struct inode *inode, struct file *f,
56 +static int dvblb_ioctl(struct file *f,
57 unsigned int cmd, unsigned long arg)
59 void * parg = (void *)arg;
61 /* This is the looped device */
62 if (lbdev->forward_dev)
63 return dvblb_forward_ioctl(lbdev, f, cmd, arg);
65 - return dvblb_usercopy (inode, f, cmd, arg,
66 + return dvblb_usercopy (f, cmd, arg,
67 dvbdev->kernel_ioctl);
69 /* This is the userspace control device */
74 - .ioctl = dvblb_ioctl,
75 + .unlocked_ioctl = dvblb_ioctl,
78 static struct dvb_device dvbdev_looped = {
83 - .ioctl = dvblb_ioctl,
84 + .unlocked_ioctl = dvblb_ioctl,
87 static struct dvb_device dvbdev_userspace = {
88 diff -ru sc/contrib/sasc-ng/Makefile sc-build/contrib/sasc-ng/Makefile
89 --- sc/contrib/sasc-ng/Makefile 2011-04-27 09:36:37.193734235 +0300
90 +++ sc-build/contrib/sasc-ng/Makefile 2011-04-27 09:44:40.072162363 +0300
95 -CXXFLAGS ?= -Wall -D__user= -Werror
96 +CXXFLAGS ?= -Wall -D__user=
97 CFLAGS ?= -Wall -D__user=
101 INC_DEPS := $(shell ls $(LBDIR)/*.h) dvbloopback/module/dvbloopback.h
102 INC_DEPS_LB := $(shell ls dvblb_plugins/*.h)
104 -LIBS = -lpthread -lcrypto -lcrypt
105 +LIBS = -lpthread -lcrypto -lcrypt -lv4l1
107 all: $(TOOL) libscanwrap.so
109 diff -ru sc/contrib/sasc-ng/sc/dvbdevice.cpp sc-build/contrib/sasc-ng/sc/dvbdevice.cpp
110 --- sc/contrib/sasc-ng/sc/dvbdevice.cpp 2011-04-27 09:36:37.207060903 +0300
111 +++ sc-build/contrib/sasc-ng/sc/dvbdevice.cpp 2011-04-27 09:42:51.956250022 +0300
113 #include "include/vdr/dvbdevice.h"
116 -#include <linux/videodev.h>
117 +#include <libv4l1-videodev.h>
118 #include <linux/dvb/audio.h>
119 #include <linux/dvb/dmx.h>
120 #include <linux/dvb/frontend.h>