]> www.vanbest.org Git - sasc-ng.git/commitdiff
sasc: dvbloopback fixes (by gonzzor)
authorleslie <unknown>
Sat, 15 Aug 2009 07:30:29 +0000 (15:30 +0800)
committerleslie <unknown>
Sat, 15 Aug 2009 07:30:29 +0000 (15:30 +0800)
contrib/sasc-ng/Makefile
contrib/sasc-ng/dvbloopback/module/dvbdev-2.6.v4l.h
contrib/sasc-ng/dvbloopback/src/Makefile [deleted file]
contrib/sasc-ng/dvbloopback/src/process_req.c

index 492a3d60270484427c83738aee092e28b5c61892..ce1035412bc61fde87337b0f2f031361b637885e 100644 (file)
@@ -16,7 +16,7 @@ ifdef DVB_DIR
   DVB_MOD_DIR = DVB_DIR=$(DVB_DIR)
 endif
 
-DEFINES += -DRELEASE_VERSION=\"$(VERSION)\"
+DEFINES += -DRELEASE_VERSION=\"$(VERSION)\" -D__KERNEL_STRICT_NAMES
 INCLUDES += -Idvbloopback/module -I/lib/modules/$(shell uname -r)/build/include
 LBDIR = dvbloopback/src
 SCDIR = sc/PLUGINS/src/$(SCVER)
index 89d12dc477a7b4f4017803a86d1bfaa6ef46b7ce..1fb5666424fa5ca2e4e0d85159f54e1dfcf69770 100644 (file)
@@ -27,7 +27,6 @@
 #include <linux/poll.h>
 #include <linux/fs.h>
 #include <linux/list.h>
-#include <linux/smp_lock.h>
 
 #define DVB_MAJOR 212
 
@@ -62,14 +61,19 @@ struct dvb_adapter {
        struct device *device;
 
        struct module *module;
+
+        int mfe_shared;         /* indicates mutually exclusive frontends */
+        struct dvb_device *mfe_dvbdev;   /* frontend device in use */
+        struct mutex mfe_lock;      /* access lock for thread creation */
 };
 
 
 struct dvb_device {
        struct list_head list_head;
-       struct file_operations *fops;
+       const struct file_operations *fops;
        struct dvb_adapter *adapter;
        int type;
+        int minor;
        u32 id;
 
        /* in theory, 'users' can vanish now,
diff --git a/contrib/sasc-ng/dvbloopback/src/Makefile b/contrib/sasc-ng/dvbloopback/src/Makefile
deleted file mode 100644 (file)
index b938cf9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-VERSION = 0.0.2
-TOOL = forward
-
-CC       ?= gcc
-CXX      ?= g++
-CXXFLAGS ?= -g -Wall -Werror
-CFLAGS   ?= -g -Wall
-
-ifdef DVB_DIR
-  INCLUDES = -I$(DVB_DIR)/linux/include
-  DVB_MOD_DIR = DVB_DIR=$(DVB_DIR)
-endif
-
-DEFINES += -DRELEASE_VERSION=\"$(VERSION)\"
-INCLUDES += -I../module
-
-#OBJS = forward.o process_req.o msg_passing.o plugin_getsid.o plugin_ringbuf.o \
-#       plugin_dss.o version.o
-OBJS = forward.o process_req.o msg_passing.o \
-       plugin_dss.o version.o
-LIBS = -lpthread
-
-INC_DEPS := $(shell ls *.h)
-
-all: $(TOOL)
-
-$(TOOL): $(OBJS)
-       $(CXX) $(CFLAGS) -o $(TOOL) $(OBJS) $(LIBS)
-
-clean:
-       rm -f $(OBJS)
-       rm version.cpp
-
-%.o: %.c $(INC_DEPS)
-       $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
-
-%.o: %.cpp
-       $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
-
-version.o: version.cpp
-       $(CXX) $(CXXFLAGS) -o $@ -c $(DEFINES) $<
-
-version.cpp: FORCE
-       echo 'const char *source_version =' '"'`(svnversion $(shell pwd) 2>/dev/null) || echo Unknown`'";' > .vers.new ; diff .vers.new $@ > .vers.diff 2>&1 ; if test -s .vers.diff ; then mv -f .vers.new $@ ; fi ; rm -f .vers.new .vers.diff
-
-FORCE:
index d1cd1674bd87aff125d4b6efa008e717ab5a8655..e71f3527d7cd1be4b025c4c882a248f8518c5828 100644 (file)
@@ -117,6 +117,7 @@ void *poll_loop(void * parm)
       ioctl(pc->virtfd, DVBLB_CMD_ASYNC, &msg);
     }
   }
+  return NULL;
 }
 
 static cmdret_t do_cmd(struct list_head *list, struct parser_cmds *pc,