diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-08-06 14:53:24 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-08-07 16:04:27 +0200 |
commit | ddb6b5a964371e8e52e696b2b258bda144c8bd3f (patch) | |
tree | 9a805bdb0ea49b22ea2a5f86c8743a6956905e22 /sound/usb/6fire/comm.h | |
parent | 697aebab78a88c6b164cfb74d19b86817d2ccd82 (diff) | |
download | lwn-ddb6b5a964371e8e52e696b2b258bda144c8bd3f.tar.gz lwn-ddb6b5a964371e8e52e696b2b258bda144c8bd3f.zip |
ALSA: 6fire: fix DMA issues with URB transfer_buffer usage
Patch fixes 6fire not to use stack as URB transfer_buffer. URB buffers need to
be DMA-able, which stack is not. Furthermore, transfer_buffer should not be
allocated as part of larger device structure because DMA coherency issues and
patch fixes this issue too.
Cc: stable@vger.kernel.org
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Tested-by: Torsten Schenk <torsten.schenk@zoho.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/6fire/comm.h')
-rw-r--r-- | sound/usb/6fire/comm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/6fire/comm.h b/sound/usb/6fire/comm.h index 6a0840b0dcff..780d5ed8e5d8 100644 --- a/sound/usb/6fire/comm.h +++ b/sound/usb/6fire/comm.h @@ -24,7 +24,7 @@ struct comm_runtime { struct sfire_chip *chip; struct urb receiver; - u8 receiver_buffer[COMM_RECEIVER_BUFSIZE]; + u8 *receiver_buffer; u8 serial; /* urb serial */ |