mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
aver_h826d: remove driver, this driver dont work with kernels newer then 3.2 anymore, and there are no hacks avaible anymore to support newer kernels. 'Avermedia stopped developing the driver for newer kernels...' see http://www.linuxtv.org/wiki/index.php/AVerMedia_AverTV_Hybrid_Volar_HX_(A827), this device (as well A826) is now not more supported here
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
fc9b765cc9
commit
cca4563b97
@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD/installer/src
|
||||
|
||||
LDFLAGS="" make KERNELDIR=$(kernel_path)
|
||||
|
||||
fix_module_depends "h826d.ko" "averusbh826d,videodev"
|
@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
VER=`ls $BUILD/linux*/modules/lib/modules`
|
||||
|
||||
mkdir -p $INSTALL/lib/modules/$VER/aver_h826d
|
||||
cp $PKG_BUILD/installer/src/*.ko $INSTALL/lib/modules/$VER/aver_h826d
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,36 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="aver_h826d"
|
||||
PKG_VERSION="0.10"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="i386 x86_64"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.avermedia-usa.com/avertv/product/ProductDetail.aspx?Id=431&tab=APDriver"
|
||||
[ "$TARGET_ARCH" = "i386" ] && PKG_URL="http://www.avermedia-usa.com/AVerTV/Upload/Download/C038A827H826_Installer_x86_0.10-Beta_091126.zip"
|
||||
[ "$TARGET_ARCH" = "x86_64" ] && PKG_URL="http://www.avermedia-usa.com/AVerTV/Upload/Download/C038A827H826_Installer_x64_0.10-Beta_091126.zip"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain linux"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="driver"
|
||||
PKG_SHORTDESC="AVerTV Hybrid Volar MAX H826 driver"
|
||||
PKG_LONGDESC="AVerTV Hybrid Volar MAX H826 driver"
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
@ -1,65 +0,0 @@
|
||||
diff -Nr -u0 original/installer/installer.sh modified/installer/installer.sh
|
||||
--- original/installer/installer.sh 2009-11-13 11:47:33.000000000 +0100
|
||||
+++ modified/installer/installer.sh 2011-08-28 20:58:38.000000000 +0200
|
||||
@@ -177,13 +176,0 @@
|
||||
- if [[ "$kversion" != "2" || "$kpatchlevel" != "6" ]]; then
|
||||
- dialog --backtitle "$BACKTITLE" \
|
||||
- --title "Kernel version error" \
|
||||
- --msgbox "Installer cannot determine kernel version or the running kernel is not 2.6.x kernel. \n\
|
||||
-Installer will abort now.
|
||||
-" \
|
||||
- 10 $WIDTH
|
||||
- log "generate_kdep_string: wrong kernel version ${kversion}.${kpatchlevel}.${ksublevel}. Abort."
|
||||
- log_from_file $ksrc/Makefile #s016
|
||||
- log_from_file $kobj/Makefile #s016
|
||||
- exit
|
||||
- fi
|
||||
-
|
||||
diff -Nr -u0 original/installer/src/aver/osdep.c modified/installer/src/aver/osdep.c
|
||||
--- original/installer/src/aver/osdep.c 2009-11-13 11:54:56.000000000 +0100
|
||||
+++ modified/installer/src/aver/osdep.c 2011-08-28 20:19:19.000000000 +0200
|
||||
@@ -89 +88,0 @@
|
||||
-#include <linux/smp_lock.h>
|
||||
@@ -435 +434 @@
|
||||
- init_MUTEX(tmp);
|
||||
+ sema_init(tmp, 1);
|
||||
@@ -439 +438 @@
|
||||
- init_MUTEX_LOCKED(tmp);
|
||||
+ sema_init(tmp, 0);
|
||||
@@ -1069,0 +1069 @@
|
||||
+static DEFINE_MUTEX(dvbdev_mutex);
|
||||
@@ -1072 +1072 @@
|
||||
- lock_kernel();
|
||||
+ mutex_lock(&dvbdev_mutex);
|
||||
@@ -1077 +1077 @@
|
||||
- unlock_kernel();
|
||||
+ mutex_unlock(&dvbdev_mutex);
|
||||
diff -Nr -u0 original/installer/src/aver/osdep_dvb.c modified/installer/src/aver/osdep_dvb.c
|
||||
--- original/installer/src/aver/osdep_dvb.c 2009-11-13 11:54:57.000000000 +0100
|
||||
+++ modified/installer/src/aver/osdep_dvb.c 2011-08-28 20:19:36.000000000 +0200
|
||||
@@ -79 +78,0 @@
|
||||
-#include <linux/smp_lock.h>
|
||||
@@ -233 +232 @@
|
||||
- init_MUTEX(&p->feedlock);
|
||||
+ sema_init(&p->feedlock, 1);
|
||||
diff -Nr -u0 original/installer/src/aver/osdep_th2.c modified/installer/src/aver/osdep_th2.c
|
||||
--- original/installer/src/aver/osdep_th2.c 2009-11-13 11:54:57.000000000 +0100
|
||||
+++ modified/installer/src/aver/osdep_th2.c 2011-08-28 20:20:00.000000000 +0200
|
||||
@@ -78 +77,0 @@
|
||||
-#include <linux/smp_lock.h>
|
||||
@@ -80,0 +80 @@
|
||||
+#include "osdep.h"
|
||||
@@ -90 +90 @@
|
||||
- lock_kernel();
|
||||
+ SysLockKernel();
|
||||
@@ -100 +100 @@
|
||||
- unlock_kernel();
|
||||
+ SysUnlockKernel();
|
||||
diff -Nr -u0 original/installer/src/aver/osdep_v4l2.c modified/installer/src/aver/osdep_v4l2.c
|
||||
--- original/installer/src/aver/osdep_v4l2.c 2009-11-13 11:54:58.000000000 +0100
|
||||
+++ modified/installer/src/aver/osdep_v4l2.c 2011-08-28 20:20:19.000000000 +0200
|
||||
@@ -75,0 +76,2 @@
|
||||
+#define VFL_TYPE_VTX 3
|
||||
+
|
||||
@@ -84 +85,0 @@
|
||||
-#include <linux/smp_lock.h>
|
@ -1 +0,0 @@
|
||||
http://linuxtv.org/wiki/index.php/AVerMedia_AverTV_Hybrid_Volar_HX_(A827)
|
@ -1,11 +0,0 @@
|
||||
diff -Naur AVERMEDIA-Linux-x64-H826D-0.10-beta/installer/src/driver-core.c AVERMEDIA-Linux-x64-H826D-0.10-beta.patch/installer/src/driver-core.c
|
||||
--- AVERMEDIA-Linux-x64-H826D-0.10-beta/installer/src/driver-core.c 2009-11-13 11:54:59.000000000 +0100
|
||||
+++ AVERMEDIA-Linux-x64-H826D-0.10-beta.patch/installer/src/driver-core.c 2011-12-21 02:32:24.008225956 +0100
|
||||
@@ -81,6 +81,7 @@
|
||||
#include "aver/id.h"
|
||||
#include "driver-core.h"
|
||||
#include <linux/version.h>
|
||||
+#include <linux/module.h>
|
||||
|
||||
|
||||
|
@ -1,13 +0,0 @@
|
||||
diff --git a/installer/src/Makefile b/installer/src/Makefile
|
||||
index 7679c65..a83fb0b 100644
|
||||
--- a/installer/src/Makefile
|
||||
+++ b/installer/src/Makefile
|
||||
@@ -56,7 +56,7 @@ h826d-objs := $(COBJS) $(PREBUILD_OBJ)
|
||||
averusbh826d-objs := aver/averusb-mod.o
|
||||
default:: links
|
||||
$(MAKE) -C $(KERNELSRC) O=$(KERNELOBJ) SUBDIRS=`pwd` $(TARGET)
|
||||
- $(CROSS_COMPILE)strip --strip-debug *.ko
|
||||
+ $(STRIP) --strip-debug *.ko
|
||||
|
||||
|
||||
|
@ -1,52 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
ZIP_PKG="`echo $PKG_URL | sed 's%.*/\(.*\)$%\1%'`"
|
||||
|
||||
mkdir -p $BUILD/${PKG_NAME}-${PKG_VERSION}
|
||||
|
||||
unzip $SOURCES/$1/$ZIP_PKG -d $BUILD/${PKG_NAME}-${PKG_VERSION} >/dev/null 2>&1
|
||||
|
||||
tail -n +115 $BUILD/${PKG_NAME}-${PKG_VERSION}/H826D_Installer_*/AVERMEDIA-Linux-*-H826D-0.10-beta.sh | bzip2 -d | tar xf - -C $BUILD/${PKG_NAME}-${PKG_VERSION}
|
||||
|
||||
# this code is copied from scripts/unpack
|
||||
PKG_BUILD=`ls -d $BUILD/${PKG_NAME}[-_.]${PKG_VERSION}`
|
||||
for i in $PKG_DIR/patches-manual/$PKG_NAME-$PKG_VERSION*.patch ; do
|
||||
if [ -f "$i" ]; then
|
||||
PATCH=`basename $i`
|
||||
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
||||
if [ "$PT" != "patch" -a "$PT" != "$TARGET_ARCH" ]; then
|
||||
printf "%${INDENT}c SKIP PATCH: $i\n" >&$SILENT_OUT
|
||||
continue;
|
||||
else
|
||||
printf "%${INDENT}c APPLY PATCH: $i\n" >&$SILENT_OUT
|
||||
cat $i | patch -p1 -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# prebuild objects were hex edited for kernel 3.1
|
||||
[ "$TARGET_ARCH" = "x86_64" ] && KVSTR=x64
|
||||
[ "$TARGET_ARCH" = "i386" ] && KVSTR=4GREG
|
||||
cp -rf $PKG_DIR/kdep_2.6.30/OBJ-$KVSTR/* $BUILD/${PKG_NAME}-${PKG_VERSION}/installer/src
|
Loading…
x
Reference in New Issue
Block a user