From cda92176c13a954d3b4c84454184a838d8ab7be5 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Mon, 25 Jan 2010 12:34:12 -0800
Subject: v4l-dvb:Added patch to support newer HD PVRs.

---
 abs/core-testing/v4l-dvb/PKGBUILD   |  5 +++--
 abs/core-testing/v4l-dvb/hdpvr.diff | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)
 create mode 100644 abs/core-testing/v4l-dvb/hdpvr.diff

diff --git a/abs/core-testing/v4l-dvb/PKGBUILD b/abs/core-testing/v4l-dvb/PKGBUILD
index 64286d7..6ebba01 100644
--- a/abs/core-testing/v4l-dvb/PKGBUILD
+++ b/abs/core-testing/v4l-dvb/PKGBUILD
@@ -4,7 +4,7 @@
 pkgname=v4l-dvb
 _kernver=2.6.28-LinHES
 pkgver=1
-pkgrel=12
+pkgrel=13
 pkgdesc="V4L-DVB drivers from mercurial"
 arch=('i686' 'x86_64')
 license=('GPL2')
@@ -12,10 +12,11 @@ url="http://linuxtv.org/"
 depends=('kernel26')
 makedepends=(kernel-headers)
 install=v4l-dvb.install
-source=(http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz)
+source=('http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz' 'hdpvr.diff')
 
 build() {
   cd $startdir/src/v4l-dvb*/
+  patch -p1 < ../hdpvr.diff
   make KERNDIR=/lib/modules/$_kernver/build \
   DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver all || return 1
   make KERNDIR=/lib/modules/$_kernver/build \
diff --git a/abs/core-testing/v4l-dvb/hdpvr.diff b/abs/core-testing/v4l-dvb/hdpvr.diff
new file mode 100644
index 0000000..bf465e5
--- /dev/null
+++ b/abs/core-testing/v4l-dvb/hdpvr.diff
@@ -0,0 +1,22 @@
+diff -ruaN v4l-dvb-31eaa9423f98.orig/linux/drivers/media/video/hdpvr/hdpvr-core.c v4l-dvb-31eaa9423f98/linux/drivers/media/video/hdpvr/hdpvr-core.c
+--- v4l-dvb-31eaa9423f98.orig/linux/drivers/media/video/hdpvr/hdpvr-core.c	2010-01-25 09:04:15.000000000 -0800
++++ v4l-dvb-31eaa9423f98/linux/drivers/media/video/hdpvr/hdpvr-core.c	2010-01-25 12:11:04.000000000 -0800
+@@ -59,6 +59,7 @@
+ 	{ USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID) },
+ 	{ USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID1) },
+ 	{ USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID2) },
++	{ USB_DEVICE(HD_PVR_VENDOR_ID, HD_PVR_PRODUCT_ID3) },
+ 	{ }					/* Terminating entry */
+ };
+ MODULE_DEVICE_TABLE(usb, hdpvr_table);
+diff -ruaN v4l-dvb-31eaa9423f98.orig/linux/drivers/media/video/hdpvr/hdpvr.h v4l-dvb-31eaa9423f98/linux/drivers/media/video/hdpvr/hdpvr.h
+--- v4l-dvb-31eaa9423f98.orig/linux/drivers/media/video/hdpvr/hdpvr.h	2010-01-25 09:04:15.000000000 -0800
++++ v4l-dvb-31eaa9423f98/linux/drivers/media/video/hdpvr/hdpvr.h	2010-01-25 12:11:17.000000000 -0800
+@@ -30,6 +30,7 @@
+ #define HD_PVR_PRODUCT_ID	0x4900
+ #define HD_PVR_PRODUCT_ID1	0x4901
+ #define HD_PVR_PRODUCT_ID2	0x4902
++#define HD_PVR_PRODUCT_ID3	0x4982
+ 
+ #define UNSET    (-1U)
+ 
-- 
cgit v0.12