Moderator: garth
iltony wrote:Good news, karmik users! I've applied the patch to the sources contained in the hercules .deb files, and built a new deb, based on the original one, which is now compatible with karmik. Simply download and install this one and you'll be all right.
Here it is:
http://drop.io/olx0f64/asset/hdjmod-dkm ... ik-all-deb
--- bulk.c 2010-06-16 19:19:17.000000000 +0100
+++ bulk.c.new 2010-06-16 19:19:53.000000000 +0100
@@ -1,3 +1,4 @@
+#define init_MUTEX(mutex) semaphore_init(mutex)
/*
*
* Copyright (c) 2008 Guillemot Corporation S.A.
--- device.c 2010-06-16 18:05:54.000000000 +0100
+++ device.c.new 2010-06-16 19:17:09.000000000 +0100
@@ -1,3 +1,5 @@
+#define init_MUTEX(mutex) semaphore_init(mutex)
+
/*
*
* Copyright (c) 2008 Guillemot Corporation S.A.
@@ -66,7 +68,7 @@
module_param_array(id, charp, NULL, 0444);
MODULE_PARM_DESC(id, "ID string for the Hercules DJ Series adapter.");
-static DECLARE_MUTEX(register_mutex);
+static DEFINE_SEMAPHORE(register_mutex);
static struct snd_hdj_chip *usb_chip[SNDRV_CARDS];
/* reference count for the socket */
@@ -1660,11 +1662,12 @@
/* let the kernel option override custom id */
strncpy(card_id,id[idx],sizeof(card_id)-1);
}
- card = snd_card_new(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0);
- if (card == NULL) {
- snd_printk(KERN_WARNING "snd_hdj_chip_create(): cannot create card instance %d\n", idx);
- return -ENOMEM;
- }
+ err = snd_card_create(index[idx], card_id/*id[idx]*/, THIS_MODULE, 0, &card);
+ if (err < 0) {
+ snd_printk(KERN_WARNING "snd_hdj_chip_create(): cannot create card instance %d\n", idx);
+ return err;
+ }
+
/* save the index, so people who have the card can reference the chip */
card->private_data = (void*)(unsigned long)idx;
--- midi.c 2010-06-16 17:11:04.000000000 +0100
+++ midi.c.new 2010-06-16 17:21:37.000000000 +0100
@@ -1,3 +1,5 @@
+#define init_MUTEX(mutex) semaphore_init(mutex)
+
/*
*
* Copyright (c) 2008 Guillemot Corporation S.A.
--- device.c 2010-06-16 20:01:15.000000000 +0100
+++ device.c.new 2010-06-16 20:02:23.000000000 +0100
@@ -1832,6 +1832,8 @@
return DJCONTROLLER_PRODUCT_CODE;
} else if (usbid == USB_ID(USB_HDJ_VENDOR_ID, DJ_CONTROL_MP3W_PID)) {
return DJCONTROLLER_PRODUCT_CODE;
+ } else if (usbid == USB_ID(USB_HDJ_VENDOR_ID, DJ_CONTROL_MP3E2_PID)) {
+ return DJCONTROLSTEEL_PRODUCT_CODE;
} else {
return DJCONSOLE_PRODUCT_UNKNOWN;
}
@@ -1863,6 +1865,7 @@
(le16_to_cpu(usb_dev->descriptor.idProduct)!=DJ_CONSOLE_MK2_PID)&&
(le16_to_cpu(usb_dev->descriptor.idProduct)!=DJ_CONSOLE_RMX_PID)&&
(le16_to_cpu(usb_dev->descriptor.idProduct)!=DJ_CONTROL_MP3_PID)&&
+ (le16_to_cpu(usb_dev->descriptor.idProduct)!=DJ_CONTROL_MP3E2_PID)&&
(le16_to_cpu(usb_dev->descriptor.idProduct)!=DJ_CONTROL_MP3W_PID)&&
(le16_to_cpu(usb_dev->descriptor.idProduct)!=DJ_CONSOLE_STEEL_PID))
{
--- device.h 2009-01-27 14:25:53.000000000 +0000
+++ device.h.new 2010-06-16 20:04:53.000000000 +0100
@@ -37,6 +37,7 @@
#define DJ_CONSOLE_MK2_PID 0xb100
#define DJ_CONSOLE_RMX_PID 0xb101
#define DJ_CONTROL_MP3_PID 0xd000
+#define DJ_CONTROL_MP3E2_PID 0xb105
#define DJ_CONTROL_MP3W_PID 0xd001
#define DJ_CONSOLE_STEEL_PID 0xb102
pizzapanther wrote:Ok i used Gabo instructions and made a deb that works.
http://www.interstellar-tech.com/ocapp/cms/hdjmod-dkms_1.28_karmic.deb
Let me know if others have success with it.
Actually for me it doesn't seem to work because I have a Hercules DJ Control MP3 e2. Does anyone know how to get that working on Ubuntu 9.10?
pizzapanther wrote:Ok i used Gabo instructions and made a deb that works.
http://www.interstellar-tech.com/ocapp/cms/hdjmod-dkms_1.28_karmic.deb
Let me know if others have success with it.
Actually for me it doesn't seem to work because I have a Hercules DJ Control MP3 e2. Does anyone know how to get that working on Ubuntu 9.10?
Users browsing this forum: No registered users and 2 guests