ALSA: dice: add MIDI ports according to current number of MIDI substreams
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Feb 2016 13:54:17 +0000 (22:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Feb 2016 11:22:09 +0000 (12:22 +0100)
commitb9022f4d2cb4660249036768f7d09442b213d12f
tree9145786e967bf08bdd4e0201bd80589c325eb985
parent1bc8e12d9480e072a7818e9cc51ff901662f2d22
ALSA: dice: add MIDI ports according to current number of MIDI substreams

This commit changes the way to add ALSA MIDI ports. This driver read the
number of multiplexed MIDI substreams from hardware register, then adds the
same number of ALSA MIDI ports. This commit is based on my assumption that
the number is fixed at all of supported sampling transfer frequency.

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