]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: memalloc: Add vmalloc buffer allocation support
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 08:01:36 +0000 (09:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:43:33 +0000 (15:43 +0100)
commitbfe7dba4fc6d6b285a0a344f5c66e2c6208785b0
tree4be717cf7f90a016e5f9b5453ab7932571823203
parent3c4a867833fe4cdf10a140a17dbb73b6edccdde3
ALSA: memalloc: Add vmalloc buffer allocation support

This patch adds the vmalloc buffer support to ALSA memalloc core.  A
new type, SNDRV_DMA_TYPE_VMALLOC was added.

The vmalloc buffer has been already supported in the PCM via a few own
helper functions, but the user sometimes get confused and misuse
them.  With this patch, the whole buffer management is integrated into
the memalloc core, so they can be used in a sole common way.

Link: https://lore.kernel.org/r/20191105080138.1260-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/memalloc.h
sound/core/memalloc.c