diff options
author | Sumit Bhattacharya <sumitb@nvidia.com> | 2012-04-20 17:26:35 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-26 14:53:34 -0700 |
commit | f61271a07333c0177346716e9a85da2dfea3f73e (patch) | |
tree | bd86e5832175aeb5768ae9f0e829bed0af609b07 /sound/soc/tegra/tegra_pcm.h | |
parent | 167ad9e2cb758aedaf778e6ba2c631878ff2dd68 (diff) |
ASoC: Tegra: Make dma_req count easily configurable
Instead of always using 2 dma_req count pass max dma_req_count
through a macro. Ensure dma_req_count does not cross
period_count.
Bug 968814
Change-Id: Iddfbd77017992ccb8c90441213e191133dadb347
Signed-off-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-on: http://git-master/r/97915
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound/soc/tegra/tegra_pcm.h')
-rw-r--r-- | sound/soc/tegra/tegra_pcm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_pcm.h b/sound/soc/tegra/tegra_pcm.h index dbb90339fe0d..5737ea7ca0bc 100644 --- a/sound/soc/tegra/tegra_pcm.h +++ b/sound/soc/tegra/tegra_pcm.h @@ -33,6 +33,8 @@ #include <mach/dma.h> +#define MAX_DMA_REQ_COUNT 2 + struct tegra_pcm_dma_params { unsigned long addr; unsigned long wrap; @@ -48,8 +50,9 @@ struct tegra_runtime_data { int dma_pos_end; int period_index; int dma_req_idx; - struct tegra_dma_req dma_req[2]; + struct tegra_dma_req dma_req[MAX_DMA_REQ_COUNT]; struct tegra_dma_channel *dma_chan; + int dma_req_count; }; #endif |