]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61f0e00de35a8d7d0bf6317ca93feaaaf5f10b0d
treefb080f775928a406611e1ae7b0053bdf79aee5f1
parent5f368a506ff4dca1700ec8eaa44faa563510a496
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