linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dma: pl330: Add support for DMA_PAUSE command
@ 2014-05-14  3:23 Tushar Behera
  2014-05-14 11:59 ` Jassi Brar
  0 siblings, 1 reply; 13+ messages in thread
From: Tushar Behera @ 2014-05-14  3:23 UTC (permalink / raw)
  To: linux-kernel, dmaengine; +Cc: vinod.koul, dan.j.williams, jassisinghbrar

While playing back audio, pmc_dmaengine requests the DMA channel to
stop DMA transmission through DMA_PAUSE command.

Currently PL330 driver doesn't support DMA pause command, leaving
the DMA state inconsistent when the system resumes. Instead, it would
be better to terminate the DMA transfer during suspend and restart
again during resume.

Tested with audio playback across a suspend-resume cycle.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
 drivers/dma/pl330.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 73fa9b7..cd70f42 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2362,6 +2362,7 @@ static int pl330_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, unsigned
 	LIST_HEAD(list);
 
 	switch (cmd) {
+	case DMA_PAUSE:
 	case DMA_TERMINATE_ALL:
 		spin_lock_irqsave(&pch->lock, flags);
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-05-19  8:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14  3:23 [PATCH] dma: pl330: Add support for DMA_PAUSE command Tushar Behera
2014-05-14 11:59 ` Jassi Brar
2014-05-14 12:07   ` Tushar Behera
2014-05-14 12:24     ` Lars-Peter Clausen
2014-05-15 12:01       ` Tushar Behera
2014-05-15 19:21         ` Lars-Peter Clausen
2014-05-16  5:49           ` Takashi Iwai
2014-05-16 10:51             ` [alsa-devel] " Lars-Peter Clausen
2014-05-19  8:37               ` Takashi Iwai
2014-05-19  8:43                 ` Lars-Peter Clausen
2014-05-19  3:10           ` Tushar Behera
2014-05-19  5:57             ` Lars-Peter Clausen
2014-05-14 13:16     ` Jassi Brar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).