diff options
author | Johan Hovold <johan@kernel.org> | 2021-10-25 14:11:42 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-10-26 08:12:14 +0200 |
commit | f4000b58b64344871d7b27c05e73932f137cfef6 (patch) | |
tree | 0ab751647cf7e61adb8102d1054c12dd2cd4a93a /sound/usb/line6/toneport.c | |
parent | 9b371c6cc37f954360989eec41c2ddc5a6b83917 (diff) |
ALSA: line6: fix control and interrupt message timeouts
USB control and interrupt message timeouts are specified in milliseconds
and should specifically not vary with CONFIG_HZ.
Fixes: 705ececd1c60 ("Staging: add line6 usb driver")
Cc: stable@vger.kernel.org # 2.6.30
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20211025121142.6531-3-johan@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/toneport.c')
-rw-r--r-- | sound/usb/line6/toneport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index 4e5693c97aa4..e33df58740a9 100644 --- a/sound/usb/line6/toneport.c +++ b/sound/usb/line6/toneport.c @@ -128,7 +128,7 @@ static int toneport_send_cmd(struct usb_device *usbdev, int cmd1, int cmd2) ret = usb_control_msg_send(usbdev, 0, 0x67, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_OUT, - cmd1, cmd2, NULL, 0, LINE6_TIMEOUT * HZ, + cmd1, cmd2, NULL, 0, LINE6_TIMEOUT, GFP_KERNEL); if (ret) { |