aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-10-22 23:47:43 -0400
committerTakashi Iwai <tiwai@suse.de>2013-10-24 03:20:47 -0400
commit055032142c42d2821c4aa617915292d6a08d56fc (patch)
treece10032a40379b482eda19f8b04f8924a1625195 /include/sound
parent861e66d3418a90f57b31a50110fc70b23569c551 (diff)
ALSA: Add SoC on-chip internal ram support for DMA buffer allocation
Now it's quite common that an SoC contains its on-chip internal RAM. By using this RAM space for DMA buffer during audio playback/record, we can shutdown the voltage for external RAM to save power. So add new DEV type with iram malloc()/free() and accordingly modify current default mmap() for the iram circumstance. Signed-off-by: Nicolin Chen <b42378@freescale.com> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/memalloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h
index cf15b8213df7..510aec437f72 100644
--- a/include/sound/memalloc.h
+++ b/include/sound/memalloc.h
@@ -52,6 +52,7 @@ struct snd_dma_device {
52#else 52#else
53#define SNDRV_DMA_TYPE_DEV_SG SNDRV_DMA_TYPE_DEV /* no SG-buf support */ 53#define SNDRV_DMA_TYPE_DEV_SG SNDRV_DMA_TYPE_DEV /* no SG-buf support */
54#endif 54#endif
55#define SNDRV_DMA_TYPE_DEV_IRAM 4 /* generic device iram-buffer */
55 56
56/* 57/*
57 * info for buffer allocation 58 * info for buffer allocation