aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/6fire/midi.h
diff options
context:
space:
mode:
authorTorsten Schenk <torsten.schenk@zoho.com>2013-08-11 11:11:35 +0200
committerTakashi Iwai <tiwai@suse.de>2013-08-12 11:42:28 +0200
commit4c2aee0032b70083dafebd733ed9c774633b2fa3 (patch)
treef0e5533ed368eab0463b0f5123e4938de7c8f95f /sound/usb/6fire/midi.h
parentALSA: 6fire: make buffers DMA-able (pcm) (diff)
downloadlinux-dev-4c2aee0032b70083dafebd733ed9c774633b2fa3.tar.xz
linux-dev-4c2aee0032b70083dafebd733ed9c774633b2fa3.zip
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 '')
-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 c321006e5430..84851b9f5559 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);