]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-motu: add specification flag for position of flag for MIDI messages
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 20 Aug 2017 12:25:03 +0000 (21:25 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Aug 2017 10:24:00 +0000 (12:24 +0200)
commit2f14b2368dc3f729766630e052f0f63f5ba51ed8
treef09a7715d64282b1f19dffc9254aa91e6f7154f8
parent7ca2014ab38f511bacbfc80b99901a5ba8e90ef8
ALSA: firewire-motu: add specification flag for position of flag for MIDI messages

In protocols of MOTU FireWire series, when transferring MIDI messages,
transmitter set existence flag to one byte on first several quadlets. The
position differs depending on protocols and models, however two cases are
confirmed; in 5th byte and 8th byte from MSB side.

This commit adds a series of specification flag to describe them. When
the existence flag is in the 5th byte, SND_MOTU_SPEC_[R|T]X_MIDI_2ND_Q is
used. Else, another set of the flag is used. Here, '_Q' means quadlet.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-pcm.c
sound/firewire/motu/motu-protocol-v2.c
sound/firewire/motu/motu-protocol-v3.c
sound/firewire/motu/motu-stream.c
sound/firewire/motu/motu.c
sound/firewire/motu/motu.h