]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b77659d806cb02556af399f086cf84c72cd0702
tree9145786e967bf08bdd4e0201bd80589c325eb985
parent9f8fa2c00385f92a8caee6883eb78731e046dd21
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