ALSA: firewire-digi00x: add support for MIDI ports corresponding to isochronous packe...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 11 Oct 2015 03:30:16 +0000 (12:30 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 11 Oct 2015 16:26:04 +0000 (18:26 +0200)
commit9fbfd38b204a3f04272183c0258a3ded03a5aae8
tree148f0e92d36712733e7dfdfa3b4309f27ade5fb3
parent9dc5d31cdceb5f1ee65edc8a41a5bc7c92d85dd5
ALSA: firewire-digi00x: add support for MIDI ports corresponding to isochronous packet streaming

This commit adds MIDI functionality to capture/playback MIDI messages
from/to physical MIDI ports. These messages are transferred in isochronous
packets.

When no substreams request AMDTP streams to run, this driver starts the
streams at current sampling rate. When other substreams start at different
sampling rate, the streams are stopped temporarily, then start again at
requested sampling rate. This operation can generate missing MIDI bytes,
thus it's preferable to start PCM substreams at favorite sampling rate in
advance.

Digi 002/003 console also has a set of MIDI port for physical controls.
These ports are added in later commits.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/digi00x/Makefile
sound/firewire/digi00x/digi00x-midi.c [new file with mode: 0644]
sound/firewire/digi00x/digi00x-stream.c
sound/firewire/digi00x/digi00x.c
sound/firewire/digi00x/digi00x.h