diff options
author | Torsten Schenk <torsten.schenk@zoho.com> | 2013-08-11 11:11:35 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-08-12 11:42:28 +0200 |
commit | 4c2aee0032b70083dafebd733ed9c774633b2fa3 (patch) | |
tree | f0e5533ed368eab0463b0f5123e4938de7c8f95f /sound/usb/6fire/midi.h | |
parent | 5ece263f1d93fba8d992e67e3ab8a71acf674db9 (diff) |
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.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/usb/6fire/midi.h b/sound/usb/6fire/midi.h index c321006e543..84851b9f555 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); |