ALSA: line6: Add delay before reading status
authorChris Rorvick <chris@rorvick.com>
Wed, 11 Feb 2015 05:03:13 +0000 (23:03 -0600)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2015 09:33:55 +0000 (10:33 +0100)
commite64e94df9916a1db6c85a3677e20926c99a1d0b3
tree5048af8fa1eaceaa34029d44865462bbbd16256c
parent1b006996b6c44d9d95462e382921954756cec99b
ALSA: line6: Add delay before reading status

The device indicates the result of a read/write operation by making the
status available on a subsequent request from the driver.  This is not
ready immediately, though, so the driver is currently slamming the
device with hundreds of pointless requests before getting the expected
response.  Add a two millisecond delay before each attempt.  This is
approximately the behavior observed with version 4.2.7.1 of the Windows
driver.

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c