]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd93c446b7643a6227558ac9014e1d329cd4a594e
treeabf95057eec9bb6efdf26943efd6f658e4a52f19
parent9aa68b9036ef226fcf2fd260357e62af02022949
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