summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra_pcm.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-04-18 16:35:41 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:43:19 -0800
commit4c8092dc8808de2ec3f2ec11e0a020b92498f70d (patch)
treea60d4347bbc975dd8a7a8882fb6a6c6a29ab0f12 /sound/soc/tegra/tegra_pcm.c
parent0e5eec3307ce47cb03f9405b1c227b400611b24b (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> Original-Change-Id: I048bcb87f95ee6d8ad2fdce993a1758dc5071666 Rebase-Id: Rf6d68d90cb4a8e91be3ec921cadc116f3a36184c
Diffstat (limited to 'sound/soc/tegra/tegra_pcm.c')
-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 c7cfd96e991e..b265c2e0ad0d 100644
--- a/sound/soc/tegra/tegra_pcm.c
+++ b/sound/soc/tegra/tegra_pcm.c
@@ -160,7 +160,8 @@ static int tegra_pcm_open(struct snd_pcm_substream *substream)
prtd->dma_req[0].dev = prtd;
prtd->dma_req[1].dev = prtd;
- prtd->dma_chan = tegra_dma_allocate_channel(TEGRA_DMA_MODE_ONESHOT);
+ prtd->dma_chan = tegra_dma_allocate_channel(
+ TEGRA_DMA_MODE_ONESHOT, "pcm");
if (prtd->dma_chan == NULL) {
ret = -ENOMEM;
goto err;