diff options
author | 2019-11-05 09:01:36 +0100 | |
---|---|---|
committer | 2019-11-06 15:43:33 +0100 | |
commit | 1fe7f397cfe229494a88c6496b53ba532d4d4a42 (patch) | |
tree | 4be717cf7f90a016e5f9b5453ab7932571823203 /include/sound | |
parent | ALSA: memalloc: Allow NULL device for SNDRV_DMA_TYPE_CONTINUOUS type (diff) | |
download | linux-1fe7f397cfe229494a88c6496b53ba532d4d4a42.tar.gz linux-1fe7f397cfe229494a88c6496b53ba532d4d4a42.tar.bz2 linux-1fe7f397cfe229494a88c6496b53ba532d4d4a42.zip |
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>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/memalloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index 240622d89c0b..6ada3b8ede4e 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h @@ -44,6 +44,7 @@ struct snd_dma_device { #else #define SNDRV_DMA_TYPE_DEV_IRAM SNDRV_DMA_TYPE_DEV #endif +#define SNDRV_DMA_TYPE_VMALLOC 7 /* vmalloc'ed buffer */ /* * info for buffer allocation |