Patch for Hercules kernel mod broken by Linux 2.6.31

General Mixxx discussion.... discuss

Moderator: garth

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby cadeirn » Mon Apr 19, 2010 5:27 pm

OK, I missed that that patch is only for 2.3.32, and it truly works with that kernel. Sorry.
cadeirn
 
Posts: 17
Joined: Mon Apr 19, 2010 11:22 am

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby reetp » Wed May 12, 2010 8:41 am

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



Used the above .deb on Lucid 10.04 with a Hercules MP3 console and it loads OK. Just trying to get Mixxx too run !
reetp
 
Posts: 13
Joined: Tue Oct 13, 2009 8:13 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Msieur Piero » Tue May 18, 2010 5:21 pm

Does anyone has more concrete results, with the iltony driver (I mean someone who succed in launching both mixxx and the hercules driver) on Ubuntu Lucid Lynx?
I have bad memories with iltony drivers, wich was impossible to install properly on my laptop. Only the pizzapanther's driver works for me, so if somebody else succed in making hercules djs works with mixxx on Lucid, Give a shout!!!
Thanks everyone!
My soundcloud : http://soundcloud.com/just_friday
All my mixtapes on Samurai.fm : http://samurai.fm/just-friday
Blog about electro music :http://just1friday.wordpress.com/
Msieur Piero
 
Posts: 109
Joined: Sat Nov 14, 2009 4:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby goncalopp » Wed Jun 16, 2010 7:46 pm

Hey all,
After a lot of fiddling, i finally managed to get my dj mp3 e2 working.

Some of the patches provided here do not seem to apply to the latest drivers downloaded from hercules support
http://ts.hercules.com/eng/index.php?pg=view_files&gid=2&fid=28&pid=215&cid=1

I created two patches, one for kernel 2.6.31+ (mentioned here before) and another for getting the new MP3E2 version working.
also mentioned on http://www.mixxx.org/forums/viewtopic.php?f=3&t=910&start=10

here you go
new-kernel patch:
Code: Select all
--- 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.


mp3 e2 patch:
Code: Select all
--- 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
 


Also, i made a .deb with the two patches applied, for the lazy amongst us ;)
http://rapidshare.com/files/399771071/h ... d.deb.html
Sorry about the rapidshare, feel free to upload it elsewhere.

Any questions please PM me

Cheers, and lots of thanks to the mixxx hacking community
goncalopp
 
Posts: 6
Joined: Thu Jun 04, 2009 7:53 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Erska » Sat Jun 26, 2010 7:58 pm

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?


Hello & Thank you!

Im happy owner of Hercules MK2 and after two days and sunny nights I got it working. Take time mess around Ubuntu 10.04 and kernel 2.6.32-23 with all good suggestions from different mailing lists and this your deb packet is only one which actually works. Then finally i got MIXXX working using your hdjmod-dkms.deb packet.

Happy Mixing: Erska
Erska
 
Posts: 1
Joined: Sat Jun 26, 2010 7:43 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby peter » Fri Jul 30, 2010 8:46 pm

Hi,I'm an ancient Italian DJ(amatorial level) and I'm trying to use the Hercules dj console Mk2 under ubuntu 10.04(with mixxx)without any success since about 3 months.My english and my experience in linux informatic language aren't good enough to make me able to resolve this problem by myself....So here I am,to ask for someone to help me if it's possible.
I bought the Mk2 Hercules console on e-bay and fortunately I've not spent a lot but anyway I would not be forced to resell it.
If there is someone that can give me an answer,please remember that I need detailed explanation like step by step.
Thank you so much. Peter.
peter
 
Posts: 2
Joined: Fri Jul 30, 2010 5:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby peter » Fri Jul 30, 2010 8:52 pm

....Sorry I forgot: I'm using Ubuntu 10.04 with kernel 2.6.34-020634-generic.Thanks again... Peter
peter
 
Posts: 2
Joined: Fri Jul 30, 2010 5:48 pm

Re: Patch for Hercules kernel mod broken by Linux 2.6.31

Postby Lorraine Swingaroo » Mon Aug 23, 2010 11:28 am

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?

You absolute superstar! We'd been having no end of difficulty getting our shiny new RMX to work with Lucid Linx.
This package sorted it out perfectly.

Thank you very much for sharing it.
Lorraine Swingaroo
 
Posts: 1
Joined: Mon Aug 23, 2010 11:23 am

Getting Hercules Console MK2 to work with Mixx

Postby crispygb » Fri Sep 10, 2010 12:37 pm

Hi
Could anyone give me clear, step by step instructions of how to get my DJ Console MK2 to work with Mixxx. I've tried installing the drivers from hercules and have followed all the posts re kernels and patches etc but I'm utterly confused so would be grateful to some one to hold my hand and take me through. At the moment, when I load Mixxx it is not identifying any Midi devices as being present, but it does list the DJ console as an output.
Any assistance gratefully received.
Regards
C
crispygb
 
Posts: 3
Joined: Fri Sep 10, 2010 12:33 pm

Hercules DJ Console On Ubuntu Lucid Or Maverick With Kernel

Postby lightrush » Tue Sep 14, 2010 5:21 pm

Hercules DJ Console On Ubuntu Lucid Or Maverick With Kernel 2.6.35

I think you will need this soon:
https://sites.google.com/site/lightrush/random-1/herculesdjconsoleonkernel2635orubuntumaverick
lightrush
 
Posts: 7
Joined: Tue Sep 14, 2010 5:19 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 3 guests