android_kernel_oneplus_msm8998/sound/isa
Takashi Iwai 5568147015 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:09:46 -07:00
..
ad1816a ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
ad1848 ALSA: wss: Remove (almost) always NULL parameters 2015-01-02 16:30:08 +01:00
cs423x ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
es1688 ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
galaxy ALSA: wss: Remove (almost) always NULL parameters 2015-01-02 16:30:08 +01:00
gus ALSA: gus: use swap() in snd_ics_put_double() 2015-06-12 20:46:29 +02:00
msnd ALSA: msnd: Optimize / harden DSP and MIDI loops 2017-09-13 14:09:46 -07:00
opti9xx ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sb ALSA: seq: Define driver object in each driver 2015-02-12 14:15:54 +01:00
wavefront sound: Deparenthesize negative error returns 2015-03-24 11:41:37 +01:00
wss ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
adlib.c ALSA: isa: Convert to snd_card_new() with a device pointer 2014-02-12 10:58:21 +01:00
als100.c ASoC: sb16: Simplify snd_sb16dsp_pcm() 2015-01-02 16:28:35 +01:00
azt2320.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
cmi8328.c ALSA: wss: Remove (almost) always NULL parameters 2015-01-02 16:30:08 +01:00
cmi8330.c ALSA: isa: Convert to snd_card_new() with a device pointer 2014-02-12 10:58:21 +01:00
es18xx.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
Kconfig ALSA: Add missing dependency on CONFIG_SND_TIMER 2016-02-17 12:30:58 -08:00
Makefile ALSA: introduce snd-cmi8328: C-Media CMI8328 driver 2012-08-21 07:30:46 +02:00
opl3sa2.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sc6000.c ALSA: wss: Remove (almost) always NULL parameters 2015-01-02 16:30:08 +01:00
sscape.c ALSA: sscape: add missing include of linux/io.h 2015-01-28 16:27:46 +01:00