summaryrefslogtreecommitdiff
path: root/sound/usb/6fire/midi.h
diff options
context:
space:
mode:
authorTorsten Schenk <torsten.schenk@zoho.com>2013-08-11 09:11:35 (GMT)
committerTakashi Iwai <tiwai@suse.de>2013-08-12 09:42:28 (GMT)
commit4c2aee0032b70083dafebd733ed9c774633b2fa3 (patch)
treef0e5533ed368eab0463b0f5123e4938de7c8f95f /sound/usb/6fire/midi.h
parent5ece263f1d93fba8d992e67e3ab8a71acf674db9 (diff)
downloadlinux-4c2aee0032b70083dafebd733ed9c774633b2fa3.tar.xz
ALSA: 6fire: make buffers DMA-able (midi)
Patch makes midi output buffer DMA-able by allocating it separately. Signed-off-by: Torsten Schenk <torsten.schenk@zoho.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/6fire/midi.h')
-rw-r--r--sound/usb/6fire/midi.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/usb/6fire/midi.h b/sound/usb/6fire/midi.h
index c321006..84851b9 100644
--- a/sound/usb/6fire/midi.h
+++ b/sound/usb/6fire/midi.h
@@ -16,10 +16,6 @@
#include "common.h"
-enum {
- MIDI_BUFSIZE = 64
-};
-
struct midi_runtime {
struct sfire_chip *chip;
struct snd_rawmidi *instance;
@@ -32,7 +28,7 @@ struct midi_runtime {
struct snd_rawmidi_substream *out;
struct urb out_urb;
u8 out_serial; /* serial number of out packet */
- u8 out_buffer[MIDI_BUFSIZE];
+ u8 *out_buffer;
int buffer_offset;
void (*in_received)(struct midi_runtime *rt, u8 *data, int length);