summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra_i2s_audio.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-04-18 16:35:41 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:56:18 -0700
commit89aa98edfb250b54549580a6b0261a23af3d7c0c (patch)
tree697162362c6f98a278de324f86397e778a1fb314 /arch/arm/mach-tegra/tegra_i2s_audio.c
parent5047a0f6d0b6c1c44d0f692531396f1c5b541c74 (diff)
arm: tegra: dma: Adding client name with dma allocation.
By changing the dma allocation API to take the client name, it is easy to track who is allocated the DMA channels when we run out of the DMA channels. Original-Change-Id: I016011cfd74089fed0da1bc0f121800017ce124a Reviewed-on: http://git-master/r/28031 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Change-Id: I048bcb87f95ee6d8ad2fdce993a1758dc5071666
Diffstat (limited to 'arch/arm/mach-tegra/tegra_i2s_audio.c')
-rw-r--r--arch/arm/mach-tegra/tegra_i2s_audio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/tegra_i2s_audio.c b/arch/arm/mach-tegra/tegra_i2s_audio.c
index 16897bb79e63..f5a4a8bffba6 100644
--- a/arch/arm/mach-tegra/tegra_i2s_audio.c
+++ b/arch/arm/mach-tegra/tegra_i2s_audio.c
@@ -735,7 +735,8 @@ static int setup_dma(struct audio_driver_state *ads, int mask)
ads->out.dma_req[i].source_addr = ads->out.buf_phy[i];
}
ads->out.dma_chan = tegra_dma_allocate_channel(
- TEGRA_DMA_MODE_CONTINUOUS_SINGLE);
+ TEGRA_DMA_MODE_CONTINUOUS_SINGLE,
+ "i2s_tx_req_%d", ads->dma_req_sel);
if (!ads->out.dma_chan) {
pr_err("%s: error alloc output DMA channel: %ld\n",
__func__, PTR_ERR(ads->out.dma_chan));
@@ -756,7 +757,8 @@ static int setup_dma(struct audio_driver_state *ads, int mask)
ads->in.dma_req[i].dest_addr = ads->in.buf_phy[i];
}
ads->in.dma_chan = tegra_dma_allocate_channel(
- TEGRA_DMA_MODE_CONTINUOUS_SINGLE);
+ TEGRA_DMA_MODE_CONTINUOUS_SINGLE,
+ "i2s_rx_req_%d", ads->dma_req_sel);
if (!ads->in.dma_chan) {
pr_err("%s: error allocating input DMA channel: %ld\n",
__func__, PTR_ERR(ads->in.dma_chan));