From: "Gabriel M. Beddingfield" <gabrbedd@gmail.com>
To: "Daniel Schürmann" <daschuer@mixxx.org>
Cc: alsa-devel@alsa-project.org, Daniel Mack <daniel@caiaq.de>
Subject: Re: Solved Hercules RMX2
Date: Tue, 16 Apr 2013 08:35:05 -0700 [thread overview]
Message-ID: <516D6FA9.3020609@gmail.com> (raw)
In-Reply-To: <CABVYHNis8cn5Y_BeTMQv0hn_AaJDsOw+=GaX7pFy9JjDvP5+Tw@mail.gmail.com>
+Daniel Mack <daniel@caiaq.de> (I think he's doing a lot of USB audio
maint. these days)
On 04/16/2013 08:12 AM, Daniel Schürmann wrote:
> 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:
OK, I see now. FYI, most maintainers prefer that you submit patches
according to the guidelines in Documentation/SubmittingPatches. (I'm
not a maintainer, BTW...)
>
> 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);
This changes the value for every USB audio device... not just the RMX2.
Daniel, is there a better way to do this?
-gabriel
next prev parent reply other threads:[~2013-04-16 15:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 22:04 Solved Hercules RMX2 Daniel Schürmann
2013-04-16 14:10 ` Gabriel M. Beddingfield
2013-04-16 15:12 ` Daniel Schürmann
2013-04-16 15:35 ` Gabriel M. Beddingfield [this message]
2013-04-16 16:05 ` Daniel Mack
2013-04-16 19:14 ` Daniel Schürmann
2013-04-16 19:23 ` Daniel Mack
2013-04-16 19:24 ` Daniel Mack
[not found] ` <CABVYHNiUu+Bm=uVNHu+d6LUENAfr0FxnwE2HvmUGyzt7a1UYVg@mail.gmail.com>
2013-04-17 6:32 ` Fwd: " Daniel Schürmann
2013-04-17 13:36 ` Daniel Mack
2013-04-19 21:39 ` [PATCH] ALSA: snd-usb-audio: set the timeout for usb control set messages to 5000 ms Daniel Schürmann
2013-04-19 22:50 ` Daniel Mack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=516D6FA9.3020609@gmail.com \
--to=gabrbedd@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=daniel@caiaq.de \
--cc=daschuer@mixxx.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.