ALSA: bebob: fix rx packet format for Yamaha GO44/GO46, Terratec Phase 24/x24
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 18 Jun 2021 04:04:47 +0000 (13:04 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 Jun 2021 07:42:00 +0000 (09:42 +0200)
commit6b6c17fe6fa58900fa69dd000d5333b679e5e33e
tree4ce8e107dd9d0aa2eb249936651a1fb59d65d395
parentc3d2c88209e85045a364e80fe12a6cde16745b72
ALSA: bebob: fix rx packet format for Yamaha GO44/GO46, Terratec Phase 24/x24

Below devices reports zero as the number of channels for external output
plug with MIDI type:

 * Yamaha GO44/GO46
 * Terratec Phase 24/X24

As a result, rx packet format is invalid and they generate silent sound.
This is a regression added in v5.13.

This commit fixes the bug, addressed at a commit 1bd1b3be8655 ("ALSA:
bebob: perform sequence replay for media clock recovery").

Cc: <stable@vger.kernel.org>
Fixes: 5c6ea94f2b7c ("ALSA: bebob: detect the number of available MIDI ports")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210618040447.113306-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_stream.c