exynos-linux-stable/sound/isa/msnd
Takashi Iwai 03bea515b9 ALSA: msnd: Optimize / harden DSP and MIDI loops
commit 20e2b791796bd68816fa115f12be5320de2b8021 upstream.

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: Takashi Iwai <tiwai@suse.de>
Signed-off-by: grygorii tertychnyi <gtertych@cisco.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-13 14:13:36 -07:00
..
Makefile ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd.c ALSA: msnd: Remove always NULL parameter 2015-01-02 16:28:04 +01:00
msnd.h ALSA: msnd: Remove always NULL parameter 2015-01-02 16:28:04 +01:00
msnd_classic.c ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd_classic.h ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd_midi.c ALSA: msnd: Optimize / harden DSP and MIDI loops 2017-09-13 14:13:36 -07:00
msnd_pinnacle.c ALSA: msnd: Optimize / harden DSP and MIDI loops 2017-09-13 14:13:36 -07:00
msnd_pinnacle.h ALSA: Turtle Beach Multisound Classic/Pinnacle driver 2009-01-28 07:47:36 +01:00
msnd_pinnacle_mixer.c ALSA: msnd: add some missing curly braces 2015-03-05 13:02:10 +01:00