summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Porter <mporter@ti.com>2012-10-17 16:08:03 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-22 14:58:34 +0100
commitb8ec56d8eabc6382bd6586024138d9f1d1121ceb (patch)
tree75392080a456dfe65b26e9e9bc9a8d20db9a1b16 /include
parent6b7fa011571d10309cd2b39511f895cef9dd536c (diff)
downloadlinux-b8ec56d8eabc6382bd6586024138d9f1d1121ceb.tar.gz
linux-b8ec56d8eabc6382bd6586024138d9f1d1121ceb.tar.bz2
linux-b8ec56d8eabc6382bd6586024138d9f1d1121ceb.zip
ASoC: davinci: replace private sram api with genalloc
Removes the DaVinci private SRAM API and replaces it with the genalloc API. The SRAM gen_pool is passed in pdata since DaVinci is in the early stages of DT conversion. [zonque@gmail.com: stub out gen_pool functions for !CONFIG_GENERIC_ALLOCATOR] Signed-off-by: Matt Porter <mporter@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/davinci_asp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/davinci_asp.h b/include/linux/platform_data/davinci_asp.h
index d0c5825876f8..f3d6e4f20962 100644
--- a/include/linux/platform_data/davinci_asp.h
+++ b/include/linux/platform_data/davinci_asp.h
@@ -16,6 +16,8 @@
#ifndef __DAVINCI_ASP_H
#define __DAVINCI_ASP_H
+#include <linux/genalloc.h>
+
struct snd_platform_data {
u32 tx_dma_offset;
u32 rx_dma_offset;
@@ -30,6 +32,7 @@ struct snd_platform_data {
unsigned enable_channel_combine:1;
unsigned sram_size_playback;
unsigned sram_size_capture;
+ struct gen_pool *sram_pool;
/*
* If McBSP peripheral gets the clock from an external pin,