]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d17168d59314b2dce9c9f8b24cfa6b3eb9f1085
treef39abb05a3edee3fb2619647e3435ee74883a27d
parent53f6996ebcb0bc74d3e8b9984d96a3ff5c95b838
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