]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit8b460c76bd17128db90d69a3f8b4ad2ee744d118
treef09a7715d64282b1f19dffc9254aa91e6f7154f8
parent5bbb1ab5bd0b01c4f0b19ae03fdfec487f839517
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