From 2e3139bc7e6f13b8bd6e6bcd894420e4c5521b67 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Mon, 18 Apr 2011 16:35:41 +0530 Subject: 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 Tested-by: Varun Colbert Original-Change-Id: I048bcb87f95ee6d8ad2fdce993a1758dc5071666 Rebase-Id: Rf6d68d90cb4a8e91be3ec921cadc116f3a36184c --- arch/arm/mach-tegra/tegra_i2s_audio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'arch/arm/mach-tegra/tegra_i2s_audio.c') 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)); -- cgit v1.2.3