ALSA: pcm: Warn if doubly preallocated
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 19:10:06 +0000 (20:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:43:34 +0000 (15:43 +0100)
commita55eaf177a36f7789eec0985a7edd00fe7353d90
tree29ea58d2b200ff97f32f3c3583687cae461b3c95
parentabffd8d0d5380e2c37759ba6be1f6bf47bfe975f
ALSA: pcm: Warn if doubly preallocated

Warn if snd_pcm_lib_preallocate_pages*() is applied to the stream that
has already the preallocated buffers and skip the allocation.  It's a
clearly a driver bug.

Link: https://lore.kernel.org/r/20191105191007.18150-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_memory.c