aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorMatt Porter <mporter@ti.com>2012-10-17 10:08:03 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-22 09:58:34 -0400
commitb8ec56d8eabc6382bd6586024138d9f1d1121ceb (patch)
tree75392080a456dfe65b26e9e9bc9a8d20db9a1b16 /include/linux/platform_data
parent6b7fa011571d10309cd2b39511f895cef9dd536c (diff)
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/linux/platform_data')
-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 @@
16#ifndef __DAVINCI_ASP_H 16#ifndef __DAVINCI_ASP_H
17#define __DAVINCI_ASP_H 17#define __DAVINCI_ASP_H
18 18
19#include <linux/genalloc.h>
20
19struct snd_platform_data { 21struct snd_platform_data {
20 u32 tx_dma_offset; 22 u32 tx_dma_offset;
21 u32 rx_dma_offset; 23 u32 rx_dma_offset;
@@ -30,6 +32,7 @@ struct snd_platform_data {
30 unsigned enable_channel_combine:1; 32 unsigned enable_channel_combine:1;
31 unsigned sram_size_playback; 33 unsigned sram_size_playback;
32 unsigned sram_size_capture; 34 unsigned sram_size_capture;
35 struct gen_pool *sram_pool;
33 36
34 /* 37 /*
35 * If McBSP peripheral gets the clock from an external pin, 38 * If McBSP peripheral gets the clock from an external pin,