diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-04-25 09:45:28 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-05-26 08:32:46 -0400 |
commit | c495a4a36e763de3eb164280fd7445f1bf666a52 (patch) | |
tree | b9b8deffafc719cdbccac3ee9ca7e5a6e501931e /sound | |
parent | 9d59124cacf5d0a1e89aee83de6233bdf97afdb1 (diff) |
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 <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/firewire/bebob/bebob_stream.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c index 3e74d9b1e357..452e93684e49 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) | |||
472 | amdtp_stream_destroy(&bebob->rx_stream); | 472 | amdtp_stream_destroy(&bebob->rx_stream); |
473 | destroy_both_connections(bebob); | 473 | destroy_both_connections(bebob); |
474 | } | 474 | } |
475 | /* | ||
476 | * The firmware for these devices ignore MIDI messages in more than | ||
477 | * first 8 data blocks of an received AMDTP packet. | ||
478 | */ | ||
479 | if (bebob->spec == &maudio_fw410_spec || | ||
480 | bebob->spec == &maudio_special_spec) | ||
481 | bebob->rx_stream.rx_blocks_for_midi = 8; | ||
475 | end: | 482 | end: |
476 | return err; | 483 | return err; |
477 | } | 484 | } |