ALSA: firewire-tascam: clear extra MIDI bytes in an asynchronous transaction
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 20 Oct 2015 14:46:59 +0000 (23:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Oct 2015 15:49:15 +0000 (17:49 +0200)
commitf937b43d48f1080e39de723d15680b2ad5d7e6fd
treef39abb05a3edee3fb2619647e3435ee74883a27d
parent123990e930ac1213df2dfa0e2d57cfc0e1dd5e02
ALSA: firewire-tascam: clear extra MIDI bytes in an asynchronous transaction

When MIDI buffer stores two or more MIDI messages, TASCAM driver
transfers asynchronous transactions including one MIDI message and
extra bytes from second MIDI message.

This commit fixes this bug by clearing needless bytes in the buffer. The
consumed bytes are already calculated correctly, thus the sequence of
transactions is already correct.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-transaction.c
This page took 0.025529 seconds and 5 git commands to generate.