arm: tegra: dma: read transfer count without stopping dma.
Laxman Dewangan [Fri, 27 Jan 2012 13:20:37 +0000 (18:20 +0530)]
Dma user must call the function tegra_dma_get_transfer_count()
for knowing transferred count without stopping dma.

Change-Id: I5e0060fd8163b285496442268548a90bdd0e294c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/77800
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>

Rebase-Id: Re945b9a775ee582c20ae71d0331da22bcc06ddcd

sound/soc/tegra/tegra_pcm.c

index bcbcd28..edad22c 100644 (file)
@@ -275,8 +275,7 @@ static snd_pcm_uframes_t tegra_pcm_pointer(struct snd_pcm_substream *substream)
        int dma_transfer_count;
 
        dma_transfer_count = tegra_dma_get_transfer_count(prtd->dma_chan,
-                                       &prtd->dma_req[prtd->dma_req_idx],
-                                       false);
+                                       &prtd->dma_req[prtd->dma_req_idx]);
 
        return prtd->period_index * runtime->period_size +
                bytes_to_frames(runtime, dma_transfer_count);