提交 36a01f4d 编写于 作者: S Stefan Hajnoczi 提交者: Greg Kroah-Hartman

staging: line6: drop MIDI dumping code

ALSA amidi(1) and aseqdump(1) can be used to dump MIDI instead of
manually dumping MIDI messages in the driver.  The advantage of using
these existing tools is that can be used at run-time rather than
compile-time.
Signed-off-by: NStefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4aea449a
...@@ -402,9 +402,6 @@ static void line6_data_received(struct urb *urb) ...@@ -402,9 +402,6 @@ static void line6_data_received(struct urb *urb)
continue; continue;
line6->message_length = done; line6->message_length = done;
#ifdef CONFIG_LINE6_USB_DUMP_MIDI
line6_write_hexdump(line6, 'r', line6->buffer_message, done);
#endif
line6_midi_receive(line6, line6->buffer_message, done); line6_midi_receive(line6, line6->buffer_message, done);
switch (line6->usbdev->descriptor.idProduct) { switch (line6->usbdev->descriptor.idProduct) {
......
...@@ -59,9 +59,6 @@ static void line6_midi_transmit(struct snd_rawmidi_substream *substream) ...@@ -59,9 +59,6 @@ static void line6_midi_transmit(struct snd_rawmidi_substream *substream)
if (done == 0) if (done == 0)
break; break;
#ifdef CONFIG_LINE6_USB_DUMP_MIDI
line6_write_hexdump(line6, 's', chunk, done);
#endif
line6_midibuf_write(mb, chunk, done); line6_midibuf_write(mb, chunk, done);
snd_rawmidi_transmit_ack(substream, done); snd_rawmidi_transmit_ack(substream, done);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册