diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2011-04-18 16:35:41 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 14:18:46 -0700 |
commit | 2e3139bc7e6f13b8bd6e6bcd894420e4c5521b67 (patch) | |
tree | c8bbd577021a4baa9d82d840cb92aebc3abf9e62 /arch/arm/mach-tegra/tegra_i2s_audio.c | |
parent | 04bf66318e03906fe866f6742fb806c816d8f37d (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 'arch/arm/mach-tegra/tegra_i2s_audio.c')
-rw-r--r-- | arch/arm/mach-tegra/tegra_i2s_audio.c | 6 |
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 b37617e5d5a4..f8563ae89d0a 100644 --- a/arch/arm/mach-tegra/tegra_i2s_audio.c +++ b/arch/arm/mach-tegra/tegra_i2s_audio.c @@ -728,7 +728,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)); @@ -749,7 +750,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)); |