summaryrefslogtreecommitdiff
path: root/sound
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 /sound
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 'sound')
-rw-r--r--sound/soc/tegra/tegra_pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c
index d75848741038..369e50743ace 100644
--- a/sound/soc/tegra/tegra_pcm.c
+++ b/sound/soc/tegra/tegra_pcm.c
@@ -270,7 +270,8 @@ static int tegra_pcm_open(struct snd_pcm_substream *substream)
}
}
- prtd->dma_chan = tegra_dma_allocate_channel(TEGRA_DMA_MODE_CONTINUOUS_DOUBLE);
+ prtd->dma_chan = tegra_dma_allocate_channel(
+ TEGRA_DMA_MODE_CONTINUOUS_DOUBLE, "pcm");
if (prtd->dma_chan == NULL) {
pr_err("%s: could not allocate DMA channel for PCM:\n",
__func__);