ALSA: bebob: detect the number of available MIDI ports
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 21 Mar 2021 03:28:30 +0000 (12:28 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Mar 2021 11:22:27 +0000 (12:22 +0100)
commit5c6ea94f2b7c5ce4c012ac8c23fd35588f69c4c7
treeabf95057eec9bb6efdf26943efd6f658e4a52f19
parentcaa271510687f3ce3eed3a120cd2a6f71bc49223
ALSA: bebob: detect the number of available MIDI ports

Current implementation counts the number of input/output plugs for MIDI
type and uses the count as the number of physical MIDI ports. However,
the number of channels of the port represents the count.

This commit fixes the bug by additional vendor-specific AVC command
extension.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210321032831.340278-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob.h
sound/firewire/bebob/bebob_command.c
sound/firewire/bebob/bebob_stream.c