ALSA: oxfw: calculating MIDI ports in stream discover
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 18 Oct 2015 08:09:38 +0000 (17:09 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Oct 2015 10:00:47 +0000 (12:00 +0200)
commit32056041019aa91c2555cc4c280f9fbca8a1be99
treea5db8d3139012c524f04b0a961f2ae5970674262
parent56b1c72a75ec44a98aca8bbd71ac869a6f54e036
ALSA: oxfw: calculating MIDI ports in stream discover

Current OXFW driver calculates the number of MIDI ports just before adding
ALSA MIDI ports. It's convenient for some devices with quirks to move
these codes before handling quirks.

This commit implements this idea.

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