]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: snd-usb-audio: set the timeout for usb control set messages to 5000 ms
authorDaniel Schürmann <daschuer@mixxx.org>
Sat, 20 Apr 2013 21:06:17 +0000 (23:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Apr 2013 08:45:02 +0000 (10:45 +0200)
commit4b18184c92ef8874ce2937fb5293937ef30382fd
treef13f7d05eca12f485f7d09a78917f0890ede1e09
parent35ff884c81b57d1fbf15a967b23482d8c179066d
ALSA: snd-usb-audio: set the timeout for usb control set messages to 5000 ms

Set the timeout for USB control set messages according to the USB 2
spec, using the macros from include/linux/usb.h.
The get timout becomes 5000 ms even though it is 500 ms in the
spec. This patch is required to run the Hercules RMX2 which needs a
timeout of 1240 ms.

More notes from author:
I still distinguish between set and get but as long both are 5000 ms
GCC will remove it anyway. IMHO this is more easy read and there is no
need to explain why we use a get timeout for set messages.

Signed-off-by: Daniel Schürmann <daschuer@mixxx.org>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/helper.c