diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-08 16:12:25 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-01-09 07:32:10 +0100 |
commit | 47d98c026ef9a9888c36f3c4f26b81f548a0ca86 (patch) | |
tree | 11601d8b6644c5a2dd75469978151d51ef6fb7e9 /include/sound/memalloc.h | |
parent | d7b135410e1b2f5ad64e56df09d133a23aa9fbcb (diff) | |
download | linux-47d98c026ef9a9888c36f3c4f26b81f548a0ca86.tar.bz2 |
ALSA: Remove memory reservation code from memalloc helper
Nowadays we have CMA for obtaining the contiguous memory pages
efficiently. Let's kill the old kludge for reserving the memory pages
for large buffers. It was rarely useful (only for preserving pages
among module reloading or a little help by an early boot scripting),
used only by a couple of drivers, and yet it gives too much ugliness
than its benefit.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/memalloc.h')
-rw-r--r-- | include/sound/memalloc.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index 5f73785f5977..782d1df34208 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h @@ -149,13 +149,6 @@ int snd_dma_alloc_pages_fallback(int type, struct device *dev, size_t size, struct snd_dma_buffer *dmab); void snd_dma_free_pages(struct snd_dma_buffer *dmab); -/* buffer-preservation managements */ - -#define snd_dma_pci_buf_id(pci) (((unsigned int)(pci)->vendor << 16) | (pci)->device) - -size_t snd_dma_get_reserved_buf(struct snd_dma_buffer *dmab, unsigned int id); -int snd_dma_reserve_buf(struct snd_dma_buffer *dmab, unsigned int id); - /* basic memory allocation functions */ void *snd_malloc_pages(size_t size, gfp_t gfp_flags); void snd_free_pages(void *ptr, size_t size); |