--- /dev/null
+AUX snd_card_create.patch 628 RMD160 02877183f85c2f1c66a0dc7f9ad5e2c71dfe3ee3 SHA1 9ebe253c89e9ecb3bbb512c4ec8d0bfb64cc1def SHA256 209d856a4bb21c4aaef44ee362792115cec1e0324fcde53398b9cb96a962b5e2
+DIST Hercules_DJSeries_Linux.tgz 10060469 RMD160 3aa535592cbe3ae3b031b2c29bf19ffdcd758826 SHA1 523c5763637db5742f79b2c95c4f15a906965e1d SHA256 c3957491c367f642484e7a7f5a15acb8cb50f7c407cb225eabc7fb5d6a07ed28
+EBUILD hdj_mod-1.28.ebuild 1297 RMD160 78be2914cc90bf80ef912ac3f22d202d0ed2e561 SHA1 5ee60a23c09f8a4f38e452619c3887d964207a51 SHA256 80042910fa0ea7763daaf71b915a86d0d15f450c4239da988b19ec46ee4b6a21
--- /dev/null
+--- device.c 2009-01-27 15:25:50.000000000 +0100
++++ device_patched.c 2009-09-15 :17:23.955387329 +0200
+@@ -1660,7 +1660,8 @@ static int snd_hdj_chip_create(struct us
+ /* let the kernel option override custom id */\r
+ strncpy(card_id,id[idx],sizeof(card_id)-1);\r
+ }\r
+- card = snd_card_new(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0);\r
++ //card = snd_card_new(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0);\r
++ snd_card_create(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0, &card);\r
+ if (card == NULL) {\r
+ snd_printk(KERN_WARNING "snd_hdj_chip_create(): cannot create card instance %d\n", idx);\r
+ return -ENOMEM;\r
--- /dev/null
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit eutils linux-info linux-mod
+
+DESCRIPTION="GPL Linux MIDI drivers for Hercules DJ midi controller devices"
+HOMEPAGE="http://ts.hercules.com/eng/index.php?pg=view_files&gid=2&fid=28&pid=215&cid=1"
+MY_P="Hercules_DJSeries_Linux"
+
+SRC_URI="ftp://ftp.hercules.com/pub/webupdate/DJCSeries/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="app-arch/rpm2targz"
+RDEPEND="${DEPEND}"
+
+
+src_unpack() {
+ unpack ${MY_P}.tgz || die "unpacking ${MY_P}.tgz failed";
+ cd "kernel module"
+ ebegin "unpacking hdjmod-dkms-${PV}-1.noarch.rpm"
+ rpm2targz hdjmod-dkms-${PV}-1.noarch.rpm || (eend 1;die "unpacking hdjmod-dkms-${PV}-1.noarch.rpm failed";)
+ eend 0
+
+ ebegin "unpacking hdjmod-dkms-${PV}-1.noarch.tar.gz"
+ tar xzf hdjmod-dkms-${PV}-1.noarch.tar.gz || (eend 1;die "unpacking hdjmod-dkms-${PV}-1.noarch.tar.gz failed";)
+ eend 0
+}
+
+src_prepare() {
+ mv "kernel module/usr/src/hdjmod-${PV}" ${S}
+ cd ${S}
+ epatch "${FILESDIR}/snd_card_create.patch" || die "snd_card_create.patch failed"
+}
+
+src_configure() {
+ local CONFIG_CHECK="SND_RAWMIDI SND_VIRMIDI"
+ check_extra_config
+ BUILD_TARGETS="clean modules"
+ MODULE_NAMES="hdj_mod()"
+}