ALSA: firewire-tascam: use fixed-length array for message cache to async midi port
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 14 Apr 2017 07:46:29 +0000 (16:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Apr 2017 12:50:36 +0000 (14:50 +0200)
commit98a00d3602a1c50a397893c5de26dbbe7d77804a
treeab8d0c8563e9894b7948f9bf7db5b02f74f2da55
parent27badc4c10da29b884f1ac7cc9ce13e849ce8be4
ALSA: firewire-tascam: use fixed-length array for message cache to async midi port

ALSA driver for TASCAM FireWire series internally allocates 4 byte buffer
for asynchronous transaction to transfer MIDI messages. However, the buffer
can be allocated with memory object of parent structure.

This commit adds 4 byte array as a member of the structure and obsoletes
the redundant allocation. This is deallocated with memory object of parent
structure.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-transaction.c
sound/firewire/tascam/tascam.h