[alsa-devel] Solved Hercules RMX2

Daniel Schürmann daschuer at mixxx.org
Tue Apr 16 17:12:08 CEST 2013


Hi Gabriel,

Thank you for your quick response.
The patch against the alsa-kernel is also attached at
https://bugs.launchpad.net/mixxx/+bug/1096687 and here:

diff --git a/sound/usb/helper.c b/sound/usb/helper.c
index c1db28f..e044804 100644
--- a/sound/usb/helper.c
+++ b/sound/usb/helper.c
@@ -23,6 +23,9 @@
 #include "helper.h"
 #include "quirks.h"

+/* Hercules RMX2 needs 1240 ms for setting the sample rate the first time */
+#define USB_MSG_TIMEOUT 1500
+
 /*
  * combine bytes and get an integer value
  */
@@ -93,7 +96,7 @@ int snd_usb_ctl_msg(struct usb_device *dev, unsigned
int pipe, __u8 request,
 			return -ENOMEM;
 	}
 	err = usb_control_msg(dev, pipe, request, requesttype,
-			      value, index, buf, size, 1000);
+			      value, index, buf, size, USB_MSG_TIMEOUT);
 	if (size > 0) {
 		memcpy(data, buf, size);
 		kfree(buf);



Kind regards,

Daniel





2013/4/16 Gabriel M. Beddingfield <gabrbedd at gmail.com>

>
> Hi Daniel,
>
>
> On 04/15/2013 03:04 PM, Daniel Schürmann wrote:
>
>> Hallo Alsa Developers,
>>
>> I have fixed Support for Hercules RMX2.
>>
>> You can find the Bug and the patch here:
>> https://bugs.launchpad.net/**mixxx/+bug/1096687<https://bugs.launchpad.net/mixxx/+bug/1096687>
>>
> [snip]
>
>  Is it possible to include the fix in trunk?
>>
>
> Since the RMX2's /driver/ isn't in the Linux kernel -- the answer is
> probably no.  Notice that the DEB package has "DKMS" in the name --
> indicating that this is an out-of-tree driver.
>
> So, you would need to start by submitting a patch to add the RMX driver to
> the kernel.
>
> -gabriel
>
>
>


More information about the Alsa-devel mailing list