Skip to content
Commit 20e2b791 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: msnd: Optimize / harden DSP and MIDI loops



The ISA msnd drivers have loops fetching the ring-buffer head, tail
and size values inside the loops.  Such codes are inefficient and
fragile.

This patch optimizes it, and also adds the sanity check to avoid the
endless loops.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196131
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196133
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f33f79f3
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