dmaengine: at_hdmac: implement pause and resume in atc_control
commit23b5e3ad68a3c26a6a36039ea907997664aedcab
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 6 May 2011 17:56:52 +0000 (6 19:56 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 9 May 2011 06:12:54 +0000 (9 11:42 +0530)
tree4aeeb9c081c05255615eb3fdd97268f58e6cc653
parent543aabc7d295bfe2489f184259395e3467520d48
dmaengine: at_hdmac: implement pause and resume in atc_control

Pause and resume controls are useful for audio devices. This also returns
correct status from atc_tx_status() in case chan is paused.

Idea from dw_dmac patch by Linus Walleij.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_hdmac.c
drivers/dma/at_hdmac_regs.h