dmaengine: tegra210-adma: add pause/resume support
authorSameer Pujar <spujar@nvidia.com>
Thu, 2 May 2019 12:55:15 +0000 (18:25 +0530)
committerVinod Koul <vkoul@kernel.org>
Sat, 4 May 2019 10:43:42 +0000 (16:13 +0530)
commit94dc8f4ed47983b7280f488617e49346f89513fd
tree13a7b35edd7afeaabbf5b8397887a66d09f05a11
parent433de642a76c9e68641ee5a8c7b2720d4e8629a5
dmaengine: tegra210-adma: add pause/resume support

During an audio playback session it is observed that, audio goes off after
few seconds of continuous pause and play. No audio is heard even when the
playback is resumed.

The reason for above is, currently ADMA driver does not handle DMA_PAUSE/
DMA_RESUME and relevant callbacks for dma_device are not implemented. This
patch implements device_pause and device_resume callbacks for the device.
During pause TRANSFER_PAUSE bit of dma channel control register is set and
the same is cleared during resume.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra210-adma.c