summaryrefslogtreecommitdiffstats
path: root/sound/firewire/tascam/tascam.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2017-04-14 16:46:31 +0900
committerTakashi Iwai <tiwai@suse.de>2017-04-14 14:50:40 +0200
commit1f94205d2225339c77e64d5872ec575ee2815720 (patch)
treeb746a4d5fa927373187ba1343d9dfc276880d743 /sound/firewire/tascam/tascam.h
parent3e7dc65ca001a6e40e78b912c6146ec013a3b49a (diff)
downloadop-kernel-dev-1f94205d2225339c77e64d5872ec575ee2815720.zip
op-kernel-dev-1f94205d2225339c77e64d5872ec575ee2815720.tar.gz
ALSA: firewire-tascam: move message parameters for async midi port
Units on TASCAM FireWire series handle MIDI messages with support for running status. Drivers for the series should remember current running status and transfer valid MIDI messages. For this purpose, current ALSA driver for the series has some members in its top-level structure. This is due to better abstraction of async midi port. Nowadays, the abstraction was localized just for the driver. This commit moves the members to structure for async midi port. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/tascam/tascam.h')
-rw-r--r--sound/firewire/tascam/tascam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/tascam/tascam.h b/sound/firewire/tascam/tascam.h
index 37ec201..08ecfae 100644
--- a/sound/firewire/tascam/tascam.h
+++ b/sound/firewire/tascam/tascam.h
@@ -55,6 +55,8 @@ struct snd_fw_async_midi_port {
struct fw_transaction transaction;
u8 buf[4];
+ u8 running_status;
+ bool on_sysex;
struct snd_rawmidi_substream *substream;
int consume_bytes;
@@ -87,8 +89,6 @@ struct snd_tscm {
/* For MIDI message outgoing transactions. */
struct snd_fw_async_midi_port out_ports[TSCM_MIDI_OUT_PORT_MAX];
- u8 running_status[TSCM_MIDI_OUT_PORT_MAX];
- bool on_sysex[TSCM_MIDI_OUT_PORT_MAX];
};
#define TSCM_ADDR_BASE 0xffff00000000ull
OpenPOWER on IntegriCloud