From 6269a559be426d40718e9c2cb1f900b4896bc208 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Thu, 4 Oct 2012 23:14:36 +0200 Subject: system/avermedia-a867: Removed leftover patches. Signed-off-by: Heinz Wiesinger --- system/avermedia-a867/2.6.39.patch | 97 -------------------------------- system/avermedia-a867/af903x-drv.c.patch | 34 ----------- 2 files changed, 131 deletions(-) delete mode 100644 system/avermedia-a867/2.6.39.patch delete mode 100644 system/avermedia-a867/af903x-drv.c.patch diff --git a/system/avermedia-a867/2.6.39.patch b/system/avermedia-a867/2.6.39.patch deleted file mode 100644 index 2f8860313c35..000000000000 --- a/system/avermedia-a867/2.6.39.patch +++ /dev/null @@ -1,97 +0,0 @@ -From 01dbc609534dc68b8890267b95c8a1efcd17437d Mon Sep 17 00:00:00 2001 -From: FLN -Date: Mon, 23 May 2011 01:02:20 +0200 -Subject: [PATCH] use mutex instead of BKL if kernel version is greater than - 2.6.38 - -the BKL got removed with kernel version 2.6.39 -and therefore we have to use a proper locking mechanism ---- - af903x-fe.c | 12 +++++++++--- - af903x.h | 6 +++++- - usb2impl.c | 1 - - 3 files changed, 14 insertions(+), 5 deletions(-) - -diff --git a/af903x-fe.c b/af903x-fe.c -index 6f36a68..a1d1077 100644 ---- a/af903x-fe.c -+++ b/af903x-fe.c -@@ -1,5 +1,4 @@ - #include --#include - #include - #include - #include -@@ -11,7 +10,7 @@ - #define A333_FREQ_MIN 44250000 - #define A333_FREQ_MAX 867250000 - -- -+DEFINE_MUTEX(mutex); - - static int alwayslock; // default to 0 - module_param(alwayslock, int, 0644); -@@ -678,7 +677,11 @@ static int af903x_monitor_thread_func(void *data) - deb_data("- Enter %s Function -\n",__FUNCTION__); - if( !state ) return -1; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39) - lock_kernel(); -+#else -+ mutex_lock(&mutex); -+#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,61) - daemonize(); - sigfillset(¤t->blocked); -@@ -689,8 +692,11 @@ static int af903x_monitor_thread_func(void *data) - #endif - siginitsetinv(¤t->blocked, sigmask(SIGKILL)|sigmask(SIGINT)|\ - sigmask(SIGTERM)); -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39) - unlock_kernel(); -- -+#else -+ mutex_unlock(&mutex); -+#endif - while(!state->thread_should_stop && !signal_pending(current)) { - - DWORD dwError; -diff --git a/af903x.h b/af903x.h -index 203ff51..b2b35e3 100644 ---- a/af903x.h -+++ b/af903x.h -@@ -9,7 +9,12 @@ - #include - #include - #include -+#include -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39) - #include -+#else -+#include -+#endif - #include - #include - #include -@@ -19,7 +24,6 @@ - #include "firmware.h" - #include "type.h" - #include "Common.h" --#include - #include "debug.h" - - #define ENABLE_TEST_FUNCTION 0 -diff --git a/usb2impl.c b/usb2impl.c -index a3a30f9..3cf8b64 100644 ---- a/usb2impl.c -+++ b/usb2impl.c -@@ -10,7 +10,6 @@ - #include - #include - #include --#include - #include - #include - #include --- -1.7.5.2 diff --git a/system/avermedia-a867/af903x-drv.c.patch b/system/avermedia-a867/af903x-drv.c.patch deleted file mode 100644 index d8ec9301c3f0..000000000000 --- a/system/avermedia-a867/af903x-drv.c.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- af903x-drv.c.orig 2011-01-23 23:04:35.113333652 +0100 -+++ af903x-drv.c 2011-01-23 22:47:28.676666674 +0100 -@@ -1103,8 +1103,11 @@ - PDC->StreamType = StreamType_DVBT_DATAGRAM; - PDC->UsbCtrlTimeOut = 1; - -- init_MUTEX(&PDC->powerLock); -- init_MUTEX(&PDC->tunerLock); -+ //init_MUTEX(&PDC->powerLock); -+ //init_MUTEX(&PDC->tunerLock); -+ sema_init(&PDC->powerLock, 1); -+ sema_init(&PDC->tunerLock, 1); -+ - PDC->power_use_count = 0; - - PDC->idVendor = udev->descriptor.idVendor; -@@ -1116,7 +1119,8 @@ - PDC->fc[0].AVerFlags = 0x00; - PDC->fc[1].AVerFlags = 0x00; - -- init_MUTEX(&PDC->regLock); -+ //init_MUTEX(&PDC->regLock); -+ sema_init(&PDC->regLock, 1); - } - else { - PDC->UsbCtrlTimeOut = 5; -@@ -1208,5 +1212,4 @@ - - return (error); - } --//EXPORT_SYMBOL(Device_init); -- -+//EXPORT_SYMBOL(Device_init); -\ Manca newline alla fine del file -- cgit v1.2.3