From: Takashi Sakamoto Date: Fri, 25 Apr 2014 13:45:28 +0000 (+0900) Subject: ALSA: bebob: Add a quirk of data blocks for MIDI messages for some M-Audio devices X-Git-Tag: v5.15~17754^2~40^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c495a4a36e763de3eb164280fd7445f1bf666a52;p=platform%2Fkernel%2Flinux-starfive.git ALSA: bebob: Add a quirk of data blocks for MIDI messages for some M-Audio devices The firmwares for M-Audio Firewire 410/1814 and ProjectMix I/O has a quirk to ignore MIDI messages in data blocks more than 8. This commit uses a flag which Fireworks uses for a similar quirk. Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai --- diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c index 3e74d9b..452e936 100644 --- a/sound/firewire/bebob/bebob_stream.c +++ b/sound/firewire/bebob/bebob_stream.c @@ -472,6 +472,13 @@ int snd_bebob_stream_init_duplex(struct snd_bebob *bebob) amdtp_stream_destroy(&bebob->rx_stream); destroy_both_connections(bebob); } + /* + * The firmware for these devices ignore MIDI messages in more than + * first 8 data blocks of an received AMDTP packet. + */ + if (bebob->spec == &maudio_fw410_spec || + bebob->spec == &maudio_special_spec) + bebob->rx_stream.rx_blocks_for_midi = 8; end: return err; }