ALSA: firewire-lib: limit the MIDI data rate
authorClemens Ladisch <clemens@ladisch.de>
Tue, 25 Nov 2014 21:54:10 +0000 (22:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 Jan 2015 21:51:23 +0000 (22:51 +0100)
commit25ca917c0fcdd1d2c4a701905e11751275186310
treefb080f775928a406611e1ae7b0053bdf79aee5f1
parent5c697e5b46efea2c0a5da55208bc71db46698fd1
ALSA: firewire-lib: limit the MIDI data rate

Do no send MIDI bytes at the full rate at which FireWire packets happen
to be sent, but restrict them to the actual rate of a real MIDI port.
This is required by the specification, and prevents data loss when the
device's buffer overruns.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp.c
sound/firewire/amdtp.h