All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dma: Add a PAUSE_RESUME capability
@ 2013-05-29 11:42 Lars-Peter Clausen
       [not found] ` <1369827743-5533-1-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
  2013-05-30 16:49 ` [PATCH 1/2] dma: Add a PAUSE_RESUME capability Vinod Koul
  0 siblings, 2 replies; 5+ messages in thread
From: Lars-Peter Clausen @ 2013-05-29 11:42 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Scott Jiang, Steven Miao
  Cc: uclinux-dist-devel, alsa-devel, Lars-Peter Clausen

Add a capability which allows dmaengine consumers to query whether a dmaengine
controller supports the DMA_PAUSE and DMA_RESUME commands. Sometimes a user of
the dmaengine API needs to know in advance if a channel will support
pause/resume. E.g. in ALSA the information whether it is possible to
pause/resume a audio stream or whether it is necessary to abort and restart the
stream is communicated to userspace so it can act accordingly.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 include/linux/dmaengine.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 96d3e4a..ad98dfb 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -74,6 +74,7 @@ enum dma_transaction_type {
 	DMA_SLAVE,
 	DMA_CYCLIC,
 	DMA_INTERLEAVE,
+	DMA_PAUSE_RESUME,
 /* last transaction type for creation of the capabilities mask */
 	DMA_TX_TYPE_END,
 };
-- 
1.8.0

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

end of thread, other threads:[~2013-06-01 19:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29 11:42 [PATCH 1/2] dma: Add a PAUSE_RESUME capability Lars-Peter Clausen
     [not found] ` <1369827743-5533-1-git-send-email-lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2013-05-29 11:42   ` [PATCH 2/2] dma: Set PAUSE_RESUME capability for drivers which support it Lars-Peter Clausen
2013-05-30 16:49 ` [PATCH 1/2] dma: Add a PAUSE_RESUME capability Vinod Koul
2013-05-30 19:10   ` [alsa-devel] " Lars-Peter Clausen
2013-06-01 19:00   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.