Skip to content
Commit 08fdced6 authored by David Henningsson's avatar David Henningsson Committed by Takashi Iwai
Browse files

ALSA: rawmidi: Add framing mode



This commit adds a new framing mode that frames all MIDI data into
32-byte frames with a timestamp.

The main benefit is that we can get accurate timestamps even if
userspace wakeup and processing is not immediate.

Testing on a Celeron N3150 with this mode has a max jitter of 2.8 ms,
compared to the in-kernel seq implementation which has a max jitter
of 5 ms during idle and much worse when running scheduler stress tests
in parallel.

Signed-off-by: default avatarDavid Henningsson <coding@diwic.se>
Reviewed-by: default avatarJaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210515071533.55332-1-coding@diwic.se


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent bac59054
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment