[alsa-devel] [PATCH 1/2] dma: Add a PAUSE_RESUME capability
Lars-Peter Clausen
lars at metafoo.de
Wed May 29 13:42:22 CEST 2013
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 at 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
More information about the Alsa-devel
mailing list