]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: Add SoC on-chip internal ram support for DMA buffer allocation
authorNicolin Chen <b42378@freescale.com>
Wed, 23 Oct 2013 03:47:43 +0000 (11:47 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Oct 2013 07:20:47 +0000 (09:20 +0200)
commit055032142c42d2821c4aa617915292d6a08d56fc
treece10032a40379b482eda19f8b04f8924a1625195
parent861e66d3418a90f57b31a50110fc70b23569c551
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>
include/sound/memalloc.h
sound/core/memalloc.c
sound/core/pcm_native.c